/* =========================================================
   NEXUS WAVE — homepage
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}
.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: var(--header-h) var(--gutter) 0;
  overflow: hidden;
}

.hero-wordmark {
  display: flex;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 11.6vw;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: 50% 55%;
  will-change: transform, opacity;
}
.hw-word { display: inline-block; }
.hw-space { display: inline-block; width: 0.18em; }

.hero-statement {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 18vh var(--gutter) 14vh;
  text-align: center;
}
.hero-line {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 100%;
  font-size: clamp(2.1rem, 3.7vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero-line .w { display: inline-block; }
.hero-support {
  max-width: 30em;
  margin: clamp(20px, 2.4vw, 32px) auto 0;
  color: var(--stone);
  font-size: var(--step-1);
  line-height: 1.45;
  text-wrap: balance;
}

.hero-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 3vw, 36px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ash);
}
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-scroll i { position: relative; width: 1px; height: 28px; background: var(--line-dark); overflow: hidden; }
.hero-scroll i::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--paper);
  animation: scrollCue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollCue { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* Static layout (no JS / reduced motion): wordmark fills the first screen, statement follows. */
.hero:not(.is-choreographed) .hero-stage { display: block; padding-top: 0; }
.hero:not(.is-choreographed) .hero-wordmark { min-height: 100vh; min-height: 100svh; align-items: center; }
.hero:not(.is-choreographed) .hero-foot { top: calc(100svh - 60px); bottom: auto; }

/* Choreographed layout: a tall scroll track with a sticky stage. JS writes --p (0..1). */
.hero.is-choreographed { height: 250vh; }
.hero.is-choreographed .hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.hero.is-choreographed .hero-wordmark,
.hero.is-choreographed .hero-statement {
  grid-area: 1 / 1;
}
/* The wordmark is gone (and lifted clear) before the tagline starts, so the two never sit on top of each other. */
.hero.is-choreographed { --lift: 14vh; --enter: 7vh; }
.hero.is-choreographed .hero-wordmark {
  --a: clamp(0, calc(var(--p, 0) / 0.3), 1);
  opacity: calc(1 - var(--a));
  transform: translate3d(0, calc(var(--a) * var(--lift) * -1), 0) scale(calc(1 - var(--a) * 0.16));
}
.hero.is-choreographed .hero-statement {
  --b: clamp(0, calc((var(--p, 0) - 0.26) / 0.44), 1);
  padding-block: 0;
  opacity: clamp(0, calc(var(--b) * 3), 1);
  transform: translate3d(0, calc((1 - var(--b)) * var(--enter)), 0);
}
.hero.is-choreographed .hero-line .w {
  opacity: clamp(0.14, calc(var(--b) * (var(--n) + 3) - var(--i)), 1);
}
.hero.is-choreographed .hero-support {
  --c: clamp(0, calc((var(--p, 0) - 0.66) / 0.2), 1);
  opacity: var(--c);
  transform: translate3d(0, calc((1 - var(--c)) * 16px), 0);
}
.hero.is-choreographed .hero-foot {
  opacity: clamp(0, calc(1 - var(--p, 0) * 4), 1);
}

@media (min-width: 1100px) {
  .hero-line { white-space: nowrap; }
}

@media (max-width: 700px) {
  .hero-wordmark { flex-direction: column; align-items: center; font-size: 27.5vw; line-height: 0.84; }
  .hw-space { display: none; }
  .hero:not(.is-choreographed) .hero-wordmark { justify-content: center; }
  .hero.is-choreographed { height: 230vh; --lift: 18vh; --enter: 9vh; }
  .hero-line { font-size: clamp(2rem, 9.4vw, 2.8rem); }
  .hero-statement { text-align: left; }
  .hero-support { margin-left: 0; }
}

