/* ==========================================================================
   Daniel Szarka-Kovacs — style.css (V2)

   01  Tokens              10  Signature visual
   02  Base                11  Process
   03  Type system         12  Production time
   04  Layout              13  About
   05  Links & actions     14  Final CTA
   06  Navigation          15  Footer
   07  Hero                16  Motion system
   08  Positioning         17  Responsive
   09  Selected work (+ future case-study architecture)
   ========================================================================== */


/* ==========================================================================
   01  TOKENS
   ========================================================================== */

:root {
  /* Color */
  --black:    #050505;
  --tone:     #090909;   /* lifted band (services, production time) */
  --graphite: #111111;
  --paper:    #F2F0EB;

  --p-86: rgba(242, 240, 235, 0.86);
  --p-66: rgba(242, 240, 235, 0.66);
  --p-48: rgba(242, 240, 235, 0.48);
  --p-34: rgba(242, 240, 235, 0.34);
  --p-22: rgba(242, 240, 235, 0.22);

  --line:      rgba(242, 240, 235, 0.13);
  --line-soft: rgba(242, 240, 235, 0.07);

  /* Type — one family, the width axis gives it range */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Scale. Each tier has one job; the jumps between them are deliberate. */
  --fs-cta:        clamp(2.4rem, 10vw, 10rem);     /* conclusion — largest       */
  --fs-conclusion: clamp(2.6rem, 8.8vw, 8.6rem);   /* "I make it fit."           */
  --fs-punch:      clamp(2.9rem, 6.4vw, 6.4rem);   /* "Has your website?"        */
  --fs-section:    clamp(2.1rem, 4.6vw, 4.4rem);   /* section headlines          */
  --fs-title:      clamp(1.8rem, 3.1vw, 3rem);     /* signature / about          */
  --fs-statement:  clamp(1.55rem, 2.8vw, 2.8rem);  /* hero statement, lead-ins   */
  --fs-row:        clamp(1.3rem, 2vw, 2rem);       /* service + stage names      */
  --fs-lead:       clamp(1.05rem, 1.2vw, 1.25rem);
  --fs-body:       clamp(0.97rem, 0.98vw, 1.05rem);
  --fs-meta:       0.6875rem;                       /* labels, eyebrows, numbers  */
  --fs-nav:        0.6875rem;

  --tr-meta: 0.2em;

  /* Space */
  --gutter: clamp(20px, 4.6vw, 80px);
  --gap: clamp(16px, 1.9vw, 32px);
  --maxw: 1560px;
  --nav-h: 96px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   02  BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--paper); color: var(--black); }

:focus-visible { outline: 1px solid var(--paper); outline-offset: 5px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: var(--gutter); top: -120px; z-index: 300;
  padding: 12px 18px; background: var(--paper); color: var(--black);
  font-size: var(--fs-meta); letter-spacing: var(--tr-meta); text-transform: uppercase;
  text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* Manual line-break control: desktop-only and mobile-only breaks */
.br-m { display: none; }


/* ==========================================================================
   03  TYPE SYSTEM
   ========================================================================== */

/* Display voice — uppercase, tight, architectural */
.hero__title, .positioning__statement, .work__title, .section-title,
.signature__title, .about__title, .cta__title, .leadtime__unit,
.service__name, .stage__name, .footer__name {
  text-transform: uppercase;
  font-kerning: normal;
}

.section-title {
  font-size: var(--fs-section);
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  line-height: 0.9;
  letter-spacing: -0.022em;
}

.muted { color: var(--p-34); font-weight: 400; }

/* Meta voice — eyebrows, numbers, metadata */
.label, .meta {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--tr-meta);
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--p-48);
}
.meta { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; color: var(--p-34); }

/* Reading voice */
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--p-86); max-width: 36ch; }
.body { color: var(--p-66); max-width: 54ch; }
.body + .body { margin-top: 1.05em; }
.lead, .body, .work__note, .stage__desc, .service__desc, .leadtime__note, .hero__lead { text-wrap: pretty; }


