/* =============================================================================
   GNC TECH - inner routes
   Loaded after site.css on every page except the homepage. One design family,
   one identity per route:

     Projects      dark, real project media fragments that separate on scroll
     About         navy hero with a connected-system drawing, light statement,
                   dark process timeline
     References    compact navy hero with a brand index, editorial project rows
     Blog          light journal: masthead, equal-weight entries, coded topic plates
     Contact       the first viewport is the contact split itself
     Services      dark capability chapters on a progress path
     Service pages one hero family, eight coded motifs, three compositions
     Customer      focused navy entry (local preview only until sign-in exists)

   Scroll progress arrives as --sp (0..1) from site.js on [data-scroll].
   Without JS or with reduced motion every composition shows its finished,
   static state.
   ========================================================================== */

/* 1. Foundations ----------------------------------------------------------------- */
:root {
  --fs-ih: clamp(2.25rem, 1.45rem + 2.4vw, 3.75rem);
  --ih-top: calc(var(--header-h) + clamp(2rem, 1.2rem + 2.6vw, 3.5rem));
  --ih-bottom: clamp(2.75rem, 1.8rem + 3vw, 4.5rem);
}

/* Split compositions (contact, split CTA) live inside the page container;
   the dark half paints out to the viewport edge with a pseudo-element. */
.bleed-dark {
  position: relative;
  isolation: isolate;
}

.bleed-dark::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  z-index: -2;
  background:
    radial-gradient(36rem 26rem at 100% 100%, rgba(53, 201, 176, 0.14), transparent 62%),
    radial-gradient(30rem 24rem at 30% 0%, rgba(47, 124, 246, 0.12), transparent 60%),
    var(--mid-950);
}

@media (min-width: 1024px) {
  .bleed-dark::before {
    left: -50vw;
    right: 0;
  }
}

/* Inner dark sections: depth from light, not from the repeated grid texture. */
.env-dark {
  background:
    radial-gradient(42rem 26rem at 92% 0%, rgba(47, 124, 246, 0.1), transparent 62%),
    var(--mid-900);
}

.env-dark::before {
  content: none;
}

/* Light-surface pages keep the header in its glass state from the top. */
.page--light-top .site-header .site-header__inner {
  border-color: var(--line-dark);
  background: rgba(6, 23, 49, 0.88);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
}

.work-hero :focus-visible,
.chapters :focus-visible,
.svc-hero :focus-visible,
.about-hero :focus-visible,
.refs-hero :focus-visible,
.contact__aside :focus-visible,
.cta-split__statement :focus-visible,
.not-found :focus-visible {
  outline-color: var(--teal-300);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--s-2);
  color: var(--line-strong);
}

.breadcrumb a,
.breadcrumb span {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue-600);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.breadcrumb li:last-child {
  flex: 0 1 auto;
}

.breadcrumb li:last-child span {
  max-width: min(28ch, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-hero .breadcrumb a,
.work-hero .breadcrumb span,
.chapters .breadcrumb a,
.chapters .breadcrumb span,
.svc-hero .breadcrumb a,
.about-hero .breadcrumb a,
.refs-hero .breadcrumb a,
.svc-hero .breadcrumb span,
.about-hero .breadcrumb span,
.refs-hero .breadcrumb span,
.contact__aside .breadcrumb a,
.contact__aside .breadcrumb span {
  color: var(--on-dark-3);
}

.work-hero .breadcrumb li + li::before,
.chapters .breadcrumb li + li::before,
.svc-hero .breadcrumb li + li::before,
.about-hero .breadcrumb li + li::before,
.refs-hero .breadcrumb li + li::before,
.contact__aside .breadcrumb li + li::before {
  color: var(--on-dark-3);
  opacity: 0.5;
}

.work-hero .breadcrumb a:hover,
.chapters .breadcrumb a:hover,
.svc-hero .breadcrumb a:hover,
.about-hero .breadcrumb a:hover,
.refs-hero .breadcrumb a:hover,
.contact__aside .breadcrumb a:hover {
  color: var(--teal-300);
}

.work-hero .breadcrumb [aria-current="page"],
.chapters .breadcrumb [aria-current="page"],
.svc-hero .breadcrumb [aria-current="page"],
.about-hero .breadcrumb [aria-current="page"],
.refs-hero .breadcrumb [aria-current="page"],
.contact__aside .breadcrumb [aria-current="page"] {
  color: var(--on-dark-2);
}

.empty-state {
  display: grid;
  gap: var(--s-3);
  max-width: 36rem;
  padding-top: var(--s-8);
  border-top: 2px solid var(--ink);
}

.empty-state h2,
.empty-state h3 {
  font-size: var(--fs-h3);
}

.empty-state p {
  color: var(--muted);
}

.empty-state--dark {
  border-top-color: var(--on-dark);
}

.empty-state--dark p {
  color: var(--on-dark-2);
}

/* Compact service index: icon, name, arrow on ruled lines */
.svc-links {
  display: grid;
  list-style: none;
  column-gap: var(--s-10);
  border-top: 1px solid var(--line);
}

.svc-links li {
  border-bottom: 1px solid var(--line);
}

.svc-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.375rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.svc-links__icon {
  color: var(--teal-600);
}

.svc-links__arrow {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  transition: transform var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}

.svc-links a:hover {
  color: var(--blue-600);
}

.svc-links a:hover .svc-links__arrow {
  color: var(--blue-600);
  transform: translateX(3px);
}

@media (min-width: 720px) {
  .svc-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2. Coded service motifs (includes/motifs.php) ----------------------------------- */
.motif {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.motif .m-soft {
  fill: currentColor;
  fill-opacity: 0.07;
  stroke: none;
}

.motif .m-guide {
  stroke: #7fa6d6;
  stroke-opacity: 0.22;
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.motif .m-base {
  stroke: #a9bfdc;
  stroke-opacity: 0.62;
}

.motif .m-hot {
  stroke: currentColor;
  stroke-width: 2.4;
}

.motif .m-base > *,
.motif .m-hot > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.motif .m-node {
  fill: currentColor;
  stroke: none;
}

.motif .m-flow {
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-dasharray: 9 91;
  stroke-dashoffset: 9;
}

.motif .m-scan {
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-opacity: 0.85;
}

html:not(.motion) .motif .m-flow {
  display: none;
}

html.motion .motif .m-flow > * {
  animation: motif-flow 3.4s linear infinite;
}

html.motion .motif .m-flow > :nth-child(2) { animation-delay: -0.7s; }
html.motion .motif .m-flow > :nth-child(3) { animation-delay: -1.4s; }
html.motion .motif .m-flow > :nth-child(4) { animation-delay: -2.1s; }
html.motion .motif .m-flow > :nth-child(5) { animation-delay: -2.8s; }

html.motion .motif .m-scan {
  animation: motif-scan 3.6s var(--ease-in-out) infinite alternate;
}

/* Activation: structure draws in, accents follow, signals start last. */
html.motion [data-inview]:not(.is-in) .motif .m-base > *,
html.motion [data-inview]:not(.is-in) .motif .m-hot > * {
  stroke-dashoffset: 1;
}

html.motion [data-inview] .motif .m-base > * {
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

html.motion [data-inview] .motif .m-hot > * {
  transition: stroke-dashoffset 1.2s var(--ease-out) 0.55s;
}

html.motion [data-inview] .motif .m-soft,
html.motion [data-inview] .motif .m-node,
html.motion [data-inview] .motif .m-flow,
html.motion [data-inview] .motif .m-scan {
  transition: opacity 0.8s var(--ease-out) 1.1s;
}

html.motion [data-inview]:not(.is-in) .motif .m-soft,
html.motion [data-inview]:not(.is-in) .motif .m-node,
html.motion [data-inview]:not(.is-in) .motif .m-flow,
html.motion [data-inview]:not(.is-in) .motif .m-scan {
  opacity: 0;
}

/* Small motifs (services overview): heavier line, no guides or signals. */
.motif--sm {
  stroke-width: 4.2;
}

.motif--sm .m-guide,
.motif--sm .m-flow,
.motif--sm .m-scan {
  display: none;
}

.motif--sm .m-hot {
  stroke-width: 4.6;
}

.is-paused .m-flow > *,
.is-paused .m-scan,
.is-paused .contact__pulse,
.is-paused .cta-split__pulse {
  animation-play-state: paused !important;
}

@keyframes motif-flow {
  to {
    stroke-dashoffset: -91;
  }
}

@keyframes motif-scan {
  from {
    transform: translateY(-104px);
  }

  to {
    transform: translateY(104px);
  }
}

/* 3. Projects - real project media as a layered, separating composition ---------- */
.work-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--ih-top) 0 var(--ih-bottom);
  overflow: hidden;
  background:
    radial-gradient(48rem 30rem at 88% 32%, rgba(47, 124, 246, 0.17), transparent 64%),
    radial-gradient(30rem 22rem at 6% 100%, rgba(53, 201, 176, 0.1), transparent 62%),
    var(--mid-950);
  color: var(--on-dark-2);
  isolation: isolate;
}

.work-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}

.work-hero__title {
  max-width: 12ch;
  color: var(--on-dark);
  font-size: var(--fs-ih);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.036em;
}

.work-hero__lead {
  max-width: 30rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.work-index {
  width: min(100%, 30rem);
  margin-top: var(--s-2);
  list-style: none;
  border-top: 1px solid var(--line-dark-strong);
}

.work-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name arrow" "meta arrow";
  align-items: center;
  column-gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
  text-decoration: none;
}

.work-index__name {
  grid-area: name;
  font-weight: 700;
}

.work-index__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem var(--s-3);
  grid-area: meta;
  color: var(--on-dark-3);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
}

.work-index .icon {
  grid-area: arrow;
  width: 1rem;
  height: 1rem;
  color: var(--teal-300);
  transform: rotate(90deg);
  transition: transform var(--t-base) var(--ease-out);
}

.work-index a:hover .work-index__name {
  color: var(--teal-300);
}

.work-index a:hover .icon {
  transform: rotate(90deg) translateX(3px);
}

/* Fragments: the same real screenshots that the cases below present. */
.work-hero__media {
  position: relative;
  order: 2;
  height: clamp(13rem, 52vw, 22rem);
  margin-top: var(--s-10);
  pointer-events: none;
}

.frag {
  position: absolute;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--mid-850);
  box-shadow: var(--shadow-frame);
  opacity: calc(1 - var(--sp, 0) * 0.65);
  transform: translate3d(calc(var(--sp, 0) * var(--fx, 0px)), calc(var(--sp, 0) * var(--fy, 0px)), 0);
  will-change: transform;
}

.frag__bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.625rem;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(6, 23, 49, 0.92);
}