/* ---------- Work index ---------- */
.work-intro {
  position: relative;
  overflow-x: clip; /* contains the full-bleed row fill; the fixed preview is unaffected */
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: var(--section);
  background: var(--ink);
}
/* Let the index rise into the last pinned frame of the opening, so the two read as one movement. */
.hero.is-choreographed + .work-intro { margin-top: -26vh; background: transparent; z-index: 1; }
.hero-stage { min-width: 0; }
.hero-wordmark, .hero-statement { min-width: 0; max-width: 100%; }
.work-index li { border-bottom: 1px solid var(--line-dark); }
.work-index a {
  position: relative;
  isolation: isolate;
  --row-bg: var(--paper);
  --row-fg: var(--ink);
  --row-muted: var(--ash-dark);
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.25fr) minmax(0, 1fr) 2rem;
  align-items: baseline;
  gap: 16px;
  padding-block: clamp(22px, 2.8vw, 40px);
  transition: color 0.3s ease, padding 0.6s var(--ease-out);
}
/* Verified colours only: Pak Care navy (its website), Zam Zam green and gold (its business card).
   Funky Wears and Community use neutral Paper / Stone until a confirmed brand colour exists. */
.work-index a[data-tone="pak"] { --row-bg: var(--pak-care); --row-fg: var(--paper); --row-muted: rgba(241, 238, 231, 0.74); }
.work-index a[data-tone="zam"] { --row-bg: var(--zam-green); --row-fg: #efe9d6; --row-muted: var(--zam-gold); }
.work-index a[data-tone="paper"] { --row-bg: var(--paper); --row-fg: var(--ink); --row-muted: var(--ash-dark); }
.work-index a[data-tone="stone"] { --row-bg: var(--paper-2); --row-fg: var(--ink); --row-muted: var(--ash-dark); }
.work-index a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--row-bg);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-out);
}
.wi-num, .wi-type { transition: color 0.3s ease; }
.wi-num { color: var(--ash); font-size: var(--step--1); }
.wi-name {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 650;
  font-stretch: 104%;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.wi-type { color: var(--ash); }
.wi-arrow { justify-self: end; font-size: var(--step-1); transition: transform 0.5s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .work-index:hover a { color: var(--ash-dark); }
  .work-index:hover a:hover { color: var(--row-fg); padding-left: 16px; transition: color 0.3s ease 0.12s, padding 0.6s var(--ease-out); }
  .work-index a:hover::before { transform: scaleY(1); transition-duration: 0.6s; }
  .work-index a:hover .wi-num, .work-index a:hover .wi-type { color: var(--row-muted); transition-delay: 0.12s; }
  .work-index a:hover .wi-arrow { transform: translate(4px, 4px); }
}
/* Keyboard focus gets the same state as hover, plus a visible outline in the row's text colour. */
.work-index a:focus-visible { outline-offset: -2px; color: var(--row-fg); padding-left: 16px; }
.work-index a:focus-visible::before { transform: scaleY(1); }
.work-index a:focus-visible .wi-num, .work-index a:focus-visible .wi-type { color: var(--row-muted); }

.work-preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 20;
  width: clamp(240px, 22vw, 360px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0) translateY(-50%) scale(0.85);
  transform-origin: 0 50%;
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}
.work-preview.is-on { opacity: 1; transform: translate3d(var(--x), var(--y), 0) translateY(-50%) scale(1); }
.work-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

