/* =========================================================
   V2-only pieces. Everything here is hidden unless
   <html data-version="2">.
   ========================================================= */

.v2-only { display: none; }
html[data-version="2"] .v2-only { display: block; }
html[data-version="2"] .v2-hide { display: none !important; }

.section-label {
  display: flex;
  justify-content: space-between;
  gap: var(--gutter);
  padding-top: 14px;
  border-top: 1px solid var(--fg);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-label span { color: var(--muted); }

.v2-section { padding: clamp(64px, 10vw, 160px) var(--gutter) 0; }

.v2-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: clamp(40px, 7vw, 120px);
  margin: clamp(24px, 3vw, 44px) 0 clamp(32px, 5vw, 72px);
  max-width: 14ch;
}

/* ---------- 1. Fluid colors in the V2 headline ---------- */
.v2, .v2__type { position: relative; }
.v2__type { display: inline-block; background: var(--bg); isolation: isolate; }
.fluid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen; /* black text shows color, white stays white */
  display: block;
}
.v2 .headline, .v2 .subline { position: relative; }

.v2__cta { margin-top: clamp(24px, 3vw, 40px); position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------- 2. Eye-follow button ---------- */
.eye-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 8px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 500 15px/1 var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.eye-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.eye-btn:active { transform: scale(0.97); }
.eye-btn__eyes { display: flex; gap: 4px; }
.eye {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s cubic-bezier(0.32, 0.72, 0, 1);
}
.eye__pupil {
  position: absolute;
  width: 14px; height: 14px;
  left: 50%; top: 50%;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #000;
  will-change: transform;
}
.eye__pupil::after { /* catch-light */
  content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
}
.eye-btn.is-blink .eye { transform: scaleY(0.1); }

/* ---------- 3. Overlay menu ---------- */
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  grid-column: 6;
  justify-self: end;
}
html[data-version="2"] .menu-btn { display: inline-flex; }
.menu-btn__icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--fg);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.menu-btn:hover .menu-btn__icon { transform: scale(1.08); }
.menu-btn__icon i {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.menu-btn__icon i:nth-child(1) { top: 13px; }
.menu-btn__icon i:nth-child(2) { top: 19px; left: 13px; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #141414;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  clip-path: circle(0 at var(--ox, 100%) var(--oy, 0));
  visibility: hidden;
  transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.8s;
}
.overlay.is-open {
  clip-path: circle(var(--or, 150vmax) at var(--ox, 100%) var(--oy, 0));
  visibility: visible;
  transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
}
.overlay__top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
}
.overlay__close {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: none; color: #fff; font: inherit; cursor: pointer;
  letter-spacing: inherit; text-transform: inherit;
}
.overlay__close span {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: grid; place-items: center; font-size: 16px;
  transition: background 0.2s cubic-bezier(0.32, 0.72, 0, 1), transform 0.4s cubic-bezier(0.2,0.7,0.2,1);
}
.overlay__close:hover span { background: rgba(255,255,255,0.22); transform: rotate(90deg); }

.overlay__links {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  list-style: none;
}
.overlay__links li { overflow: hidden; }
.overlay__links a {
  display: flex; align-items: baseline; gap: clamp(14px, 2vw, 32px);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 10vw, 150px);
  line-height: 0.92; letter-spacing: -0.05em;
  transform: translateY(105%);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.overlay__links a small {
  font-size: 12px; font-weight: 400; letter-spacing: 0.04em; color: rgba(255,255,255,0.4);
  transform: translateY(-1.2em);
}
.overlay.is-open .overlay__links a { transform: none; }
.overlay.is-open .overlay__links li:nth-child(1) a { transition-delay: 0.35s; }
.overlay.is-open .overlay__links li:nth-child(2) a { transition-delay: 0.42s; }
.overlay.is-open .overlay__links li:nth-child(3) a { transition-delay: 0.49s; }
.overlay.is-open .overlay__links li:nth-child(4) a { transition-delay: 0.56s; }
.overlay__links:hover a { color: rgba(255,255,255,0.3); }
.overlay__links a:hover { color: #fff; }

.overlay__foot {
  display: flex; justify-content: space-between; gap: var(--gutter);
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: 0; transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.overlay.is-open .overlay__foot { opacity: 1; transition-delay: 0.6s; }
.overlay__foot nav { display: flex; gap: 24px; }
.overlay__foot a { color: #fff; }
html.menu-open { overflow: hidden; }

/* Shared slow drift for blurred color blobs */
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(18%, -12%) scale(1.15); }
  100% { transform: translate(-12%, 14%) scale(0.92); }
}

/* ---------- 6. Liquid glass flip card ---------- */
.glass-stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: clamp(520px, 62vw, 760px);
  display: grid;
  place-items: center;
  background: #06112b;
  perspective: 1400px;
  isolation: isolate;
}
.glass-stage__bg { position: absolute; inset: 0; z-index: -1; }
.glass-stage__bg i {
  position: absolute; border-radius: 50%; filter: blur(60px);
  animation: drift 20s cubic-bezier(0.45, 0.05, 0.25, 1) infinite alternate;
}
.glass-stage__bg i:nth-child(1) { width: 55%; height: 70%; left: -5%; top: 30%; background: #1c4dff; }
.glass-stage__bg i:nth-child(2) { width: 40%; height: 55%; left: 55%; top: -10%; background: #7a5cff; animation-delay: -7s; }
.glass-stage__bg i:nth-child(3) { width: 35%; height: 45%; left: 40%; top: 55%; background: #00c2ff; animation-delay: -12s; }
.glass-stage__bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; mix-blend-mode: overlay; }
.glass-stage__word {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0.06em;
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.06em; line-height: 0.8;
  color: rgba(255,255,255,0.92);
  font-size: 16vw;
  z-index: -1;
  white-space: nowrap;
}

.flip {
  width: min(360px, 78vw);
  aspect-ratio: 4 / 5;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.3, 1.25, 0.4, 1);
  cursor: pointer;
}
.flip:hover, .flip.is-flipped { transform: rotateY(180deg); }
.flip__face {
  position: absolute; inset: 0;
  border-radius: 28px;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.12));
  -webkit-backdrop-filter: blur(22px) saturate(170%) brightness(1.08);
          backdrop-filter: blur(22px) saturate(170%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(255,255,255,0.15),
    inset 1px 0 0 rgba(255,255,255,0.25),
    inset -1px 0 0 rgba(255,255,255,0.1),
    0 30px 60px rgba(0, 10, 40, 0.45);
  overflow: hidden;
}
/* moving specular highlight */
.flip__face::after {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,0.35), transparent 35%);
  pointer-events: none; mix-blend-mode: soft-light;
}
.flip__back { transform: rotateY(180deg); }
.flip__top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.chip {
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}
.flip__icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  font-size: 15px;
}
.flip__big { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; position: relative; z-index: 1; }
.flip__text { font-size: 15px; line-height: 1.45; opacity: 0.85; position: relative; z-index: 1; }
.glass-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(0,0,0,0.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  color: #fff; font-size: 14px;
  position: relative; z-index: 1;
  transition: background 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.glass-btn:hover { background: rgba(0,0,0,0.55); }
.glass-hint {
  position: absolute; bottom: 18px; right: var(--gutter);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}

/* ---------- 7. Peelable stickers ---------- */
.board {
  position: relative;
  height: clamp(560px, 60vw, 760px);
  border-radius: 22px;
  background: #efeee9;
  overflow: hidden;
  touch-action: none;
}
.board__hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(0,0,0,0.45);
  pointer-events: none;
}
.sticker {
  position: absolute;
  width: var(--w, 160px);
  height: var(--h, 160px);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.12)) drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}