.frag__bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-dark-strong);
}

.frag img {
  display: block;
  width: 100%;
  height: calc(100% - 1.375rem);
  object-fit: cover;
  object-position: top left;
}

.frag--a {
  --fx: 90px;
  --fy: -70px;
  top: 0;
  left: 0;
  z-index: 1;
  width: 78%;
  aspect-ratio: 16 / 10;
}

.frag--b {
  --fx: -50px;
  --fy: 90px;
  right: calc(-1 * var(--gutter));
  bottom: 0;
  z-index: 2;
  width: 56%;
  aspect-ratio: 16 / 10;
}

.frag--c {
  display: none;
}

.frag--c img {
  height: 100%;
  object-position: 0 0;
  transform: scale(2.4);
  transform-origin: 0 0;
}

@media (min-width: 960px) {
  .work-hero {
    min-height: clamp(36rem, 76svh, 46rem);
    justify-content: center;
  }

  .work-hero--plain {
    min-height: 0;
  }

  .work-hero__inner {
    padding-right: 48%;
  }

  .work-hero__media {
    position: absolute;
    inset: calc(var(--header-h) + 1.5rem) 0 2.5rem 50%;
    height: auto;
    margin: 0;
  }

  .frag--a {
    --fx: 140px;
    --fy: -90px;
    top: 4%;
    left: 8%;
    width: 98%;
  }

  .frag--b {
    --fx: -70px;
    --fy: 120px;
    right: auto;
    bottom: 2%;
    left: 4%;
    width: 60%;
  }

  .frag--c {
    --fx: 90px;
    --fy: 80px;
    display: block;
    right: 3%;
    bottom: -2%;
    z-index: 3;
    width: 23%;
    aspect-ratio: 1;
    border: 1.5px solid rgba(95, 224, 200, 0.6);
    box-shadow: 0 0 0 6px rgba(95, 224, 200, 0.08), var(--shadow-frame);
  }
}

@media (min-width: 1200px) {
  .frag--b {
    left: -6%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .frag {
    animation: frag-in 1.2s var(--ease-out) both 0.25s;
  }

  .frag--b {
    animation-delay: 0.4s;
  }

  .frag--c {
    animation-delay: 0.6s;
  }
}

@keyframes frag-in {
  from {
    clip-path: inset(0 0 100% 0 round var(--r-md));
  }

  to {
    clip-path: inset(0 0 0 0 round var(--r-md));
  }
}

/* Cases on the projects route: quieter index and tags than the homepage. */
.page-projects .section--work {
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.page-projects .case__num {
  color: var(--teal-300);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  -webkit-text-stroke: 0;
}

.page-projects .case__tags {
  gap: 0.375rem;
}

.page-projects .case__tags li {
  padding: 0;
  border: 0;
  color: var(--on-dark-3);
}

.page-projects .case__tags li + li::before {
  content: "/";
  margin-right: 0.375rem;
  opacity: 0.5;
}

/* 4. About - engineered simplicity ------------------------------------------------ */
/* Deep-navy hero with a coded drawing (one foundation, connected surfaces) on
   the service motif layers; a light statement with the principles on ruled
   columns; the process as a dark timeline that draws once on arrival. */
.about-hero {
  --accent: var(--teal-300);
  position: relative;
  padding: var(--ih-top) 0 var(--ih-bottom);
  overflow: hidden;
  background:
    radial-gradient(44rem 30rem at 80% 46%, rgba(95, 224, 200, 0.12), transparent 64%),
    radial-gradient(30rem 22rem at 0% 100%, rgba(47, 124, 246, 0.08), transparent 60%),
    var(--mid-950);
  color: var(--on-dark-2);
  isolation: isolate;
}

.about-hero__grid {
  display: grid;
  gap: var(--s-10);
  align-items: center;
}

.about-hero__copy {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}

.about-hero__title {
  max-width: 21ch;
  color: var(--on-dark);
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.about-hero__lead {
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.about-hero__art {
  width: min(100%, 31rem);
  justify-self: center;
  color: var(--accent);
}

.about-hero__image {
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
}

.about-hero__caption {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-3);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
}

.about-hero__caption .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

/* The core module fills once the surfaces have reported in. */
.about-system .m-hot > rect:first-child {
  fill: currentColor;
  fill-opacity: 0.16;
}

html.motion .about-hero__art .about-system .m-hot > rect:first-child {
  transition: stroke-dashoffset 1.2s var(--ease-out) 0.55s, fill-opacity 0.9s var(--ease-out) 3.4s;
}

html.motion .about-hero__art:not(.is-in) .about-system .m-hot > rect:first-child {
  fill-opacity: 0;
}

/* One signal per surface runs down to the core once, after the drawing. */
.ab-signal {
  stroke: var(--accent);
  stroke-width: 3;
}

.ab-signal path {
  stroke-dasharray: 14 86;
  stroke-dashoffset: 14;
  opacity: 0;
}

html.motion .about-hero__art.is-in .ab-signal path {
  animation: ab-signal 1.5s var(--ease-in-out) 2.1s 1 both;
}

html.motion .about-hero__art.is-in .ab-signal path:nth-child(2) { animation-delay: 2.25s; }
html.motion .about-hero__art.is-in .ab-signal path:nth-child(3) { animation-delay: 2.4s; }

@keyframes ab-signal {
  0% { stroke-dashoffset: 14; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -86; opacity: 0; }
}

/* Stacked hero (phones, tablets): the drawing stays a supporting figure. */
@media (max-width: 959px) {
  .about-hero__art {
    width: min(100%, 25rem);
  }
}

@media (min-width: 960px) {
  .about-hero {
    display: grid;
    min-height: clamp(32rem, 62svh, 40rem);
    align-items: center;
  }

  .about-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .about-hero__art {
    justify-self: end;
  }
}

/* Statement: the working discipline in one sentence, the note beside it. */
.about-statement__grid {
  display: grid;
  gap: var(--s-6);
}

.about-statement__title {
  max-width: 24ch;
  font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.5rem);
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.about-statement__copy {
  max-width: 36rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Principles on ruled columns; a short teal segment draws along each rule. */
.about-principles {
  display: grid;
  margin-top: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.about-principle {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s-4);
  row-gap: var(--s-1);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
}

.about-principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--teal-400);
  transform-origin: left;
}

html.motion .about-principle::before {
  transition: transform 0.8s var(--ease-out) calc(var(--rv-delay) + 0.2s);
}

html.motion .about-principle:not(.is-in)::before {
  transform: scaleX(0);
}

.about-principle__icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--teal-600);
}