/* ==========================================================================
   04  LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.section-head { row-gap: 28px; margin-bottom: clamp(56px, 7vw, 104px); }
.section-head__label { grid-column: 1 / span 3; padding-top: 0.55em; }
.section-head__title { grid-column: 4 / span 9; }


/* ==========================================================================
   05  LINKS & ACTIONS
   ========================================================================== */

/* Text link: hairline draws left → right on hover, retracts rightward */
.link {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 0.65em;
  padding-block: 0.75em;
  font-size: var(--fs-meta); font-weight: 500;
  letter-spacing: var(--tr-meta); text-transform: uppercase;
  text-decoration: none; color: var(--paper);
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.35em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.link--quiet { color: var(--p-48); padding-block: 0.4em; transition: color .3s var(--ease); }
.link--quiet:hover, .link--quiet:focus-visible { color: var(--paper); }

.arrow { display: inline-block; transition: transform .45s var(--ease); }
a:hover .arrow--down, a:focus-visible .arrow--down { transform: translateY(3px); }
a:hover .arrow--out,  a:focus-visible .arrow--out  { transform: translate(3px, -3px); }

/* Square action — controlled inversion from the bottom edge */
.action {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 1em;
  padding: 1.05em 1.55em;
  border: 1px solid rgba(242, 240, 235, 0.3);
  font-size: var(--fs-meta); font-weight: 500;
  letter-spacing: var(--tr-meta); text-transform: uppercase;
  text-decoration: none; color: var(--paper);
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.action::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper);
  transform: scaleY(0); transform-origin: bottom center;
  transition: transform .5s var(--ease);
}
.action__text { transition: transform .5s var(--ease); }
.action:hover, .action:focus-visible { color: var(--black); border-color: var(--paper); }
.action:hover::before, .action:focus-visible::before { transform: scaleY(1); transform-origin: top center; }
.action:hover .action__text, .action:focus-visible .action__text { transform: translateX(3px); }

.action--lg { padding: 1.35em 2.1em; font-size: 0.75rem; gap: 1.4em; }


/* ==========================================================================
   06  NAVIGATION
   ========================================================================== */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left center;
  transition: transform .8s var(--ease-out);
}
.nav.is-stuck {
  background: rgba(5, 5, 5, 0.74);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
}
.nav.is-stuck::after { transform: scaleX(1); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }

.nav__brand {
  display: inline-flex; align-items: center;
  text-decoration: none; white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.nav__brand:hover { opacity: 0.7; }
.nav__logo {
  display: block; width: clamp(165px, 14vw, 215px); height: auto;
}

.nav__menu { display: flex; gap: clamp(20px, 2.6vw, 44px); }

.nav__link {
  position: relative; display: inline-block; padding-block: 0.55em;
  font-size: var(--fs-nav); font-weight: 500;
  letter-spacing: var(--tr-meta); text-transform: uppercase;
  text-decoration: none; color: var(--p-48);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2em; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--paper); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.nav__link.is-active { color: var(--paper); }
.nav__link.is-active::after { transform: scaleX(0.35); transform-origin: left center; }

.nav__toggle {
  display: none; align-items: center; gap: 0.8em;
  padding: 0.9em 0; margin: 0; border: 0; background: none; cursor: pointer;
  font: 500 var(--fs-meta)/1 var(--font);
  letter-spacing: var(--tr-meta); text-transform: uppercase; color: var(--paper);
}
.nav__bars { display: block; width: 22px; }
.nav__bars span { display: block; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.nav__bars span + span { margin-top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav__panel {
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 99;
  display: none;
  padding: 4px var(--gutter) 30px;
  background: rgba(5, 5, 5, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.nav__panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.nav__panel li { border-bottom: 1px solid var(--line-soft); }
.nav__panel li a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 17px 0;
  font-size: 1.45rem; font-weight: 600; font-variation-settings: "wdth" 110;
  letter-spacing: -0.012em; text-transform: uppercase; text-decoration: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.nav__panel.is-open li a { opacity: 1; transform: none; }
.nav__panel li:nth-child(1) a { --i: 0; } .nav__panel li:nth-child(2) a { --i: 1; }
.nav__panel li:nth-child(3) a { --i: 2; } .nav__panel li:nth-child(4) a { --i: 3; }
.nav__panel li:nth-child(5) a { --i: 4; }
.nav__panel-mail {
  display: inline-block; margin-top: 24px;
  font-size: 0.95rem; color: var(--p-48); text-decoration: none;
}


/* ==========================================================================
   07  HERO
   ========================================================================== */

.hero {
  --hp: 0; /* 0 → 1 as the hero scrolls away (set in js) */
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--black);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  opacity: calc(1 - var(--hp) * 0.72);
  transform: scale(calc(1 + var(--hp) * 0.05));
  transform-origin: 70% 50%;
  will-change: opacity, transform;
}

/* Cinematic grade: dense on the left, open on the right, sealed at the
   bottom so the hero meets the next section in the same black. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,.74) 24%, rgba(5,5,5,.3) 44%, rgba(5,5,5,0) 60%),
    linear-gradient(0deg, #050505 0%, rgba(5,5,5,.6) 14%, rgba(5,5,5,0) 34%),
    linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 18%);
}

.hero__inner {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; align-items: center;
  padding-block: clamp(24px, 5vh, 64px);
  opacity: calc(1 - var(--hp) * 1.35);
  transform: translateY(calc(var(--hp) * -48px));
}

.hero__copy { width: min(46%, 700px); }

.hero__eyebrow { color: var(--p-66); margin-bottom: clamp(26px, 3.6vh, 44px); }

.hero__title { display: block; }

/* Statement — sets up the idea, quiet */
.hero__statement {
  display: block;
  font-size: var(--fs-statement);
  font-weight: 400;
  font-variation-settings: "wdth" 100;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--p-66);
}

/* Punchline — the moment */
.hero__punch {
  position: relative;
  display: inline-block;
  margin-top: clamp(14px, 2vh, 26px);
  font-size: var(--fs-punch);
  font-weight: 700;
  font-variation-settings: "wdth" 116;
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--paper);
}

/* Hairline from the punchline toward the moving interface */
.hero__tie {
  position: absolute;
  left: calc(100% + clamp(20px, 2.4vw, 40px));
  top: 50%;
  width: clamp(40px, 11vw, 190px);
  height: 1px;
  background: linear-gradient(90deg, var(--p-66), rgba(242,240,235,0));
  transform-origin: left center;
}

.hero__lead { margin-top: clamp(28px, 4vh, 44px); max-width: 38ch; }

.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px clamp(22px, 2.6vw, 40px);
  margin-top: clamp(30px, 4.4vh, 48px);
}

.hero__foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 1.5em;
  padding: 18px 0 clamp(22px, 3.4vh, 36px);
  border-top: 1px solid var(--line);
}
/* Scroll fade sits on the wrapper so it never fights the load sequence */
.hero__foot-wrap { position: relative; z-index: 1; opacity: calc(1 - var(--hp) * 2); }
.hero__foot .label { color: var(--p-34); }


/* ==========================================================================
   08  POSITIONING
   ========================================================================== */

.positioning {
  padding-top: clamp(120px, 17vw, 260px);
  padding-bottom: clamp(130px, 19vw, 300px);
}

.positioning__label { grid-column: 1 / span 3; padding-top: 0.6em; }

.positioning__statement {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.positioning__lead-in {
  grid-column: 4 / span 9;
  display: block;
  font-size: var(--fs-statement);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--p-48);
}

.positioning__conclusion {
  grid-column: 1 / -1;
  display: block;
  margin-top: clamp(40px, 6vw, 96px);
  font-size: var(--fs-conclusion);
  font-weight: 700;
  font-variation-settings: "wdth" 118;
  line-height: 0.84;
  letter-spacing: -0.034em;
  color: var(--paper);
}

.positioning__body {
  grid-column: 8 / span 5;
  margin-top: clamp(56px, 7vw, 110px);
}
.positioning__tick {
  display: block; width: 48px; height: 1px; background: var(--p-48);
  margin-bottom: 26px;
}