@media (max-width: 760px) {
  .work-index a { grid-template-columns: 2.4rem minmax(0, 1fr) 1.4rem; row-gap: 6px; }
  .wi-type { grid-column: 2 / 3; grid-row: 2; font-size: 0.92rem; }
  .wi-arrow { grid-column: 3; grid-row: 1; }
  .wi-name { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
}
@media (hover: none), (max-width: 1024px) {
  .work-preview { display: none; }
}
.wi-thumb { display: none; }
@media (hover: none), (max-width: 1024px) {
  .work-index a { grid-template-columns: 3.5rem minmax(0, 1.25fr) minmax(0, 1fr) clamp(96px, 13vw, 136px); align-items: center; }
  .wi-thumb { display: block; grid-column: 4; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
  .wi-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .wi-arrow { display: none; }
}
@media (max-width: 760px) {
  .work-index a { grid-template-columns: 2.4rem minmax(0, 1fr) 88px; column-gap: 14px; }
  .wi-thumb { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

/* ---------- Project shared ---------- */
.project { position: relative; padding-block: var(--section); overflow: clip; }
.project[tabindex="-1"]:focus { outline: none; } /* focus target after smooth scroll; not an interactive control */
.project-head { max-width: 900px; }
.project-tag { display: flex; gap: 14px; margin-bottom: clamp(18px, 2vw, 28px); opacity: 0.7; }
.project-head h2 { margin-bottom: clamp(18px, 2.2vw, 30px); }
.project-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 72px);
}
.project-foot:only-child, .project-foot > .link-line:only-child { margin-left: auto; }

.facts { display: grid; gap: 0; align-content: start; }
.facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid currentColor; border-color: rgba(127, 127, 127, 0.28); }
.facts dt { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.6; padding-top: 3px; }
.facts dd { line-height: 1.45; }
.facts-compact { margin-top: clamp(28px, 3vw, 40px); max-width: 520px; }

/* ---------- Pak Care: clinical, precise ---------- */
.project-pak { background: var(--pak-care-tint); color: #0b1a2e; }
.project-pak .lede { color: #3b4a5e; }
.project-pak .project-tag { color: var(--pak-care); opacity: 1; }
.project-pak .caption { color: #5b6878; }

.pak-browser {
  margin-top: clamp(48px, 6vw, 96px);
  --e: 1;
  clip-path: inset(0 calc(var(--e) * 7%) 0 calc(var(--e) * 7%));
  will-change: clip-path;
}
.pak-browser .frame { border-color: rgba(11, 26, 46, 0.14); }

.pak-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "facts facts facts facts . phone phone phone a a a a"
    "facts facts facts facts . phone phone phone a a a a"
    "b b b b b c c c . note note note";
  column-gap: clamp(12px, 2vw, 28px);
  row-gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 80px);
  align-items: start;
}
.pak-grid .facts { grid-area: facts; }
.pak-phone { grid-area: phone; }
.pak-shot-a { grid-area: a; }
.pak-shot-b { grid-area: b; }
.pak-shot-c { grid-area: c; margin-top: 18%; }
.pak-shot-a { align-self: end; }
.pak-note { grid-area: note; max-width: 34em; }
.pak-shot { background: #fff; }
.pak-shot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pak-shot-c img { aspect-ratio: 768 / 1365; object-fit: cover; }

.phone {
  position: relative;
  padding: 10px;
  background: #0b1a2e;
  border-radius: 34px;
}
.phone img { border-radius: 25px; width: 100%; aspect-ratio: 620 / 1048; object-fit: cover; object-position: top; }

@media (max-width: 900px) {
  .pak-browser { --e: 0 !important; clip-path: none; }
  .pak-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "facts facts facts facts facts facts"
      "phone phone phone a a a"
      "phone phone phone b b b"
      "c c c c note note";
  }
  .pak-shot-c { margin-top: 0; }
}
@media (max-width: 560px) {
  .pak-grid {
    grid-template-areas:
      "facts facts facts facts facts facts"
      "phone phone phone phone a a"
      "phone phone phone phone b b"
      "c c c note note note";
  }
  .pak-shot-a img, .pak-shot-b img { aspect-ratio: 1; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Funky Wears: expressive, fashion-led ---------- */
.project-funky { background: var(--ink); color: var(--paper); padding-top: 0; }
.project-funky .project-tag { color: var(--funky); opacity: 1; }
.project-funky .lede { color: var(--stone); }

.funky-type {
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 80px) clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--line-dark);
  color: var(--funky);
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 19rem);
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: -0.03em;
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
}
.funky-type span { display: inline-block; transform: translate3d(var(--drift, 0px), 0, 0); will-change: transform; }

.funky-strip { margin-top: clamp(48px, 6vw, 96px); overflow: hidden; }
.funky-track {
  display: flex;
  gap: clamp(10px, 1.4vw, 20px);
  width: max-content;
  padding-left: var(--gutter);
  transform: translate3d(var(--drift, 0px), 0, 0);
  will-change: transform;
}
.funky-track figure {
  width: clamp(220px, 24vw, 380px);
  aspect-ratio: 416 / 490;
  overflow: hidden;
  background: var(--ink-3);
}
.funky-track figure:nth-child(even) { margin-top: clamp(24px, 4vw, 64px); }
.funky-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.funky-track figure:hover img { transform: scale(1.04); }

.funky-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  margin-top: clamp(56px, 7vw, 120px);
  align-items: end;
}
.funky-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.funky-products figure { aspect-ratio: 4 / 5; overflow: hidden; background: #e9e6e1; }
.funky-products img { width: 100%; height: 100%; object-fit: cover; }

.funky-result .label { color: var(--funky); margin-bottom: 20px; }
.funky-numbers { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.funky-numbers > div { padding: 18px 0 20px; border-bottom: 1px solid var(--line-dark); }
.funky-numbers > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line-dark); }
.funky-numbers > div:nth-child(even) { padding-left: 20px; }
.funky-numbers dt { font-size: var(--step--1); color: var(--ash); margin-bottom: 6px; }
.funky-numbers dd { font-family: var(--font-display); font-size: var(--step-3); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.funky-result .muted { margin: 18px 0 24px; font-size: 0.95rem; }

@media (max-width: 900px) {
  .funky-grid { grid-template-columns: 1fr; }
  .funky-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Zam Zam: warm, editorial ---------- */
.project-zam { background: var(--zam-green); color: #efe9d6; }
.project-zam .project-tag { color: var(--zam-gold); opacity: 1; }
.project-zam .lede { color: #cfc8b0; }
.project-zam .caption { color: #a9a38d; }
.zam-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 28px);
  row-gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.zam-layout .project-head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.zam-card-back { grid-column: 7 / -1; grid-row: 1; box-shadow: 0 0 0 1px rgba(200, 178, 61, 0.18); }
.zam-card-front { grid-column: 6 / span 5; grid-row: 2; margin-top: -12%; position: relative; }
.zam-card img { width: 100%; }
.zam-card-front img { box-shadow: 0 0 0 1px rgba(200, 178, 61, 0.18); }
@media (max-width: 900px) {
  .zam-layout .project-head { grid-column: 1 / -1; position: static; }
  .zam-card-back { grid-column: 1 / -1; grid-row: auto; }
  .zam-card-front { grid-column: 3 / -1; grid-row: auto; margin-top: -10%; }
}

/* ---------- Community: documentary grid ---------- */
.project-community { background: var(--paper); color: var(--ink); }
.project-community .lede { color: var(--ash-dark); }
.community-head { margin-bottom: clamp(40px, 5vw, 80px); }
.community-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  align-items: start;
}
.community-grid figure { overflow: hidden; background: var(--paper-2); }
.community-grid img { width: 100%; height: 100%; object-fit: cover; }
.cg-a { grid-column: 1 / span 5; grid-row: 1 / span 2; aspect-ratio: 4 / 5; }
.cg-b { grid-column: 6 / span 3; aspect-ratio: 4 / 5; margin-top: 30%; }
.cg-c { grid-column: 9 / span 4; aspect-ratio: 4 / 5; }
.cg-d { grid-column: 6 / span 3; aspect-ratio: 4 / 5; }
.cg-e { grid-column: 9 / span 2; aspect-ratio: 2 / 3; }
.cg-f { grid-column: 11 / span 2; aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-grid figure { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; aspect-ratio: 4 / 5 !important; }
  .cg-a { grid-column: 1 / -1 !important; }
}

/* ---------- Proof ---------- */
.proof { padding-block: var(--section); }
.proof-title { margin-top: clamp(32px, 4vw, 56px); max-width: 14em; }
.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 96px);
  border-top: 1px solid var(--line-light);
}
.proof-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof-list li { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px) 0 0; }
.proof-list li + li { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-light); }
.proof-figure { font-family: var(--font-display); font-size: var(--step-5); font-weight: 700; font-stretch: 104%; letter-spacing: -0.05em; line-height: 0.88; font-variant-numeric: tabular-nums; }
.proof-what { margin-top: 12px; font-size: var(--step-1); letter-spacing: -0.01em; }
.proof-list p { margin-top: 20px; color: var(--ash-dark); max-width: 26em; }
.proof-source { margin-top: auto; padding-top: 20px; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ash-dark); }
.proof-note { margin-top: clamp(28px, 3vw, 40px); max-width: 40em; font-size: 0.95rem; }
.worked-with { margin-top: clamp(56px, 7vw, 104px); padding-top: 20px; border-top: 1px solid var(--line-light); }
.worked-with .label { color: var(--ash-dark); }
.ww-names {
  margin-top: clamp(18px, 2vw, 28px);
  max-width: 30em;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: balance;
}
.ww-name { white-space: nowrap; }
.ww-sep { color: var(--ash); }
@media (max-width: 860px) {
  .proof-list { grid-template-columns: 1fr; }
  .proof-list li { padding: 28px 0 32px; }
  .proof-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
}