/* WebGL sticker board: the canvas draws, the .sticker boxes only catch the pointer */
.board__gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.board--gl { touch-action: auto; }
.board--gl .sticker { filter: none; transition: none; touch-action: none; }
.board--gl .sticker__face, .board--gl .sticker__flap { opacity: 0; }
@media (max-width: 640px) {
  .sticker { width: calc(var(--w, 160px) * 0.62); height: calc(var(--h, 160px) * 0.62); }
}
.sticker.is-dragging {
  cursor: grabbing;
  transition: none;
  --s: 1.06;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,0.12)) drop-shadow(0 24px 30px rgba(0,0,0,0.18));
  z-index: 50;
}
.sticker__face, .sticker__flap {
  position: absolute; inset: 0;
  pointer-events: none;
}
.sticker__face svg, .sticker__flap svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* The peeled flap: the sticker's silhouette, mirrored and turned paper-white */
.sticker__flap {
  transform-origin: 0 0;
  filter: brightness(0) invert(0.9) drop-shadow(-3px -3px 4px rgba(0,0,0,0.22));
}
.sticker__flap::after {
  content: ""; position: absolute; inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .flip { transition: none; }
}

@media (max-width: 720px) {
  .menu-btn { grid-column: auto; }
}

/* ---------- Chromatic metal button ---------- */
.chrome-btn {
  --a: 0deg;      /* ring rotation, driven by JS */
  --tilt: 0deg;   /* highlight leans toward the cursor */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 6px 30px 6px 6px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #d6d6d6;
  font: 400 19px/1 var(--font);
  letter-spacing: 0.005em;
  box-shadow:
    inset 0 0 0 1.88px rgba(133, 133, 133, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 7px rgba(42, 42, 42, 0.14),
    0 0 0 8px rgba(133, 133, 133, 0.16),
    0 14px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.chrome-btn:hover { transform: translateY(-2px); color: #fff; }
.chrome-btn:active { transform: scale(0.98); }

.chrome-btn__knob {
  position: relative;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  transition: transform 0.6s cubic-bezier(0.3, 1.3, 0.4, 1);
}
.chrome-btn:hover .chrome-btn__knob { transform: rotate(-8deg) scale(1.04); }

/* The metal ring: silver bands with thin rainbow streaks, cut into a ring */
.chrome-btn__ring,
.chrome-btn__ring::before,
.chrome-btn__ring::after {
  position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(circle closest-side, transparent 64%, #000 66.5%, #000 98.5%, transparent 100%);
          mask: radial-gradient(circle closest-side, transparent 64%, #000 66.5%, #000 98.5%, transparent 100%);
}
.chrome-btn__ring {
  background: conic-gradient(from var(--a),
    #f4f4f4 0deg, #9c9c9c 28deg, #ffffff 52deg, #6d6d6d 84deg,
    #e8e8e8 120deg, #ffffff 150deg, #8a8a8a 196deg, #fafafa 232deg,
    #5f5f5f 270deg, #dedede 306deg, #ffffff 336deg, #f4f4f4 360deg);
}
/* Rainbow streaks, spinning the other way */
.chrome-btn__ring::before {
  content: "";
  background: conic-gradient(from calc(var(--a) * -1.35 + 40deg),
    transparent 0deg 34deg,
    #ff2f6d 38deg, #ffb300 42deg, #fff36b 45deg, #3bdcff 49deg, #6a4bff 53deg,
    transparent 58deg 160deg,
    #3bdcff 166deg, #8cff6b 170deg, #ffe14a 174deg, #ff4f2f 178deg,
    transparent 184deg 250deg,
    #ff7ad9 254deg, #ffd34a 258deg, #4be3ff 263deg, #5b5bff 268deg,
    transparent 274deg 360deg);
  mix-blend-mode: multiply;
  filter: blur(0.6px) saturate(1.4);
}
/* Specular sheen that follows the cursor + inner/outer edge shading */
.chrome-btn__ring::after {
  content: "";
  background:
    conic-gradient(from var(--tilt), rgba(255,255,255,0.9) 0deg, transparent 40deg, transparent 320deg, rgba(255,255,255,0.9) 360deg),
    radial-gradient(circle closest-side, rgba(0,0,0,0.45) 64%, transparent 74%, transparent 90%, rgba(0,0,0,0.3) 100%);
  mix-blend-mode: soft-light;
}

.chrome-btn__core {
  position: absolute; inset: 9px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a3a3a, #232323 70%);
  color: #e6e6e6;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), inset 0 -2px 4px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.4);
}
.chrome-btn__core svg { transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.4, 1); }
.chrome-btn:hover .chrome-btn__core svg { transform: translateX(2px) rotate(8deg); }


/* =========================================================
   High-end pass (V2 only): soft structure, nested bezels,
   spring motion, scroll reveals.
   ========================================================= */
html[data-version="2"] {
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --hair: rgba(0, 0, 0, 0.08);
}

/* Macro-whitespace */
html[data-version="2"] .v2-section { padding-top: clamp(104px, 15vw, 220px); }
html[data-version="2"] .v2-title { margin: clamp(28px, 3.4vw, 52px) 0 clamp(44px, 6.5vw, 104px); }
html[data-version="2"] .footer { margin-top: clamp(104px, 15vw, 220px); }

/* Eyebrow pills */
.eyebrow,
html[data-version="2"] .section-label span:first-child {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 #fff;
  color: var(--fg);
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1;
}
.eyebrow { margin-bottom: clamp(18px, 2.2vw, 32px); }
.eyebrow i,
html[data-version="2"] .section-label span:first-child::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); flex: none;
}
html[data-version="2"] .section-label {
  align-items: center; padding-top: 18px; border-top: 0;
  box-shadow: inset 0 1px 0 var(--hair);
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
}
html[data-version="2"] .hero__meta { border-top: 0; box-shadow: inset 0 1px 0 var(--hair); padding-top: 18px; }

/* Hero: staggered heavy fade-up instead of one block */
html[data-version="2"] .hero__version.is-active { animation: none; }
html[data-version="2"] .v2 .eyebrow,
html[data-version="2"] .v2 .headline,
html[data-version="2"] .v2 .subline,
html[data-version="2"] .v2 .v2__cta { animation: v2-in 1.2s var(--spring) both; }
html[data-version="2"] .v2 .headline { animation-delay: 0.08s; }
html[data-version="2"] .v2 .subline { animation-delay: 0.2s; color: rgba(0, 0, 0, 0.42); }
html[data-version="2"] .v2 .v2__cta { animation-delay: 0.32s; }
@keyframes v2-in { from { opacity: 0; transform: translateY(44px); filter: blur(12px); } }

/* Softer, more diffuse button shadows + spring press */
.eye-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.1), 0 24px 48px -18px rgba(0, 0, 0, 0.32);
  transition: transform 0.7s var(--spring), box-shadow 0.7s var(--spring);
}
.eye-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.1), 0 34px 60px -20px rgba(0, 0, 0, 0.36); }
.eye-btn:active { transform: scale(0.98); }
.eye-btn__eyes { transition: transform 0.7s var(--spring); }
.eye-btn:hover .eye-btn__eyes { transform: translate(3px, -1px) scale(1.05); }
.chrome-btn { transition: transform 0.7s var(--spring), color 0.7s var(--spring); }

