/* ==========================================================================
   Sections — home chapters + shared story patterns
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(1rem, 3vh, 2.5rem));
  overflow: hidden;
}
.hero__inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2rem;
}
.hero__eyebrow { color: var(--muted); }
.hero__title { position: relative; z-index: 2; max-width: 11.5ch; font-size: clamp(2.9rem, min(8.4vw, 13.5vh), 10rem); }
.hero__knot {
  position: absolute;
  right: var(--gutter);
  top: 4%;
  width: min(40vw, 520px);
  aspect-ratio: 1;
  opacity: 0.9;
}
.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  align-items: end;
  gap: 2rem;
}
.hero__copy { display: grid; gap: 0.8rem; max-width: 34rem; }
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-size: var(--fs-s);
  color: var(--muted);
  white-space: nowrap;
}
.hero__cue span {
  position: relative;
  width: 1px;
  height: 46px;
  background: var(--line);
  overflow: hidden;
}
.hero__cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__ticker { position: relative; z-index: 2; margin-top: auto; }
@media (max-width: 960px) {
  .hero__foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__cue { display: none; }
  .hero__knot { position: relative; right: auto; top: auto; width: 60vw; justify-self: end; margin-top: -2rem; }
}

/* ---------- Services: sticky stacked panels ---------- */
.services__head {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.services__head .lead { max-width: 44ch; }
.stack { position: relative; display: grid; gap: 2rem; }
.stack-panel__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(76vh, 700px);
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  border-radius: var(--r-l);
  background: var(--ink);
  color: var(--text);
  box-shadow: 0 30px 80px color-mix(in srgb, var(--ink) 18%, transparent);
  transform-origin: 50% 0;
  overflow: hidden;
  will-change: transform, opacity;
}
.stack-panel:nth-child(2 of .stack-panel) .stack-panel__inner { background: var(--ink-2); }
.stack-panel:nth-child(3 of .stack-panel) .stack-panel__inner { background: var(--card); }

.stack-panel__text { display: grid; gap: 1.2rem; align-content: center; justify-items: start; max-width: 30rem; }
.stack-panel__text p:not(.stack-panel__num) { color: var(--muted); }
.stack-panel__num { font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: 0.8; letter-spacing: var(--track-tight); }
.stack-panel__num span { font-size: 1rem; letter-spacing: 0.02em; color: var(--muted); vertical-align: top; }
.stack-panel__visual {
  border-radius: calc(var(--r-l) - 12px);
  background-color: rgba(255, 255, 255, 0.03);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 420px;
  overflow: hidden;
}
.stack-panel__visual.crosshair::before { border-top-color: rgba(255, 255, 255, 0.12); }
.stack-panel__visual.crosshair::after { border-left-color: rgba(255, 255, 255, 0.12); }
.stack-panel__visual > .mock,
.stack-panel__visual > .label-pill { position: relative; z-index: 2; }
.stack-panel .mp-cursor span { box-shadow: 0 0 0 1.5px var(--c, var(--primary)), 0 6px 16px rgba(0, 0, 0, 0.35); }
@media (min-width: 900px) and (min-height: 700px) {
  .stack-panel { position: sticky; top: calc(var(--header-h) + var(--i) * 18px); }
}
@media (max-width: 900px) {
  .stack-panel__inner { grid-template-columns: 1fr; min-height: 0; }
  .stack-panel__visual { min-height: 0; }
}

/* ---------- Process (horizontal track) ---------- */
.process { padding-block: var(--section-y) 0; }
.process__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: calc(var(--header-h) + 1rem) 4rem;
}
.process__head { display: grid; gap: 1rem; }
.process__head h2 { max-width: none; }
.process__head h2 .line, .final__title .line { white-space: nowrap; }
@media (max-width: 600px) { .process__head h2 .line, .final__title .line { white-space: normal; } }
.hscroll__viewport { position: relative; overflow: hidden; }
.hscroll__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.step {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.9rem;
  width: clamp(270px, 32vw, 440px);
  min-height: clamp(300px, 40vh, 420px);
  padding: 1.8rem;
  border-radius: var(--r-l);
  background: color-mix(in srgb, var(--ink-2) 72%, transparent);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.5s, border-color 0.5s, transform 0.5s var(--ease-out);
}
.step__num {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 35%, transparent);
  transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}
