:root {
  --yellow: #ffc700;
  --yellow-hot: #ffd84f;
  --ink: #0f0e0c;
  --white: #fffdf6;
  --cream: #f8f3e7;
  --border: #e8dfcc;
  --coral: #ff5c35;
  --blue: #168cff;
  --green: #77d91f;
  --purple: #8057ff;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 360ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-playful: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.service-shell {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}
.service-shell.narrow { max-width: 920px; }
.section-pad { padding: clamp(64px, 8vw, 104px) 0; }
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wp-block-heading {
  color: var(--ink);
}
p {
  max-width: 820px;
  margin: 0 0 18px;
  color: #3c3529;
}
ul,
ol {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}
.nav-links,
.nav-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 750;
}
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.menu-item-has-children {
  position: relative;
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(320px, 90vw);
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(15, 14, 12, 0.18);
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
}
.sub-menu a {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}
.sub-menu a:hover,
.sub-menu a:focus-visible {
  background: var(--cream);
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 24px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}
.service-hero {
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(15, 14, 12, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 14, 12, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(255, 199, 0, 0.38), transparent 28%),
    linear-gradient(180deg, var(--white), var(--cream));
  background-size: 34px 34px, 34px 34px, auto, auto;
}
.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.service-hero-subtitle {
  margin-top: 18px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.16;
}
.hero-text {
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.wp-block-button__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease-playful), box-shadow var(--duration-base) var(--ease-standard);
}
.btn-primary .wp-block-button__link {
  background: var(--yellow);
  color: var(--ink);
}
.btn-secondary .wp-block-button__link {
  background: var(--ink);
  color: var(--white);
}
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn-secondary .wp-block-button__link:hover,
.btn-secondary .wp-block-button__link:focus-visible {
  box-shadow: 6px 6px 0 var(--yellow);
}

.service-hero-panel,
.split-card,
.type-cards .wp-block-column,
.why-cards .wp-block-column,
.portfolio-cards .wp-block-column,
.card-grid li,
.process-list li,
.service-faq-item {
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(15, 14, 12, 0.14);
}
.service-hero-panel {
  padding: clamp(24px, 5vw, 44px);
  transform: rotate(1.2deg);
}
.panel-label {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 950;
}
.service-check-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.cream-band,
.process-band,
.related-services {
  background: var(--cream);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}
.card-grid li {
  min-height: 116px;
  padding: 18px;
  font-weight: 750;
}
.problem-grid li:nth-child(3n + 1),
.benefit-grid li:nth-child(4n + 2),
.included-grid li:nth-child(5n + 1) {
  background: var(--yellow);
}

.type-cards,
.why-cards,
.portfolio-cards {
  gap: 18px;
  margin-bottom: 18px;
}
.type-cards .wp-block-column,
.why-cards .wp-block-column,
.portfolio-cards .wp-block-column {
  padding: 24px;
}
.type-cards p,
.why-cards p,
.portfolio-cards p {
  margin-bottom: 0;
}
.portfolio-cards a {
  font-weight: 900;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style-position: inside;
}
.process-list li {
  padding: 22px;
}
.process-list li:nth-child(odd) {
  background: var(--yellow);
}
.process-list strong {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.split-card {
  padding: clamp(24px, 4vw, 42px);
}
.yellow-card {
  background: var(--yellow);
}
.split-card ul {
  padding-left: 20px;
}

.related-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  padding-left: 20px;
}
.related-list a {
  font-weight: 900;
}

.faq-section {
  background: var(--white);
}
.service-faq-item {
  max-width: 920px;
  margin-bottom: 12px;
  overflow: hidden;
}
.service-faq-item summary {
  min-height: 58px;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-weight: 950;
  position: relative;
  list-style: none;
}
.service-faq-item summary::-webkit-details-marker {
  display: none;
}
.service-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
}
.service-faq-item[open] summary::after {
  content: "-";
}
.service-faq-item p {
  padding: 0 20px 20px;
}