.about-principle__icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.about-principle__title {
  align-self: end;
  font-size: var(--fs-h4);
}

.about-principle__text {
  max-width: 30rem;
  color: var(--muted);
}

@media (min-width: 820px) {
  .about-principles--2,
  .about-principles--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }

  .about-principles--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }

  .about-principles:not(.about-principles--1) .about-principle {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: var(--s-6) 0 var(--s-2);
    border-bottom: 0;
  }

  .about-principles:not(.about-principles--1) .about-principle__icon {
    grid-row: auto;
    margin-bottom: var(--s-3);
  }
}

@media (min-width: 960px) {
  .about-statement__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: end;
  }
}

/* Process: the drawings resolve stage by stage; a rail on phones and
   tablets, a timeline that draws once across desktop. */
.about-stages {
  background:
    radial-gradient(40rem 28rem at 10% 0%, rgba(47, 124, 246, 0.12), transparent 60%),
    var(--mid-900);
}

.stages {
  position: relative;
  display: grid;
  list-style: none;
  border-bottom: 1px solid var(--line-dark);
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: var(--s-5);
  row-gap: var(--s-2);
  align-content: start;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line-dark);
}

.stage__drawing {
  grid-row: span 2;
  width: 5.5rem;
  height: auto;
  stroke: var(--on-dark-2);
  stroke-width: 1.6;
}

.stage__drawing .st-dash {
  stroke-dasharray: 4 4;
  stroke-opacity: 0.8;
}

.stage__drawing .st-dot {
  fill: currentColor;
  stroke: none;
  color: var(--on-dark-2);
}

.stage__drawing .st-hot {
  stroke: var(--teal-300);
  color: var(--teal-300);
}

.stage__title {
  align-self: end;
  font-size: var(--fs-h4);
}

.stage__text {
  color: var(--on-dark-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .stages {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    column-gap: var(--s-6);
    padding-top: var(--s-10);
    border-bottom: 0;
  }

  .stages::before,
  .stages::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-dark-strong);
  }

  .stages::after {
    background: linear-gradient(90deg, var(--teal-300), var(--blue-400));
    transform-origin: left;
  }

  html.motion .stages::after {
    transition: transform 1.6s var(--ease-out) 0.1s;
  }

  html.motion .stages:not(.is-in)::after {
    transform: scaleX(0);
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    border-top: 0;
  }

  .stage::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--s-10) - 4px);
    left: 0;
    width: 9px;
    height: 9px;
    border: 1.5px solid var(--teal-300);
    border-radius: 50%;
    background: var(--mid-900);
  }

  .stage__drawing {
    grid-row: auto;
    width: 7rem;
    margin-bottom: var(--s-2);
  }
}

/* 5. References - selected work --------------------------------------------------- */
/* A compact navy hero with a typographic index of the real references, then
   editorial rows: real logo, facts, what was delivered and genuine project
   media unmasked from alternating sides. Without media the logo is the row's
   visual on a navy plate. */
.refs-hero {
  position: relative;
  padding: var(--ih-top) 0 var(--ih-bottom);
  overflow: hidden;
  background:
    radial-gradient(40rem 26rem at 100% 0%, rgba(47, 124, 246, 0.13), transparent 62%),
    radial-gradient(30rem 24rem at 0% 100%, rgba(53, 201, 176, 0.08), transparent 60%),
    var(--mid-950);
  color: var(--on-dark-2);
  isolation: isolate;
}

.refs-hero__grid {
  display: grid;
  gap: var(--s-10);
  align-items: end;
}

.refs-hero__copy {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}

.refs-hero__title {
  max-width: 14ch;
  color: var(--on-dark);
  font-size: clamp(2.125rem, 1.45rem + 2vw, 3.25rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.refs-hero__lead {
  max-width: 32rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.refs-hero__art img {
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
}

/* Compact page index: names only (the facts live in the rows), 44px rows,
   a teal tick and the arrow lead on hover/focus. */
.refs-index {
  width: 100%;
  max-width: 24rem;
}

.refs-index__label {
  margin-bottom: var(--s-2);
  color: var(--on-dark-3);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.refs-index ol {
  border-top: 1px solid var(--line-dark-strong);
  list-style: none;
}

.refs-index li {
  border-bottom: 1px solid var(--line-dark);
}

.refs-index a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  min-height: 2.75rem;
  padding: var(--s-2) 0;
  color: var(--on-dark-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out), padding-left var(--t-base) var(--ease-out);
}

.refs-index a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.5rem;
  height: 1px;
  background: var(--teal-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.refs-index__arrow {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--on-dark-3);
  transition: transform var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}

.refs-index a:hover,
.refs-index a:focus-visible {
  padding-left: 0.85rem;
  color: var(--on-dark);
}

.refs-index a:hover::before,
.refs-index a:focus-visible::before {
  transform: scaleX(1);
}

.refs-index a:hover .refs-index__arrow,
.refs-index a:focus-visible .refs-index__arrow {
  color: var(--teal-300);
  transform: translateY(2px);
}

@media (min-width: 960px) {
  .refs-index {
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .refs-hero {
    display: grid;
    min-height: clamp(28rem, 54svh, 34rem);
    align-items: end;
  }

  .refs-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .refs-hero--art .refs-hero__art {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .refs-hero--art .refs-index {
    grid-column: 1;
  }
}

.refs-body {
  padding-top: clamp(3.5rem, 2.4rem + 3.4vw, 5.5rem);
}

.refs-body__title {
  max-width: 20ch;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  letter-spacing: -0.028em;
}

.ref-rows {
  border-top: 2px solid var(--ink);
  list-style: none;
}

.ref-row {
  display: grid;
  gap: var(--s-6);
  padding: clamp(2rem, 1.4rem + 2.4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.ref-row__info {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  justify-items: start;
}

.ref-row__chip {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--s-2);
  padding: 0.3rem;
  border-radius: 10px;
  background: var(--mid-900);
}

.ref-row__chip img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
}

/* Wide wordmarks (e.g. Sabur) keep a legible width instead of a square. */
.ref-row__chip--wide {
  width: auto;
  padding: 0.5rem 0.9rem;
}

.ref-row__chip--wide img {
  width: auto;
  max-width: 9.5rem;
  border-radius: 0;
}

.ref-row__initial {
  color: var(--on-dark);
  font-size: 1.5rem;
  font-weight: 760;
}

.ref-row__name {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ref-row__facts {
  display: grid;
  width: 100%;
  max-width: 30rem;
  margin-top: var(--s-1);
}

.ref-row__facts div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--line);
}

.ref-row__facts dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ref-row__facts dd {
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 650;
}

.ref-row__desc {
  max-width: 34rem;
  color: var(--text);
}

.ref-row__delivery {
  max-width: 34rem;
  padding-left: var(--s-4);
  border-left: 2px solid var(--teal-400);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.ref-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
}

.ref-row__tags li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.ref-row__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-6);
  margin-top: var(--s-1);
}

/* Genuine project media in a quiet browser frame. */
.ref-row__media {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 30px 60px -42px rgba(7, 26, 51, 0.5);
}

.ref-row__bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 1.6rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--ice-50);
}

