/* =========================================================
   Praveen Wedisinghe — profile
   ========================================================= */

/* Licensed fonts take priority when present in /fonts. */
@font-face {
  font-family: "Humane";
  src: url("../fonts/Humane-Bold.woff2") format("woff2"), url("../fonts/Humane-Bold.otf") format("opentype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Light.woff2") format("woff2"), url("../fonts/NeueMontreal-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Regular.woff2") format("woff2"), url("../fonts/NeueMontreal-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Bold.woff2") format("woff2"), url("../fonts/NeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #1a1d24;
  --muted: #8a8d93;
  --hair: rgba(26, 29, 36, 0.12);
  --ink: #1a1d24;
  --black: #0d0d0e;
  --grey: #e6e6e3;

  --f-display: "Humane", "League Gothic", "Impact", sans-serif;
  --f-sans: "Neue Montreal", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 2.2vw, 2rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html.is-loading, html.is-loading body { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Off-screen start positions of reveal animations must never widen the page on phones. */
main { overflow-x: clip; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

::selection { background: var(--ink); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- shared type ---------- */
.section { padding: 0 var(--pad); }

.index {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.index--center { border: 0; text-align: center; padding-bottom: 18px; }

.title {
  font-family: var(--f-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3rem, 6.6vw, 7rem);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* Line-by-line mask reveal */
/* Words never break inside themselves (e.g. at hyphens), so measured lines match rendered lines. */
[data-lines] .w, .line__inner { white-space: nowrap; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.is-in .line__inner { transform: none; }

/* Character reveal */
/* Clip vertically only, so neighbouring letters never show hairline seams. */
.char-wrap { display: inline-block; vertical-align: top; clip-path: inset(0 -1em); }
.char {
  display: inline-block;
  transform: translate3d(0, 102%, 0);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 38ms);
}
.is-in .char { transform: none; }

/* Text roll hover (nav, small links) */
[data-roll] { display: inline-block; overflow: hidden; vertical-align: top; }
.roll { display: inline-block; position: relative; transition: transform 0.6s var(--ease-out); }
.roll::after {
  content: attr(data-label);
  position: absolute; left: 0; top: 100%;
}
a:hover .roll, button:hover .roll { transform: translateY(-100%); }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--black);
  color: #fff;
  clip-path: inset(0 0 0 0);
}
.is-returning .loader { display: none; }
.loader__foot { position: absolute; left: var(--pad); bottom: var(--pad); }
.loader__word, .loader__count {
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: 0.9;
  overflow: hidden;
}
.loader__word { font-size: clamp(2rem, 3.4vw, 3.25rem); height: 0.95em; }
.loader__word span { display: block; }
.loader__count { font-size: clamp(3.5rem, 6vw, 5.5rem); margin-top: 0.2em; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--pad) * 0.9) var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: padding 0.5s var(--ease-out), background-color 0.4s ease, box-shadow 0.4s ease;
}
.header > * { pointer-events: auto; }

/* Past the hero: a solid bar pinned to the top (follows the page colour, incl. the dark contact section). */
.is-stuck .header {
  mix-blend-mode: normal;
  color: var(--fg);
  background-color: var(--bg);
  box-shadow: 0 1px 0 var(--hair);
  padding-top: 12px; padding-bottom: 12px;
  pointer-events: auto;
}
.is-stuck .logo { font-size: clamp(1.45rem, 1.9vw, 1.9rem); }
.menu-open .header { mix-blend-mode: normal; color: #fff; background-color: transparent; box-shadow: none; }

.logo {
  display: flex; flex-direction: column;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.86;
  transition: font-size 0.5s var(--ease-out);
}
.logo span:last-child { padding-left: 0.62em; }

.nav { display: flex; gap: 22px; }
.nav__link {
  font-size: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.nav__link:nth-child(2) { transition-delay: 60ms; }
.nav__link:nth-child(3) { transition-delay: 120ms; }
.nav__link:nth-child(4) { transition-delay: 180ms; }
.nav-visible .nav__link { opacity: 1; transform: none; }
.nav__link.is-active { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.menu-btn { display: none; font-size: 15px; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--black); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 22vw;
  line-height: 0.86;
  overflow: hidden;
}
.menu__nav a span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.9s var(--ease-out);
}
.menu-open .menu__nav a span { transform: none; }
.menu__nav a:nth-child(1) span { transition-delay: 0.25s; }
.menu__nav a:nth-child(2) span { transition-delay: 0.3s; }
.menu__nav a:nth-child(3) span { transition-delay: 0.35s; }
.menu__nav a:nth-child(4) span { transition-delay: 0.4s; }
.menu__nav a:nth-child(5) span { transition-delay: 0.45s; }
.menu__foot { margin-top: 28px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8b8b8b; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  --hero-top: clamp(140px, 19vh, 190px);
  --hero-bottom: 72px;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero__stage {
  position: absolute;
  top: var(--hero-top); bottom: var(--hero-bottom); left: 0; right: 0;
  display: flex; flex-direction: column; justify-content: center;
}

.hero__line {
  position: relative;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(4.5rem, min(17vw, 18.5vh), 19rem);
  line-height: 0.8;
  white-space: nowrap;
  margin: 0.012em 0;
  /* White + difference = dark on the page, light only on the pixels that overlap the dark disc. */
  color: #fff;
  mix-blend-mode: difference;
  will-change: clip-path;
}

.hero__track { display: flex; width: max-content; will-change: transform; }
.hero__group { display: flex; flex-shrink: 0; }
.hero__word { display: block; -webkit-text-stroke: 0.012em currentColor; }
.hero__word i { font-style: normal; padding: 0 0.24em; }

/* Cut-out figure: stands on the bottom edge, head just below the header gap. */
/* Disc + figure are two layers with identical geometry, so the text can sit between them. */
.hero__figure {
  position: absolute;
  left: 0; right: 0;
  bottom: var(--fig-bottom, 28px);
  height: calc(100% - var(--hero-top) + 16px - var(--fig-bottom, 28px));
  display: flex; justify-content: center; align-items: flex-end;
  pointer-events: none;
}
.hero__figure--disc { z-index: 0; }
.hero__figure--img  { z-index: 2; }
.hero__bust {
  position: relative; flex-shrink: 0;
  height: 100%; aspect-ratio: 769 / 740;
  will-change: transform;
}
.hero__disc {
  position: absolute; left: 6%; right: 6%; bottom: 0;
  aspect-ratio: 1; border-radius: 50%;
  background: var(--black);
}
.hero__bust img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 54% no-repeat, radial-gradient(44% 45.7% at 50% 54.3%, #000 99.4%, transparent 100%);
          mask: linear-gradient(#000 0 0) top / 100% 54% no-repeat, radial-gradient(44% 45.7% at 50% 54.3%, #000 99.4%, transparent 100%);
}

/* intro initial states (JS animates them in) */
html.is-loading [data-intro="line"] { clip-path: inset(100% 0 0 0); }
html.is-loading [data-intro="portrait"],
html.is-loading [data-intro="disc"],
html.is-loading [data-intro="nav"] { opacity: 0; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding-top: 16vh; padding-bottom: 14vh; }
.about .title { margin: 0 0 6vh; }

.lead {
  font-size: clamp(1.35rem, 2.35vw, 2.25rem);
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 1500px;
}
.lead--indent { margin-top: 6vh; padding-left: 8.5%; }
.lead--spaced { margin-top: 14vh; }

.about__story { margin: 12vh 0 0; }
.chapter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  column-gap: 6vw;
  padding: 5vh 0 7vh;
  border-top: 1px solid var(--hair);
}
.chapter__when {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  line-height: 0.85;
}
.chapter__tag {
  margin-top: 16px;
  max-width: 32ch;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.chapter__body p {
  font-size: clamp(1.1rem, 1.55vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.chapter__body p + p { margin-top: 1.1em; }

.chapter__list {
  margin-top: 5vh;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 3vw;
  counter-reset: duty;
  border-top: 1px solid var(--hair);
}
.chapter__list li {
  position: relative;
  counter-increment: duty;
  padding: 16px 0 16px 42px;
  border-bottom: 1px solid var(--hair);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.5;
  color: #3d4048;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.chapter__list li::before {
  content: counter(duty, decimal-leading-zero);
  position: absolute; left: 0; top: 19px;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted);
}
.chapter__list.is-in li { opacity: 1; transform: none; }

.about__more {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 6vw;
  margin-top: 10vh;
}
.about__label {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--hair);
}
.about__text {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.6;
  font-weight: 400;
  color: #3d4048;
}

.stats {
  margin-top: 14vh;
  display: grid; grid-template-columns: 1fr 1fr 2fr;
  border-top: 1px solid var(--hair);
}
.stat { padding: 20px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--hair); }
.stat dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat dd {
  font-family: var(--f-display);
  font-size: clamp(5rem, 11vw, 11rem);
  line-height: 0.85;
  margin-top: 18px;
}
.stat dd.stat__words { font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 0.95; text-transform: uppercase; }

/* =========================================================
   WORK
   ========================================================= */
.work { position: relative; padding: 0 var(--pad); }

/* Heading sits at the top of the section, right aligned; the cards follow below it. */
.work__head {
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right;
  padding: 18vh 0 12vh;
}
.work__head .index { align-self: stretch; }
.work__head .title { margin-top: 5vh; }

.work__list {
  position: relative;
  padding-bottom: 30vh;
  display: flex; flex-direction: column; gap: 24vh;
}

.case {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--pad);
  align-items: start;
}
.case__media { grid-column: 1 / span 7; }
.case__text  { grid-column: 9 / span 4; padding-top: 1.5vw; }
.case--flip .case__media { grid-column: 6 / span 7; grid-row: 1; }
.case--flip .case__text  { grid-column: 1 / span 4; grid-row: 1; padding-top: 6vw; }

.case__media {
  position: relative;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-in-out);
}
.case.is-in .case__media { clip-path: inset(0 0 0 0); }

.case__art {
  position: absolute; inset: -8% 0;
  transform: scale(1.18);
  transition: transform 1.8s var(--ease-out);
  will-change: transform;
}
.case.is-in .case__art { transform: scale(1); }
.case__media[data-tone="dark"]  .case__art { background: #111215; color: #fff; }
.case__media[data-tone="light"] .case__art { background: var(--grey); color: var(--ink); }
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.case__svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform 1.2s var(--ease-out);
}
.case__media:hover .case__svg { transform: scale(1.06) rotate(-1.5deg); }

.case__num {
  position: absolute; top: 9%; left: 3.5%;
  font-size: 12px; letter-spacing: 0.16em;
  opacity: 0.6;
}
.case__word {
  position: absolute; left: 3.5%; bottom: 9%;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(3.5rem, 8vw, 9rem);
  line-height: 0.8;
}

.case__kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.case__title {
  margin: 14px 0 18px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.case__desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
  color: #55585e;
}

/* =========================================================
   STATEMENT
   ========================================================= */
.statement {
  padding-top: 20vh; padding-bottom: 28vh;
  display: flex; justify-content: center;
}
.statement__text {
  max-width: 1180px;
  text-align: center;
  font-size: clamp(1.6rem, 3.3vw, 3.2rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.statement__text .w { opacity: 0.14; }

/* =========================================================
   APPROACH
   ========================================================= */
.approach { position: relative; padding-bottom: 26vh; }
.approach__list { margin-top: 8vh; }

.step {
  display: flex; align-items: center; gap: 0.18em;
  width: max-content;
  font-family: var(--f-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 9.2vw, 10rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  cursor: default;
  transition: opacity 0.5s var(--ease-out);
}
.step--right  { margin-left: auto; }
.step--indent { margin-left: 12%; }
.approach__list:has(.step:hover) .step:not(:hover) { opacity: 0.18; }

.step__pill {
  display: inline-flex; align-items: center;
  font-weight: 300;
  letter-spacing: 0;
}
.step__pill i {
  font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 0.06em;
  background: var(--ink); color: #fff;
  font-size: max(0.28em, 12px);
  font-weight: 500;
  letter-spacing: 0.04em;
  width: 2em; height: 1.45em; border-radius: 0.3em;
  transition: width 0.6s var(--ease-out), background-color 0.4s;
}
.step:hover .step__pill i { width: 3.2em; }
.step__pill svg { width: 62%; height: 62%; color: #fff; }

.step__items { display: none; }

.approach__float {
  position: fixed; left: 0; top: 0; z-index: 30;
  pointer-events: none;
  background: var(--black); color: #fff;
  padding: 18px 22px;
  min-width: 250px;
  opacity: 0;
  transform: scale(0.85);
  transform-origin: 0 0;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.approach__float.is-on { opacity: 1; transform: scale(1); }
.approach__float-title { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #8b8b8b; margin-bottom: 8px; }
.approach__float li { font-size: 14px; line-height: 1.9; white-space: nowrap; }
.approach__float li::before { content: "— "; color: #777; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26vh var(--pad) 0;
}
.contact__intro {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.contact__intro span { opacity: 0.6; }
.contact__intro { gap: 18px; }
.contact__avatar {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
@media (max-width: 900px) {
  .contact__avatar { width: 56px; height: 56px; }
}
.contact__title {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(8rem, 24vw, 26rem);
  line-height: 0.82;
  margin: 22px 0 6vh -0.02em;
  white-space: nowrap;
}
.contact__title { letter-spacing: 0.012em; }

.contact__links {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding: 36px 0 14vh;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.contact__big {
  position: relative;
  font-size: clamp(1.4rem, 3vw, 2.9rem);
  font-weight: 200;
  letter-spacing: -0.02em;
}
.contact__big::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.7s var(--ease-out);
}
.contact__big:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__big--dim { opacity: 0.6; }

.footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer__top { justify-self: end; }

/* =========================================================
   RESPONSIVE
   ========================================================= */


/* =========================================================
   APPROACH — pinned storyboard
   ========================================================= */
.story { position: relative; }
.story__pin {
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  padding: 128px var(--pad) 26px;
}
.story__index { display: flex; justify-content: space-between; }
.story__count b { font-weight: 500; }

.story__grid {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 5vw; align-items: center;
  padding: 3vh 0;
}
.story__copy { position: relative; height: 100%; }
.story__text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.story__num {
  font-family: var(--f-display);
  font-size: clamp(6rem, 14vw, 15rem);
  line-height: 0.78;
  -webkit-text-stroke: 0.01em currentColor;
}
.story__title {
  margin-top: 2vh;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: 0.95; letter-spacing: -0.04em;
}
.story__lede { margin-top: 12px; font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; }
.story__desc { margin-top: 12px; max-width: 44ch; font-size: clamp(0.95rem, 1.1vw, 1.1rem); font-weight: 300; line-height: 1.6; color: #55585e; }
.story__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.story__tags li { font-size: 12px; padding: 6px 12px; border: 1px solid var(--hair); border-radius: 999px; }

.story__stage {
  position: relative;
  width: min(calc(100svh - 250px), 50vw);
  aspect-ratio: 1;
  background: var(--grey);
  overflow: hidden;
}
.story__back, .story__front { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__back { z-index: 1; }
.story__front { z-index: 3; }

.story__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.story__progress span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.4s; }
.story__progress i { display: block; height: 2px; margin-bottom: 10px; background: var(--hair); position: relative; overflow: hidden; }
.story__progress i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.story__progress span.is-active { color: var(--fg); }

/* diagram primitives */
.gfx { font-family: var(--f-sans); overflow: visible; }
.gfx .ln { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gfx .ln--soft { stroke-opacity: 0.3; }
.gfx .ln--faint { stroke-opacity: 0.12; }
.gfx .ln--bold { stroke-width: 4; }
.gfx .ln--end { stroke-width: 6; }
.gfx .ln--inv { stroke: #fff; stroke-width: 5; }
.gfx .ln--dash { stroke-dasharray: 8 9; stroke-opacity: 0.5; }
.gfx .ink { fill: var(--ink); }
.gfx .ink--soft { fill-opacity: 0.3; }
.gfx .paper { fill: #fff; stroke: var(--ink); stroke-width: 2.2; }
.gfx .paper--note { fill: #fff; }
.gfx .area { fill: var(--ink); fill-opacity: 0.07; }
.gfx text { fill: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: 0.08em; }
.gfx .lbl-s { font-size: 15px; fill-opacity: 0.6; letter-spacing: 0.12em; }
.gfx .lbl-xs { font-size: 13px; letter-spacing: 0.1em; }
.gfx .lbl-b { font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.gfx .lbl-inv { fill: #fff; font-size: 19px; font-weight: 700; }
.gfx .lbl-huge { font-family: var(--f-display); font-size: 92px; letter-spacing: 0; }

@media (max-width: 900px) {
  .story__pin { padding-top: 104px; padding-bottom: 18px; }
  .story__grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; row-gap: 16px; padding: 12px 0; }
  .story__num { display: none; }
  .story__title { margin-top: 0; font-size: 11vw; }
  .story__desc { font-size: 14px; line-height: 1.5; }
  .story__tags { margin-top: 12px; }
  .story__tags li { font-size: 11px; padding: 4px 10px; }
  .story__stage { width: min(100%, calc(100svh - 470px)); min-width: 250px; justify-self: center; }
  .story__progress span { font-size: 9px; letter-spacing: 0.08em; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .story__desc { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }

  .hero__line { font-size: min(26vw, 17vh); margin: 0.01em 0; }
  .hero { --hero-top: 128px; --hero-bottom: 80px; }
  .hero { --fig-bottom: 92px; }
  .hero__figure { height: min(calc(100% - var(--hero-top) - var(--fig-bottom) + 16px), 92vw); }

  .about .title { margin: 0 0 4vh; }
  .lead--indent { padding-left: 0; }
  .about__more { grid-template-columns: 1fr; row-gap: 48px; margin-top: 6vh; }
  .lead--spaced { margin-top: 10vh; }
  .about__story { margin: 8vh 0 0; }
  .chapter { grid-template-columns: 1fr; row-gap: 22px; padding: 4vh 0 6vh; }
  .chapter__when { font-size: 16vw; }
  .chapter__list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); margin-top: 24px; }

  .title { font-size: 12vw; }
  .work__head { padding: 12vh 0 8vh; }
  .work__head .title { margin-top: 4vh; white-space: normal; font-size: 13vw; line-height: 0.95; }
  .work__list { gap: 12vh; padding-bottom: 20vh; }
  .case, .case--flip { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .case__media { width: 100%; }
  .case--flip .case__text { padding-top: 0; }
  .case__word { font-size: 17vw; }

  .step, .step--right, .step--indent { margin-left: 0; font-size: 13.5vw; }
  .step { flex-wrap: wrap; width: auto; }
  .step__items { display: block; width: 100%; font-family: var(--f-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.7; margin: 10px 0 34px; color: var(--muted); }
  .approach__list:has(.step:hover) .step:not(:hover) { opacity: 1; }
  .approach__float { display: none; }

  .contact__title { font-size: 27vw; }
  .footer { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .footer__mid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  html.is-loading, html.is-loading body { overflow: auto; }
  html.is-loading [data-intro] { clip-path: none !important; opacity: 1 !important; }
  .line__inner, .char, .case__media, .case__art { transform: none !important; clip-path: none !important; transition: none !important; }
  .statement__text .w { opacity: 1; }
  .nav__link { opacity: 1; transform: none; }
  .chapter__list li { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   PAGE TRANSITION CURTAIN
   ========================================================= */
.curtain {
  position: fixed; inset: 0; z-index: 150;
  background: var(--black);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}
html.is-arriving .curtain { clip-path: inset(0 0 0 0); }

/* =========================================================
   WORK CARDS (home): linked
   ========================================================= */
a.case__media { display: block; color: inherit; }
.case__period {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.case__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease-out); }
.case__title a:hover { background-size: 100% 1px; }
.case__more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.case__more .arrow { display: inline-block; transition: transform 0.5s var(--ease-out); }
.case__more:hover .arrow { transform: translateX(6px); }

/* =========================================================
   WORK DETAIL PAGES
   ========================================================= */
.page-hero { padding-top: 22vh; padding-bottom: 8vh; }
.back-link {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.page-hero__index {
  margin-top: 6vh;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.page-hero__title {
  margin: 2vh 0 0 -0.02em;
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(5rem, 15vw, 17rem);
  line-height: 0.82;
}
.page-hero__title .char { -webkit-text-stroke: 0.008em currentColor; }
.page-hero__sub {
  margin-top: 18px;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--muted);
}
.page-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8vh 0 9vh;
  border-top: 1px solid var(--hair);
}
.page-meta > div { padding: 18px 20px 0 0; }
.page-meta > div + div { padding-left: 20px; border-left: 1px solid var(--hair); }
.page-meta dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.page-meta dd { margin-top: 10px; font-size: clamp(1rem, 1.2vw, 1.15rem); font-weight: 500; line-height: 1.4; }

.page-band { display: block !important; padding: 0 var(--pad); }
.page-band .case__media { aspect-ratio: 16 / 6.5; }
.page-band .case__word { font-size: clamp(4rem, 11vw, 12rem); }

.page-section { padding-top: 14vh; }
.page-section > .index { margin-bottom: 0; }
.page-section .about__story { margin-top: 0; }
.chapter__body a,
.refs a,
.about__text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Outcome numbers */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
}
.fact { padding: 26px 22px 34px 0; border-bottom: 1px solid var(--hair); }
.fact:not(:nth-child(4n + 1)) { padding-left: 22px; border-left: 1px solid var(--hair); }
.fact__value {
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 6.4vw, 6.8rem);
  line-height: 0.85;
  -webkit-text-stroke: 0.008em currentColor;
}
.fact__label { margin-top: 14px; font-size: 14px; line-height: 1.45; color: #55585e; max-width: 26ch; }

/* Product table */
.products { margin-top: 5vh; border-top: 1px solid var(--hair); }
.product {
  display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr;
  column-gap: 3vw;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.5;
}
.product__name { font-weight: 600; }
.product__purpose { color: #55585e; }
.product__outcome { font-weight: 500; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5vh; }
.tags li { font-size: 13px; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; }

/* References */
.refs { margin-top: 5vh; border-top: 1px solid var(--hair); }
.refs li { border-bottom: 1px solid var(--hair); }
.refs a {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding: 20px 0;
  text-decoration: none;
}
.refs__title { font-size: clamp(1.05rem, 1.5vw, 1.45rem); letter-spacing: -0.01em; }
.refs__source { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.refs a:hover .refs__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Next workplace */
.next-work { display: block; padding: 18vh var(--pad) 14vh; }
.next-work__label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.next-work__title {
  display: flex; align-items: baseline; gap: 0.2em;
  margin-top: 16px;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(4rem, 12vw, 13rem);
  line-height: 0.85;
}
.next-work__title .arrow { font-family: var(--f-sans); font-weight: 200; font-size: 0.45em; transition: transform 0.6s var(--ease-out); }
.next-work:hover .next-work__title .arrow { transform: translateX(0.3em); }

@media (max-width: 900px) {
  .page-hero { padding-top: 18vh; }
  .page-meta { grid-template-columns: 1fr 1fr; }
  .page-meta > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .page-meta > div:nth-child(n + 3) { border-top: 1px solid var(--hair); margin-top: 18px; }
  .page-band .case__media { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--hair); }
  .product { grid-template-columns: 1fr; row-gap: 6px; }
  .refs a { grid-template-columns: 1fr; gap: 6px; }
}

/* Chapter titles on work pages are phrases, so they sit smaller than a year or company name. */
.chapter__when { font-weight: 400; }
.page .chapter__when { font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: 0.9; }

/* Product table rows are not body paragraphs */
.chapter__body .product p { font-size: inherit; line-height: 1.5; margin: 0; letter-spacing: 0; }
.chapter__body .product .product__purpose { color: #55585e; }
/* A section label already draws the top rule */
.page-section > .index { border-bottom: 0; }
.fact__approx {
  display: inline-block; vertical-align: top;
  margin: 0.2em 0.35em 0 0;
  font-family: var(--f-sans); font-size: 0.16em; letter-spacing: 0.12em; text-transform: uppercase;
  -webkit-text-stroke: 0;
}

.char-word { display: inline-block; white-space: nowrap; }

/* =========================================================
   FIG. 01 · INITIATIVES BY WORKPLACE (About)
   ========================================================= */
.init { margin-top: 18vh; }
.init__cap {
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid var(--hair);
}
.init__tabs {
  display: flex; flex-wrap: wrap;
  column-gap: clamp(18px, 2vw, 36px); row-gap: 18px;
  margin-top: 7vh;
}
.init__tab {
  position: relative;
  display: flex; align-items: flex-start; gap: 8px;
  padding-bottom: 12px;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 2.55vw, 3.2rem);
  line-height: 0.88;
  white-space: nowrap;
  color: var(--fg);
  opacity: 0.25;
  transition: opacity 0.4s ease, transform 0.9s var(--ease-out);
  transition-delay: 0s, calc(var(--i, 0) * 60ms);
}
.init__tab:hover { opacity: 0.6; }
.init__tab[aria-selected="true"] { opacity: 1; }
.init__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.init__tab[aria-selected="true"]::after { transform: scaleX(1); }
.init__tab-num,
.init__tab-count {
  font-family: var(--f-sans);
  font-size: 11px; letter-spacing: 0.08em; line-height: 1;
  margin-top: 0.25em;
}
.init__tab-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border: 1px solid currentColor; border-radius: 999px;
}
.init:not(.is-in) .init__tab { transform: translateY(24px); }

.init__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  margin: 6vh 0 4vh;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.init__meta strong { color: var(--fg); font-weight: 600; }
.init__more { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.init__more .arrow { transition: transform 0.5s var(--ease-out); }
.init__more:hover .arrow { transform: translateX(6px); }

.init__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3vw; row-gap: 48px; }
.init__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fg);
}
.init__label span { font-weight: 400; color: var(--muted); }
.init__list { counter-reset: init; list-style: none; margin: 0; padding: 0; }
.init__list li {
  position: relative;
  counter-increment: init;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--hair);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.5;
  color: #3d4048;
}
.init__list li::before {
  content: counter(init, decimal-leading-zero);
  position: absolute; left: 0; top: 19px;
  font-size: 11px; letter-spacing: 0.1em; color: var(--muted);
}
.init__list b { font-weight: 600; color: var(--fg); }
.init__empty { padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .init { margin-top: 12vh; }
  .init__cap { flex-direction: column; gap: 6px; }
  .init__tabs {
    flex-wrap: nowrap; overflow-x: auto;
    margin-right: calc(var(--pad) * -1); padding-right: var(--pad);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
            mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .init__tabs::-webkit-scrollbar { display: none; }
  .init__tab { font-size: 11vw; }
  .init__cols { grid-template-columns: 1fr; row-gap: 40px; }
}