.final-service-cta {
  background: var(--yellow);
}
.cta-panel {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(34px, 6vw, 64px);
  border: 3px solid var(--ink);
  border-radius: 34px;
  background: var(--white);
  box-shadow: 14px 14px 0 var(--ink);
}
.cta-panel p {
  margin-inline: auto;
}

.footer {
  padding: 54px 0;
  background: var(--ink);
  color: var(--white);
}
.footer .brand,
.footer h2 {
  color: var(--white);
}
.footer p {
  color: #d7cdbb;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}
.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer a {
  color: var(--white);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    padding-block: 14px;
  }
  .nav-links {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .sub-menu {
    left: auto;
    right: 0;
    transform: none;
  }
  .service-hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .service-shell {
    width: min(100% - 24px, 1200px);
  }
  .section-pad {
    padding: 56px 0;
  }
  .nav,
  .nav-links {
    display: grid;
    justify-content: stretch;
  }
  .sub-menu {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 14px;
    margin: 6px 0 0;
  }
  .hero-actions,
  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
  }
  .card-grid,
  .process-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-hero-panel {
    transform: none;
  }
  .cta-panel {
    box-shadow: 8px 8px 0 var(--ink);
  }
}


/* Shared coded header navigation used by homepage and inner pages. */
.nav-item { position: relative; }
.nav-dropdown-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.nav-dropdown-toggle span {
  font-size: 0.9rem;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.has-dropdown.is-open .nav-dropdown-toggle span,
.has-dropdown:hover .nav-dropdown-toggle span { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(320px, 90vw);
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(15, 14, 12, 0.18);
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.nav-dropdown a {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.9rem;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible { background: var(--cream); }
.has-dropdown:hover .nav-dropdown,
.has-dropdown.is-open .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .menu-toggle {
    width: 48px;
    height: 48px;
    display: grid;
    gap: 5px;
    place-content: center;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--yellow);
  }
  .menu-toggle span:not(.sr-only) {
    width: 22px;
    height: 2px;
    background: var(--ink);
    display: block;
  }
  .nav-links {
    position: fixed;
    inset: 74px 16px auto 16px;
    display: grid;
    gap: 2px;
    padding: 18px;
    border: 2px solid var(--ink);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 8px 8px 0 var(--ink);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a,
  .nav-dropdown-toggle {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border-radius: 12px;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static;
    width: 100%;
    margin: 0 0 8px;
    padding: 6px 0 6px 12px;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }
  .has-dropdown.is-open .nav-dropdown { display: grid; }
}

/* Service hero v2: reusable editorial hero for all inner service pages. */
.service-page .service-hero {
  min-height: auto;
  padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 104px);
  background:
    linear-gradient(135deg, rgba(255, 199, 0, 0.18) 0 24%, transparent 24% 100%),
    linear-gradient(180deg, var(--white), var(--cream));
  border-bottom: 2px solid var(--border);
}
.service-page .service-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.service-page .service-hero-copy h1 {
  max-width: 980px;
  font-size: clamp(2.5rem, 5.5vw, 4.45rem);
  line-height: 1.02;
}
.service-page .service-hero-copy .hero-text {
  max-width: 760px;
  margin-top: 22px;
  font-size: 1.13rem;
  line-height: 1.58;
}
.service-page .service-hero-panel.service-snapshot {
  position: relative;
  padding: clamp(26px, 4vw, 38px);
  background: var(--white);
  transform: rotate(-1deg);
  box-shadow: 10px 10px 0 rgba(15, 14, 12, 0.18);
}
.service-page .service-hero-panel.service-snapshot::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: 22px;
  top: -28px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--yellow);
  box-shadow: 6px 6px 0 rgba(15, 14, 12, 0.18);
  transform: rotate(8deg);
}
.service-page .service-snapshot .panel-label {
  max-width: 260px;
  margin-bottom: 24px;
  font-size: 2rem;
  line-height: 1.06;
}
.service-page .snapshot-rows {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.service-page .snapshot-row {
  max-width: none;
  margin: 0;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--cream);
  color: #3c3529;
  font-size: 0.98rem;
  line-height: 1.42;
}
.service-page .snapshot-row strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 950;
}
.service-page .snapshot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-page .snapshot-badges p {
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 980px) {
  .service-page .service-hero-grid {
    grid-template-columns: 1fr;
  }
  .service-page .service-hero-panel.service-snapshot {
    transform: none;
  }
}