.ref-row__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* The real domain (from website_url) where an address bar would be. */
.ref-row__domain {
  min-width: 0;
  margin-left: var(--s-3);
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-row__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.1s var(--ease-out);
}

/* No project media: the real logo on a navy plate (white wordmarks need it). */
.ref-row__plate {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: var(--s-8);
  border-radius: var(--r-md);
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(53, 201, 176, 0.12), transparent 70%),
    var(--mid-900);
}

.ref-row__plate img {
  width: auto;
  max-width: min(72%, 20rem);
  max-height: 7rem;
  border-radius: var(--r-sm);
  object-fit: contain;
}

.ref-row__plate .ref-row__initial {
  font-size: 3rem;
}

@media (hover: hover) and (pointer: fine) {
  .ref-row__media:hover img {
    transform: scale(1.025);
  }
}

@media (min-width: 900px) {
  .ref-row {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }

  .ref-row--left {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }

  .ref-row--left .ref-row__media {
    order: -1;
  }

  .ref-row--mark {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
}

/* 6. Blog - digital journal ------------------------------------------------------- */
/* A light publication: masthead with double rule and topics, then equal-weight
   entries under an ink rule. Posts without media get a coded topic plate
   (includes/partials/journal-entries.php) that unmasks upward, draws its
   lines and makes one small state change: the SEO result ranks up, the QR
   brackets lock on. */
.masthead {
  padding: var(--ih-top) 0 0;
  background: var(--white);
}

.masthead__head {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.masthead__title {
  color: var(--ink);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.masthead__lead {
  max-width: 32rem;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.masthead__rules {
  display: grid;
  gap: 3px;
  margin-top: var(--s-8);
}

.masthead__rules span {
  height: 2px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}

.masthead__rules span + span {
  height: 1px;
  background: var(--line-strong);
  transition-delay: 0.15s;
}

html.motion .masthead__rules:not(.is-in) span {
  transform: scaleX(0);
}

.masthead__topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  padding: var(--s-4) 0;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
}

.masthead__topics dt {
  color: var(--muted);
  text-transform: uppercase;
}

.masthead__topics dd {
  display: inline-flex;
  margin: 0;
  gap: var(--s-2);
  align-items: center;
  color: var(--ink);
  font-weight: 600;
}

.masthead__topics dd::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--teal-400);
}

@media (min-width: 960px) {
  .masthead__head {
    grid-template-columns: auto minmax(0, 30rem);
    justify-content: space-between;
    align-items: end;
    gap: var(--s-12);
  }

  .masthead__lead {
    padding-bottom: 0.6rem;
  }
}

.blog-list {
  padding-top: clamp(2.5rem, 1.8rem + 2vw, 3.5rem);
}

.journal {
  display: grid;
  gap: clamp(2.75rem, 2rem + 2.4vw, 3.75rem) clamp(1.5rem, 1rem + 2.4vw, 3rem);
  list-style: none;
}

.entry {
  position: relative;
}

.entry__inner {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.entry__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle, rgba(7, 26, 51, 0.07) 1px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--ice-50), var(--ice-100));
  color: var(--mid-800);
}

.entry--qr .entry__visual {
  background:
    radial-gradient(circle, rgba(7, 26, 51, 0.07) 1px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, #f2faf8, #e0f2ee);
}

.entry--mobile .entry__visual,
.entry--systems .entry__visual {
  background:
    radial-gradient(circle, rgba(7, 26, 51, 0.07) 1px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, #f5f6fb, #e8ebf6);
}

.entry--image .entry__visual {
  background: var(--ice-100);
}

.entry__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.journal-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.9s var(--ease-out);
}

.journal-art .ja-soft {
  fill: currentColor;
  fill-opacity: 0.05;
  stroke: none;
}

.journal-art .ja-guide {
  stroke-opacity: 0.45;
  stroke-dasharray: 3 6;
}

.journal-art .ja-base {
  stroke-opacity: 0.5;
}

.journal-art .ja-hot {
  stroke: var(--teal-600);
  stroke-width: 2.2;
}

.journal-art .ja-base > *,
.journal-art .ja-hot > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.journal-art .ja-node {
  fill: currentColor;
  fill-opacity: 0.72;
  stroke: none;
}

.journal-art .ja-move {
  stroke: var(--teal-600);
  stroke-width: 1.8;
  transform-box: fill-box;
  transform-origin: center;
}

.entry--seo .ja-move,
.entry--systems .ja-move,
.entry--mobile .ja-move {
  fill: rgba(53, 201, 176, 0.12);
}

.entry--web .ja-move {
  fill: rgba(53, 201, 176, 0.22);
}

.entry__body {
  display: grid;
  gap: var(--s-3);
  align-content: start;
}

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry__topic {
  color: var(--teal-600);
  font-weight: 700;
}

.entry__topic + time::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  margin-right: var(--s-3);
  background: var(--line-strong);
  vertical-align: middle;
}

.entry__title {
  max-width: 24ch;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.entry__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.5s var(--ease-out), color var(--t-base) var(--ease-out);
}

/* The whole entry is the link target. */
.entry__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.entry__title a:focus-visible {
  outline: none;
}

.entry:has(.entry__title a:focus-visible) {
  outline: 2px solid var(--teal-600);
  outline-offset: 6px;
  border-radius: var(--r-md);
}

.entry__summary {
  max-width: 36rem;
  color: var(--muted);
}

.entry__more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 700;
}

.entry__more svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--t-base) var(--ease-out);
}

.entry:focus-within .entry__title a {
  color: var(--teal-600);
  background-size: 100% 1px;
}

.entry:focus-within .entry__more svg {
  transform: translateX(4px);
}

@media (hover: hover) and (pointer: fine) {
  .entry:hover .entry__title a {
    color: var(--teal-600);
    background-size: 100% 1px;
  }

  .entry:hover .entry__more svg {
    transform: translateX(4px);
  }

  .entry:hover .entry__visual img,
  .entry:hover .journal-art {
    transform: scale(1.025);
  }
}

/* Arrival: the plate unmasks upward, lines draw, then the state change. */
html.motion .journal .entry__visual {
  transition: clip-path 0.9s var(--ease-out) var(--rv-delay);
}

html.motion .journal .entry:not(.is-in) .entry__visual {
  clip-path: inset(100% 0 0 0 round var(--r-md));
}

html.motion .journal .entry.is-in .entry__visual {
  clip-path: inset(0 0 0 0 round var(--r-md));
}

html.motion .journal-art .ja-base > * {
  transition: stroke-dashoffset 1.3s var(--ease-out) calc(var(--rv-delay) + 0.3s);
}

html.motion .journal-art .ja-hot > * {
  transition: stroke-dashoffset 1s var(--ease-out) calc(var(--rv-delay) + 0.75s);
}