.step.is-active { border-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.step.is-active .step__num { color: var(--primary); -webkit-text-stroke-color: var(--primary); }
.step--launch { background: var(--soft); color: var(--ink); border-color: var(--soft); }
.step--launch .step__num { -webkit-text-stroke-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.step--launch.is-active .step__num { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.hscroll__bar {
  margin: 2rem var(--gutter) 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.hscroll__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 899px) {
  .hscroll__track { flex-direction: column; width: auto; }
  .step { width: auto; min-height: 220px; }
  .hscroll__bar { display: none; }
}

/* ---------- Work (home) ---------- */
.work-home__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.work-home__head h2 { margin-top: 1.2rem; }
.work-home { overflow-x: clip; }
.work-home__empty { text-align: center; margin-top: clamp(3.5rem, 7vw, 6rem); }
.work-home__empty .t-m { max-width: 26ch; margin-inline: auto; }
.work-home__cta { display: flex; justify-content: center; margin-top: 2.5rem; }
@media (max-width: 860px) { .work-home__head { grid-template-columns: 1fr; } }

/* ---------- Studio teaser ---------- */
.studio-teaser { overflow: hidden; }

/* ---------- Final CTA ---------- */
.final { min-height: 100svh; display: grid; align-items: center; text-align: center; }
.final__inner { display: grid; justify-items: center; gap: 1.6rem; }
.final__title { max-width: none; }
.final__cycle {
  display: grid;
  min-height: 2.3em;
  color: var(--accent);
  max-width: 24ch;
}
.final__cycle > span { grid-area: 1 / 1; }
.js .final__cycle > span:not(:first-child) { opacity: 0; }
.no-motion .final__cycle, .reduced-motion .final__cycle, html:not(.js) .final__cycle { display: block; }
.no-motion .final__cycle > span, .reduced-motion .final__cycle > span, html:not(.js) .final__cycle > span { opacity: 1 !important; display: inline; }
.final__lead { color: var(--muted); max-width: 32ch; }
.final__btn { font-size: 1.15rem; min-height: 64px; padding-left: 1.8rem; }
.final__btn .btn__arrow { width: 50px; height: 50px; }

/* ---------- Generic page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 2; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero__title { max-width: 13ch; font-size: clamp(2.9rem, min(8.4vw, 13vh), 10rem); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 4rem;
  align-items: end;
}
.page-hero__copy { display: grid; gap: 1rem; max-width: 38rem; }
.page-hero__knot {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 2rem);
  width: min(34vw, 420px);
  aspect-ratio: 1;
}
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* Section heads reused across pages */
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 1.5rem 4rem; }
.sec-head--split > :first-child { display: grid; gap: 1.2rem; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: 1fr; } }

/* Closing CTA band (inner pages) */
.closing {
  position: relative;
  min-height: 80svh;
  display: grid;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.closing__inner { display: grid; gap: 2rem; justify-items: center; }
.closing__title { max-width: 14ch; }

@media (max-width: 600px) {
  .hero__title, .page-hero__title { font-size: clamp(2.5rem, 11.5vw, 4rem); }
}

/* ==========================================================================
   v1 patterns (wording + outline style)
   ========================================================================== */

/* Outline text — "the ordinary" drawn as a ghost */
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 55%, transparent);
}
[data-surface="light"] .outline-text,
[data-surface="lavender"] .outline-text { -webkit-text-stroke-color: color-mix(in srgb, var(--ink) 55%, transparent); }
@supports not (-webkit-text-stroke: 1px black) { .outline-text { color: inherit; opacity: 0.5; } }

.hero__indent { padding-left: clamp(2rem, 13vw, 14rem); }
.hero__title { font-size: clamp(2.5rem, min(9vw, 13vh), 11rem); }
.hero__lead { max-width: 36rem; font-size: var(--fs-body); line-height: 1.6; }
.hero__lead strong { display: block; font-size: var(--fs-lead); line-height: 1.4; margin-bottom: 0.6rem; font-weight: 600; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  letter-spacing: 0;
}