@media (max-width: 640px) {
  .service-page .service-hero {
    padding-top: 56px;
  }
  .service-page .service-hero-copy h1 {
    font-size: clamp(2.3rem, 12vw, 3rem);
  }
  .service-page .service-hero-copy .hero-text {
    font-size: 1.04rem;
  }
  .service-page .service-hero-panel.service-snapshot::before {
    width: 54px;
    height: 54px;
    right: 16px;
    top: -20px;
    border-radius: 18px;
  }
}

/* Service hero v3: Weblyc screenshot-marquee system for service pages. */
.service-page .service-hero.service-hero-marquee {
  min-height: auto;
  padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 14, 12, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 14, 12, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, var(--white), var(--cream));
  background-size: 72px 72px, 72px 72px, auto;
  border-bottom: 2px solid var(--border);
}

.service-page .service-marquee-shell {
  width: min(1320px, calc(100% - 32px));
}

.service-page .service-hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 54vw, 590px);
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(76px, 8vw, 112px);
  border: 3px solid var(--ink);
  border-radius: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 199, 0, 0.18), transparent 26%),
    radial-gradient(circle at 84% 74%, rgba(255, 92, 53, 0.16), transparent 24%),
    var(--ink);
  color: var(--white);
  box-shadow: 14px 14px 0 var(--yellow);
  text-align: center;
}

.service-page .service-hero-content {
  display: grid;
  justify-items: center;
  width: min(100%, 1060px);
}

.service-page .service-hero-kicker {
  margin-inline: auto;
  margin-bottom: 26px;
  color: var(--ink);
}

.service-page .service-hero-mark {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 26px;
  padding: 9px;
  border: 2px solid rgba(255, 253, 246, 0.82);
  border-radius: 14px;
  transform: rotate(-2deg);
}

.service-page .service-hero-mark span {
  border: 2px solid rgba(255, 253, 246, 0.82);
  border-radius: 4px;
}

.service-page .service-hero-mark span:first-child {
  grid-column: span 2;
}

.service-page .service-hero-stage h1 {
  max-width: 1040px;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(2.7rem, 6.3vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: normal;
}

.service-page .service-hero-stage .hero-text {
  max-width: 790px;
  margin: 26px auto 0;
  color: #efe7d9;
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  line-height: 1.58;
}

.service-page .service-hero-stage .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.service-page .service-shot-marquee {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin: -52px 0 0 50%;
  overflow: hidden;
  transform: translateX(-50%);
}

.service-page .service-shot-track {
  display: flex;
  width: max-content;
  animation: service-shot-scroll 38s linear infinite;
  will-change: transform;
}

.service-page .service-shot-marquee:hover .service-shot-track,
.service-page .service-shot-marquee:focus-within .service-shot-track {
  animation-play-state: paused;
}

.service-page .service-shot-group {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(14px, 2vw, 22px);
  padding-right: clamp(14px, 2vw, 22px);
}

.service-page .service-shot {
  position: relative;
  width: clamp(250px, 28vw, 430px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 6px 6px 0 rgba(15, 14, 12, 0.2);
}

.service-page .service-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.01);
}

.service-page .service-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 14, 12, 0.04) 20%, rgba(15, 14, 12, 0.82) 100%);
}

.service-page .service-shot div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  text-align: left;
}

.service-page .service-shot span,
.service-page .service-shot strong {
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: normal;
}

.service-page .service-shot span {
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.86;
}

.service-page .service-shot strong {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.05;
  font-weight: 950;
}

.service-page .shot-newmoon::before {
  background-image: url("../site/newmoon.jpg");
}

.service-page .shot-ifs::before {
  background-image: url("../site/ifs-capital.jpg");
}

.service-page .shot-jusask::before {
  background-image: url("../site/weblyc-concept.png");
}