html.motion .journal-art .ja-move,
html.motion .journal-art .ja-node {
  transition: transform 0.9s var(--ease-out) calc(var(--rv-delay) + 1.05s), opacity 0.6s var(--ease-out) calc(var(--rv-delay) + 0.9s);
}

html.motion .entry:not(.is-in) .journal-art .ja-base > *,
html.motion .entry:not(.is-in) .journal-art .ja-hot > * {
  stroke-dashoffset: 1;
}

html.motion .entry:not(.is-in) .journal-art .ja-node {
  opacity: 0;
}

html.motion .entry--seo:not(.is-in) .ja-move {
  transform: translateY(46px);
}

html.motion .entry--qr:not(.is-in) .ja-move {
  transform: scale(1.14);
  opacity: 0;
}

html.motion .entry--web:not(.is-in) .ja-move {
  transform: translateX(-12px);
  opacity: 0;
}

html.motion .entry--mobile:not(.is-in) .ja-move {
  transform: translate(-8px, 14px);
  opacity: 0;
}

html.motion .entry--systems:not(.is-in) .ja-move {
  transform: scale(0.7);
  opacity: 0;
}

html.motion .entry--note:not(.is-in) .ja-move {
  transform: scaleY(0);
}

@media (min-width: 760px) {
  .journal--2,
  .journal--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .journal--1 .entry__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--s-10);
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .journal--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Post cards: related posts on blog-detail.php (partials/post-cards.php). */
.posts {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  list-style: none;
}

.post {
  position: relative;
}

.post__inner {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.post__visual {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 16 / 10;
}

.post__body {
  display: grid;
  gap: var(--s-3);
  align-content: start;
}

.post__title {
  max-width: 26ch;
  font-size: var(--fs-h3);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.post__title a {
  color: inherit;
  text-decoration: none;
}

.post__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post__summary {
  max-width: 36rem;
  color: var(--muted);
}

.post__more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 700;
}

.post__more svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--t-base) var(--ease-out);
}

.post:hover .post__title,
.post:hover .post__more {
  color: var(--blue-600);
}

.post:hover .post__more svg {
  transform: translateX(3px);
}

.post:hover .pv img,
.post:hover .pv__art {
  transform: scale(1.03);
}

@media (min-width: 720px) {
  .posts--2,
  .posts--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .posts--1 .post__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--s-10);
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .posts--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Post visual: image, commissioned thumbnail, or a category plate */
.pv {
  position: relative;
  width: 100%;
  height: 100%;
}

.pv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.pv--plate {
  display: flex;
  align-items: flex-end;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  overflow: hidden;
  background:
    radial-gradient(26rem 18rem at 85% 20%, rgba(53, 201, 176, 0.16), transparent 62%),
    var(--mid-900);
  color: #7fa6d6;
  isolation: isolate;
}

.pv--k1 {
  background:
    radial-gradient(26rem 18rem at 80% 30%, rgba(47, 124, 246, 0.26), transparent 62%),
    var(--mid-950);
}

.pv--k2 {
  background:
    radial-gradient(24rem 16rem at 85% 15%, rgba(53, 201, 176, 0.2), transparent 60%),
    var(--mid-850);
}

.pv--k3 {
  background:
    linear-gradient(135deg, var(--mid-950), var(--mid-800));
}

.pv__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  stroke-opacity: 0.6;
  transition: transform 900ms var(--ease-out);
}

.pv__art .pv__hot {
  stroke: var(--teal-300);
  stroke-opacity: 1;
  stroke-width: 2.2;
}

.pv__label {
  max-width: 11ch;
  color: var(--on-dark);
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.035em;
}

/* Article */
.article-head {
  padding: var(--ih-top) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--white);
}

.article-head__inner {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
}

.article-head__title {
  max-width: 22ch;
  color: var(--ink);
  font-size: clamp(2.125rem, 1.45rem + 2.1vw, 3.375rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.034em;
}

.article-head__lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.article-head__author {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-meta);
}

.article-body {
  padding-bottom: var(--section-y);
  background: var(--white);
}

.article-cover {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 9;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover .pv__label {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}

@media (min-width: 960px) {
  .article-cover {
    aspect-ratio: 21 / 8;
  }
}

.prose {
  color: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.78;
}

.prose > * + * {
  margin-top: 1.3em;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  letter-spacing: -0.025em;
}

.prose h3 {
  margin-top: 1.75em;
  font-size: 1.3125rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose li::marker {
  color: var(--teal-600);
}

.prose blockquote {
  margin-inline: 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 3px solid var(--teal-400);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}

.prose strong,
.prose b {
  color: var(--ink);
}

.prose a:not([href]) {
  color: inherit;
  text-decoration: none;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-12);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

/* 7. Contact - the first viewport is the conversation --------------------------------- */
.contact {
  overflow: clip;
  background: var(--ice-50);
}

.contact__grid {
  display: grid;
}

.contact__aside {
  padding: var(--ih-top) 0 6.5rem;
  color: var(--on-dark-2);
}

.contact__signal,
.contact__art {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.contact__signal {
  right: 0;
  bottom: 0;
  left: calc(-1 * var(--gutter));
  width: calc(100% + var(--gutter));
  max-width: none;
  height: 5.5rem;
}

.contact__art {
  right: 0;
  bottom: 0;
  width: min(80%, 28rem);
  height: auto;
}

.contact__rail {
  stroke: #7fa6d6;
  stroke-opacity: 0.24;
  stroke-width: 1.2;
}

.contact__rail--faint {
  stroke-opacity: 0.12;
}

.contact__pulse {
  stroke: var(--teal-300);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 7;
}

html:not(.motion) .contact__pulse {
  display: none;
}

html.motion .contact__pulse {
  animation: motif-flow 4.2s linear infinite;
}

html.motion .contact__pulse--late {
  animation-delay: -2.1s;
}

.contact__node {
  fill: var(--mid-950);
  stroke: var(--teal-300);
  stroke-width: 1.6;
}

.contact__aside-inner {
  display: grid;
  gap: var(--s-5);
  max-width: 30rem;
}

.contact__title {
  max-width: 13ch;
  color: var(--on-dark);
  font-size: clamp(2.125rem, 1.5rem + 2vw, 3.375rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.036em;
}

.contact__lead {
  max-width: 28rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.contact-channels {
  display: grid;
  margin-top: var(--s-2);
  list-style: none;
  border-top: 1px solid var(--line-dark-strong);
}

.contact-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-dark);
  color: inherit;
  text-decoration: none;
}

.contact-channel .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--teal-300);
}

.contact-channel__label {
  display: block;
  color: var(--on-dark-3);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
}

.contact-channel__value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--on-dark);
  font-size: 1.0625rem;
  font-weight: 700;
}

a.contact-channel:hover .contact-channel__value {
  color: var(--teal-300);
}

.contact__panel {
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0 var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.contact__panel-inner {
  width: min(100%, 40rem);
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    min-height: 100svh;
  }

  .contact__aside {
    padding-right: clamp(2rem, 4vw, 4.5rem);
    padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  }

  .contact__signal {
    left: -50vw;
    width: calc(100% + 50vw);
    height: 36%;
  }

  .contact__aside-inner {
    position: sticky;
    top: var(--ih-top);
  }

  .contact__panel {
    padding: var(--ih-top) 0 clamp(3rem, 2rem + 3vw, 5rem) clamp(2.5rem, 5vw, 5.5rem);
    scroll-margin-top: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .contact__panel-inner {
    animation: intro-rise 900ms var(--ease-out) both 220ms;
  }
}

.form-head {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

.form-head h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  letter-spacing: -0.026em;
}

.form-head p {
  color: var(--muted);
}

.form {
  display: grid;
  gap: var(--s-5);
}

.form__row {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field__label {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.field__optional {
  color: var(--muted);
  font-weight: 500;
}

.field__input {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}

.field__input:hover {
  border-color: var(--muted);
}

.field__input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 124, 246, 0.18);
}

.field__input[aria-invalid="true"] {
  border-color: var(--error-text);
}

textarea.field__input {
  min-height: 8.5rem;
  resize: vertical;
}

select.field__input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
}