/* ==========================================================================
   09  SELECTED WORK — temporary state + future case-study architecture
   ========================================================================== */

/* Compressed on purpose: this section is a hinge, not a destination */
.work { padding-block: clamp(64px, 8vw, 120px) clamp(96px, 11vw, 170px); }

.work__bar {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.work__bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); transform-origin: left center;
}

/* Small layered mark: three planes that separate when revealed, echoing
   the hero video and the signature artwork. */
.work__mark svg { overflow: visible; }
.work__layer {
  stroke: var(--p-48); stroke-width: 1; vector-effect: non-scaling-stroke;
  fill: var(--black);
  transition: transform 1.2s var(--ease-out), stroke .6s var(--ease);
}
.work__layer--1 { stroke: var(--p-22); }
.work__layer--2 { stroke: var(--p-34); }

.work__head { align-items: end; row-gap: 28px; }

.work__title {
  grid-column: 1 / span 9;
  font-size: var(--fs-section);
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  line-height: 0.9;
  letter-spacing: -0.022em;
}

.work__note {
  grid-column: 10 / span 3;
  color: var(--p-48);
  max-width: 30ch;
  padding-bottom: 0.4em;
}

/* --- Future case study (styles ready; nothing rendered yet) ------------ */
.case { margin-top: clamp(72px, 9vw, 140px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.case__meta { display: flex; flex-wrap: wrap; gap: 1em 2.4em; margin-bottom: clamp(24px, 3vw, 44px); }
.case__title { font-size: var(--fs-title); font-weight: 600; font-variation-settings: "wdth" 110; line-height: .95; letter-spacing: -.02em; margin-bottom: .5em; }
.case__figure { grid-column: 1 / -1; }
.case__figure img, .case__figure video { width: 100%; height: auto; }
.case__body { grid-column: 1 / -1; margin-top: 28px; }
.case__services { display: flex; flex-wrap: wrap; gap: .8em 2em; margin: 1.6em 0 .6em; }
.case--wide  .case__figure { grid-column: 1 / -1; }
.case--split .case__figure { grid-column: 1 / span 7; }
.case--split .case__body   { grid-column: 9 / span 4; align-self: end; margin-top: 0; }
.case--stack .case__figure { grid-column: 3 / span 8; }
.case--stack .case__body   { grid-column: 3 / span 8; }
.case__devices { margin-top: clamp(40px, 5vw, 80px); align-items: end; }
.case__desktop { grid-column: 1 / span 9; }
.case__mobile  { grid-column: 10 / span 3; }

/* Before / after — behaviour in js/main.js (initCompare) */
.compare { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.compare img { width: 100%; height: auto; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.compare__after img { width: 100%; height: 100%; object-fit: cover; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--paper); }
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px;
  transform: translate(-50%, -50%); border: 1px solid var(--paper); background: rgba(5,5,5,.45);
}
.compare__label { position: absolute; bottom: 14px; color: var(--paper); }
.compare__label--before { left: 14px; }
.compare__label--after { right: 14px; }


/* ==========================================================================
   10  SERVICES — editorial index on a lifted band
   ========================================================================== */

.services {
  position: relative;
  padding-block: clamp(110px, 13vw, 200px);
  background: linear-gradient(180deg, var(--black) 0%, var(--tone) 16%, var(--tone) 84%, var(--black) 100%);
}

.services__list { border-top: 1px solid var(--line); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding-block: clamp(28px, 3.2vw, 50px);
  border-bottom: 1px solid var(--line);
}
/* Separator that draws across on hover, over the resting hairline */
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--p-66);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .7s var(--ease-out);
}

.service__num {
  grid-column: 1 / span 2;
  font-size: var(--fs-row);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--p-22);
  transition: color .4s var(--ease);
}
.service__name {
  grid-column: 3 / span 6;
  font-size: var(--fs-row);
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--p-86);
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.service__desc {
  grid-column: 9 / span 3;
  color: var(--p-48);
  max-width: 34ch;
  transition: color .4s var(--ease);
}
.service__arrow {
  grid-column: 12;
  justify-self: end;
  color: var(--p-22);
  transition: transform .5s var(--ease), color .4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover::after { transform: scaleX(1); }
  .service:hover .service__num { color: var(--p-66); }
  .service:hover .service__name { transform: translateX(12px); color: var(--paper); }
  .service:hover .service__desc { color: var(--p-86); }
  .service:hover .service__arrow { transform: translate(4px, -4px); color: var(--paper); }
}


/* ==========================================================================
   11  SIGNATURE VISUAL
   The artwork file itself is graded to #050505 with feathered edges, so it
   has no rectangle to hide. It is sized past its column toward the viewport
   edge; the scroll scale (0.96 → 1.02) is applied from js.
   ========================================================================== */

.signature {
  position: relative;
  padding-block: clamp(80px, 9vw, 150px);
  overflow: clip;
}
/* A faint pool of light gives the object a floor to sit on */
.signature::before {
  content: ""; position: absolute; pointer-events: none;
  right: -10%; top: 50%;
  width: min(1200px, 88vw); aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(242,240,235,.05), rgba(242,240,235,0));
}

.signature__grid { align-items: center; }

.signature__copy { grid-column: 1 / span 5; position: relative; z-index: 2; }
.signature__copy .label { margin-bottom: clamp(24px, 3vw, 40px); }
.signature__title {
  font-size: var(--fs-title);
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.signature__stage {
  grid-column: 6 / span 7;
  position: relative; z-index: 1;
  /* Break out past the right gutter and a little into the copy column */
  margin-left: -6vw;
  margin-right: calc(var(--gutter) * -1 - max(0px, (100vw - var(--maxw)) / 2));
}
.signature__visual {
  --s: 1; --y: 0px;
  transform: translate3d(0, var(--y), 0) scale(var(--s));
  transform-origin: 50% 55%;
  will-change: transform;
}
.signature__visual img { width: 100%; height: auto; mix-blend-mode: lighten; }


/* ==========================================================================
   12  PROCESS — one continuous line
   ========================================================================== */

.process { padding-block: clamp(110px, 13vw, 200px) clamp(60px, 7vw, 110px); }

.process__track { position: relative; }

.process__rail {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line);
}
.process__fill {
  position: absolute; inset: 0;
  background: var(--p-66);
  transform: scaleX(0); transform-origin: left center;
}

.process__stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
}

.stage { position: relative; padding-top: clamp(36px, 4vw, 56px); padding-right: 12px; }

.stage__node {
  position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px;
  background: var(--black);
  border: 1px solid var(--p-34);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  transition-delay: calc(var(--i) * 0.32s + 0.15s);
}

.stage__num { display: block; font-size: var(--fs-meta); letter-spacing: .12em; color: var(--p-34); margin-bottom: clamp(26px, 3.6vw, 52px); font-variant-numeric: tabular-nums; }
.stage__name {
  font-size: var(--fs-row);
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 0.8em;
}
.stage__desc { color: var(--p-48); max-width: 28ch; }


/* ==========================================================================
   13  PRODUCTION TIME — typographic plate
   ========================================================================== */

.leadtime {
  padding-block: clamp(40px, 5vw, 80px) clamp(120px, 15vw, 230px);
  background: linear-gradient(180deg, var(--black) 0%, var(--tone) 35%, var(--black) 100%);
}

.leadtime__bar {
  position: relative; padding-bottom: 18px;
  margin-bottom: clamp(20px, 3vw, 44px);
}
.leadtime__bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); transform-origin: left center;
}

.leadtime__grid { align-items: end; row-gap: 28px; }

.leadtime__figure {
  grid-column: 1 / span 8;
  display: flex; align-items: flex-end;
  gap: clamp(18px, 2.4vw, 40px);
}
.leadtime__num {
  font-size: clamp(9rem, 27vw, 25rem);
  font-weight: 300;
  font-variation-settings: "wdth" 100;
  line-height: 0.74;
  letter-spacing: -0.06em;
  color: var(--paper);
  margin-left: -0.05em;
}
.leadtime__unit {
  font-size: var(--fs-title);
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  line-height: 0.9;
  letter-spacing: -0.02em;
  padding-bottom: 0.05em;
}
.leadtime__note {
  grid-column: 9 / span 4;
  color: var(--p-48);
  max-width: 28ch;
}


/* ==========================================================================
   14  ABOUT
   ========================================================================== */

.about {
  position: relative;
  padding-block: clamp(40px, 5vw, 80px) clamp(120px, 14vw, 210px);
  overflow: clip;
}

.about__grid { align-items: center; }

.about__portrait {
  grid-column: 1 / span 6;
  position: relative;
  /* Bleed to the viewport's left edge */
  margin-left: calc(var(--gutter) * -1 - max(0px, (100vw - var(--maxw)) / 2));
}
.about__portrait img {
  width: 100%; height: auto;
  /* Asset is already dissolved into #050505; this only softens the inner
     edge into the copy side on wide screens. */
  -webkit-mask-image: linear-gradient(90deg, #000 78%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg, #000 78%, rgba(0,0,0,0) 100%);
  transform: scale(1.04);
  transition: transform 1.8s var(--ease-out);
}
.about__portrait.is-in img { transform: scale(1); }

.about__copy { grid-column: 7 / span 6; padding-left: clamp(0px, 2vw, 32px); }
.about__copy .label { margin-bottom: clamp(24px, 3vw, 40px); }

.about__title {
  font-size: clamp(2rem, 2.7vw, 2.6rem);
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: clamp(30px, 3.4vw, 48px);
}

.about__meta {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 6px clamp(24px, 3vw, 56px);
  margin-top: clamp(36px, 4vw, 60px);
  padding-top: 18px;
}
.about__meta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line); transform-origin: left center;
}


/* ==========================================================================
   15  FINAL CTA — the conclusion
   ========================================================================== */

.cta {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(110px, 13vw, 200px);
}
/* One restrained light source from below: the page ends somewhere */
.cta::before {
  content: ""; position: absolute; inset: auto 0 0; height: 60%; pointer-events: none;
  background: radial-gradient(60% 70% at 30% 100%, rgba(242,240,235,.035), rgba(242,240,235,0));
}

.cta__label { color: var(--p-66); margin-bottom: clamp(32px, 4.4vw, 60px); }

.cta__title {
  font-size: var(--fs-cta);
  font-weight: 700;
  font-variation-settings: "wdth" 116;
  line-height: 0.84;
  letter-spacing: -0.035em;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.cta__line { display: block; }
.cta__line--quiet { color: var(--p-34); font-weight: 500; }

.cta__actions {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px clamp(24px, 4vw, 48px);
  padding-top: 28px;
}
.cta__actions::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line); transform-origin: left center;
}

.cta__mail {
  position: relative;
  font-size: clamp(1.05rem, 2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--p-66);
  text-decoration: none;
  transition: color .4s var(--ease);
}
.cta__mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.14em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .55s var(--ease);
}
.cta__mail:hover, .cta__mail:focus-visible { color: var(--paper); }
.cta__mail:hover::after, .cta__mail:focus-visible::after { transform: scaleX(1); transform-origin: left center; }


/* ==========================================================================
   16  FOOTER
   ========================================================================== */

.footer { padding-block: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line); }
.footer__grid { row-gap: 36px; align-items: start; }
.footer__id { grid-column: 1 / span 5; }
.footer__name {
  font-size: var(--fs-row); font-weight: 600; font-variation-settings: "wdth" 110;
  line-height: 1; letter-spacing: -0.015em; margin-bottom: 0.9em;
}
.footer__nav { grid-column: 7 / span 3; }
.footer__nav ul { display: grid; gap: 2px; }
.footer__meta { grid-column: 10 / span 3; text-align: right; }
.footer__meta .label + .label { margin-top: 0.7em; }


/* ==========================================================================
   17  MOTION SYSTEM
   One orchestrated load sequence, then grouped, once-only scroll reveals.
   All motion styles are scoped to .js so nothing is hidden without JS.
   ========================================================================== */