.service-page .shot-system {
  background:
    linear-gradient(135deg, var(--yellow) 0 48%, var(--white) 48% 100%);
}

.service-page .shot-system::before {
  background:
    linear-gradient(90deg, rgba(15, 14, 12, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 14, 12, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.service-page .service-hero-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: min(100%, 920px);
  margin: 34px auto 0;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  box-shadow: 8px 8px 0 rgba(15, 14, 12, 0.14);
}

.service-page .service-nav-pill,
.service-page .service-nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.service-page .service-nav-active {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.service-page .service-nav-link {
  border-left: 2px solid var(--border);
  border-radius: 0 999px 999px 0;
}

@keyframes service-shot-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .service-page .service-hero-stage {
    min-height: auto;
    padding-top: 54px;
  }

  .service-page .service-shot-marquee {
    margin-top: -34px;
  }

  .service-page .service-hero-nav {
    border-radius: 28px;
  }

  .service-page .service-nav-link {
    border-left: 0;
    border-radius: 999px;
  }
}

@media (max-width: 640px) {
  .service-page .service-hero.service-hero-marquee {
    padding-top: 42px;
  }

  .service-page .service-marquee-shell {
    width: min(100% - 24px, 1320px);
  }

  .service-page .service-hero-stage {
    padding: 34px 18px 58px;
    border-radius: 24px;
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .service-page .service-hero-stage h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 1.02;
  }

  .service-page .service-hero-stage .hero-text {
    font-size: 1rem;
  }

  .service-page .service-shot {
    width: min(78vw, 320px);
  }

  .service-page .service-hero-nav {
    display: grid;
    width: 100%;
    border-radius: 22px;
  }

  .service-page .service-nav-pill,
  .service-page .service-nav-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page .service-shot-track {
    width: 100%;
    flex-wrap: wrap;
    animation: none;
    transform: none;
  }

  .service-page .service-shot-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-page .service-shot-group-copy {
    display: none;
  }
}

/* Service hero v4: two-row image marquee and homepage-aligned type/buttons. */
.service-page .service-hero.service-hero-marquee {
  padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
}

.service-page .service-hero-stage {
  min-height: auto;
  padding: clamp(44px, 7vw, 86px) clamp(20px, 5vw, 72px) clamp(78px, 8vw, 112px);
}

.service-page .service-hero-stage h1 {
  max-width: 820px;
  font-size: 3.5rem;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: normal;
}

.service-page .service-hero-stage .hero-text {
  max-width: 780px;
  margin: 24px auto 0;
}

.service-page .service-hero-stage .hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.service-page .service-hero-stage .wp-block-button {
  margin: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.service-page .service-hero-stage .wp-block-button__link,
.service-page .service-hero-stage .wp-element-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease-playful), box-shadow var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}

.service-page .service-hero-stage .btn-primary .wp-block-button__link,
.service-page .service-hero-stage .btn-primary .wp-element-button {
  border-color: var(--ink);
  background: var(--yellow);
  color: var(--ink);
}

.service-page .service-hero-stage .btn-secondary .wp-block-button__link,
.service-page .service-hero-stage .btn-secondary .wp-element-button {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.service-page .service-hero-stage .btn-primary .wp-block-button__link:hover,
.service-page .service-hero-stage .btn-primary .wp-block-button__link:focus-visible,
.service-page .service-hero-stage .btn-primary .wp-element-button:hover,
.service-page .service-hero-stage .btn-primary .wp-element-button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--white);
}

.service-page .service-hero-stage .btn-secondary .wp-block-button__link:hover,
.service-page .service-hero-stage .btn-secondary .wp-block-button__link:focus-visible,
.service-page .service-hero-stage .btn-secondary .wp-element-button:hover,
.service-page .service-hero-stage .btn-secondary .wp-element-button:focus-visible {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--yellow);
}

.service-page .service-shot-marquee {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  margin-top: -48px;
  pointer-events: auto;
}

.service-page .service-shot-row {
  width: 100%;
  overflow: hidden;
}