.field--check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--s-3);
  color: var(--text);
  font-size: var(--fs-small);
}

.field--check input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--mid-900);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

.form__note {
  color: var(--muted);
  font-size: var(--fs-meta);
}

.form__trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: grid;
  gap: var(--s-1);
  margin-bottom: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 600;
}

.alert--success {
  background: var(--success-bg);
  color: var(--success-text);
}

.alert--error {
  background: var(--error-bg);
  color: var(--error-text);
}

.alert ul {
  padding-left: 1.2em;
  font-weight: 500;
}

/* 8. Services overview - capability chapters ---------------------------------------- */
.chapters {
  padding: var(--ih-top) 0 var(--section-y);
  background:
    radial-gradient(44rem 30rem at 100% 10%, rgba(53, 201, 176, 0.1), transparent 62%),
    radial-gradient(36rem 28rem at 0% 60%, rgba(47, 124, 246, 0.1), transparent 60%),
    var(--mid-950);
  color: var(--on-dark-2);
}

.chapters__grid {
  display: grid;
  gap: var(--s-10);
}

.chapters__context {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}

.chapters__title {
  color: var(--on-dark);
  font-size: var(--fs-ih);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.036em;
}

.chapters__lead {
  max-width: 28rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.chapters__index ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
}

.chapters__index a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.375rem;
  padding: 0 var(--s-3);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-sm);
  color: var(--on-dark-2);
  font-size: var(--fs-small);
  font-weight: 650;
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}

.chapters__index .icon {
  width: 1rem;
  height: 1rem;
  color: var(--teal-300);
}

.chapters__index a:hover,
.chapters__index a.is-current {
  border-color: var(--teal-300);
  color: var(--on-dark);
}

.chapters__flow {
  position: relative;
  padding-left: 3.25rem;
}

.chapters__path {
  position: absolute;
  top: 1.125rem;
  bottom: 0;
  left: 1.125rem;
  width: 1px;
  background: var(--line-dark-strong);
}

.chapters__path-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--teal-300), var(--blue-400));
  transform: scaleY(var(--sp, 1));
  transform-origin: top;
}

.chapter-group + .chapter-group {
  margin-top: var(--s-12);
}

.chapter-group {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.chapter-group__title {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-left: -3.25rem;
  color: var(--on-dark);
  font-size: var(--fs-h4);
  font-weight: 720;
  letter-spacing: -0.01em;
}

.chapter-group__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(95, 224, 200, 0.5);
  border-radius: 50%;
  background: var(--mid-950);
  color: var(--teal-300);
}

.chapter-group__node .icon {
  width: 1rem;
  height: 1rem;
}

.chapter-group__list {
  display: grid;
  margin-top: var(--s-3);
  list-style: none;
}

.chapter {
  position: relative;
  display: grid;
  gap: var(--s-4) var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line-dark);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.chapter::before {
  content: "";
  position: absolute;
  top: calc(var(--s-6) + 0.75rem);
  left: calc(-3.25rem + 1.125rem - 4px);
  width: 9px;
  height: 9px;
  border: 1px solid var(--teal-300);
  border-radius: 50%;
  background: var(--mid-950);
}

.chapter__art {
  display: none;
  align-self: start;
  color: var(--teal-300);
}

.chapter__body {
  display: grid;
  gap: var(--s-3);
  align-content: start;
}

.chapter__title {
  color: var(--on-dark);
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.chapter__title a {
  color: inherit;
  text-decoration: none;
}

.chapter__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.chapter__desc {
  max-width: 36rem;
}

.chapter__caps {
  display: none;
  gap: var(--s-1);
  list-style: none;
}

.chapter__caps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2);
  color: var(--on-dark-3);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.chapter__caps .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  color: var(--teal-400);
}

.chapter__more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--teal-300);
  font-size: var(--fs-small);
  font-weight: 700;
}

.chapter__more svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--t-base) var(--ease-out);
}

.chapter:hover .chapter__title {
  color: var(--teal-300);
}

.chapter:hover .chapter__more svg {
  transform: translateX(3px);
}

.chapter:hover .chapter__art {
  border-color: rgba(95, 224, 200, 0.45);
}

@media (min-width: 640px) {
  .chapter {
    grid-template-columns: 8.5rem minmax(0, 1fr);
  }

  .chapter__caps {
    display: grid;
  }

  .chapter__art {
    display: block;
    padding: var(--s-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--r-md);
    background: rgba(18, 58, 104, 0.22);
    transition: border-color var(--t-base) var(--ease-out);
  }
}

@media (min-width: 1024px) {
  .chapters__grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.42fr);
    gap: clamp(3rem, 5vw, 6rem);
    align-items: start;
  }

  .chapters__aside {
    position: sticky;
    top: var(--ih-top);
  }

  .chapters__index {
    width: 100%;
  }

  .chapters__index ul {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-dark);
  }

  .chapters__index a {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
  }

  .chapters__index a::after {
    content: "";
    width: 0;
    height: 2px;
    margin-left: auto;
    background: var(--teal-300);
    transition: width var(--t-base) var(--ease-out);
  }

  .chapters__index a.is-current::after {
    width: 1.5rem;
  }
}

/* 9. Service detail - one family, eight identities ------------------------------------- */
.svc-hero {
  --accent: var(--teal-300);
  --accent-rgb: 95, 224, 200;
  position: relative;
  padding: var(--ih-top) 0 var(--ih-bottom);
  overflow: hidden;
  background:
    radial-gradient(46rem 30rem at 78% 42%, rgba(var(--accent-rgb), 0.14), transparent 64%),
    radial-gradient(30rem 22rem at 0% 100%, rgba(47, 124, 246, 0.08), transparent 60%),
    var(--mid-950);
  color: var(--on-dark-2);
  isolation: isolate;
}

.tone-blue {
  --accent: var(--blue-400);
  --accent-rgb: 77, 141, 255;
}

.tone-mint {
  --accent: var(--teal-200);
  --accent-rgb: 169, 240, 226;
}

.svc-hero__grid {
  display: grid;
  gap: var(--s-10);
  align-items: center;
}

.svc-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}

.svc-hero__title {
  max-width: 15ch;
  color: var(--on-dark);
  font-size: var(--fs-ih);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.036em;
}

.svc-hero__lead {
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.svc-hero__art {
  position: relative;
  width: min(100%, 30rem);
  color: var(--accent);
}

.svc-hero__caption {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-3);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
}

.svc-hero__caption .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

@media (min-width: 960px) {
  .svc-hero {
    min-height: clamp(32rem, 64svh, 40rem);
    display: grid;
    align-items: center;
  }

  /* split: motif in an instrument frame on the right */
  .svc-hero--split .svc-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .svc-hero--split .svc-hero__art {
    justify-self: end;
    padding: var(--s-6) var(--s-6) var(--s-4);
    border-left: 1px solid var(--line-dark-strong);
  }

  /* bleed: oversized motif running off the right edge behind the copy */
  .svc-hero--bleed .svc-hero__copy {
    max-width: 36rem;
  }

  .svc-hero--bleed .svc-hero__grid {
    position: relative;
  }

  .svc-hero--bleed .svc-hero__art {
    position: absolute;
    top: 50%;
    right: calc(-1 * clamp(1.5rem, 5vw, 6rem));
    width: min(56vw, 46rem);
    transform: translateY(-50%);
  }

  .svc-hero--bleed .svc-hero__caption {
    display: none;
  }

  /* stage: motif leads on the left, copy on the right */
  .svc-hero--stage .svc-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .svc-hero--stage .svc-hero__art {
    order: -1;
  }
}