/* ---------- Belief: the giant strip ---------- */
.belief { padding-block: var(--section-y); overflow: hidden; }
.belief__intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.strip { overflow: visible; }
.strip__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding-left: var(--gutter);
  font-size: clamp(3.4rem, 14vw, 15rem);
  line-height: 1.02;
  white-space: nowrap;
  will-change: transform;
}
.strip__inner .glyph-stack { font-size: 0.9em; }
.strip__pill {
  display: inline-block;
  padding: 0 0.28em 0.06em;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
}
.belief__body {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(3rem, 7vw, 6rem);
}
.belief__aside { display: grid; gap: 1.5rem; justify-items: start; color: var(--muted-ink); }
.belief__aside .tag { color: var(--ink); }
.fill {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.3vw, 3.3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.fill .strike { color: inherit; }
@media (max-width: 860px) {
  .belief__body { grid-template-columns: 1fr; }
  .belief__aside { order: 2; }
  .strip__inner { white-space: normal; display: block; font-size: clamp(2.6rem, 12vw, 4.5rem); padding-right: var(--gutter); }
}

/* ---------- What if? (statement sequence) ---------- */
.whatif { min-height: 100svh; }
.whatif__inner {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding-block: calc(var(--header-h) + 1.5rem) 5rem;
}
.whatif__top { display: flex; justify-content: space-between; align-items: center; }
.whatif__count { font-family: var(--f-display); font-size: var(--fs-s); color: var(--muted); letter-spacing: 0.1em; }
.whatif__count b { color: var(--text); font-weight: 600; }
.qs { display: grid; gap: 4rem; align-content: center; }
.q {
  text-align: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 7rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.ql { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ql > span { display: inline-block; }
.ql--inv > span { color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--text) 90%, transparent); }
.q { text-shadow: 0 2px 28px color-mix(in srgb, var(--ink) 85%, transparent); }
.ql--inv > span { text-shadow: none; }
/* Soft dark pool behind the statements so they read over the moving pixels */
.whatif__inner { position: relative; }
.whatif__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(1100px, 95vw);
  height: min(620px, 70vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 92%, transparent), color-mix(in srgb, var(--ink) 60%, transparent) 60%, color-mix(in srgb, var(--ink) 0%, transparent));
  pointer-events: none;
}
.whatif__foot { position: relative; }
.whatif__foot::before {
  content: "";
  position: absolute;
  inset: -1.5rem -2rem;
  z-index: -1;
  border-radius: 2rem;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 85%, transparent), color-mix(in srgb, var(--ink) 0%, transparent));
  pointer-events: none;
}
.q .glyph { font-size: 0.74em; }
.q--last .ql--inv > span { color: var(--soft); -webkit-text-stroke: 0; }
.js:not(.reduced-motion):not(.no-motion) .qs.is-seq { gap: 0; }
.js:not(.reduced-motion):not(.no-motion) .qs.is-seq .q { grid-area: 1 / 1; }
.whatif__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  color: var(--muted);
  font-size: var(--fs-s);
  max-width: 60rem;
}
.whatif__foot p:first-child { color: var(--text); font-family: var(--f-display); font-size: 1.15rem; }
@media (max-width: 760px) { .whatif__foot { grid-template-columns: 1fr; } }

/* ---------- Process head ---------- */
.process__head--split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 1.5rem 4rem; }
.process__head--split > div { display: grid; gap: 1rem; }
@media (max-width: 860px) { .process__head--split { grid-template-columns: 1fr; } }

/* ---------- Work intro ---------- */
.work-home__intro { display: grid; gap: 1.4rem; justify-items: start; }

