/* ==========================================================================
   Tokens — sizes are calibrated on a 1914px wide viewport (1vw = 19.14px)
   ========================================================================== */
:root {
  --ink: #131313;
  --ink-2: #0e0e0c;
  --ink-3: #171715;
  --cream: #e8e4db;
  --paper: #ece8e1;
  --stone: #8e8a82;
  --mute: #86847e;
  --mute-dark: #6c6963;
  --line-d: rgba(236, 232, 225, 0.1);
  --line-l: rgba(19, 19, 19, 0.16);

  --sans: "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --pad: max(20px, 3.15vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
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; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
em, i { font-family: var(--serif); font-style: italic; font-weight: 400; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--paper); color: var(--ink); }

.micro {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.micro b, .work-meta b { font-weight: 400; margin-right: 1.15em; }

.mask { display: block; clip-path: inset(0 -0.6em); padding-bottom: 0.06em; margin-bottom: -0.06em; }
/* clip-path (top/bottom only) instead of overflow:hidden: lines still slide up out
   of view, but italic overhangs and the last letter of tightly spaced titles stay whole */
.mask > .line { display: block; will-change: transform; }

.label-serif {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--mute-dark);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 var(--pad);
  color: var(--paper);
  transition: color 0.45s var(--ease);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header[data-theme="light"] { color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.has-sequence .logo-mark { opacity: 0; transition: opacity 0.35s var(--ease); }
.has-sequence .wordmark { clip-path: inset(0 100% 0 0); transform: translateX(-8px); transition: clip-path 0.8s var(--ease), transform 0.8s var(--ease); }
.has-sequence .header.is-docked .logo-mark { opacity: 1; }
.has-sequence .header.is-docked .wordmark { clip-path: inset(0 -4px 0 0); transform: none; transition-delay: 0.08s; }
.logo-mark { width: 24px; height: 22px; }
.wordmark { font-weight: 500; font-size: 15.5px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.wordmark i { font-size: 1.04em; letter-spacing: 0; margin-left: 0.2em; }

.nav { position: absolute; left: 40.55vw; top: 50%; transform: translateY(-50%); display: flex; gap: 32px; }
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.08em; }
.lang span { opacity: 0.35; }
.lang button {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  opacity: 0.45;
  position: relative;
  transition: opacity 0.3s;
}
.lang button:hover { opacity: 0.8; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 1px;
  background: currentColor;
}
.pill-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.pill-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.pill-btn:hover { color: var(--ink); border-color: var(--paper); }
.pill-btn:hover::before { transform: translateY(0); }
.header[data-theme="light"] .pill-btn::before { background: var(--ink); }
.header[data-theme="light"] .pill-btn:hover { color: var(--paper); border-color: var(--ink); }


/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.cursor-dot, .cursor-ring, .cursor-label { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  mix-blend-mode: difference;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), border-color 0.3s;
}
.cursor.is-active .cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-color: #fff; }
.cursor-label {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 18px 0 17px;
  border-radius: 999px;
  background: #161615;
  color: #e9e6e0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  scale: 0.6;
  transform-origin: 0 0;
  transition: opacity 0.3s var(--ease), scale 0.45s var(--ease);
}
.cursor-icon { font-size: 13px; letter-spacing: 0; }
.cursor.has-label .cursor-label { opacity: 1; scale: 1; }
.cursor.is-sm .cursor-label { height: 25px; padding: 0 11px; gap: 9px; font-size: 8.5px; }
.cursor.is-sm .cursor-icon { font-size: 10px; }
.cursor.is-down .cursor-ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
@media (hover: none) { .cursor { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}
.hero-gl { position: absolute; inset: 0; z-index: 3; touch-action: pan-y; }
.seq-tiles { position: absolute; inset: 0; z-index: 2; pointer-events: none; visibility: hidden; }
.seq-tiles canvas { display: block; width: 100%; height: 100%; }
/* copy is clipped at the header line so it slides away underneath it */
.hero-copy { position: absolute; inset: 0; z-index: 4; pointer-events: none; clip-path: inset(76px 0 0 0); }
.hero-copy-inner { position: absolute; inset: 0; will-change: transform; }
.hero-copy .hero-side { pointer-events: auto; }
.hero-gl canvas { display: block; width: 100%; height: 100%; }
.hero.is-dragging { cursor: grabbing; }

.hero-title {
  position: absolute;
  z-index: 1;
  left: var(--pad);
  top: 25.1vh;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}
.hero-title .mask { padding: 0.04em 0 0.08em; margin: -0.04em 0 -0.08em; }
.hero-title .line { white-space: nowrap; } /* the name never wraps, even while wider glyphs scramble through it */
.hero-title .hl {
  /* optical: pulls the B's stem back to where the italic E below starts */
  margin-left: -0.107em;
  position: relative;
  pointer-events: auto;
  font-size: 12.1vw;
  letter-spacing: -0.035em;
  line-height: 0.86;
  color: var(--paper);
  padding: 0.05em 0.01em 0.035em 0;
}
.hero-title em {
  font-size: 9.95vw;
  letter-spacing: -0.012em;
  line-height: 1.02;
  color: var(--stone);
  margin-top: 0.2em;
  padding-right: 0.02em;
}

.hero-side {
  position: absolute;
  z-index: 1;
  left: 70.8vw;
  right: var(--pad);
  top: 47.1vh;
}
/* services writing themselves in and out above the intro (scramble.js) */
.hero-svc {
  height: calc(3 * 1.45em);
  margin: 0 0 26px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
  color: var(--paper);
}
.scr-track { will-change: transform; }
.scr-line { height: 1.45em; white-space: nowrap; }
.hero-intro {
  margin: 0 0 20px;
  min-height: 8.1em;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--mute);
}

.marquee {
  position: absolute;
  z-index: 1;
  will-change: transform, opacity;
  left: 0; right: 0; bottom: 0;
  height: 15vh;
  border-top: 1px solid var(--line-d);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee-track { display: flex; white-space: nowrap; gap: 5.58vw; padding-top: 0.6vh; }
.marquee-track span {
  font-size: 5.02vw;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #2b2a28;
}

/* ==========================================================================
   Intro sequence: showcase card → reel
   ========================================================================== */
.sc-card {
  position: absolute;
  left: 0; top: 0;
  z-index: 5;
  width: 70vw;
  height: 38.9vw;
  background: #050505;
  overflow: hidden;
  visibility: hidden;
  will-change: transform, width, height;
}
.sc-slides { position: absolute; inset: 0; will-change: clip-path; }
.sc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 100%;
}
.sc-slide:not(:first-child) { clip-path: inset(100% 0 0 0); }
.sc-reel { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.reel-gl { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; }
.reel-gl canvas { display: block; width: 100%; height: 100%; }
.sc-reel.is-ready { cursor: pointer; }
/* reel preview that follows the pointer (centred on it) once the reel has formed */
.reel-media {
  --rw: min(380px, 24vw);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: var(--rw);
  aspect-ratio: 16 / 9;
  margin: calc(var(--rw) * -0.28125) 0 0 calc(var(--rw) * -0.5);
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0c;
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(236, 232, 225, 0.08);
  pointer-events: none;
  opacity: 0; /* shown/scaled by GSAP so it shares one transform with the follow motion */
  will-change: transform, opacity;
}
.rm-frames, .rm-frames > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.rm-frames > * { object-fit: cover; }
.rm-frames img { opacity: 0; transform: scale(1.1); transition: opacity 0.7s var(--ease), transform 2.6s linear; }
.rm-frames img.is-cur { opacity: 1; transform: scale(1); }
.rm-tag {
  position: absolute;
  left: 12px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.rm-tag i { width: 0; height: 0; border-style: solid; border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent #fff; }
.rm-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.18); }
.rm-bar span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
/* no hover (touch): the preview simply sits where the button used to be */
@media (hover: none) {
  .reel-media { left: 50%; top: 64%; --rw: min(300px, 72vw); }
}
.reel-sr {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  translate: -50% 0;
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(236, 232, 225, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: var(--paper);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reel-sr:focus-visible { opacity: 1; pointer-events: auto; }

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.reel-modal.is-open { opacity: 1; }
.reel-stage { position: absolute; inset: 0; overflow: hidden; }
.reel-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s var(--ease), transform 3.4s linear;
}
.reel-stage img.is-on { opacity: 1; transform: scale(1); }
.reel-close { position: absolute; top: 18px; right: var(--pad); color: var(--paper); background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); }
.reel-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; height: 1px; background: rgba(255, 255, 255, 0.2); }
.reel-bar span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   Studio — statement with pixel-dissolve reveal + "trusted by" strip
   ========================================================================== */
:root { --accent: #d4f27a; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.studio {
  position: relative;
  background: var(--ink);
  padding: 24vh var(--pad) 16vh;
  overflow: hidden;
}
.statement-wrap { position: relative; padding-right: 5.5vw; }
.statement {
  margin: 0;
  text-indent: 14.9vw;
  font-size: 4.35vw;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #4d4b47;
}
.statement .sw { color: inherit; }
.statement.is-gl { color: transparent; }
.statement.is-gl::selection, .statement.is-gl .sw::selection { color: transparent; background: rgba(212, 242, 122, 0.25); }
.statement-gl { position: absolute; left: 0; top: 0; pointer-events: none; }

.studio-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 9.5vh;
  padding-right: 5.5vw;
}
.studio-note {
  margin: 0;
  max-width: 34em;
  font-family: var(--mono);
  font-size: max(12.5px, 1.04vw);
  line-height: 1.5;
  color: #b4b1ab;
}
.talk-link {
  position: relative;
  font-family: var(--mono);
  font-size: max(12.5px, 1.04vw);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.talk-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.talk-link:hover::after { transform: scaleX(0); }
.talk-link:hover { color: var(--accent); }

.logos {
  position: relative;
  margin: 21vh calc(var(--pad) * -1) 0;
  padding: 3vw 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.logos.is-grabbing { cursor: grabbing; }
.logos-label { display: none; }
.logos-track { display: flex; gap: 2.9vw; width: max-content; will-change: transform; }
.logo-card {
  flex: none;
  width: 14.4vw;
  height: 15.4vw;
  min-width: 150px;
  min-height: 175px;
  display: grid;
  place-items: center;
  background: #f4f1ea;
  border: 1px solid rgba(19, 19, 19, 0.06);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  color: #131313;
  transform-origin: 50% 50%;
  will-change: transform;
}
/* client logos: full colour on paper, sized by --w (share of the card width) */
.lg-img {
  width: calc(var(--w) * 100%);
  max-height: 52%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: transform 0.6s var(--ease);
}
.logo-card:hover .lg-img { transform: scale(1.05); }
.lg { display: inline-flex; align-items: center; gap: 0.35em; font-size: max(17px, 1.45vw); line-height: 1; white-space: nowrap; }
.lg svg { width: 0.95em; height: 0.95em; fill: currentColor; flex: none; }
.lg-serif { font-family: var(--serif); font-style: italic; font-size: max(22px, 1.95vw); letter-spacing: -0.01em; }
.lg-spaced { font-weight: 300; letter-spacing: 0.38em; font-size: max(13px, 1.02vw); }
.lg-arrow { font-weight: 600; letter-spacing: -0.04em; }
.lg-arrow svg { color: #8fb4ff; }
.lg-dot { font-weight: 800; letter-spacing: -0.06em; font-size: max(22px, 1.9vw); }
.lg-dot b { width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--accent); margin-left: 0.04em; align-self: flex-end; margin-bottom: 0.1em; }
.lg-ring { font-family: var(--serif); font-size: max(20px, 1.75vw); }
.lg-ring i { width: 0.6em; height: 0.6em; border-radius: 50%; border: 2px solid #ff7a45; }
.lg-heavy { font-weight: 800; letter-spacing: -0.05em; }
.lg-heavy em { font-family: var(--serif); font-weight: 400; color: #e9c46a; }
.lg-sun { font-weight: 400; letter-spacing: -0.02em; }
.lg-sun svg { color: #f4c542; }
.lg-mono { font-family: var(--mono); font-size: max(12px, 0.95vw); letter-spacing: 0.22em; }
.lg-didone { font-family: var(--serif); font-weight: 600; font-size: max(22px, 1.95vw); letter-spacing: 0.04em; text-transform: uppercase; }
.lg-cloud { font-weight: 600; letter-spacing: -0.03em; }
.lg-cloud svg { width: 1.3em; color: #7fb2ff; }

/* light cursor tag used over the logo strip */
.cursor.is-light .cursor-label { margin: 6px 0 0 26px; background: #fff; color: #111; border-color: #fff; border-radius: 0; box-shadow: none; height: 42px; padding: 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.cursor.is-light .cursor-icon { display: none; }

/* ==========================================================================
   Work — stacked project list (window widens near the top of the viewport)
   ========================================================================== */
.work { position: relative; background: #0b0b0c; color: var(--paper); }
.work-head { position: relative; padding: 18vh var(--pad) 14vh; }
.work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #8a8781;
}
.work-title { margin: 9vh 0 0 23.5vw; display: flex; flex-direction: column; }
.work-title .mask:first-child .line {
  font-size: 10.15vw;
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.92;
}
.work-title .mask-2 { margin-left: 8.8vw; margin-top: -0.6vw; }
.work-title em { font-weight: 500; font-size: 7.55vw; letter-spacing: -0.025em; line-height: 1.04; color: var(--stone); }
.work-intro { margin: 8vh 0 0 50.6vw; padding-top: 18px; border-top: 1px solid var(--line-d); }
.work-intro p { margin: 0; max-width: 360px; font-size: 17.5px; line-height: 1.55; color: var(--mute); }

.work-list { position: relative; }
.wp { position: relative; height: var(--ph, 72vh); }
.wp-stage {
  position: absolute;
  left: 0; top: 0;
  width: 60vw;
  height: 100%;
  overflow: hidden;
  display: block;
  background: #151513;
  will-change: clip-path;
}
.wp-content { position: absolute; inset: 0; will-change: transform; }
.wp-env { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wp-screen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 37.6vw;
  height: calc(var(--ph, 72vh) * 0.69);
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 1.2s var(--ease);
}
.wp-view { position: absolute; inset: 0; overflow: hidden; }
.wp-page { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; }
.wp-stage:hover .wp-env { transform: scale(1.04); }
.wp-stage:hover .wp-screen { transform: translate(-50%, -50%) scale(1.015); }

.wp-info {
  position: absolute;
  left: calc(60vw + 1vw);
  top: 3vh;
  will-change: transform;
}
.wp-title {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35em;
  margin: 0;
  font-size: 3.15vw;
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.wp-name { position: relative; }
.wp-name::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.12em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.wp:hover .wp-name::after { transform: scaleX(1); transform-origin: left; }
.wp-title sup { font-size: max(9px, 0.55vw); font-weight: 400; letter-spacing: 0.04em; color: #7a7873; margin-top: 0.1em; }
.wp-meta {
  margin: 2.8vh 0 0;
  font-size: max(11px, 0.74vw);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8a8781;
}

.work-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 var(--pad);
  padding: 14vh 0 50px;
  border-bottom: 1px solid var(--line-d);
}
.work-foot .micro { font-size: 10px; color: #77736c; }
.all-link {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-bottom: 9px;
  border-bottom: 2px solid currentColor;
  line-height: 1;
}
.all-link small { font-size: 0.55em; vertical-align: 0.3em; margin-left: 4px; letter-spacing: 0; font-weight: 400; }

/* ==========================================================================
   Method
   ========================================================================== */
.method {
  position: relative;
  background: var(--ink-2);
  padding: 105px var(--pad) 0;
}
.method-head { display: flex; justify-content: space-between; align-items: flex-start; }
.method-head .micro { font-size: 11.5px; padding-top: 3px; }
.method-desc { margin: 0; width: 22.3vw; font-size: 17px; line-height: 1.6; color: var(--mute-dark); }

.method-title {
  margin: 16.6vh 0 0;
  display: flex;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1;
}
.method-title .mask-the { min-width: 12.6vw; padding-right: 1.6vw; flex: none; }
.method-title em { font-size: 7.6vw; color: var(--stone); letter-spacing: -0.02em; line-height: 1; padding-top: 0.3em; }
.method-title .mask:last-child .line { font-size: 13.5vw; letter-spacing: -0.012em; line-height: 0.92; padding-top: 0.12em; }

.method-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20.8vh;
  padding-bottom: 24px;
}
.method-tag { margin: 0; font-size: 20px; color: var(--mute-dark); }
.method-tag em { color: var(--paper); }
.scroll-hint { display: inline-flex; align-items: center; gap: 14px; color: var(--mute-dark); }
.scroll-hint .micro { font-size: 9.5px; }
.scroll-hint .circle-btn { color: var(--paper); }

.method-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
}
.method-tabs a {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding-left: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-left: 1px solid var(--line-d);
  padding-left: 16px;
  transition: background 0.4s;
}
.method-tabs a:first-child { border-left: 0; padding-left: 0; }
.method-tabs a:hover { background: rgba(255, 255, 255, 0.03); }
.method-tabs .n { font-size: 9px; color: #55534f; }

/* stacked steps: the intro sticks, then each step slides up over the one
   before it, tilted (pivot top-left) and straightening as it lands. Each step
   holds for --dwell before the next one arrives. */
.stack { position: relative; background: var(--ink-2); }
.stack > .method { position: sticky; top: 0; z-index: 0; }
.panel {
  --bg: #191917;
  position: sticky;
  top: 0;
  height: calc(100vh + var(--dwell, 45vh));
  min-height: 600px;
  pointer-events: none;
}
.panel-inner {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg);
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: auto;
  /* first shadow extends the sheet past the right edge so the tilted corner never shows a gap */
  box-shadow: 14vw 0 0 0 var(--bg), 0 -26px 60px rgba(0, 0, 0, 0.38);
}
.panel-2 { --bg: #0f0f0e; }
.panel-3 { --bg: var(--cream); }
.panel-3 .panel-inner { color: var(--ink); }
.panel-4 { --bg: #191917; }
.panel-5 { --bg: #121211; }

.panel-progress { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-d); }
.panel-progress span { position: absolute; inset: 0; background: rgba(236, 232, 225, 0.75); transform: scaleX(var(--p)); transform-origin: left; }
.panel-3 .panel-progress { background: var(--line-l); }
.panel-3 .panel-progress span { background: rgba(19, 19, 19, 0.7); }

.panel-num { position: absolute; z-index: 2; top: 9.6vh; left: var(--pad); }
.panel-num span { display: block; font-size: 78px; font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.panel-num small { display: block; margin-top: 22px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #6c6a65; }
.panel-rule { position: absolute; top: 9.6vh; bottom: 0; left: 14.45vw; width: 1px; background: var(--line-d); }
.panel-3 .panel-rule { background: var(--line-l); }
.is-right .panel-num { left: auto; right: var(--pad); text-align: right; }
.is-right .panel-rule { display: none; }

.panel-body { position: absolute; z-index: 2; left: 19.1vw; top: 50%; transform: translateY(-38%); max-width: 36vw; will-change: transform; }
.panel-body h3 { margin: 0 0 22px; font-weight: 500; font-size: 7.1vw; letter-spacing: -0.075em; line-height: 0.9; }
.panel-body p { margin: 0; max-width: 410px; font-size: 18px; line-height: 1.6; color: #8a8781; }
.panel-3 .panel-body p { color: #5f5c56; }
.tags { display: block; margin-top: 50px; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #4a4945; }
.panel-3 .tags { color: #a5a29b; }

/* step illustrations (assets/images), standing on the bottom edge */
.panel-media {
  position: absolute;
  z-index: 1;
  right: 2.5vw;
  bottom: 0;
  width: 45vw;
  height: 76vh;
  pointer-events: none;
  will-change: transform;
}
.panel-media.is-tall { width: 38vw; height: 86vh; right: 4vw; }
.panel-media::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -12%;
  height: 75%;
  background: radial-gradient(ellipse 60% 55% at 50% 80%, rgba(236, 232, 225, 0.13), transparent 70%);
}
.panel-3 .panel-media::before { background: radial-gradient(ellipse 60% 55% at 50% 80%, rgba(255, 255, 255, 0.55), transparent 70%); }
.panel-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  will-change: transform, opacity;
}
.panel-media.is-swap .pm-b { opacity: 0; }

/* step 5: a painted scene (not a cut-out), so its edges fade into the panel */
.panel-media.is-painting {
  right: 0;
  bottom: auto;
  top: calc(50% - 13.4vw);
  width: 48vw;
  height: auto;
  aspect-ratio: 1800 / 1005;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 24%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}
.panel-media.is-painting::before { display: none; }
.panel-media.is-painting img { object-fit: cover; object-position: 50% 50%; }
/* pictures cropped at their sides: run them off the right edge and fade the left one */
.panel-media.is-bleed { right: 0; width: 49vw; }
.panel-media.is-bleed img { object-position: 100% 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }

.panel-ghost {
  position: absolute;
  z-index: 0;
  left: 2.6vw;
  top: 74%;
  font-size: 23vw;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
  color: #22221f;
  pointer-events: none;
  user-select: none;
}
.panel-2 .panel-ghost { color: #1a1a18; }
.panel-3 .panel-ghost { color: #ddd8cf; }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  position: relative;
  z-index: 2;
  background: var(--cream);
  color: var(--ink);
  border-radius: 60px 60px 0 0;
  padding: 165px var(--pad) 26vh;
}
.services > .micro { display: block; font-size: 11.5px; color: #3a3935; margin-bottom: 58px; }
/* rules are drawn as pseudo-elements so the entrance can draw them in (--ln, services.js) */
.svc-list { position: relative; list-style: none; margin: 0; padding: 0 0 1px; width: 62vw; }
.svc-list > li { position: relative; padding-top: 1px; }
.svc-list::after, .svc-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-l);
  transform: scaleX(var(--ln, 1));
  transform-origin: 0 50%;
}
.svc-list::after { bottom: 0; }
.svc-list > li::before { top: 0; }
.svc-row { position: relative; display: block; padding: 24px 0 22px; }
.svc-t {
  display: inline-block;
  clip-path: inset(-0.5em -1em -0.08em -1em); /* the mask each name rises out of */
  font-size: 4.4vw;
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1;
  padding-bottom: 0.06em;
  color: #b8b4ad;
  transition: color 1.1s var(--ease), transform 1.1s var(--ease);
}
.svc-in { display: inline-block; will-change: transform; }
.svc-tag {
  display: inline-block;
  margin-left: 0.7em;
  font-size: 0.26em;
  font-weight: 500;
  letter-spacing: 0.06em;
  vertical-align: 0.95em;
  color: #9a968e;
}
/* hover-only description, set to the right so rows stay compact */
.svc-d {
  position: absolute;
  right: 0;
  bottom: 26px;
  max-width: 19em;
  text-align: right;
  font-size: 13px;
  line-height: 1.55;
  color: #6c6963;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.svc-row.is-on .svc-t { color: #121212; transform: translateX(1.6vw); transition-duration: 0.45s; }
.svc-row.is-on .svc-d { opacity: 1; transform: none; transition-duration: 0.45s; }
.svc-tag { transition: opacity 0.35s var(--ease); }
.svc-row.is-tight.is-on .svc-tag { opacity: 0; } /* makes room for the description (services.js) */

/* Web Development breakdown: always open, three titled segments in a 3-column grid */
.svc-grid { padding: 4px 0 40px 1.6vw; }
.svc-seg { display: grid; grid-template-columns: 11vw 1fr; gap: 0 2vw; padding: 20px 0; border-top: 1px solid var(--line-l); }
.svc-seg:first-child { border-top: 0; }
.svc-seg-h {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8781;
}
.svc-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 2.4vw; }
.svc-items li {
  position: relative;
  padding-left: 16px;
  font-size: max(14px, 0.98vw);
  line-height: 1.35;
  color: #2c2b28;
}
.svc-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.45;
}

/* ==========================================================================
   Footer — revealed from underneath: the footer box clips a fixed panel, so the
   page above slides away while the footer content stays put
   ========================================================================== */
.footer {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: #0e0e0c;
  clip-path: inset(0 0 0 0);
}
.ft-inner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  padding: 96px var(--pad) 0;
  background: #0e0e0c;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
}
.ft-cols { display: grid; grid-template-columns: 17.6vw 27vw 1fr auto; align-items: start; }
.ft-h { margin: 0 0 24px; font-size: 11.5px; letter-spacing: 0.12em; line-height: 1; text-transform: uppercase; color: #8a8781; }
.ft-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.ft-brk { display: inline-flex; align-items: center; font-size: 13px; letter-spacing: 0.05em; line-height: 1; text-transform: uppercase; color: var(--paper); }
.ft-brk .t { padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) right 100% / 0% 1px no-repeat; transition: background-size 0.5s var(--ease); }
.ft-brk:hover .t { background-position: left 100%; background-size: 100% 1px; }
.ft-txt { margin: 0 0 14px; line-height: 1.55; color: var(--paper); }
.ft-dim { color: #6c6a65; }
.ft-link { background: linear-gradient(currentColor, currentColor) left 100% / 0% 1px no-repeat; transition: background-size 0.5s var(--ease); }
.ft-link:hover { background-size: 100% 1px; }
.ft-soc {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: #3b3a35;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.35s var(--ease);
}
.ft-soc-row { display: flex; gap: 10px; }
.ft-soc { overflow: hidden; }
.ft-roll { display: flex; flex-direction: column; align-items: center; gap: 22px; transform: translateY(11px); transition: transform 0.5s var(--ease); }
.ft-roll svg { width: 18px; height: 18px; flex: none; }
.ft-soc:hover { background: var(--stone); }
.ft-soc:hover .ft-roll { transform: translateY(-29px); }

/* giant wordmark: sized in em so JS can scale it to the full width (fitGiant in
   main.js); the pixel canvas paints an image inside the letters under the cursor */
.footer-giant {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2em;
  font-family: var(--sans);
  font-size: 11.6vw;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.8;
  white-space: nowrap;
  color: var(--paper);
  cursor: crosshair;
}
.footer-giant span { font-size: 1em; letter-spacing: -0.05em; }
.footer-giant i { letter-spacing: -0.02em; margin-left: 0.16em; }
.giant-mark { width: 0.733em; height: 0.63em; margin-bottom: 0.034em; flex: none; }
.ft-pixels { position: absolute; left: 0; top: 0; pointer-events: none; }
.ft-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0 28px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8781;
}
.ft-address { font-style: normal; line-height: 1.55; color: var(--paper); }
.ft-address span { display: block; margin-bottom: 6px; }
.ft-more { margin-top: 16px; }
.ft-top { transition: color 0.3s; }
.ft-top:hover { color: var(--paper); }

/* ==========================================================================
   Intro state
   ========================================================================== */
.is-loading .header { opacity: 0; }
/* copy is in the HTML for crawlers; keep it (and the name, which writes itself in) hidden until the intro starts */
.is-loading .hero-intro, .is-loading .hero-title { opacity: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
}

@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; height: 64px; }
  .nav { display: none; }
  .pill-btn { height: 38px; padding: 0 16px; font-size: 10.5px; }

  .hero { height: 100svh; }
  .hero-title { top: 16svh; }
  .hero-title .hl { font-size: 21vw; }
  .hero-title em { font-size: 17vw; }
  .hero-side { left: var(--pad); top: auto; bottom: calc(13svh + 24px); }
  .hero-intro { font-size: 14px; margin-bottom: 18px; }
  .hero-svc { font-size: 14px; margin-bottom: 18px; }
  .marquee { height: 13svh; }
  .marquee-track span { font-size: 13vw; }

  .studio { padding: 16vh var(--pad) 12vh; }
  .statement-wrap, .studio-row { padding-right: 0; }
  .statement { font-size: 8.6vw; text-indent: 12vw; }
  .studio-row { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 6vh; }
  .studio-note { font-size: 13px; }
  .logos { margin-top: 12vh; padding: 30px 0; }
  .logos-label { display: block; margin: 0 var(--pad) 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8781; }
  .logos-track { gap: 18px; }

  .work-head { padding: 14vh var(--pad) 8vh; }
  .work-title { margin: 32px 0 0; }
  .work-title .mask:first-child .line { font-size: 19vw; }
  .work-title em { font-size: 14vw; }
  .work-title .mask-2 { margin-left: 10vw; }
  .work-intro { margin: 28px 0 0; }
  .work-intro p { font-size: 15px; }
  .wp { height: auto; margin-bottom: 44px; }
  .wp-stage { position: relative; width: 100%; height: 58vh; clip-path: none !important; }
  .wp-content { transform: none !important; }
  .wp-screen { width: 76vw; height: 40vh; }
  .wp-info { position: static; transform: none !important; padding: 18px var(--pad) 0; }
  .wp-title { font-size: 8vw; }
  .wp-meta { font-size: 11px; margin-top: 12px; }
  .work-foot { flex-direction: column; align-items: flex-start; gap: 20px; }

  .method { padding-top: 80px; }
  .method-head { flex-direction: column; gap: 24px; }
  .method-desc { width: auto; font-size: 15px; }
  .method-title { margin-top: 48px; flex-direction: column; }
  .method-title em { font-size: 14vw; }
  .method-title .mask:last-child .line { font-size: 19vw; }
  .method-row { margin-top: 48px; }
  .method-tag { font-size: 16px; }
  .scroll-hint .micro { display: none; }
  .method-tabs { grid-template-columns: repeat(2, 1fr); }
  .method-tabs a:last-child { grid-column: span 2; border-left: 0; padding-left: 0; }
  .method-tabs a { font-size: 12px; padding-left: 12px; }
  .method-tabs a:nth-child(3) { border-left: 0; padding-left: 0; }
  .method-tabs a:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .panel { height: calc(100svh + 30vh); }
  .panel-inner { height: 100svh; }
  .panel-num span { font-size: 44px; }
  .panel-rule { display: none; }
  .panel-body { left: var(--pad); right: var(--pad); max-width: none; top: 22svh; transform: none; }
  .panel-media, .panel-media.is-tall, .panel-media.is-bleed { left: 4vw; right: 0; width: auto; height: 42svh; }
  .panel-body h3 { font-size: 15vw; }
  .panel-body p { font-size: 15px; }
  .panel-ghost { font-size: 60vw; bottom: -18vw; }

  .services { border-radius: 30px 30px 0 0; padding: 90px var(--pad) 16vh; }
  .svc-list { width: 100%; }
  .svc-t { font-size: 8.4vw; }
  .svc-row { padding: 18px 0; }
  .svc-d { position: static; display: block; max-width: none; text-align: left; margin-top: 8px; opacity: 1; transform: none; }
  .svc-grid { padding-left: 0; }
  .svc-seg { grid-template-columns: 1fr; gap: 12px; }
  .svc-items { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .header-end { gap: 14px; }




}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Services hover preview (follows the cursor's height, rolls between images)
   ========================================================================== */
.svc-preview {
  position: fixed;
  top: 0;
  right: 7vw;
  z-index: 45;
  width: min(460px, 27vw);
  aspect-ratio: 460 / 280;
  margin-top: calc(min(460px, 27vw) * -0.304);
  border-radius: 2rem;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}
.svc-preview.is-on { opacity: 1; }
.svc-under, .svc-slide, .svc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-under, .svc-slide img { object-fit: cover; filter: grayscale(0.1) contrast(1.05); }
.svc-slide { overflow: hidden; will-change: transform; }
.svc-slide img { transform-origin: 50% 50%; will-change: transform; }
.svc-grain {
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (max-width: 900px), (hover: none) { .svc-preview { display: none; } }

/* ==========================================================================
   Project detail overlay (wipes up from the bottom, scrolls on its own)
   ========================================================================== */
.po {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: #0b0b0c;
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(100% 0 0 0);
}
.po[hidden] { display: none; }
.po-content { min-height: 100vh; }
.po-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--pad);
  background: rgba(11, 11, 12, 0.94);
  backdrop-filter: blur(8px);
}
.po-back, .po-x, .po-next { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.po-back { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8781; transition: color 0.3s; }
.po-back:hover { color: var(--paper); }
.po-count { font-size: 11.5px; letter-spacing: 0.14em; color: #6c6a65; }
.po-x {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-d);
  font-size: 14px;
  transition: background 0.3s;
}
.po-x:hover { background: #1f1f1d; }

.po-wrap { display: flex; gap: 5vw; max-width: 1800px; margin: 0 auto; padding: 7vh var(--pad) 14vh; }
.po-left { flex: 1; min-width: 0; }
.po-right { flex: none; width: 25vw; min-width: 300px; }
.po-mask { clip-path: inset(0 -0.6em); }
.po-label {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 13px;
  border: 1px solid var(--line-d);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.po-label > span { display: block; }
.po-title {
  margin: 0;
  font-size: clamp(48px, 7.4vw, 150px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
  padding-bottom: 0.04em;
}
.po-title span { display: block; }
.po-divider { width: 80px; height: 2px; margin: 42px 0 36px; background: var(--stone); }
.po-desc {
  margin: 0;
  max-width: 780px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.3em;
  font-size: clamp(18px, 1.35vw, 25px);
  line-height: 1.55;
  color: #9a978f;
}
.po-w { display: inline-block; overflow: hidden; vertical-align: top; }
.po-w > span { display: inline-block; }

.po-gallery { display: flex; flex-direction: column; gap: 11vh; margin-top: 12vh; }
.po-item { margin: 0; }
.po-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #151513; }
.po-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); transition: transform 2s var(--ease); }
.po-item:hover .po-media img { transform: scale(1.05); }
.po-media { position: relative; }
.po-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 2s var(--ease); }
.po-item:hover .po-media video { transform: scale(1.03); }
.po-vtag {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.7);
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  pointer-events: none;
}
.po-vtag i { width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 6.5px; border-color: transparent transparent transparent currentColor; }
.po-item figcaption {
  max-width: 420px;
  margin: 26px 0 0 auto;
  padding-right: 16px;
  border-right: 2px solid var(--stone);
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c6a65;
}
.po-cta { margin-top: 12vh; padding: 40px; border: 1px solid var(--line-d); background: #111110; }
.po-cta h4 { margin: 0 0 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.po-cta p { margin: 0 0 26px; max-width: 460px; font-size: 15px; color: #8a8781; }
.po-cta .pill-btn { color: var(--paper); }

.po-facts { position: sticky; top: 130px; }
.po-facts dl { margin: 0; }
.po-fact { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-d); }
.po-fact:last-child { border-bottom: 1px solid var(--line-d); }
.po-fact dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6c6a65; padding-top: 3px; }
.po-fact dd { margin: 0; font-size: 16px; line-height: 1.45; }
.po-next { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 46px; text-align: left; }
.po-next .micro { color: #6c6a65; font-size: 10.5px; }
.po-next-name { font-size: 30px; font-weight: 500; letter-spacing: -0.04em; text-transform: uppercase; transition: color 0.3s; }
.po-next:hover .po-next-name { color: var(--stone); }

@media (max-width: 900px) {
  .po-wrap { flex-direction: column; padding-top: 4vh; }
  .po-right { width: auto; min-width: 0; }
  .po-facts { position: static; }
  .po-gallery { gap: 7vh; margin-top: 8vh; }
}

/* ==========================================================================
   Testimonials: paper cards that bend as they swing around a giant word
   ========================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tst {
  --cw: min(30.9vw, 66vh);
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #8f8a80;
  color: var(--ink);
}
.tst-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 9vh;
  margin: 0;
  padding: 0 var(--pad);
  font-weight: 500;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.tst-word {
  display: inline-block !important;
  font-size: 12vw; /* fitted to the full width in JS */
  letter-spacing: -0.045em;
  line-height: 0.9;
  white-space: nowrap;
  color: #131313;
}
.tst-scribble {
  position: absolute;
  z-index: 1;
  left: 5vw;
  top: 40vh;
  width: 12.5vw;
  min-width: 120px;
  overflow: visible;
  pointer-events: none;
}
.tst-scribble path { fill: none; stroke: #f4f1ea; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.tst-gl { position: absolute; inset: 0; z-index: 2; cursor: grab; touch-action: pan-y; }
.tst-gl.is-grabbing { cursor: grabbing; }
.tst-gl canvas { display: block; width: 100%; height: 100%; }
.tst-nav {
  position: absolute;
  z-index: 3;
  left: calc(50% - var(--cw) / 2);
  width: var(--cw);
  bottom: 2.6vh;
  display: flex;
  justify-content: space-between;
}
.tst-nav button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.4s var(--ease);
}
.tst-nav button:disabled { opacity: 0.32; cursor: default; }
.tst-ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 11px;
  transition: background 0.3s, color 0.3s;
}
.tst-nav button:not(:disabled):hover .tst-ico { background: var(--ink); color: #8f8a80; }
.tst-count {
  position: absolute;
  z-index: 3;
  right: calc(var(--pad) + 40px);
  bottom: 2.9vh;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(19, 19, 19, 0.6);
  pointer-events: none;
}
.tst-count b { font-weight: 500; color: var(--ink); }
@media (max-width: 900px) {
  .tst { --cw: 80vw; height: 100svh; }
  .tst-title { top: 14svh; }
  .tst-scribble { top: 30svh; left: 4vw; width: 22vw; }
  .tst-count { right: var(--pad); bottom: auto; top: 82px; }
}

@media (max-width: 900px) {
  .ft-inner { padding-top: 84px; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 34px 18px; }
  .ft-office, .ft-socials { grid-column: span 2; }
  .ft-menu { gap: 14px; }
  .ft-bar { flex-direction: column-reverse; align-items: flex-start; gap: 12px; font-size: 10.5px; }
}

/* project page: link to the live site */
.po-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.po-visit[hidden] { display: none; }
.po-visit:hover { color: var(--stone); }
.po-cta .pill-btn { width: fit-content; }

/* YouTube stand-in for the reel: muted loop in the pointer preview, full player in the overlay */
.rm-frames iframe.rm-yt { position: absolute; inset: -12% -2%; width: 104%; height: 124%; border: 0; pointer-events: none; }
.reel-stage iframe.reel-yt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100vw, 177.78vh);
  height: min(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  border: 0;
}

@media (max-width: 900px) {
  .wordmark { font-size: 14px; }
  .lang { font-size: 11px; }
  .panel-media.is-painting { top: auto; bottom: 6svh; left: 0; right: 0; width: 100%; height: auto; }
}
@media (max-width: 440px) {
  /* logo, language toggle and the pill all fit on one row */
  .wordmark { font-size: 12.5px; }
  .logo { gap: 8px; }
  .logo-mark { width: 20px; height: 18px; }
  .header-end { gap: 10px; }
  .header .pill-btn { height: 34px; padding: 0 12px; font-size: 9.5px; white-space: nowrap; }
}

/* ==========================================================================
   About page — a sideways story over one long painting (about.html, about.js)
   ========================================================================== */
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.ab-track { position: relative; display: block; height: calc(100vh + 5 * 135vh); }
.ab-stage {
  --label-gap: 192px; /* ruler spacing between chapters; read by about.js */
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  user-select: none;
  -webkit-user-select: none;
}
.ab-stage.is-dragging { cursor: grabbing; }
.is-loading .ab-stage { opacity: 0; }

/* the painting: sized by height, positioned by about.js */
.ab-scene {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  aspect-ratio: 8478 / 1280;
  transform-origin: 0 60%;
  will-change: transform;
}
.ab-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ab-person, .ab-paper { position: absolute; height: auto; max-width: none; will-change: transform; }
.ab-paper { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }

.ab-veil { position: absolute; inset: 0; background: var(--ink); opacity: 0.58; pointer-events: none; }
.ab-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(19, 19, 19, 0.6) 0, rgba(19, 19, 19, 0) 17%),
    linear-gradient(to top, rgba(19, 19, 19, 0.92) 0, rgba(19, 19, 19, 0.4) 30%, rgba(19, 19, 19, 0) 56%),
    linear-gradient(to right, rgba(19, 19, 19, 0.72) 0, rgba(19, 19, 19, 0.25) 32%, rgba(19, 19, 19, 0) 50%);
}

/* text: one viewport-wide slot per chapter */
.ab-strip { position: absolute; inset: 0; display: flex; pointer-events: none; will-change: transform; }
.ab-slot { position: relative; flex: 0 0 100vw; height: 100%; }
.ab-slot a, .ab-slot button { pointer-events: auto; }
.ab-in {
  position: absolute;
  left: var(--pad);
  bottom: 148px;
  width: min(41vw, 720px);
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.45);
}
[data-depth] { will-change: transform; }

.ab-intro .ab-in, .ab-outro .ab-in { top: 23vh; bottom: auto; width: auto; }
.ab-kicker { margin: 0; color: rgba(236, 232, 225, 0.72); }
.ab-title { margin: 3.2vh 0 0; display: flex; flex-direction: column; align-items: flex-start; font-weight: 500; line-height: 1; }
.ab-title .mask { padding: 0.04em 0 0.08em; margin: -0.04em 0 -0.08em; }
.ab-title span.line { font-size: 9.4vw; letter-spacing: -0.045em; line-height: 0.88; color: var(--paper); }
.ab-title em { font-size: 6.9vw; letter-spacing: -0.015em; line-height: 1.04; color: #b9b4aa; }
.ab-title .mask-2 { margin-left: 7.4vw; margin-top: 0.1em; }
.ab-lead { margin: 5vh 0 0 7.4vw; max-width: 31em; font-size: 16px; line-height: 1.6; color: rgba(236, 232, 225, 0.8); }
.ab-outro .ab-title span.line { font-size: 8.4vw; }
.ab-outro .ab-title em { font-size: 5.2vw; }

.ab-num { display: flex; align-items: baseline; gap: 18px; margin: 0 0 26px; }
.ab-num span { font-family: var(--serif); font-style: italic; font-size: 66px; line-height: 0.9; letter-spacing: -0.02em; color: var(--accent); }
.ab-num small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(236, 232, 225, 0.66); }
.ab-h { margin: 0 0 24px; font-weight: 500; font-size: clamp(40px, 4.3vw, 92px); letter-spacing: -0.06em; line-height: 0.9; text-wrap: balance; }
.ab-p { margin: 0; max-width: 31em; font-size: 16.5px; line-height: 1.62; color: rgba(236, 232, 225, 0.84); text-wrap: pretty; }

.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin: 5.5vh 0 0 7.4vw; text-shadow: none; }
.pill-btn.is-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); height: 52px; padding: 0 30px; }
.pill-btn.is-solid::before { background: var(--accent); }
.pill-btn.is-solid:hover { color: var(--ink); border-color: var(--accent); }
.ab-link {
  position: relative;
  padding: 6px 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.ab-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.ab-link:hover::after { transform: scaleX(1); transform-origin: left; }

.ab-hint {
  position: absolute;
  right: var(--pad);
  bottom: 148px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(236, 232, 225, 0.8);
  pointer-events: none;
}
.ab-hint i { font-family: var(--sans); font-style: normal; font-size: 15px; animation: ab-nudge 1.8s var(--ease-io) infinite; }
@keyframes ab-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* chapter ruler: names on a tick strip that slides under a fixed hook */
.ab-ruler {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 58px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 32%, #000 68%, transparent 92%);
  mask-image: linear-gradient(to right, transparent 8%, #000 32%, #000 68%, transparent 92%);
}
.ab-ruler-move { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; will-change: transform; }
.ab-rl {
  position: absolute;
  top: 0;
  left: calc(var(--i) * var(--label-gap));
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 6px 10px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(236, 232, 225, 0.42);
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.35s var(--ease);
}
.ab-rl b { font-weight: 500; }
.ab-rl:hover, .ab-rl.is-active { color: var(--paper); }
.ab-rl.is-active b { color: var(--accent); }
.ab-ruler-ticks {
  position: absolute;
  bottom: 0;
  left: calc(var(--label-gap) * -2);
  width: calc(var(--label-gap) * 9 + 1px);
  height: 12px;
  background:
    repeating-linear-gradient(to right, rgba(236, 232, 225, 0.9) 0 1px, transparent 1px var(--label-gap)) left bottom / 100% 12px no-repeat,
    repeating-linear-gradient(to right, rgba(236, 232, 225, 0.38) 0 1px, transparent 1px calc(var(--label-gap) / 16)) left bottom / 100% 6px no-repeat;
}
.ab-ruler-hook { position: absolute; left: 50%; bottom: 0; width: 2px; height: 24px; margin-left: -1px; background: var(--accent); }

@media (max-width: 900px) {
  .ab-track { height: calc(100svh + 5 * 100svh); }
  .ab-stage { --label-gap: 140px; }
  .ab-scene { height: 62svh; }
  .ab-veil { bottom: 38svh; }
  .ab-shade {
    background:
      linear-gradient(to bottom, rgba(19, 19, 19, 0.6) 0, rgba(19, 19, 19, 0) 13%),
      linear-gradient(to bottom, rgba(19, 19, 19, 0) 47svh, var(--ink) 62svh);
  }
  .ab-in, .ab-intro .ab-in, .ab-outro .ab-in { left: var(--pad); right: var(--pad); top: auto; bottom: 104px; width: auto; }
  .ab-title span.line { font-size: 15vw; }
  .ab-title em { font-size: 11vw; }
  .ab-title .mask-2, .ab-lead, .ab-actions { margin-left: 0; }
  .ab-outro .ab-title span.line { font-size: 13.5vw; }
  .ab-outro .ab-title em { font-size: 8vw; }
  .ab-lead { margin-top: 18px; font-size: 14.5px; }
  .ab-num { margin-bottom: 14px; gap: 12px; }
  .ab-num span { font-size: 40px; }
  .ab-h { font-size: 8.6vw; margin-bottom: 14px; }
  .ab-p { font-size: 14.5px; line-height: 1.55; }
  .ab-actions { margin-top: 24px; gap: 14px 24px; }
  .pill-btn.is-solid { height: 44px; padding: 0 22px; font-size: 11px; }
  .ab-hint { display: none; }
  .ab-ruler { bottom: 20px; -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent); }
  .ab-rl { font-size: 9.5px; letter-spacing: 0.1em; gap: 6px; }
}

/* scramble.js: letters not written yet keep their space but don't show */
.scr-ghost { color: transparent; text-shadow: none; }