@media (max-width: 959px) {
  .svc-hero--bleed .svc-hero__art {
    width: calc(100% + var(--gutter));
    max-width: 34rem;
    margin-right: calc(-1 * var(--gutter));
    justify-self: end;
  }
}

.svc-intro__grid {
  display: grid;
  gap: var(--s-10);
}

.svc-intro__main {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.svc-intro__statement {
  max-width: 18ch;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  font-weight: 740;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.svc-intro__copy {
  max-width: 40rem;
  color: var(--text);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.svc-intro__note {
  max-width: 38rem;
  padding-left: var(--s-4);
  border-left: 2px solid var(--teal-400);
  color: var(--muted);
}

.fit {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}

.fit__title {
  font-size: var(--fs-h4);
}

.fit__list {
  list-style: none;
  border-top: 1px solid var(--ink);
}

.fit__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  line-height: 1.5;
}

.fit__list .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--teal-600);
}

@media (min-width: 960px) {
  .svc-intro__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.deliverables {
  display: grid;
  column-gap: var(--s-10);
  list-style: none;
}

.deliverable {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.deliverable .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal-600);
}

@media (min-width: 820px) {
  .deliverables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 10. Call-to-action variants (site.css holds the base signal band) ------------------- */
.cta-final--compact {
  padding: clamp(3.25rem, 2.2rem + 3.2vw, 5rem) 0;
}

.cta-final--compact .cta-final__title {
  max-width: 20ch;
  font-size: clamp(1.875rem, 1.25rem + 2vw, 3rem);
}

.cta-ed {
  padding: clamp(3.5rem, 2.4rem + 3.4vw, 5.5rem) 0;
  background: var(--white);
}

.cta-ed__grid {
  display: grid;
  gap: var(--s-6);
}

.cta-ed__rule {
  height: 2px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}

html.motion .cta-ed__grid:not(.is-in) .cta-ed__rule {
  transform: scaleX(0);
}

.cta-ed__title {
  max-width: 18ch;
  font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.75rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta-ed__side {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.cta-ed__text {
  max-width: 32rem;
  color: var(--muted);
}

.cta-ed .link-arrow .icon {
  width: 1rem;
  height: 1rem;
  color: var(--teal-600);
}

@media (min-width: 960px) {
  .cta-ed__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: var(--s-12);
  }

  .cta-ed__rule {
    grid-column: 1 / -1;
  }
}

.cta-split {
  overflow: clip;
  background: var(--ice-100);
}

.cta-split__grid {
  display: grid;
}

.cta-split__statement {
  padding: clamp(3.5rem, 2.4rem + 3.4vw, 5.5rem) 0;
  color: var(--on-dark-2);
}

.cta-split__trace {
  position: absolute;
  right: 0;
  bottom: 0;
  left: calc(-1 * var(--gutter));
  z-index: -1;
  width: calc(100% + var(--gutter));
  max-width: none;
  height: 40%;
  fill: none;
  stroke: #7fa6d6;
  stroke-opacity: 0.22;
  stroke-width: 1;
}

.cta-split__pulse {
  stroke: var(--teal-300);
  stroke-opacity: 1;
  stroke-width: 2.4;
  stroke-dasharray: 8 92;
  stroke-dashoffset: 8;
}

html:not(.motion) .cta-split__pulse {
  display: none;
}

html.motion .cta-split__pulse {
  animation: motif-flow 4s linear infinite;
}

.cta-split__inner {
  display: grid;
  gap: var(--s-4);
  max-width: 34rem;
}

.cta-split__title {
  color: var(--on-dark);
  font-size: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.034em;
}

html.motion .cta-split__inner[data-inview]:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

html.motion .cta-split__inner[data-inview] {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.cta-split__contact {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s-5);
  padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0;
}

.cta-split__channels {
  display: grid;
  gap: var(--s-1);
  list-style: none;
}

.cta-split__channels a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.25rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 650;
  text-decoration: none;
}

.cta-split__channels .icon {
  width: 1rem;
  height: 1rem;
  color: var(--teal-600);
}

.cta-split__channels a:hover {
  color: var(--blue-600);
}

@media (min-width: 1024px) {
  .cta-split__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }

  .cta-split__statement {
    padding-right: clamp(2rem, 5vw, 5rem);
  }

  .cta-split__trace {
    left: -50vw;
    width: calc(100% + 50vw);
  }

  .cta-split__contact {
    padding-left: clamp(2rem, 4vw, 4rem);
  }
}

/* 11. Legal - restrained document mode ------------------------------------------------ */
.doc-head {
  padding: var(--ih-top) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--ice-50);
}

.doc-head__inner {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
}

.doc-head__title {
  color: var(--ink);
  font-size: clamp(2rem, 1.45rem + 1.8vw, 3rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.doc-head__lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.doc-head__meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
}

.legal-layout {
  display: grid;
  gap: var(--s-8);
  align-items: start;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  border-color: var(--mid-900);
  background: var(--mid-900);
  color: var(--white);
}

.legal-copy {
  display: grid;
  gap: var(--s-8);
  max-width: var(--narrow);
}

.legal-copy section {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--s-3);
}

.legal-copy h2 {
  margin-bottom: var(--s-2);
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
}

.legal-copy p {
  color: var(--text);
  line-height: 1.8;
}

.legal-copy__num {
  padding-top: 0.3rem;
  color: var(--teal-600);
  font-family: var(--mono);
  font-size: var(--fs-small);
  font-weight: 600;
}

@media (min-width: 960px) {
  .legal-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--s-12);
  }

  .legal-nav {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    flex-direction: column;
  }
}

/* 12. 404 --------------------------------------------------------------------------- */
.not-found {
  position: relative;
  display: grid;
  align-content: center;
  min-height: min(100svh, 46rem);
  padding: calc(var(--header-h) + 3rem) 0 var(--s-12);
  overflow: hidden;
  background:
    radial-gradient(36rem 28rem at 75% 50%, rgba(53, 201, 176, 0.12), transparent 65%),
    var(--mid-950);
  color: var(--on-dark-2);
  isolation: isolate;
}

.not-found__bg {
  display: none;
}

.not-found__grid {
  display: grid;
  gap: var(--s-10);
  align-items: center;
}

.not-found__copy {
  display: grid;
  gap: var(--s-5);
  max-width: 36rem;
}