/* ---------- Services ---------- */
.services { padding-block: var(--section); background: var(--ink); }
.services-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 80px);
}
.services-intro h2 { max-width: 15em; }
.services-intro .link-line { flex: none; white-space: nowrap; }
.service { border-bottom: 1px solid var(--line-dark); }
.service h3 { font: inherit; }
.service-head {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-block: clamp(20px, 2.4vw, 34px);
  text-align: left;
  transition: color 0.3s ease;
}
.svc-num { color: var(--ash); font-size: var(--step--1); }
.svc-name {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  font-stretch: 102%;
  letter-spacing: -0.045em;
  line-height: 0.98;
  transition: transform 0.6s var(--ease-out);
}
.svc-icon { position: relative; justify-self: end; width: 18px; height: 18px; }
.svc-icon::before, .svc-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.svc-icon::after { transform: rotate(90deg); }
.service-head[aria-expanded="true"] .svc-icon::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .service-list:hover .service-head { color: var(--ash-dark); }
  .service-list:hover .service-head:hover,
  .service-head[aria-expanded="true"] { color: var(--paper) !important; }
  .service-head:hover .svc-name { transform: translateX(12px); }
}
.service-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.6s var(--ease-out); }
.service-body[hidden] { display: none; }
.service-body.is-closing, .service-body.is-opening { grid-template-rows: 0fr; }
.service-inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.service-inner p { grid-column: 2; max-width: 30em; padding-bottom: clamp(24px, 3vw, 40px); color: var(--stone); font-size: var(--step-1); line-height: 1.45; }
.tags { grid-column: 3; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding-bottom: 28px; }
.tags li { padding: 7px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.9rem; color: var(--stone); }
.service-inner .seen-in { grid-column: 2; margin: 0 0 clamp(28px, 3vw, 44px); padding-top: 0; border-top: 0; }
@media (max-width: 760px) {
  .services-intro { flex-direction: column; align-items: flex-start; }
  .service-head { grid-template-columns: 2.4rem minmax(0, 1fr) 1.4rem; }
  .svc-name { font-size: clamp(1.7rem, 7.6vw, 2.4rem); }
  .service-inner { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .service-inner p { padding-bottom: 16px; }
  .tags { grid-column: 2; }
  .service-inner .seen-in { margin-bottom: 28px; }
}

/* ---------- About ---------- */
.about { padding-block: var(--section) clamp(56px, 7vw, 120px); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 28px);
  row-gap: clamp(32px, 4vw, 64px);
}
.about-label { grid-column: 1 / -1; color: var(--ash-dark); }
.about-title { grid-column: 1 / span 11; max-width: 11em; text-wrap: balance; }
.about-copy { grid-column: 7 / span 5; display: grid; gap: 22px; justify-items: start; }
.about-copy p:not(.lede) { color: var(--ash-dark); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
@media (max-width: 900px) {
  .about-title { grid-column: 1 / -1; }
  .about-copy { grid-column: 1 / -1; max-width: 36em; }
}

/* ---------- Process ---------- */
.process { padding-block: clamp(56px, 7vw, 120px) var(--section); }
.process-list {
  --fill: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: clamp(28px, 3vw, 40px);
}
.process-list::before, .process-list::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line-light);
}
.process-list::after { height: 2px; top: -0.5px; background: var(--ink); transform: scaleX(var(--fill)); transform-origin: left; }
.process-list li { position: relative; display: grid; gap: 14px; align-content: start; }
.process-list li::before {
  content: "";
  position: absolute;
  top: calc(clamp(28px, 3vw, 40px) * -1 - 4px);
  left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  transition: background-color 0.4s ease;
}
.process-list li.is-active::before { background: var(--ink); }
.pr-num { color: var(--ash-dark); font-size: var(--step--1); }
.pr-name { font-family: var(--font-display); font-size: var(--step-3); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.process-list p { color: var(--ash-dark); max-width: 20em; }
@media (max-width: 860px) {
  .process-list { grid-template-columns: 1fr; padding-top: 0; padding-left: 32px; gap: 40px; }
  .process-list::before, .process-list::after { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process-list::after { width: 2px; left: -0.5px; transform: scaleY(var(--fill)); transform-origin: top; }
  .process-list li::before { top: 6px; left: -36px; }
}

/* CTA sits on ink at the end of a paper run */
.page-home .cta { border-top: 0; }