/* Double-bezel: outer tray + inner plate, concentric radii */
.bezel {
  padding: 8px; border-radius: 30px;
  background: rgba(0, 0, 0, 0.035);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), inset 0 1px 0 #fff, 0 50px 90px -50px rgba(0, 0, 0, 0.28);
}
.bezel > .glass-stage { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2); }
.bezel > .board { box-shadow: inset 0 1px 1px #fff, inset 0 0 0 1px rgba(0, 0, 0, 0.04); }

/* Button-in-button arrows */
.flip__icon svg { display: block; }
.glass-btn { padding: 6px 6px 6px 18px; gap: 12px; transition: background 0.7s var(--spring), transform 0.7s var(--spring); }
.glass-btn:active { transform: scale(0.98); }
.glass-btn__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); transition: transform 0.7s var(--spring); }
.glass-btn:hover .glass-btn__icon { transform: translate(3px, -1px) scale(1.06); }

/* Menu button morphs to an X; overlay links fade as they rise */
.menu-btn__icon i { height: 1px; top: 50% !important; left: 10px !important; right: 10px; transition: transform 0.7s var(--spring); }
.menu-btn__icon i:nth-child(1) { transform: translateY(-3px); }
.menu-btn__icon i:nth-child(2) { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:nth-child(1) { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:nth-child(2) { transform: rotate(-45deg); }
.menu-btn:active .menu-btn__icon { transform: scale(0.94); }
.overlay__links a { opacity: 0; transition: transform 0.9s var(--spring, cubic-bezier(0.32, 0.72, 0, 1)), opacity 0.9s cubic-bezier(0.32, 0.72, 0, 1), color 0.5s cubic-bezier(0.32, 0.72, 0, 1); }
.overlay.is-open .overlay__links a { opacity: 1; }
.overlay__close span svg { display: block; }
.overlay__foot { border-top: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }

/* Scroll reveals (class added by JS, so nothing hides without it) */
html[data-version="2"] .reveal {
  opacity: 0; transform: translateY(56px); filter: blur(12px);
  transition: opacity 1.1s var(--spring), transform 1.1s var(--spring), filter 1.1s var(--spring), box-shadow 0.9s var(--spring);
  transition-delay: var(--d, 0s);
}
html[data-version="2"] .reveal.is-in { opacity: 1; transform: none; filter: none; }

@media (max-width: 767px) {
  .bezel { padding: 6px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-version="2"] .reveal { opacity: 1; transform: none; filter: none; }
}


/* =========================================================
   Floating "Start a project" button: chrome runs round the
   whole border. Send icon points up and to the right.
   ========================================================= */
.chrome-btn__core svg { transform: rotate(-45deg); }
.chrome-btn:hover .chrome-btn__core svg { transform: rotate(-45deg) translateX(3px); }

/* Floating "Start a project" button: light face inside a flowing liquid-metal rim */
.metal-btn { display: none; }
html[data-version="2"] .metal-btn {
  --rim: 3px; --ease: cubic-bezier(0.32, 0.72, 0, 1);
  display: block; position: fixed; left: 50%; bottom: var(--gutter); translate: -50% 0; z-index: 90;
  height: 62px; padding: var(--rim); border-radius: 999px; overflow: hidden; overflow: clip;
  background: #8c8c8c; color: #28282c; text-decoration: none;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18), 0 15px 35px -10px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 0.4s var(--ease);
  animation: float-in 1.2s 0.6s var(--ease) both;
}
@keyframes float-in { from { opacity: 0; transform: translateY(40px); } }
html.menu-open .metal-btn { opacity: 0; pointer-events: none; }
.metal-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18), 0 22px 40px -12px rgba(0, 0, 0, 0.28); }
.metal-btn:active { transform: scale(0.98); }
.metal-btn__rim { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.metal-btn.no-gl { background: conic-gradient(from 20deg, #0b0b0c, #fff 8%, #0b0b0c 16%, #b9a4ff 30%, #0b0b0c 38%, #fff 52%, #0b0b0c 60%, #ffb39a 74%, #0b0b0c 84%, #fff 94%, #0b0b0c); }
.metal-btn__face {
  position: relative; display: flex; align-items: center; gap: 0.5em; height: 100%; padding: 0 1.55em 0 1.35em;
  border-radius: inherit; overflow: hidden; overflow: clip;
  background: linear-gradient(#fbfbfb 0%, #f1f1f1 55%, #e8e8e8 100%);
  box-shadow: inset 0 1px 1.5px #fff, inset 0 -2px 5px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
/* a slanted glint that crosses the face on hover */
.metal-btn__sheen {
  position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 42%, #fff 55%, rgba(0, 0, 0, 0.05) 72%, rgba(0, 0, 0, 0) 100%);
  transform: translateX(-130%) skewX(-20deg); pointer-events: none;
}
.metal-btn:hover .metal-btn__sheen { transform: translateX(230%) skewX(-20deg); transition: transform 0.9s var(--ease); }
/* rocket: on hover it flies off up and to the right while the next one arrives from below */
.metal-btn__icon { position: relative; width: 1.2em; height: 1.2em; overflow: hidden; flex: none; }
.metal-btn__icon svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.metal-btn__icon svg + svg { transform: translate(-100%, 100%); }
.metal-btn:hover .metal-btn__icon svg { transform: translate(100%, -100%); }
.metal-btn:hover .metal-btn__icon svg + svg { transform: none; }
.metal-btn__label { position: relative; }
@media (max-width: 720px) {
  html[data-version="2"] .metal-btn { bottom: var(--gutter); height: 54px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .metal-btn, .metal-btn__icon svg, .metal-btn__sheen { transition: none !important; animation: none !important; }
}


/* =========================================================
   Folder cards, built to the cards-folder reference's
   measurements. The reference card is 300 x 400; --u is one
   reference pixel, so everything scales with the card.
   ========================================================= */
.folders { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 10px; }
.bezel--folder {
  padding: 3.3333%;                 /* 10 of 300 */
  border-radius: 10% / 7.5%;         /* 30 */
  background: var(--frame, #000);
  box-shadow: none;
}
.folder {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --u: calc(100cqw / 280);
  --shift: calc(100 * var(--u));
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  container-type: inline-size;
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 280 / 380;
  border-radius: 7.143% / 5.263%;   /* 20 */
  background: var(--frame, #000);
  color: #fff; cursor: pointer;
}
.folder--light { color: #121212; }

.folder__art { position: absolute; inset: 0; }
.folder__art svg { width: 100%; height: 100%; display: block; }

/* numeral tucked behind the front; it rises as the front drops */
.folder__glyph {
  position: absolute; left: 0; right: 0; top: calc(-14 * var(--u));
  text-align: center; font-weight: 700; line-height: 0.9;
  font-size: calc(310 * var(--u)); letter-spacing: -0.04em;
  transform: translateY(calc(110 * var(--u))) rotate(-6deg) scale(0.94);
  transition: transform 0.8s var(--ease);
}
.folder__glyph::before, .folder__glyph::after { content: attr(data-n); display: block; }
.folder__glyph::before {               /* extruded side */
  --s: calc(1.6 * var(--u));
  color: #1a1160;
  text-shadow: var(--s) var(--s) 0 #2a1c8f, calc(2 * var(--s)) calc(2 * var(--s)) 0 #241678,
    calc(3 * var(--s)) calc(3 * var(--s)) 0 #1e1264, calc(4 * var(--s)) calc(4 * var(--s)) 0 #180e52,
    calc(5 * var(--s)) calc(5 * var(--s)) 0 #130a44, calc(6 * var(--s)) calc(6 * var(--s)) 0 #0e0736,
    calc(7 * var(--s)) calc(7 * var(--s)) 0 #0a052a, calc(8 * var(--s)) calc(8 * var(--s)) 0 #070320,
    calc(14 * var(--s)) calc(18 * var(--s)) calc(20 * var(--s)) rgba(0, 0, 0, 0.55);
}
.folder__glyph::after {                /* chrome face */
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #0b0a3a 8%, #1b2bd6 26%, #0a0830 42%, #ff6a2a 58%, #ffd9b0 66%, #c2182b 78%, #0b0a3a 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: calc(2.5 * var(--u)) rgba(255, 255, 255, 0.85);
}
.folder:hover .folder__glyph { transform: rotate(-12deg); }

/* front: tab + body, 70 down from the inner top */
.folder__front {
  position: absolute; left: 0; right: 0; top: calc(70 * var(--u)); bottom: calc(-100 * var(--u));
  transition: transform 0.8s var(--ease);
}
.folder__front::before {               /* tab */
  content: ""; position: absolute; left: 0; top: 0; width: calc(150 * var(--u)); height: calc(32 * var(--u));
  background: var(--front, #111);
  -webkit-mask: var(--tab-mask) 0 0 / 100% 100% no-repeat; mask: var(--tab-mask) 0 0 / 100% 100% no-repeat;
}
.folder__front::after {                /* body */
  content: ""; position: absolute; left: 0; right: 0; top: calc(30 * var(--u)); bottom: 0;
  background: var(--front, #111);
  border-radius: 0 calc(20 * var(--u)) 0 0;
}
.bezel--folder { --tab-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32 V20 C0 7 7 0 20 0 H66 C74 0 79 2.5 84 8 L97 22 C102 27.5 107 30 115 30 H150 V32 Z'/%3E%3C/svg%3E"); }

.folder__num {
  position: absolute; left: calc(20 * var(--u)); top: calc(90 * var(--u));
  font-size: calc(56 * var(--u)); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em;
  transition: transform 0.8s var(--ease);
}
.folder__arrow {
  position: absolute; right: calc(20 * var(--u)); top: calc(120 * var(--u));
  width: calc(24 * var(--u)); height: calc(24 * var(--u));
  transition: transform 0.8s var(--ease);
}
.folder__arrow svg { display: block; width: 100%; height: 100%; }
.folder:hover .folder__front,
.folder:hover .folder__num,
.folder:hover .folder__arrow { transform: translateY(var(--shift)); }

/* title + description never move */
.folder__text { position: absolute; left: calc(20 * var(--u)); right: calc(20 * var(--u)); bottom: calc(20 * var(--u)); }
.folder__title { font-size: max(14px, calc(16 * var(--u))); font-weight: 500; line-height: 1.2; }
.folder__desc { margin-top: calc(6 * var(--u)); font-size: max(12px, calc(14 * var(--u))); font-weight: 300; line-height: 1.2; opacity: 0.6; }
.folder--light .folder__desc { opacity: 0.8; }

@media (max-width: 640px) {
  .folders { grid-template-columns: minmax(0, 360px); justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .folder__front, .folder__num, .folder__arrow, .folder__glyph { transition: none; }
}

/* ---------- Soft card ---------- */
.soft-stage {
  position: relative; height: clamp(520px, 62vw, 760px);
  border-radius: 22px; background: #e9e7e2; overflow: hidden;
  box-shadow: inset 0 1px 1px #fff, inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.soft-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.soft-hit { position: absolute; left: 0; top: 0; width: 0; height: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.soft-hit.is-grabbing { cursor: grabbing; }
.soft-stage.no-gl { display: none; }

/* ---------- FAQ: polished glass bars ---------- */
.faq { max-width: 620px; margin: 0 auto; display: grid; gap: 12px; font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.faq__item {                                /* bright-to-dark rim */
  padding: 3px; border-radius: 32px;
  background: linear-gradient(#fff 0%, #c9c9c9 9%, #a1a1a1 32%, #757575 73%, #fff 100%);
  box-shadow: 0.3px 4.4px 2.2px rgba(0,0,0,0.01), 0.5px 7.2px 3.6px rgba(0,0,0,0.01), 0.8px 11.7px 5.9px rgba(0,0,0,0.02),
    1.3px 19.2px 9.6px rgba(0,0,0,0.03), 2.2px 33px 16.5px rgba(0,0,0,0.03), 4px 60px 30px rgba(0,0,0,0.06);
}
.faq__face {
  position: relative; border-radius: 29px; overflow: hidden; overflow: clip; padding: 14px 24px;
  background: linear-gradient(150deg, #d0d0d0 0%, #e8e8e8 50.17%, #c8c8c8 100%);
  box-shadow: inset 0 1px 1.5px rgba(0,0,0,0.07), inset 0 -1px 1.5px rgba(0,0,0,0.07);
}
.faq__face::before {                        /* lighter finish, faded in when open */
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(150deg, #dadadc 0%, #f1f1f3 50.17%, #cfcfd2 100%);
  transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.faq__item.is-open .faq__face::before { opacity: 1; }
.faq__q { margin: 0; font: inherit; position: relative; }
.faq__btn {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 56px 0 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; color: #141419; text-align: left;
}
.faq__btn::after { content: ""; position: absolute; inset: -14px -24px; }      /* whole bar is the target */
.faq__item.is-open .faq__btn::after { bottom: -14px; }
.faq__btn:focus-visible { outline: none; }
.faq__btn:focus-visible::after { outline: 2px solid #141419; outline-offset: -5px; border-radius: 27px; }
.faq__plus {
  position: absolute; top: 14px; right: 11px; width: 44px; height: 44px; border-radius: 999px; pointer-events: none;
  display: grid; place-items: center; color: #141419;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 4px 9px -6px rgba(25, 25, 30, 0.2);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), background 0.3s;
}
.faq__plus svg { width: 18px; height: 18px; }
.faq__face:hover .faq__plus { background: rgba(255, 255, 255, 0.34); }
.faq__item.is-open .faq__plus { transform: rotate(45deg); }
.faq__a { position: relative; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s cubic-bezier(0.32, 0.72, 0, 1); }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { margin: 0; padding: 14px 0 8px; font-size: 15px; line-height: 24px; font-weight: 400; color: #48484d; opacity: 0; transition: opacity 0.35s; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transition-delay: 0.12s; }
@media (max-width: 560px) {
  .faq__face { padding: 12px 18px; }
  .faq__btn { font-size: 16px; }
  .faq__plus { top: 12px; right: 9px; }
}
@media (prefers-reduced-motion: reduce) { .faq__a, .faq__a p, .faq__plus, .faq__face::before { transition: none; } }

/* ---------- Link keys: one soft key that opens into LinkedIn + email ---------- */
.linkkeys {
  --s: #181818; --lo: #090909; --hi: #2a2a2a; --n: 2; --ease: cubic-bezier(0.32, 0.72, 0, 1);
  position: relative; flex: none; padding: 6px; border-radius: 25px; background: var(--s);
  box-shadow: 6px 6px 12px var(--lo), -6px -6px 12px var(--hi);
}
.overlay .linkkeys { --s: #141414; --lo: #060606; --hi: #252525; }
.linkkeys__key {
  display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 25px; flex: none;
  background: var(--s); color: #fff; cursor: pointer;
  box-shadow: 6px 6px 12px var(--lo), -6px -6px 12px var(--hi);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), box-shadow 0.3s var(--ease);
}
.linkkeys__key svg { width: 24px; height: 24px; display: block; }
.linkkeys__key:active { box-shadow: inset 4px 4px 8px var(--lo), inset -4px -4px 8px var(--hi); transform: scale(0.97); }
.linkkeys__key:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.linkkeys__toggle { position: absolute; left: 6px; top: 6px; z-index: 1; }
.linkkeys__list { display: flex; gap: 10px; width: 60px; overflow: visible; transition: width 0.6s var(--ease); }
.linkkeys__list a { opacity: 0; transform: scale(0.8); pointer-events: none; }
.linkkeys.is-open .linkkeys__list, .linkkeys:focus-within .linkkeys__list { width: calc(var(--n) * 60px + (var(--n) - 1) * 10px); }
.linkkeys.is-open .linkkeys__list a, .linkkeys:focus-within .linkkeys__list a { opacity: 1; transform: none; pointer-events: auto; }
.linkkeys.is-open .linkkeys__list a + a, .linkkeys:focus-within .linkkeys__list a + a { transition-delay: 0.08s; }
.linkkeys.is-open .linkkeys__toggle, .linkkeys:focus-within .linkkeys__toggle { opacity: 0; transform: scale(0.8); pointer-events: none; }
@media (hover: hover) {
  .linkkeys:hover .linkkeys__list { width: calc(var(--n) * 60px + (var(--n) - 1) * 10px); }
  .linkkeys:hover .linkkeys__list a { opacity: 1; transform: none; pointer-events: auto; }
  .linkkeys:hover .linkkeys__list a + a { transition-delay: 0.08s; }
  .linkkeys:hover .linkkeys__toggle { opacity: 0; transform: scale(0.8); pointer-events: none; }
}
.footer__row { align-items: center !important; }
.overlay__foot { align-items: center; }
@media (prefers-reduced-motion: reduce) { .linkkeys__key, .linkkeys__list { transition: none; } }

/* ---------- Paper form: crumples into a ball on send ---------- */
#contact { overflow-x: clip; }
.paper { position: relative; max-width: 520px; margin: 0 auto; font-family: "Inter", system-ui, sans-serif; --ink: #252522; }
.paper__form, .paper__thanks { background: #faf9f5; border-radius: 20px; box-shadow: 0 12px 32px rgba(24, 22, 20, 0.14); }
.paper__form { display: grid; gap: 12px; padding: 22px; margin: 0; }
.paper__field {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; box-sizing: border-box;
  border: 1px solid transparent; border-radius: 8px; background: #f2f0ea; color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0; outline: none; appearance: none;
  transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.paper__field::placeholder { color: #8b8881; opacity: 1; }
.paper__field:focus { border-color: rgba(37, 37, 34, 0.4); }
.paper__field.is-invalid { border-color: #c4472d; background: #f6ebe6; }
.paper__area { height: 160px; padding: 12px 14px; resize: none; }
.paper__send {
  height: 50px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 24px;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.paper__send:hover { background: #3a3a36; }
.paper__send:active { transform: scale(0.985); }
.paper__send:focus-visible, .paper__again:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.paper__error { margin: 0; font-size: 14px; line-height: 20px; color: #c4472d; text-align: center; }
.paper__thanks {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 22px 44px; text-align: center; color: var(--ink); visibility: hidden;
}
.paper__thanks h3 { margin: 0; font-size: 28px; font-weight: 600; line-height: 34px; letter-spacing: -0.02em; }
.paper__thanks p { margin: 0; max-width: 300px; font-size: 16px; font-weight: 400; line-height: 24px; color: #68645f; }
.paper__again {
  margin-top: 8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: underline; text-underline-offset: 3px;
}
.paper__canvas {
  position: absolute; left: -140px; top: -140px; display: none; pointer-events: none; z-index: 2;
  filter: drop-shadow(0 12px 16px rgba(24, 22, 20, 0.14)); will-change: transform, opacity;
}
.paper.is-busy .paper__form, .paper.is-sent .paper__form { visibility: hidden; }
.paper.is-busy .paper__canvas { display: block; }
.paper.is-sent .paper__thanks { visibility: visible; }
@media (max-width: 480px) { .paper__form { padding: 16px; } .paper__thanks { padding: 16px 24px; } }

/* Tighter hero: no forced full-screen height, so no empty band above the
   headline, and a smaller step down into the first section */
html[data-version="2"] .page { min-height: 0; }
html[data-version="2"] .hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: 0; }
html[data-version="2"] .v2-only > .v2-section:first-child { padding-top: clamp(28px, 3.5vw, 48px); }


/* =========================================================
   Motion pass (V2). Type comes up out of a mask by line or
   word; objects fade and rise; nothing bounces. Everything
   here is transform/opacity and is skipped for reduced motion.
   ========================================================= */
html[data-version="2"] { --expo: cubic-bezier(0.16, 1, 0.3, 1); --quart: cubic-bezier(0.25, 1, 0.5, 1); }

/* masks: a little vertical room so tight uppercase and descenders are not clipped */
.ln, .wd { overflow: hidden; overflow: clip; padding: 0.1em 0.06em 0.12em; margin: -0.1em -0.06em -0.12em; }
.ln { display: block; }
.wd { display: inline-block; vertical-align: top; }
.ln > span, .wd > span { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the headline arrives one line at a time, then the row beneath it */
  html[data-version="2"] .v2 .headline.split { animation: none; }
  html[data-version="2"] .v2 .headline.split .ln > span { animation: line-up 1s var(--expo) both; animation-delay: calc(var(--i) * 90ms + 60ms); }
  html[data-version="2"] .v2 .subline { animation: v2-rise 0.9s var(--expo) 0.42s both; }
  html[data-version="2"] .v2 .eyebrow { animation: v2-rise 0.8s var(--expo) both; }
  html[data-version="2"] .hero__meta > div { animation: v2-rise 0.8s var(--expo) both; animation-delay: calc(0.55s + var(--i, 0) * 70ms); }
  html[data-version="2"] .hero__meta > div:nth-child(2) { --i: 1; }
  html[data-version="2"] .hero__meta > div:nth-child(3) { --i: 2; }
  html[data-version="2"] .hero__meta > div:nth-child(4) { --i: 3; }

  /* Section label: the hairline draws across, then the two tags settle */
  html[data-version="2"] .section-label.reveal { opacity: 1; transform: none; filter: none; box-shadow: none; position: relative; }
  html[data-version="2"] .section-label.reveal::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--expo);
  }
  html[data-version="2"] .section-label.reveal.is-in::after { transform: scaleX(1); }
  html[data-version="2"] .section-label.reveal > span { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--quart) 0.15s, transform 0.7s var(--expo) 0.15s; }
  html[data-version="2"] .section-label.reveal > span + span { transition-delay: 0.25s; }
  html[data-version="2"] .section-label.reveal.is-in > span { opacity: 1; transform: none; }

  /* Section titles: word by word */
  html[data-version="2"] .v2-title.reveal.split { opacity: 1; transform: none; filter: none; }
  html[data-version="2"] .v2-title.split .wd > span { transform: translateY(112%); transition: transform 0.95s var(--expo); transition-delay: calc(var(--i) * 45ms + 80ms); }
  html[data-version="2"] .v2-title.split.is-in .wd > span { transform: none; }

  /* Big panels: no blur (they hold canvases), shorter travel */
  html[data-version="2"] .bezel.reveal { filter: none; transform: translateY(40px); transition-duration: 0.9s; transition-timing-function: var(--expo); }
  html[data-version="2"] .bezel.reveal.is-in { transform: none; }
  html[data-version="2"] .reveal--soft { filter: none; transform: translateY(26px); transition: opacity 0.7s var(--quart), transform 0.8s var(--expo); transition-delay: var(--d, 0s); }
  html[data-version="2"] .reveal--soft.is-in { transform: none; }

  /* Footer: the name comes up from under the bottom edge */
  html[data-version="2"] .footer.rise .footer__name { transform: translateY(72%); transition: transform 1.3s var(--expo); }
  html[data-version="2"] .footer.rise .footer__row { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--quart) 0.2s, transform 0.8s var(--expo) 0.2s; }
  html[data-version="2"] .footer.rise.is-in .footer__name { transform: none; }
  html[data-version="2"] .footer.rise.is-in .footer__row { opacity: 1; transform: none; }

  /* Form feedback */
  .paper__field { transition: border-color 0.2s var(--quart, ease), background-color 0.2s var(--quart, ease), box-shadow 0.25s var(--quart, ease); }
  .paper__field:focus { box-shadow: 0 0 0 3px rgba(37, 37, 34, 0.08); }
  .paper__field.is-invalid { animation: field-no 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
  .paper__send { transition: background-color 0.2s ease, transform 0.15s cubic-bezier(0.25, 1, 0.5, 1); }
}
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes v2-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes field-no { 25% { transform: translateX(-5px); } 55% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }

/* Statement under the hero: words start at 10% black and fill in one by one as
   the line scrolls up the screen (v2.js sets --a on each word) */
.hero__statement {
  margin: 0; padding: clamp(72px, 14vh, 168px) 0 clamp(56px, 10vh, 120px);
  font-size: clamp(34px, 6.4vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -0.045em;
  max-width: none; color: #000;
}
.hero__statement .sw { color: rgba(0, 0, 0, var(--a, 1)); }

/* Stickers under the statement: stuck straight onto the page. The board only
   reserves the space they start in (stickers.js sets its height); the stickers
   themselves sit on a layer over the whole page so they can be carried anywhere. */
.board--open { height: 240px; margin-top: calc(clamp(56px, 10vh, 120px) * -0.45); background: none; border-radius: 0; overflow: visible; }
.sticker-layer { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 40; touch-action: auto; }
.sticker-layer .sticker { top: 0; left: 0; }
.sticker-gl { position: absolute; left: 0; top: 0; pointer-events: none; }

/* The three service cards are not links */
div.folder { cursor: default; }

/* How I work: the approach text sits straight on the gradient and fills in on scroll */
.glass-stage { place-items: start; }
.glass-stage__lede {
  margin: 0; padding: clamp(24px, 4vw, 64px); padding-bottom: 20vw;
  font-size: clamp(26px, 4.4vw, 68px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
  color: #fff; max-width: 24ch; text-wrap: pretty;
}
.glass-stage__lede .sw { color: rgba(255, 255, 255, var(--a, 1)); }

/* Contact: the soft card on the left, the form on the right. The card has no panel;
   its stage is larger than its column so the cloth has room to stretch. */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(24px, 4vw, 72px); align-items: center; }
.contact-grid > .paper { margin: 0; width: 100%; }
.soft-stage--bare {
  height: clamp(480px, 48vw, 660px); margin: -40px -56px; background: none; border-radius: 0; box-shadow: none; overflow: visible;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid > .paper { margin: 0 auto; }
  .soft-stage--bare { height: 460px; margin: -24px calc(var(--gutter) * -1) 0; }
}

/* ---------- Featured work accordion ---------- */
.works { display: flex; gap: 8px; height: clamp(380px, 46vw, 560px); }
.work {
  position: relative; flex: 1 1 0%; min-width: 0; min-height: 0; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: #1b1d24; color: #fff8ee;
  transition: flex-grow 0.76s cubic-bezier(0.24, 0.72, 0.2, 1);
}
.work[data-open] { flex-grow: 3.5; }
.work__art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.work__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 10, 14, 0.05) 0%, rgba(8, 10, 14, 0.12) 30%, rgba(8, 10, 14, 0.82) 62%, rgba(8, 10, 14, 0.94) 100%); }
.work__toggle {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: inherit;
}
.work__toggle:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.work__mark {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 24, 30, 0.42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.work__mark-v { transform-origin: 50% 50%; transition: transform 0.5s cubic-bezier(0.24, 0.72, 0.2, 1); }
.work[data-open] .work__mark-v { transform: scaleY(0); }
.work__closed, .work__name { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.work__closed {
  position: absolute; left: 14px; bottom: 14px; white-space: nowrap;
  transition: opacity 0.3s ease-out 0.25s;
}
.work[data-open] .work__closed { opacity: 0; transition-delay: 0s; transition-duration: 0.15s; }
.work__content {
  position: absolute; left: 0; bottom: 0; width: min(100%, 520px); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 2px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.work[data-open] .work__content {
  opacity: 1; transform: none;
  transition: opacity 0.5s cubic-bezier(0.24, 0.72, 0.2, 1) 0.3s, transform 0.6s cubic-bezier(0.24, 0.72, 0.2, 1) 0.3s;
}
.work__line { font-size: clamp(22px, 2.9vw, 38px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 16px; text-wrap: balance; }
.work__meta { font-size: 13px; font-weight: 400; opacity: 0.86; }
@media (max-width: 640px) {
  .works { flex-direction: column; height: 620px; }
  .work[data-open] { flex-grow: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .work, .work__content, .work__closed, .work__mark-v { transition: none !important; }
}

/* Contact form: hidden field that only bots fill in */
.paper__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Reviews: three lanes of cards drifting in opposite directions ---------- */
.reviews {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  height: clamp(560px, 62vw, 840px); overflow: hidden; border-radius: 20px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.reviews__lane { overflow: hidden; min-width: 0; }
.reviews__track { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; will-change: transform; }
.reviews.is-live .reviews__track { animation: reviews-down var(--t, 60s) linear infinite; }
.reviews.is-live .reviews__lane[data-dir="up"] .reviews__track { animation-name: reviews-up; }
.reviews.is-live:hover .reviews__track, .reviews.is-paused .reviews__track { animation-play-state: paused; }
@keyframes reviews-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes reviews-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
.review {
  margin: 0; padding: 30px; border-radius: 36px; background: #f4f5f5; color: #191918;
  display: flex; flex-direction: column; gap: 24px;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.review__top { display: flex; align-items: center; gap: 8px; }
.review__stars { display: inline-flex; gap: 2px; color: #e9b949; }
.review__stars svg { display: block; }
.review__score { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.review__mark { margin-left: auto; font-family: Georgia, "Times New Roman", serif; font-size: 56px; line-height: 0.6; height: 22px; color: #c9cccc; font-weight: 700; }
.review__quote { margin: 0; font-size: 18px; line-height: 1.42; letter-spacing: -0.01em; text-wrap: pretty; }
.review__by { display: flex; align-items: center; gap: 10px; }
.review__avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: #191918; color: #f4f5f5;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.review__by strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.review__by small { display: block; margin-top: 2px; font-size: 12px; color: #5c5f5f; }
.reviews__src { margin: clamp(20px, 2.4vw, 32px) 0 0; font-size: 15px; color: var(--muted); }
.reviews__src a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.reviews__src a:hover { color: #000; }
@media (max-width: 900px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews__lane:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
  .reviews { grid-template-columns: 1fr; height: 560px; }
  .reviews__lane:nth-child(2) { display: none; }
  .review { padding: 24px; border-radius: 28px; }
  .review__quote { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews { height: auto; -webkit-mask-image: none; mask-image: none; grid-template-columns: 1fr; }
  .reviews__lane:not(:first-child) { display: none; }
  .reviews__track { animation: none !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* ---------- Contact: the sheet turns into the Cal.com scheduler ---------- */
.paper__cal { display: none; width: 100%; }
.paper.is-cal .paper__form { display: none; }
.paper.is-cal .paper__thanks { position: relative; inset: auto; justify-content: flex-start; padding: 14px 10px 18px; gap: 6px; }
.paper.is-cal .paper__thanks h3, .paper.is-cal .paper__thanks p { display: none; }
.paper.is-cal .paper__cal { display: block; min-height: 520px; border-radius: 12px; overflow: hidden; animation: cal-in 0.6s var(--spring, ease) both; }
.paper.is-cal .paper__cal iframe { width: 100%; }
@keyframes cal-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .paper.is-cal .paper__cal { animation: none; } }

/* the WebGL sheet stands in for whichever panel is showing while it crumples */
.paper.is-busy .paper__thanks { visibility: hidden; }

/* featured work cards are not links yet: no hand cursor, no press state */
.work__toggle { cursor: default; -webkit-tap-highlight-color: transparent; }

/* reviews: the script deals cards into whichever lanes are showing */
.review__quote { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .reviews__track { gap: 12px; align-items: start; } }

/* ---------- Start a project: a rocket crosses the screen ---------- */
.launch-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }
