/* ============================================================
   suz studio
   Palette sampled from the studio's own photographs.
   One voice in type (Archivo Light), one voice in the mark.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* grounds */
  --paper:      #F5F4F1;  /* the ground */
  --void:       #171816;  /* the tennis ball's own black, so it bleeds seamlessly */
  /* ink on paper */
  --ink:        #2A1E13;
  --ink-soft:   #665D50;   /* 5.86:1 on paper */
  --ink-faint:  #746C62;   /* 4.70:1 on paper */
  --rule:       #D5D0C6;
  /* ink on void */
  --v-ink:      #F5F4F1;
  --v-soft:     #9A988F;
  --v-faint:    #8A887F;   /* 5.01:1 on void */
  /* brand */
  --brown:      #472704;  /* the mark */
  --acid:       #DCE15D;  /* tennis ball. used on void only, and rarely */
  /* fur swatches */
  --fur-dark:   #281F19;
  --fur-olive:  #63532E;
  --fur-blue:   #A2B4C7;
  --fur-ginger: #8D7154;

  --gutter: clamp(20px, 4.6vw, 64px);
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur:    820ms;

  --fs-display:   clamp(40px, 6.6vw, 84px);
  --fs-statement: clamp(30px, 4.3vw, 56px);
  --fs-body:      clamp(15px, 1.05vw, 17px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

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

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}
.ch--void :focus-visible { outline-color: var(--acid); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--brown); color: var(--paper);
  padding: 12px 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.skip:focus { left: 0; }

/* ---------- shared type ---------- */

.label {
  font-size: clamp(10px, 0.78vw, 11px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label--index { color: var(--brown); }
.ch--void .label--index { color: var(--acid); }
.label--muted { color: var(--ink-faint); }
.ch--void .label--muted { color: var(--v-faint); }

.statement {
  font-size: var(--fs-statement);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.024em;
  margin: 0;
  text-wrap: pretty;
}
.statement--display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em; }

.prose {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}
.ch--void .prose { color: var(--v-soft); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- chapters: hard cuts, no transitions ---------- */

.ch { position: relative; padding: clamp(88px, 11vw, 156px) var(--gutter); }
.ch--paper { background: var(--paper); color: var(--ink); }
.ch--void  { background: var(--void);  color: var(--v-ink); }

/* paper chapters carry a whisper of grain so they read as stock, not screen */
.ch--paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ch > * { position: relative; z-index: 1; }

.ch__head { display: flex; gap: 14px; align-items: baseline; margin-bottom: 26px; }

/* ---------- the mark ---------- */

.mark {
  display: block;
  width: clamp(92px, 8vw, 118px);
  aspect-ratio: 592 / 200;
  background-color: var(--brown);
  -webkit-mask: url('../assets/img/logo-mask.png') no-repeat center / contain;
          mask: url('../assets/img/logo-mask.png') no-repeat center / contain;
}
.ch--void .mark, .site-foot .mark { background-color: var(--paper); }

/* ---------- chapter 00 — hero ---------- */

.hero {
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(0, 48%);
  overflow: hidden;
}
.hero__panel {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 3.4vw, 40px) 0 clamp(28px, 3vw, 38px) var(--gutter);
  gap: 40px;
}
.hero__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-right: clamp(28px, 3.6vw, 56px);
}
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a { color: var(--ink-soft); transition: color 260ms var(--ease); }
.nav a:hover { color: var(--brown); }

.hero__body { display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 30px); padding-bottom: clamp(0px, 3vw, 42px); padding-right: clamp(28px, 3.6vw, 56px); }
.hero__body .statement { max-width: 11em; }
.hero__body .prose { max-width: 40ch; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-right: clamp(28px, 3.6vw, 56px); }

.hero__figure { position: relative; overflow: hidden; }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 46%; will-change: transform; }

/* ---------- chapter 01 — the protagonist ---------- */

.protag { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: end; }
.protag__text { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 26px; }
.protag__a { grid-column: 5 / span 4; }
.protag__b { grid-column: 9 / span 4; margin-bottom: clamp(40px, 7vw, 96px); }
.protag figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.protag figcaption { color: var(--v-faint); }

/* ---------- chapter 02 — colour exploration ---------- */

.tone { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.tone__text { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 24px; }
.tone__grid { grid-column: 6 / span 7; }
.swatches { display: flex; gap: 10px; margin-top: 6px; }
.swatches span { width: 46px; height: 46px; flex: 0 0 auto; }

/* ---------- chapter 03 — motion study ---------- */

.motion { padding-block: 0; min-height: min(96vh, 900px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; overflow: hidden; }
.motion__text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 28px; padding-block: clamp(88px, 11vw, 156px); }
.motion__rule { width: 64px; height: 1px; background: var(--acid); border: 0; margin: 0; }
.motion .motion__ball { position: absolute; right: -4%; bottom: -6%; width: min(52%, 720px); }
/* The photograph's own black is the page's --void, but JPEG edges still leave a
   faint seam. Feathering the two visible edges lets the ball emerge from the
   dark rather than sit in a rectangle. */
.motion .motion__ball img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%),
                      linear-gradient(to bottom, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 18%),
                      linear-gradient(to bottom, transparent 0, #000 14%);
          mask-composite: intersect;
}

.motion__still { grid-column: 1 / span 3; margin-top: 8px; }
.motion__still img { width: 100%; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--void); color: var(--v-faint);
  padding: clamp(26px, 3vw, 38px) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid #2C2D2A;
}
.site-foot p { margin: 0; }

/* ---------- chapter 04 — what we do ---------- */

.services__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: clamp(52px, 7vw, 92px); }
.svc { list-style: none; margin: 0 0 clamp(52px, 7vw, 92px); padding: 0; }
.svc__row {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(16px, 3vw, 48px); align-items: start;
  padding: clamp(26px, 3vw, 40px) 0;
}
.svc__row--last { padding: 0; min-height: 1px; }
.svc__n { padding-top: 0.55em; }
.svc__t { margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.svc__d { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.svc__close { max-width: 15em; }

/* hairlines draw themselves in rather than appearing */
hr.draw { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); border: 0; margin: 0; }
.ch--void hr.draw { background: #2C2D2A; }
.js hr.draw { transform: scaleX(0); transform-origin: left; transition: transform 1300ms var(--ease); }
.js hr.draw.is-in { transform: none; }

/* ---------- chapter 05 — who this is for ---------- */

.who__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: clamp(52px, 7vw, 92px); }
.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 4vw, 64px); }
.who__col { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.who__t { margin: 0; font-size: clamp(19px, 1.8vw, 25px); font-weight: 300; line-height: 1.2; letter-spacing: -0.018em; max-width: 18ch; }

/* ---------- chapter 06 — casting ---------- */

.casting { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 2.6vw, 32px); }
.casting .statement--display { max-width: 12em; }
.casting__p { max-width: 46ch; }

/* ---------- chapter 07 — contact ---------- */

.contact-ch__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: clamp(52px, 7vw, 92px); }
.contact-ch__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 4vw, 64px); }

.contact { display: flex; flex-direction: column; align-items: flex-start; }
.contact .label { margin: 0 0 16px; }
.contact__line {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.4vw, 32px);
  font-weight: 300; line-height: 1.35; letter-spacing: -0.015em;
}
.contact__line:last-child { margin-bottom: 0; }
.contact__line a { border-bottom: 1px solid transparent; transition: border-color 300ms var(--ease), color 300ms var(--ease); }
.contact__line a:hover { border-bottom-color: var(--acid); color: var(--acid); }

/* ---------- 404 ---------- */
/* A page of our own, so a mistyped URL doesn't land on the host's branded one. */

.notfound {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: clamp(20px, 2.4vw, 30px);
}
.notfound .mark { margin-bottom: clamp(16px, 3vw, 40px); }
.notfound .statement { max-width: 14em; }

/* ---------- cues ---------- */

.cue {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 4px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 5px; border-bottom: 1px solid currentColor;
}
.cue::after { content: "\2192"; letter-spacing: 0; transition: transform 340ms var(--ease); }
.cue:hover::after { transform: translateX(5px); }
.ch--void .cue { color: var(--acid); }
.cue--lg { font-size: 13px; margin-top: clamp(20px, 2.6vw, 36px); }

/* ---------- the chapter marker ---------- */
/* Fixed, and blended with difference so it inverts itself over every ground
   without a single line of JS deciding what colour it should be. */

.marker {
  position: fixed; right: var(--gutter); bottom: 30px; z-index: 40;
  display: none; align-items: center; gap: 13px;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
}
.marker__bar { position: relative; display: block; width: 54px; height: 1px; background: currentColor; opacity: 0.3; }
.marker__bar i { position: absolute; inset: 0; background: currentColor; transform: scaleX(var(--progress, 0)); transform-origin: left; }
.marker__total { opacity: 0.45; }
.marker { transition: opacity 420ms var(--ease); }
.marker.is-hidden { opacity: 0; }
@media (min-width: 901px) { .marker { display: flex; } }

/* ---------- parallax ---------- */

.js [data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* ---------- reveals ---------- */

/* Statements rise line by line from behind a mask. The padding/negative-margin
   pair gives descenders room inside each clipped line box. */
.js .split .ln { display: block; overflow: hidden; padding: 0.09em 0 0.17em; margin: -0.09em 0 -0.17em; }
.js .split .ln__i { display: block; transform: translateY(112%); transition: transform 1050ms var(--ease); }
.js .split.is-in .ln__i { transform: none; }

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* Images are revealed by a curtain rising, not a fading card. The veil does
   the moving; the image itself is never clipped or transformed away, so it
   lazy-loads and reports its box to the observer like any other element. */
.wipe { position: relative; overflow: hidden; --veil: var(--paper); }
.ch--void .wipe { --veil: var(--void); }
.wipe__veil { display: none; }
.js .wipe__veil {
  display: block; position: absolute; inset: 0; background: var(--veil);
  transform: translateY(0); will-change: transform;
  transition: transform 1100ms var(--ease);
}
.js .wipe.is-in .wipe__veil { transform: translateY(-100.5%); }
.js .wipe img { width: 100%; transform: scale(1.05); transition: transform 1500ms var(--ease); }
.js .wipe.is-in img { transform: none; }

.js .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__panel { padding: clamp(20px, 5vw, 32px) var(--gutter) clamp(32px, 6vw, 44px); gap: clamp(36px, 9vw, 56px); }
  .hero__bar, .hero__foot { padding-right: 0; }
  /* Four nav items don't fit beside the mark on a phone, and the hero's
     overflow:hidden was quietly clipping "contact" rather than showing it.
     Give the nav its own row, and links a real 44px tap target. */
  .hero__bar { flex-wrap: wrap; row-gap: 4px; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; }
  .nav a { padding-block: 15px; }
  .hero__body { max-width: 100%; padding-bottom: 0; }
  .hero__figure { aspect-ratio: 4 / 5; }
  .hero__figure img { object-position: 52% 42%; }

  .protag__text, .protag__a, .protag__b, .tone__text, .tone__grid,
  .motion__text, .motion__still, .motion .motion__ball { grid-column: 1 / -1; }
  .protag__a { max-width: 74%; }
  .protag__b { margin-bottom: 0; margin-left: auto; max-width: 74%; }
  .motion { min-height: 0; }

  .svc__row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; }
  .svc__d { grid-column: 2; }
  .svc__n { padding-top: 0.35em; }
  .who__grid, .contact-ch__grid { grid-template-columns: 1fr; }
  .who__t { max-width: 22ch; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* matches the specificity of the desktop rule, which .wipe forced upward */
  .motion .motion__ball { position: static; width: 100%; margin-top: 8px; }
  /* stacked, the ball is an ordinary image again — no edge feathering */
  .motion .motion__ball img { -webkit-mask-image: none; mask-image: none; }
  .motion__text { padding-bottom: clamp(40px, 8vw, 64px); }
}

@media (max-width: 560px) {
  .swatches span { width: 38px; height: 38px; }
  .nav { gap: 16px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .stagger > *, .wipe img, .split .ln__i, hr.draw, [data-parallax] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js .wipe__veil { display: none; }
  .marker__bar i { transform: scaleX(var(--progress, 0)) !important; }
}