/* Load sequence ---------------------------------------------------------- */
.js .nav { opacity: 0; transform: translateY(-8px); }
.js .seq { opacity: 0; transform: translateY(12px); }
.js .mask { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.js .mask > span { display: block; transform: translateY(108%); }
.js .hero__tie { transform: scaleX(0); }

.is-loaded .nav { opacity: 1; transform: none; transition: opacity .7s var(--ease) .02s, transform .7s var(--ease) .02s, background-color .5s var(--ease); }
.is-loaded .seq { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.is-loaded .mask > span { transform: none; transition: transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-loaded .hero__tie { transform: scaleX(1); transition: transform 1.2s var(--ease-out) .92s; }

/* Scroll reveals --------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}

/* Groups: children follow one another, ~70ms apart (js sets --i) */
.js [data-stagger] > * { opacity: 0; transform: translateY(20px); }
.js [data-stagger].is-in > * {
  opacity: 1; transform: none;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
/* The conclusion lands a beat after the lead-in */
.js .positioning__statement.is-in > .positioning__conclusion { transition-delay: .24s; }

/* Hairlines draw left → right */
.js [data-line]::after,
.js [data-line]::before,
.js .process__fill { transform: scaleX(0); }
.js [data-line].is-in::after,
.js [data-line].is-in::before { transform: scaleX(1); transition: transform 1.2s var(--ease-out); }
.js .process__track.is-in .process__fill { transform: scaleX(1); transition: transform 1.5s var(--ease-out) .1s; }
.js .process__track.is-in .stage__node { background: var(--paper); border-color: var(--paper); }

/* Layered mark separates once */
.js .work__bar.is-in .work__layer--2 { transform: translate(12px, -3px); }
.js .work__bar.is-in .work__layer--3 { transform: translate(24px, -6px); }
html:not(.js) .work__layer--2 { transform: translate(12px, -3px); }
html:not(.js) .work__layer--3 { transform: translate(24px, -6px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .nav, .js .seq, .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .js .mask > span { transform: none !important; }
  .hero__video, .hero__inner, .signature__visual, .about__portrait img { transform: none !important; }
  .hero__video, .hero__inner, .hero__foot-wrap { opacity: 1 !important; }
}


/* ==========================================================================
   18  RESPONSIVE
   1440 desktop · 1024 laptop · 768 tablet · 390 mobile
   ========================================================================== */

/* --- Laptop ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero__copy { width: min(52%, 640px); }
  .service__name { grid-column: 3 / span 6; }
  .service__desc { grid-column: 9 / span 3; }

}

/* --- Tablet ------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav__logo { width: 138px; }

  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__panel { display: block; }

  .section-head__label, .section-head__title { grid-column: 1 / -1; }

  /* HERO — video becomes a band; the copy rises into its faded base.
     A 16:9 video cropped into a portrait frame is an unreadable zoom. */
  .hero { padding-top: 0; min-height: 100svh; }
  .hero__media { position: relative; inset: auto; height: 50svh; min-height: 280px; flex: none; }
  .hero__video { object-position: 64% 50%; transform-origin: 60% 50%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(5,5,5,.85) 0%, rgba(5,5,5,.1) 22%, rgba(5,5,5,0) 44%),
      linear-gradient(180deg, rgba(5,5,5,0) 48%, rgba(5,5,5,.78) 80%, #050505 100%);
  }
  .hero__inner { flex: 1; align-items: flex-start; margin-top: -9svh; padding-block: 0 28px; }
  .hero__copy { width: 100%; }
  .hero__tie { display: none; }
  .hero__lead { max-width: 44ch; }

  .positioning__label { grid-column: 1 / -1; margin-bottom: 36px; }
  .positioning__lead-in { grid-column: 1 / -1; }
  .positioning__body { grid-column: 3 / -1; }

  .work__title { grid-column: 1 / -1; }
  .work__note { grid-column: 1 / span 8; }

  .service { row-gap: 12px; }
  .service__num { grid-column: 1 / span 2; }
  .service__name { grid-column: 3 / span 10; }
  .service__desc { grid-column: 3 / span 9; }
  .service__arrow { display: none; }

  .signature__copy { grid-column: 1 / -1; margin-bottom: clamp(24px, 4vw, 48px); }
  .signature__stage { grid-column: 1 / -1; margin-left: -8vw; margin-right: -14vw; }

  /* Process: the same line, running vertically */
  .process__rail { left: 3px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .process__fill { transform-origin: center top; }
  .js .process__fill { transform: scaleY(0); }
  .js .process__track.is-in .process__fill { transform: scaleY(1); }
  .process__stages { grid-template-columns: 1fr; row-gap: 0; }
  .stage { padding: 0 0 36px 34px; }
  .stage:last-child { padding-bottom: 0; }
  .stage__node { top: 5px; left: 0; }
  .stage__num { margin-bottom: 10px; }
  .stage__desc { max-width: 46ch; }

  .leadtime__figure { grid-column: 1 / -1; }
  .leadtime__note { grid-column: 1 / span 8; }

  .about__portrait { grid-column: 1 / span 9; margin-left: calc(var(--gutter) * -1); }
  .about__portrait img {
    -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,0) 100%);
  }
  .about__copy { grid-column: 1 / -1; padding-left: 0; margin-top: -14vw; position: relative; z-index: 1; }

  .footer__id { grid-column: 1 / -1; }
  .footer__nav { grid-column: 1 / span 6; }
  .footer__meta { grid-column: 7 / span 6; }
}

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 620px) {
  .br-m { display: inline; }
  .br-d { display: none; }

  .hero__media { height: 46svh; min-height: 250px; }
  .hero__video { object-position: 66% 50%; }
  .hero__inner { margin-top: -8svh; }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__lead { max-width: none; margin-top: 22px; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 26px; }
  .hero__foot { flex-direction: column; gap: 4px; }
  .hero__scroll { display: none; }

  .positioning__body { grid-column: 1 / -1; }
  .work__note { grid-column: 1 / -1; }

  .work__bar { margin-bottom: 36px; }

  /* Services: number and name share a line, description beneath */
  .service { padding-block: 24px; }
  .service__num { grid-column: 1 / span 2; font-size: 0.95rem; padding-top: 0.2em; }
  .service__name { grid-column: 3 / -1; }
  .service__desc { grid-column: 3 / -1; }

  /* Artwork: a deliberate, larger crop rather than a thumbnail */
  .signature__stage { margin-left: -16vw; margin-right: -22vw; }


  .leadtime__num { font-size: clamp(8rem, 46vw, 12rem); }
  .leadtime__unit { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
  .leadtime__note { grid-column: 1 / -1; }

  .about__portrait { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); }
  .about__copy { margin-top: -22vw; }

  /* Statements get their own mobile line breaks, so they can stay large */
  .positioning__conclusion { font-size: clamp(2.6rem, 15vw, 4.4rem); }
  :root { --fs-cta: clamp(2.6rem, 18.5vw, 5rem); }

  .cta { min-height: 88svh; }
  .cta__actions { flex-direction: column; align-items: flex-start; }

  .footer__nav, .footer__meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 370px) {
  :root { --fs-punch: 2.55rem; --fs-cta: 3.6rem; }
  .leadtime__num { font-size: 7rem; }
}

/* Portfolio case studies */
.case__body--intro { max-width: 780px; margin: 0 0 clamp(36px,5vw,68px); }
.compare-set { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2vw,32px); }
.compare-set .case__figure { min-width: 0; }
.compare-set .compare { aspect-ratio: 16 / 9; background: #111; border: 1px solid var(--line); }
.compare-set .compare > img,
.compare-set .compare__after img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.compare__label { padding: 7px 10px; background: rgba(5,5,5,.68); backdrop-filter: blur(6px); }
@media (max-width: 760px) {
  .compare-set { grid-template-columns: 1fr; }
  .case__body--intro { margin-bottom: 28px; }
}