.not-found__code {
  color: var(--teal-300);
  font-family: var(--mono);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.not-found h1 {
  color: var(--on-dark);
  font-size: var(--fs-ih);
  line-height: 1.04;
  letter-spacing: -0.036em;
}

.not-found__lead {
  max-width: 30rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.not-found__visual {
  width: min(100%, 24rem);
  justify-self: center;
  fill: none;
  stroke: #7fa6d6;
  stroke-opacity: 0.4;
  stroke-width: 1.4;
}

.not-found__visual .nf-break {
  stroke: var(--teal-300);
  stroke-opacity: 1;
  stroke-dasharray: 4 6;
}

.not-found__visual .nf-node {
  fill: var(--mid-950);
  stroke: var(--teal-300);
  stroke-opacity: 1;
}

html.motion .not-found__visual .nf-break {
  animation: nf-flicker 2.4s steps(2, end) infinite;
}

@keyframes nf-flicker {
  50% {
    stroke-opacity: 0.3;
  }
}

@media (min-width: 960px) {
  .not-found__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* 13. Entrances ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  [data-intro] > * {
    animation: intro-rise 850ms var(--ease-out) both;
  }

  [data-intro] > h1 {
    animation-name: intro-title;
  }

  [data-intro] > :nth-child(2) { animation-delay: 60ms; }
  [data-intro] > :nth-child(3) { animation-delay: 160ms; }
  [data-intro] > :nth-child(4) { animation-delay: 240ms; }
  [data-intro] > :nth-child(5) { animation-delay: 300ms; }
  [data-intro] > :nth-child(n + 6) { animation-delay: 360ms; }

  html.motion .chapter[data-inview] .chapter__body,
  html.motion .chapter[data-inview] .chapter__art {
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }

  html.motion .chapter[data-inview] .chapter__art {
    transition-delay: 0.08s;
  }

  html.motion .chapter[data-inview]:not(.is-in) .chapter__body,
  html.motion .chapter[data-inview]:not(.is-in) .chapter__art {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media print {
  .work-hero__media,
  .about-hero__art,
  .contact__signal,
  .svc-hero__art,
  .chapter__art,
  .cta-ed,
  .cta-split {
    display: none !important;
  }

  .work-hero,
  .chapters,
  .svc-hero,
  .contact__aside,
  .about-stages,
  .about-hero,
  .refs-hero {
    background: none !important;
    color: #000 !important;
  }
}

/* 14. Customer access - focused entry (customer-access.php) -------------------------- */
/* Preview or live OIDC sign-in (customer-oidc.php). Static: no motion
   beyond the shared [data-intro] entrance, which respects reduced motion. */
.access {
  min-height: min(100svh, 54rem);
  padding: calc(var(--header-h) + clamp(2rem, 1.2rem + 2.6vw, 3.5rem)) 0 var(--ih-bottom);
  background:
    radial-gradient(34rem 26rem at 88% 20%, rgba(53, 201, 176, 0.1), transparent 64%),
    radial-gradient(30rem 22rem at 0% 100%, rgba(47, 124, 246, 0.1), transparent 62%),
    var(--mid-950);
  color: var(--on-dark-2);
}

.access__preview {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin-bottom: clamp(var(--s-8), 1.5rem + 2vw, var(--s-12));
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--line-dark-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.access__preview strong {
  color: var(--teal-200);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5rem;
  text-transform: uppercase;
}

.access__grid {
  display: grid;
  gap: var(--s-12);
  align-items: start;
}

.access__copy {
  display: grid;
  gap: var(--s-5);
  max-width: 34rem;
}

.access__eyebrow {
  color: var(--teal-300);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access h1 {
  color: var(--on-dark);
  font-size: var(--fs-ih);
  line-height: 1.04;
  letter-spacing: -0.036em;
}

.access__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.access__action {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  padding-top: var(--s-2);
}

.access__action .btn {
  white-space: normal;
  text-align: left;
}

.access__action .btn:disabled {
  background: rgba(95, 224, 200, 0.16);
  color: var(--on-dark-2);
  cursor: not-allowed;
}

.access__action .btn:disabled::before {
  content: none;
}

.access__status {
  display: flex;
  gap: var(--s-2);
  max-width: 30rem;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.access__status svg,
.access__facts svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  margin-top: 0.15em;
  color: var(--teal-300);
}

.access__facts {
  display: grid;
  margin: var(--s-2) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.access__facts li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.access__products {
  display: grid;
  gap: var(--s-5);
  padding: clamp(var(--s-5), 1rem + 1vw, var(--s-8));
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: rgba(8, 32, 63, 0.45);
}

.access__products-head {
  display: grid;
  gap: var(--s-2);
}

.access__products h2 {
  color: var(--on-dark);
  font-size: var(--fs-h4);
  letter-spacing: -0.01em;
}

.access__products-head p,
.access__help {
  font-size: var(--fs-small);
  line-height: 1.5;
}

.access__product-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.access__product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3) var(--s-4);
  align-items: center;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line-dark);
}

.access__product-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-sm);
  background: rgba(150, 180, 220, 0.04);
}

.access__product--ready .access__product-mark {
  border-color: rgba(95, 224, 200, 0.4);
  background: rgba(95, 224, 200, 0.08);
}

.access__product-icon {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--on-dark-3);
}

.access__product--ready .access__product-icon {
  color: var(--teal-300);
}

.access__product-body {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.access__product-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
}

.access__product-name {
  color: var(--on-dark);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.access__product-meta {
  display: flex;
  grid-column: 2;
  align-items: center;
}

/* Product groups: GNC TECH software / managed client websites. */
.access__group-title {
  margin: var(--s-2) 0 calc(-1 * var(--s-2));
  color: var(--on-dark-3);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.access__product-list + .access__group-title {
  margin-top: var(--s-4);
}

.access__product-domain {
  color: var(--teal-300);
  font-size: var(--fs-small);
  font-weight: 500;
}

/* Surface badge: a small pill. lang="en" keeps "Windows" free of Turkish İ. */
.access__surface {
  display: inline-flex;
  align-items: center;
  min-height: 1.375rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line-dark-strong);
  border-radius: 999px;
  color: var(--on-dark-3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Status: plain readable text with a small marker; hollow = unavailable. */
.access__state {
  display: inline-flex;
  margin-top: 0.15rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark-2);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.access__state::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--on-dark-3);
  border-radius: 50%;
}

/* Signed-in customer (live sign-in). Same restrained vocabulary as above. */
.access__alert {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-8);
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(255, 196, 120, 0.42);
  border-radius: var(--r-sm);
  color: var(--on-dark);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.access__alert svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  margin-top: 0.15em;
  color: #ffc478;
}

.access__product-note {
  color: var(--on-dark-3);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.access__launch {
  gap: 0.4rem;
}

.access__launch svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Informational, not a missing integration: filled marker. */
.access__state--info::before {
  background: var(--teal-300);
  border-color: var(--teal-300);
}

/* Profile card: who is signed in, with a quiet sign-out. */
.access__profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-1) var(--s-4);
  align-items: center;
  margin-top: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: rgba(8, 32, 63, 0.35);
}

.access__avatar {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--teal-300), #2f7cf6);
  color: var(--mid-950);
  font-size: 1.375rem;
  font-weight: 700;
}

.access__profile-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.access__profile-label {
  color: var(--on-dark-3);
  font-size: var(--fs-small);
}

.access__profile-text strong {
  color: var(--on-dark);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.3;
}

.access__profile-email {
  overflow: hidden;
  color: var(--on-dark-2);
  font-size: var(--fs-small);
  text-overflow: ellipsis;
}

.access__signout {
  grid-column: 1 / -1;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
}

.access__signout-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--on-dark-2);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}

.access__signout-button svg {
  width: 1rem;
  height: 1rem;
}

.access__signout-button:hover,
.access__signout-button:focus-visible {
  color: var(--teal-200);
}

.access__help a {
  color: var(--teal-300);
  font-weight: 600;
}

.access__help a:hover,
.access__help a:focus-visible {
  color: var(--teal-200);
}

/* Local accounts (email + password): sign-in and password forms on the dark
   entry, notices and the "no modules yet" state. */
.access__form {
  max-width: 28rem;
  gap: var(--s-4);
}

.access .field__label {
  color: var(--on-dark);
}

.access__rule {
  color: var(--on-dark-2);
  font-size: var(--fs-meta);
  line-height: 1.5;
}

.access__copy .access__alert {
  margin-bottom: 0;
}

.access__notice {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(95, 224, 200, 0.42);
  border-radius: var(--r-sm);
  color: var(--on-dark);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.access__notice svg,
.access__link svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  margin-top: 0.15em;
  color: var(--teal-300);
}

.access__links {
  margin: 0;
}

.access__link {
  display: inline-flex;
  gap: var(--s-2);
  color: var(--teal-300);
  font-weight: 600;
}

.access__link:hover,
.access__link:focus-visible {
  color: var(--teal-200);
}

.access__empty {
  margin: 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  line-height: 1.5;
}

@media (min-width: 560px) {
  .access__product {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .access__product-meta {
    grid-column: auto;
    justify-content: flex-end;
    align-self: center;
  }
}

@media (min-width: 960px) {
  .access__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: clamp(var(--s-12), 2rem + 4vw, var(--s-20));
  }

  .access__products {
    margin-top: var(--s-10);
  }
}