.service-page .service-shot-row .service-shot-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.service-page .service-shot-row-one .service-shot-track {
  animation: service-shot-scroll-left 36s linear infinite;
}

.service-page .service-shot-row-two .service-shot-track {
  animation: service-shot-scroll-right 42s linear infinite;
}

.service-page .service-shot-marquee:hover .service-shot-track,
.service-page .service-shot-marquee:focus-within .service-shot-track {
  animation-play-state: paused;
}

.service-page .service-shot-group {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(12px, 1.7vw, 18px);
  padding-right: clamp(12px, 1.7vw, 18px);
}

.service-page .service-shot {
  width: clamp(240px, 26vw, 390px);
  aspect-ratio: 16 / 9;
  padding: 0;
  align-items: stretch;
  border-radius: 14px;
  background: var(--cream);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.service-page .service-shot::before,
.service-page .service-shot::after,
.service-page .service-shot > * {
  display: none !important;
  content: none !important;
}

.service-page .shot-newmoon {
  background-image: url("../site/newmoon.jpg");
}

.service-page .shot-ifs {
  background-image: url("../site/ifs-capital.jpg");
}

.service-page .shot-jusask {
  background-image: url("../site/weblyc-concept.png");
}

.service-page .shot-system {
  background:
    linear-gradient(135deg, rgba(255, 199, 0, 0.96) 0 48%, rgba(255, 253, 246, 0.96) 48% 100%),
    linear-gradient(90deg, rgba(15, 14, 12, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 14, 12, 0.12) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

@keyframes service-shot-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes service-shot-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 768px) {
  .service-page .service-hero-stage h1 {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .service-page .service-hero-stage {
    padding: 34px 18px 58px;
  }

  .service-page .service-hero-stage .hero-actions,
  .service-page .service-hero-stage .wp-block-button,
  .service-page .service-hero-stage .wp-block-button__link,
  .service-page .service-hero-stage .wp-element-button {
    width: 100%;
  }

  .service-page .service-shot-marquee {
    margin-top: -30px;
  }

  .service-page .service-shot {
    width: min(76vw, 310px);
  }
}

@media (max-width: 480px) {
  .service-page .service-hero-stage h1 {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page .service-shot-row .service-shot-track {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
    transform: none;
  }

  .service-page .service-shot-row-two {
    display: none;
  }

  .service-page .service-shot-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-page .service-shot-group-copy {
    display: none;
  }
}

/* Service hero v5: seamless marquee, no hover pause, no category bar. */
.service-page .service-hero-stage .hero-text {
  max-width: 640px;
}

.service-page .service-shot-marquee:hover .service-shot-track,
.service-page .service-shot-marquee:focus-within .service-shot-track {
  animation-play-state: running;
}

.service-page .service-shot-row .service-shot-track {
  min-width: max-content;
}

.service-page .service-shot-group {
  min-width: max-content;
}

.service-page .service-hero-nav {
  display: none !important;
}

@media (min-width: 1200px) {
  .service-page .service-shot {
    width: clamp(260px, 23vw, 360px);
  }
}

/* Conversion service template v1: snapshot section and placeholder structure. */
.service-page .service-section-head {
  max-width: 900px;
  margin-bottom: 34px;
}

.service-page .service-section-head p:last-child {
  max-width: 760px;
  margin: 0;
  color: #5d5342;
}

.service-page .service-snapshot-section {
  background: var(--white);
}

.service-page .service-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-page .service-snapshot-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(15, 14, 12, 0.12);
}

.service-page .service-snapshot-card:nth-child(2n) {
  background: var(--cream);
}

.service-page .service-snapshot-card:nth-child(3) {
  background: var(--yellow);
}

.service-page .service-snapshot-card p {
  margin: 0;
  color: #3c3529;
}

.service-page .service-snapshot-card.motion-card:hover,
.service-page .service-snapshot-card.motion-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 rgba(15, 14, 12, 0.32);
}

.service-page .service-placeholder .service-shell,
.service-page .service-placeholder .cta-panel {
  min-height: 240px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(28px, 5vw, 48px);
  border: 2px dashed rgba(15, 14, 12, 0.32);
  border-radius: 26px;
  background: color-mix(in srgb, var(--white) 78%, transparent);
}

.service-page .service-placeholder .section-title {
  max-width: 900px;
  color: var(--ink);
}

.service-page .service-placeholder.final-service-cta .cta-panel {
  justify-items: center;
  text-align: center;
  border-style: solid;
  background: var(--white);
}

@media (max-width: 980px) {
  .service-page .service-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .service-page .service-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .service-page .service-snapshot-card {
    min-height: auto;
    padding: 20px;
  }

  .service-page .service-placeholder .service-shell,
  .service-page .service-placeholder .cta-panel {
    min-height: 180px;
    padding: 24px;
  }
}

/* Snapshot refinement: vertically centered card content. */
.service-page .service-snapshot-card {
  align-content: center;
}

/* Problem section: pain-point-led split layout. */
.service-page .service-problem {
  background: var(--cream);
}

.service-page .service-problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: start;
}

.service-page .service-problem-copy {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 112px;
}

.service-page .service-problem-copy .section-kicker,
.service-page .service-problem-copy p,
.service-page .service-problem-copy h2 {
  margin: 0;
}

.service-page .service-problem-copy p {
  max-width: 650px;
  color: #3c3529;
}

.service-page .service-pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-page .service-pain-card {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(15, 14, 12, 0.12);
}

.service-page .service-pain-card p {
  margin: 0;
  color: #3c3529;
}

.service-page .service-pain-card.motion-card:hover,
.service-page .service-pain-card.motion-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 rgba(15, 14, 12, 0.32);
}