/* ---------- Studio teaser (v1) ---------- */
.studio-teaser__title { margin-top: 1.2rem; }
.cluster { display: inline-flex; align-items: center; vertical-align: middle; font-size: 0.62em; margin-left: 0.15em; }
.cluster .glyph { width: 0.9em; height: 0.9em; margin-left: -0.28em; box-shadow: 0 0 0 0.06em var(--ink); }
.cluster .glyph:first-child { margin-left: 0; }
.cluster__you {
  margin-left: 0.25em;
  padding: 0.12em 0.45em 0.18em;
  border-radius: var(--r-pill);
  border: 1.5px dashed color-mix(in srgb, var(--text) 50%, transparent);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
}
.studio-teaser__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.studio-teaser__copy { display: grid; gap: 1.1rem; }
.values { border-top: 1px solid var(--line); }
.value {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.value__num { font-family: var(--f-display); font-size: var(--fs-s); color: var(--muted); }
.value h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; transition: color 0.3s, transform 0.5s var(--ease-out); }
.value p { color: var(--muted); margin-top: 0.4rem; }
.value .glyph { font-size: 2.6rem; transition: transform 0.5s var(--ease-back); }
.value:hover h3 { color: var(--soft); transform: translateX(0.15em); }
.value:hover .glyph { transform: rotate(-12deg) scale(1.1); }
@media (max-width: 860px) { .studio-teaser__body { grid-template-columns: 1fr; } }

.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.12em;
  border-radius: 0.1em;
  background: var(--spark);
  clip-path: inset(0 calc((1 - var(--strike, 0)) * 100%) 0 0);
}
.no-motion .strike::after,
.reduced-motion .strike::after,
html:not(.js) .strike::after { --strike: 1; }

@media (max-width: 600px) {
  .hero__title, .page-hero__title { font-size: clamp(2.5rem, 11.5vw, 4rem); }
  .hero__indent { padding-left: 1.2em; }
}
@media (max-width: 699px) { .whatif__count { display: none; } .qs { gap: 2.5rem; } }
.stack-panel .mock { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }




/* Final CTA: the whole section is a sheet of sky-tinted glass over the knot.
   The knot is sharp above and below the section and softened through the glass. */
.final {
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--spark) 15%, transparent), color-mix(in srgb, var(--primary) 12%, transparent));
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.final__cycle {
  min-height: 0;
  max-width: none;
  color: var(--soft);
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  white-space: nowrap;
  overflow: hidden;
  padding-block: 0.08em 0.14em;
}
.final__lead { color: var(--text); opacity: 0.85; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .final { background: color-mix(in srgb, var(--spark) 14%, var(--ink-2)); }
}
@media (max-width: 600px) {
  .final__cycle { font-size: clamp(1.15rem, 5.6vw, 1.5rem); }
  .final__btn { font-size: 1rem; min-height: 56px; padding-left: 1.3rem; }
  .final__btn .btn__arrow { width: 42px; height: 42px; }
}

/* Darker pool of glass behind the text column so the copy reads over the knot */
.final__inner { position: relative; }
.final__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  width: min(1100px, 100vw);
  height: 115%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 72%, transparent), color-mix(in srgb, var(--ink) 40%, transparent) 55%, transparent);
  pointer-events: none;
}
.final__cycle { text-shadow: 0 2px 20px color-mix(in srgb, var(--ink) 90%, transparent); }
.final__lead { opacity: 0.95; text-shadow: 0 2px 16px color-mix(in srgb, var(--ink) 90%, transparent); }
.final__btn.btn--paper { --btn-hover: var(--primary); --btn-hover-fg: var(--on-primary); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.final__btn.btn--paper:hover .btn__arrow { background: var(--on-primary); color: var(--primary); }

/* The people: the knot is anchored beside the headline and scrolls with it */
.studio-teaser__wrap { position: relative; }
.studio-teaser__knot {
  position: absolute;
  top: -3.5rem;
  right: calc(var(--gutter) - 1rem);
  width: clamp(150px, 17vw, 260px);
  aspect-ratio: 1;
  pointer-events: none;
}

.whatif { overflow-x: clip; }

/* Hero titles: tighter rows than other headlines (big type reads better closer together) */
.hero__title.t-mega, .hero__title, .page-hero__title { line-height: 0.9; }
.hero__title .split-line, .page-hero__title .split-line { padding-bottom: 0.1em; margin-bottom: -0.1em; }