@media (max-width: 980px) {
  .service-page .service-problem-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-page .service-problem-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .service-page .service-pain-grid {
    grid-template-columns: 1fr;
  }

  .service-page .service-pain-card {
    min-height: auto;
    padding: 20px;
  }

}

/* Problem visual refinement: icons, priority yellow cards, one-line note. */
.service-page .service-pain-card {
  gap: 10px;
  align-content: center;
}

.service-page .service-pain-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 4px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 rgba(15, 14, 12, 0.16);
}

.service-page .service-pain-icon::before,
.service-page .service-pain-icon::after {
  content: "";
  position: absolute;
  border-color: var(--ink);
}

.service-page .icon-window::before {
  width: 24px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: inset 0 6px 0 var(--yellow);
}

.service-page .icon-trust::before {
  width: 18px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 11px 11px 8px 8px;
  background: var(--cream);
}

.service-page .icon-trust::after {
  width: 10px;
  height: 7px;
  top: 10px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.service-page .icon-arrow::before {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-2px);
}

.service-page .icon-arrow::after {
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: translateX(6px) rotate(45deg);
}

.service-page .icon-mobile::before {
  width: 16px;
  height: 25px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--cream);
}

.service-page .icon-mobile::after {
  width: 4px;
  height: 4px;
  bottom: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.service-page .icon-edit::before {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transform: rotate(-38deg);
}

.service-page .icon-edit::after {
  width: 12px;
  height: 12px;
  right: 9px;
  bottom: 9px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.service-page .icon-search::before {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translate(-3px, -3px);
}

.service-page .icon-search::after {
  width: 11px;
  height: 2px;
  background: var(--ink);
  transform: translate(8px, 9px) rotate(45deg);
}

@media (max-width: 980px) {
  }

@media (max-width: 640px) {
  .service-page .service-pain-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
}

/* Problem section alignment with homepage card classes. */
.service-page .service-pain-card.yellow-card,
.service-page .service-pain-grid > .service-pain-card.yellow-card {
  background: var(--yellow);
}

.service-page .service-problem-note {
  min-height: 76px;
  display: grid;
  place-content: center;
  justify-items: center;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 20px 24px;
  text-align: center;
}
/* Service process: scrolling steps with a desktop sticky introduction. */
.service-page .service-how-we-work {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.service-page .service-how-we-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.service-page .service-work-list {
  display: grid;
  gap: 18px;
}

.service-page .service-work-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
  min-height: 150px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(15, 14, 12, 0.12);
}

.service-page .service-work-card.yellow-card {
  background: var(--yellow);
}

.service-page .service-work-number {
  align-self: start;
  color: #3c3529;
}

.service-page .service-work-body {
  display: grid;
  gap: 10px;
}

.service-page .service-work-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-page .service-work-card p {
  margin: 0;
  color: #3c3529;
}

.service-page .service-work-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
}

.service-page .service-work-icon::before,
.service-page .service-work-icon::after {
  content: "";
  position: absolute;
}

.service-page .icon-discover::before {
  width: 14px;
  height: 14px;
  top: 7px;
  left: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.service-page .icon-discover::after {
  width: 9px;
  height: 2px;
  right: 5px;
  bottom: 7px;
  background: var(--ink);
  transform: rotate(45deg);
}

.service-page .icon-plan::before {
  inset: 7px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: inset 0 5px 0 var(--yellow);
}

.service-page .icon-plan::after {
  width: 10px;
  height: 2px;
  top: 18px;
  left: 10px;
  background: var(--ink);
}

.service-page .icon-design::before {
  width: 16px;
  height: 16px;
  top: 7px;
  left: 7px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  transform: rotate(45deg);
}

.service-page .icon-build::before {
  width: 16px;
  height: 16px;
  top: 7px;
  left: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.service-page .icon-build::after {
  width: 2px;
  height: 10px;
  top: 10px;
  left: 15px;
  background: var(--ink);
  box-shadow: -4px 4px 0 var(--ink), 4px -4px 0 var(--ink);
}

.service-page .icon-launch::before {
  width: 16px;
  height: 16px;
  top: 7px;
  left: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.service-page .icon-launch::after {
  width: 8px;
  height: 4px;
  top: 13px;
  left: 11px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.service-page .service-work-card.motion-card:hover,
.service-page .service-work-card.motion-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 rgba(15, 14, 12, 0.32);
}

.service-page .service-work-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  position: sticky;
  top: 112px;
}

.service-page .service-work-copy .section-kicker,
.service-page .service-work-copy p,
.service-page .service-work-copy h2 {
  margin: 0;
}

.service-page .service-work-copy p {
  max-width: 560px;
  color: #3c3529;
}

@media (max-width: 980px) {
  .service-page .service-how-we-work-grid {
    grid-template-columns: 1fr;
  }

  .service-page .service-work-copy {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .service-page .service-work-card {
    padding: 20px;
  }
}
/* Interactive service scope: layout and surfaces only; type inherits homepage tokens. */
.service-page .service-included {
  background: var(--cream);
  border-block: 1px solid var(--border);
}

.service-page .service-included-head {
  display: grid;
  justify-items: center;
  max-width: 880px;
  gap: 18px;
  margin: 0 auto 32px;
  text-align: center;
}

.service-page .service-included-head .section-kicker,
.service-page .service-included-head h2,
.service-page .service-included-head p {
  margin: 0;
}

.service-page .service-included-head p {
  max-width: 720px;
  color: #3c3529;
}

.service-page .service-pill-arena {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 14px;
  min-height: 520px;
  padding: 24px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(15, 14, 12, 0.16);
}

.service-page .service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.service-page .service-pill.is-accent {
  background: var(--yellow);
}

.service-page .service-pill:active {
  cursor: grabbing;
}

.service-page .service-pill:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.service-page .service-pill-arena[data-pill-mode="physics"] {
  display: block;
  touch-action: pan-y;
}

.service-page .service-pill-arena[data-pill-mode="physics"] .service-pill {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  opacity: 0;
  touch-action: none;
  will-change: transform, opacity;
}

.service-page .service-pill-arena[data-pill-mode="physics"] .service-pill.is-active {
  opacity: 1;
}

.service-page .service-pill-arena[data-pill-mode="static"] {
  min-height: auto;
}

@media (max-width: 640px) {
  .service-page .service-pill-arena {
    min-height: 640px;
    padding: 18px;
  }

  .service-page .service-pill-arena[data-pill-mode="static"] {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page .service-pill-arena {
    min-height: auto;
  }
}