/* ==========================================================================
   Tokens
   Spacing, type and radius values come from the landing-page-design skill.
   ========================================================================== */
:root {
  --bg: #000000;
  --surface-1: #181818;
  --surface-2: #1F1F1F;
  --surface-3: #272727;
  --surface-4: #313131;
  --text: #F4F4F4;
  --text-2: #A3A3A3;
  --text-3: #6E6E6E;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);
  --accent: #E07A3F;
  --danger: #EF7A6A;

  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --gutter: var(--s-600);
  --nav-h: 64px;
}

@media (max-width: 767px) {
  :root { --gutter: var(--s-200); --nav-h: 56px; }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
p, dd { text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

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

.skip-link {
  position: fixed; top: var(--s-200); left: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); background: var(--text); color: #000;
  border-radius: var(--r-sm); font-size: 14px; line-height: 20px; font-weight: 600;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Headings that rise in one character at a time */
[data-split] .ch {
  display: inline-block; opacity: 0; transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
[data-split].is-in .ch { opacity: 1; transform: none; }

/* Images uncovered by a curtain that lifts away */
.case-media, .bento-shot { position: relative; }
.case-media::after, .bento-shot::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--surface-2);
  transform-origin: 50% 0; transition: transform 1.2s var(--ease);
  pointer-events: none;
}
.case-media.is-in::after, .bento-shot.is-in::after { transform: scaleY(0); }
.case-media img, .bento-shot img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.case-media.is-in img, .bento-shot.is-in img { transform: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  min-width: 240px; height: 48px; padding: var(--s-75) var(--s-300);
  border-radius: var(--r-sm); border: 0; cursor: pointer;
  font-size: 16px; line-height: 24px; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-light { background: rgba(244, 244, 244, .92); color: #111; }
.btn-light:hover { background: #FFFFFF; }
.btn-ghost {
  background: rgba(30, 30, 30, .55); color: var(--text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(60, 60, 60, .7); }
.btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   Intro curtain
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: grid; place-items: center;
  transition: transform 1s var(--ease) .1s;
}
.intro-inner { display: flex; align-items: center; gap: var(--s-200); }
.intro-mark { width: 48px; height: 48px; color: var(--text); animation: intro-spin 1.1s var(--ease) both; }
.intro-word { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: .32em; animation: intro-fade .9s var(--ease) .2s both; }
.intro.is-done { transform: translateY(-100%); }
.intro.is-gone { display: none; }
@keyframes intro-spin { from { opacity: 0; transform: rotate(-90deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes intro-fade { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: var(--s-300); padding: 0 var(--gutter);
  transition: transform .5s var(--ease), background-color .3s var(--ease);
}
.nav.is-solid {
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo { display: flex; align-items: center; gap: var(--s-100); font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: .24em; }
.nav-mark { width: 28px; height: 28px; color: var(--text); }
.nav-links { display: flex; gap: var(--s-50); margin: 0 auto; }
.nav-links a {
  position: relative; padding: var(--s-50) var(--s-200); border-radius: var(--r-sm);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.nav-cta {
  padding: var(--s-75) var(--s-200); border-radius: var(--r-sm);
  font-size: 14px; line-height: 20px; font-weight: 600;
  background: rgba(255, 255, 255, .1); transition: background-color .3s var(--ease);
}
.nav-cta:hover { background: rgba(255, 255, 255, .18); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-left: auto; margin-right: calc(var(--s-100) * -1);
  border: 0; background: transparent; cursor: pointer; border-radius: var(--r-md);
}
.nav-toggle span {
  position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform .5s var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + var(--s-400)) var(--gutter) var(--s-400);
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  padding: var(--s-200) 0; border-bottom: 1px solid var(--line);
  font-size: 30px; line-height: 36px; font-weight: 500;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu a:last-child { color: var(--accent); border-bottom: 0; }

@media (max-width: 899px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Chapter rail
   ========================================================================== */
.rail {
  position: fixed; right: var(--s-300); top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-200);
  mix-blend-mode: difference; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
}
.rail.is-on { opacity: 1; }
.rail-track { position: relative; width: 1px; height: 160px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.rail-track i { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(0); }
.rail-label { writing-mode: vertical-rl; display: flex; gap: var(--s-75); font-size: 12px; line-height: 16px; color: #fff; letter-spacing: .2em; }
.rail-label b { font-weight: 500; font-variant-numeric: tabular-nums; }
.rail-label em { font-style: normal; color: rgba(255, 255, 255, .6); }
@media (max-width: 1023px) { .rail { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--nav-h) var(--gutter);
  text-align: center;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the title sits at the optical centre of the sphere, a touch above the true middle */
.hero-copy { position: relative; max-width: 960px; margin-top: -2vh; }
.hero-title {
  font-size: 128px; line-height: 1; font-weight: 500; letter-spacing: .04em; color: var(--text);
}
.hero-line { display: inline-block; }
/* each character is its own gradient slice so the left to right fade survives the split */
.hero-title .ch {
  display: inline-block;
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  background-size: var(--line-w, 100%) 100%; background-position: var(--ch-x, 0) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: var(--s-300) auto 0; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.br-m { display: none; }

/* Live readout, bottom left */
.hero-meta {
  position: absolute; left: var(--gutter); bottom: var(--s-600);
  display: flex; gap: var(--s-400); text-align: left;
  font-size: 12px; line-height: 16px;
}
.hero-meta dt { color: var(--text-3); letter-spacing: .16em; }
.hero-meta dd { margin-top: var(--s-50); color: var(--text-2); font-variant-numeric: tabular-nums; font-family: "Geist", var(--font); }
.hero-meta div:last-child dd { display: flex; align-items: center; gap: var(--s-75); }
.hero-meta div:last-child dd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* Hero entrance, staged after the intro curtain lifts */
.hero-title .ch { opacity: 0; transform: translateY(48px) rotate(4deg); }
.hero-sub, .hero-meta { opacity: 0; transform: translateY(24px); }
.is-ready .hero-title .ch {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.is-ready .hero-sub, .is-ready .hero-meta { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-ready .hero-sub { transition-delay: .5s; }
.is-ready .hero-meta { transition-delay: .8s; }

/* Scroll guide, right side, only while the hero is in view */
.scroll-guide {
  position: fixed; right: var(--gutter); bottom: var(--s-600); z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-100);
  color: var(--text-2);
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s var(--ease);
}
.is-ready .scroll-guide { opacity: 1; transform: none; animation: guide-in .8s var(--ease) 1.1s backwards; }
.is-ready .scroll-guide.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
@keyframes guide-in { from { opacity: 0; transform: translateY(16px); } }
.scroll-guide:hover { color: var(--text); }
.scroll-mouse { width: 26px; height: 40px; }
.scroll-wheel { animation: wheel 2s var(--ease) infinite; }
@keyframes wheel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}
.scroll-chevrons { display: flex; flex-direction: column; align-items: center; gap: var(--s-25); }
.scroll-chevrons svg { width: 12px; height: 6px; opacity: .15; animation: chevron 2s var(--ease) infinite; }
.scroll-chevrons svg:nth-child(2) { animation-delay: .2s; }
.scroll-chevrons svg:nth-child(3) { animation-delay: .4s; }
@keyframes chevron { 0%, 100% { opacity: .15; transform: translateY(0); } 40% { opacity: 1; transform: translateY(3px); } }
.scroll-text { writing-mode: vertical-rl; margin-top: var(--s-75); font-size: 12px; line-height: 16px; letter-spacing: .32em; }
.t-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .scroll-mouse { display: none; }
  .t-mouse { display: none; }
  .t-touch { display: inline; }
}

@media (max-width: 1023px) { .hero-title { font-size: 96px; } }
@media (max-width: 767px) {
  .hero-copy { margin-top: -6vh; }
  .hero-title { font-size: 60px; letter-spacing: .06em; }
  .hero-line { display: block; }
  .hero-sub { font-size: 16px; line-height: 24px; }
  .br-m { display: inline; }
  .hero-meta { left: var(--gutter); bottom: var(--s-400); gap: var(--s-300); }
  .scroll-guide { right: var(--gutter); bottom: var(--s-400); }
}

/* ==========================================================================
   Manifesto: words light up one at a time
   ========================================================================== */
.manifesto { padding: var(--s-900) var(--gutter); min-height: 100vh; display: grid; place-items: center; }
.manifesto-text {
  max-width: 880px; font-size: 48px; line-height: 1.32; font-weight: 500; letter-spacing: .02em;
}
.manifesto-text .w { color: rgba(244, 244, 244, .28); transition: color .6s var(--ease); }
.manifesto-text .w.is-on { color: var(--text); }
.manifesto-text .w.is-key.is-on { color: var(--accent); }
@media (max-width: 1023px) { .manifesto-text { font-size: 36px; } }
@media (max-width: 767px) { .manifesto-text { font-size: 30px; line-height: 1.4; } }

/* ==========================================================================
   Method: point, line, plane, solid
   ========================================================================== */
.method { position: relative; height: 420vh; }
.method-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.method-canvas { position: absolute; top: 0; right: 0; width: 62%; height: 100%; }
.method-copy { position: absolute; left: var(--gutter); top: 50%; width: min(520px, 42%); transform: translateY(-50%); }
.stage { position: absolute; left: 0; top: 50%; width: 100%; transform: translateY(calc(-50% + 32px)); opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.stage.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.stage-glyph {
  position: absolute; left: -12px; top: -144px; z-index: -1;
  font-size: 128px; line-height: 1; font-weight: 600; color: var(--surface-2);
}
.stage-num { font-size: 14px; line-height: 20px; color: var(--accent); letter-spacing: .16em; font-weight: 500; }
.stage-title { margin-top: var(--s-200); font-size: 48px; line-height: 1.15; }
.stage-text { margin-top: var(--s-300); font-size: 18px; line-height: 28px; color: var(--text-2); max-width: 440px; }
.method-steps {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--s-600);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-200);
}
.method-steps li { display: flex; flex-direction: column; gap: var(--s-100); font-size: 14px; line-height: 20px; color: var(--text-3); transition: color .3s var(--ease); }
.method-steps li.is-on { color: var(--text); }
.method-steps i { position: relative; height: 2px; background: var(--surface-3); overflow: hidden; border-radius: 2px; }
.method-steps b { position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(0); }

@media (max-width: 767px) {
  .method-canvas { width: 100%; height: 56%; }
  .method-copy { top: auto; bottom: 120px; left: var(--gutter); right: var(--gutter); width: auto; transform: none; min-height: 220px; }
  .stage { top: auto; bottom: 0; transform: translateY(24px); }
  .stage.is-on { transform: none; }
  .stage-glyph { display: none; }
  .stage-title { font-size: 30px; line-height: 36px; margin-top: var(--s-100); }
  .stage-text { font-size: 16px; line-height: 24px; margin-top: var(--s-200); }
  .method-steps { bottom: var(--s-400); gap: var(--s-100); }
}

/* ==========================================================================
   Services: full bleed panels that stack over each other
   ========================================================================== */
.services { position: relative; }
.panel {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + 10vh) var(--gutter) var(--s-900);
  background: var(--bg);
}
.panel-media { position: absolute; inset: 0; will-change: transform; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); }
.panel-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.panel-copy, .panel-tags, .panel-actions { position: relative; }
.panel-title { font-size: 72px; line-height: 1; letter-spacing: .02em; }
.panel-sub { margin-top: var(--s-200); font-size: 18px; line-height: 28px; color: rgba(244, 244, 244, .82); }
.panel-tags {
  margin-top: auto; margin-bottom: var(--s-400);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75);
}
.panel-tags li {
  padding: var(--s-50) var(--s-100); border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  font-size: 14px; line-height: 20px; color: rgba(244, 244, 244, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.panel-actions { display: flex; gap: var(--s-300); }
@media (max-width: 767px) {
  .panel { padding-top: calc(var(--nav-h) + 8vh); padding-bottom: var(--s-600); }
  .panel-title { font-size: 48px; }
  .panel-sub { font-size: 16px; line-height: 24px; }
  .panel-tags { margin-bottom: var(--s-300); }
  .panel-actions { flex-direction: column; width: 100%; gap: var(--s-100); }
  .panel-actions .btn { width: 100%; }
}

/* ==========================================================================
   Featured work
   ========================================================================== */
.work { position: relative; padding: var(--s-900) var(--gutter); background: var(--bg); }
.work-head { max-width: 1200px; margin: var(--s-900) auto 0; text-align: center; }
.work-kicker { font-size: 14px; line-height: 20px; color: var(--accent); letter-spacing: .16em; font-weight: 500; }
.work-title {
  margin-top: var(--s-300); font-size: 128px; line-height: 1; letter-spacing: -.03em; font-weight: 500;
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.work-sub { margin-top: var(--s-300); font-size: 24px; line-height: 32px; font-weight: 500; }
.work-desc { margin: var(--s-200) auto 0; max-width: 680px; font-size: 16px; line-height: 24px; color: var(--text-2); }

.work-stage { max-width: 1200px; margin: var(--s-800) auto 0; perspective: 1800px; }
.device {
  border-radius: var(--r-xl); padding: var(--s-75); background: var(--surface-2);
  border: 1px solid var(--line); transform-origin: 50% 0;
  will-change: transform;
}
.device-bar { display: flex; align-items: center; gap: var(--s-75); height: 32px; padding: 0 var(--s-100); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-4); }
.device-bar span { margin-left: var(--s-200); font-size: 12px; line-height: 16px; color: var(--text-3); }
.device img { width: 100%; height: auto; border-radius: var(--r-md); }

.bento {
  max-width: 1200px; margin: var(--s-200) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200);
}
.bento-cell {
  position: relative; padding: var(--s-400); border-radius: var(--r-xl);
  background: var(--surface-1); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.bento-cell:hover { background: var(--surface-2); border-color: var(--line-strong); }
.bento-cell .ico { width: 32px; height: 32px; color: var(--accent); }
.bento-cell h3 { margin-top: auto; padding-top: var(--s-600); font-size: 20px; line-height: 28px; font-weight: 500; }
.bento-cell p { margin-top: var(--s-75); font-size: 14px; line-height: 20px; color: var(--text-2); }
.bento-shot { grid-column: span 2; grid-row: span 2; padding: var(--s-75); overflow: hidden; }
.bento-shot img { width: 100%; height: auto; border-radius: var(--r-md); }
.bento-shot.is-in:hover img { transform: scale(1.02); transition-duration: .5s; }
.bento-cell .ico { transition: transform .5s var(--ease); }
.bento-cell:hover .ico { transform: translateY(-4px); }
.bento-shot figcaption { margin-top: auto; padding: var(--s-300) var(--s-300) var(--s-200); font-size: 14px; line-height: 20px; color: var(--text-2); }
.bento-shot figcaption b { display: block; margin-bottom: var(--s-50); font-size: 20px; line-height: 28px; font-weight: 500; color: var(--text); }

@media (max-width: 1023px) {
  .work-title { font-size: 96px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-shot { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 767px) {
  .work { padding: var(--s-800) var(--gutter); }
  .work-head { margin-top: var(--s-400); }
  .work-title { font-size: 72px; }
  .work-sub { font-size: 20px; line-height: 28px; }
  .work-stage { margin-top: var(--s-600); }
  .device { padding: var(--s-50); border-radius: var(--r-lg); }
  .device img { border-radius: var(--r-md); }
  .bento { grid-template-columns: 1fr; }
  .bento-shot { grid-column: auto; }
  .bento-cell { padding: var(--s-300); }
  .bento-shot { padding: var(--s-50); }
  .bento-cell h3 { padding-top: var(--s-400); }
}

/* ==========================================================================
   Cases: horizontal track pinned on desktop
   ========================================================================== */
.cases { position: relative; }
.cases-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.cases-head { padding: 0 var(--gutter); display: flex; align-items: baseline; gap: var(--s-300); }
.cases-title { font-size: 48px; line-height: 1; }
.cases-sub { font-size: 16px; line-height: 24px; color: var(--text-2); }
.cases-track { display: flex; gap: var(--s-400); padding: var(--s-600) var(--gutter) 0; will-change: transform; }
.case { flex: none; width: min(64vw, 960px); }
.case-media { border-radius: var(--r-xl); overflow: hidden; background: var(--surface-1); aspect-ratio: 16 / 10; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case:hover .case-media.is-in img { transform: scale(1.03); transition-duration: .5s; }
.case-meta { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-300); align-items: start; padding-top: var(--s-300); }
.case-num { font-size: 14px; line-height: 20px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.case-meta h3 { font-size: 24px; line-height: 32px; }
.case-meta p { margin-top: var(--s-75); max-width: 520px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.case-meta ul { display: flex; gap: var(--s-75); flex-wrap: wrap; justify-content: flex-end; }
.case-meta li { padding: var(--s-25) var(--s-100); border-radius: 999px; background: var(--surface-2); font-size: 12px; line-height: 16px; color: var(--text-2); }
.case-next {
  width: min(36vw, 520px); aspect-ratio: auto; align-self: flex-start;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface-1);
  padding: var(--s-400); display: flex; flex-direction: column; justify-content: space-between;
  min-height: min(40vw, 600px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.case-next:hover { background: var(--surface-2); border-color: var(--line-strong); }
.case-next strong { font-size: 48px; line-height: 1.15; font-weight: 500; }
.case-next-go { display: inline-flex; align-items: center; gap: var(--s-75); font-size: 16px; line-height: 24px; font-weight: 500; }
.case-next-go svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.case-next:hover .case-next-go svg { transform: translateX(4px); }

@media (max-width: 1023px) {
  .cases { height: auto !important; }
  .cases-stick { position: static; height: auto; padding: var(--s-900) 0; display: block; }
  .cases-head { flex-direction: column; gap: var(--s-75); }
  .cases-track { flex-direction: column; transform: none !important; gap: var(--s-600); }
  .case, .case-next { width: 100%; }
  .case-next { min-height: 280px; }
  .case-meta { grid-template-columns: auto 1fr; }
  .case-meta ul { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 767px) {
  .cases-stick { padding: var(--s-800) 0; }
  .cases-title { font-size: 36px; }
  .case-meta { gap: var(--s-200); }
  .case-meta h3 { font-size: 20px; line-height: 28px; }
  .case-next strong { font-size: 36px; }
}

/* ==========================================================================
   Stack marquee
   ========================================================================== */
.stack { padding: var(--s-900) 0; overflow: hidden; border-top: 1px solid var(--line); }
.stack-title { padding: 0 var(--gutter); max-width: 1200px; margin: 0 auto var(--s-700); font-size: 48px; line-height: 1.15; text-align: center; }
.marquee { display: flex; gap: var(--s-600); white-space: nowrap; will-change: transform; }
.marquee span { font-size: 96px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; color: var(--surface-4); transition: color .3s var(--ease); }
.marquee span:hover { color: var(--text); }
.marquee-alt span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.marquee-alt span:hover { color: transparent; -webkit-text-stroke-color: var(--accent); }
@media (max-width: 767px) {
  .stack { padding: var(--s-800) 0; }
  .stack-title { font-size: 30px; line-height: 36px; margin-bottom: var(--s-600); }
  .marquee { gap: var(--s-300); }
  .marquee span { font-size: 48px; }
}

/* ==========================================================================
   Promise: spec row
   ========================================================================== */
.promise { padding: var(--s-900) var(--gutter); border-top: 1px solid var(--line); }
.promise-title { max-width: 1200px; margin: var(--s-600) auto 0; font-size: 48px; line-height: 1.15; text-align: center; }
.specs { max-width: 1200px; margin: var(--s-800) auto var(--s-600); display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 0 var(--s-300); text-align: center; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; }
.spec::before {
  content: ""; display: block; width: 24px; height: 2px; margin: 0 auto var(--s-300); background: var(--accent);
  transform: scaleX(0); transition: transform .9s var(--ease) .3s;
}
.spec.is-in::before { transform: none; }
.spec dt { font-size: 30px; line-height: 36px; font-weight: 500; }
.spec dd { margin-top: var(--s-100); font-size: 14px; line-height: 20px; color: var(--text-2); }
@media (max-width: 1023px) {
  .specs { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-600); }
  .spec:nth-child(3) { border-left: 0; }
}
@media (max-width: 767px) {
  .promise { padding: var(--s-800) var(--gutter); }
  .promise-title { font-size: 30px; line-height: 36px; margin-top: 0; }
  .specs { grid-template-columns: 1fr; row-gap: 0; margin-top: var(--s-600); }
  .spec { border-left: 0; border-top: 1px solid var(--line); padding: var(--s-300) 0; text-align: left; }
  .spec:first-child { border-top: 0; }
  .spec dt { font-size: 24px; line-height: 32px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: var(--s-900) var(--gutter); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--s-900); max-width: 1296px; margin: 0 auto;
  min-height: 100vh;
}
.contact-title {
  font-size: 96px; line-height: 1.05; letter-spacing: .02em;
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-sub { margin-top: var(--s-400); max-width: 440px; font-size: 18px; line-height: 28px; color: var(--text-2); }

.contact-open { margin-top: var(--s-600); }
.contact-open svg { transition: transform .5s var(--ease); }
.contact-open:hover svg { transform: translateX(4px); }
.contact-open[aria-expanded="true"] svg { transform: rotate(180deg); }

/* --- Business card: tilts with the pointer, catches light, flips to the email --- */
.card-stage { position: relative; display: grid; place-items: center; perspective: 1400px; padding: var(--s-400) 0; }
.card {
  position: relative; width: min(100%, 560px); aspect-ratio: 5 / 3;
  transform-style: preserve-3d; transition: transform .8s var(--ease);
  --gx: 50%; --gy: 50%; --sheen: -60%;
}
.card.is-tracking { transition: transform .3s var(--ease); }
.card-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform 1.1s var(--ease);
}
.card.is-flipped .card-inner { transform: rotateY(180deg); }

.card-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-xl);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: var(--s-400);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 48px 96px rgba(0, 0, 0, .6), 0 16px 32px rgba(0, 0, 0, .4);
}
/* soft glare that sits wherever the pointer is */
.card-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 45%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.card.is-tracking .card-face::after { opacity: 1; }

/* a band of light that sweeps across the surface */
.card-sheen {
  position: absolute; top: -50%; bottom: -50%; left: 0; width: 70%; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .16) 46%, rgba(255, 255, 255, .03) 54%, rgba(255, 255, 255, 0) 80%);
  mix-blend-mode: screen;
  transform: translateX(var(--sheen)) rotate(8deg);
  animation: sheen 6s var(--ease) 1.5s infinite;
}
.card.is-tracking .card-sheen { animation: none; transition: transform .3s var(--ease); }
@keyframes sheen {
  0% { transform: translateX(-120%) rotate(8deg); }
  45%, 100% { transform: translateX(220%) rotate(8deg); }
}

.card-front {
  background: var(--surface-1); color: var(--text); cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .08);
}
.card-front:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.card-grid { position: absolute; top: var(--s-400); right: var(--s-400); width: 88px; height: 88px; }
/* oversized logo pressed into the stock, only the sheen really shows it */
.card-emboss {
  position: absolute; right: -14%; bottom: -38%; width: 72%; height: auto; aspect-ratio: 1;
  color: rgba(255, 255, 255, .07); pointer-events: none;
}
.card-brand, .card-foot { position: relative; }
.card-brand { display: flex; align-items: center; gap: var(--s-200); }
.card-mark { width: 48px; height: 48px; color: var(--text); flex: none; }
.card-name { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: .32em; }
.card-en { margin-top: var(--s-25); font-size: 12px; line-height: 16px; color: var(--text-3); letter-spacing: .16em; }
.card-motto { font-size: 18px; line-height: 28px; font-weight: 500; letter-spacing: .16em; }
.card-tags { margin-top: var(--s-50); font-size: 12px; line-height: 16px; color: var(--text-3); }
.card-hint {
  position: absolute; right: var(--s-400); bottom: var(--s-400);
  display: flex; align-items: center; gap: var(--s-75);
  font-size: 12px; line-height: 16px; color: var(--text-3); letter-spacing: .16em;
}
.card-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease) infinite; }

.card-back {
  transform: rotateY(180deg);
  background: #ECEAE6; color: #141414;
  justify-content: flex-start;
}
.card-back .card-sheen { mix-blend-mode: soft-light; }
.card-back-top { display: flex; align-items: center; justify-content: space-between; }
.card-kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .24em; color: #B4561F; }
.card-flip-back {
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: calc(var(--s-100) * -1);
  border: 0; border-radius: 50%; background: transparent; color: #5A5A5A; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--ease);
}
.card-flip-back:hover { background: rgba(0, 0, 0, .06); color: #141414; transform: rotate(-90deg); }
.card-flip-back svg { width: 20px; height: 20px; }
.card-email {
  position: relative; z-index: 1; align-self: flex-start;
  margin-top: var(--s-300); font-family: "Geist", var(--font);
  font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -.01em; color: #141414;
  background-image: linear-gradient(#141414, #141414); background-repeat: no-repeat;
  background-size: 100% 1px; background-position: 0 100%;
}
.card-email:hover { color: #B4561F; }
.card-note { margin-top: var(--s-200); max-width: 440px; font-size: 14px; line-height: 20px; color: #5A5A5A; }
.card-actions { position: relative; z-index: 1; display: flex; gap: var(--s-100); margin-top: auto; }
.card-btn {
  display: inline-flex; align-items: center; gap: var(--s-75); height: 40px; padding: 0 var(--s-200);
  border-radius: var(--r-sm); border: 1px solid rgba(0, 0, 0, .16); background: transparent; color: #141414; cursor: pointer;
  font-size: 14px; line-height: 20px; font-weight: 600;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.card-btn:hover { background: rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .3); }
.card-btn:active { transform: scale(.98); }
.card-btn svg { width: 18px; height: 18px; }
.card-btn-main { background: #141414; border-color: #141414; color: #F4F4F4; }
.card-btn-main:hover { background: #2A2A2A; border-color: #2A2A2A; }
.card-btn.is-done { border-color: #B4561F; color: #B4561F; }
.card-company { align-self: flex-end; margin-left: auto; font-size: 12px; line-height: 16px; color: #8A8A8A; letter-spacing: .08em; }
.card-back :focus-visible { outline: 2px solid #B4561F; outline-offset: 2px; }

@media (max-width: 1023px) {
  .contact { grid-template-columns: 1fr; gap: var(--s-600); }
  .contact-title { font-size: 72px; }
}
@media (max-width: 767px) {
  .contact { padding: var(--s-800) var(--gutter); }
  .contact-title { font-size: 48px; }
  .contact-sub { font-size: 16px; line-height: 24px; margin-top: var(--s-300); }
  .contact { min-height: 0; }
  .contact-open { width: 100%; margin-top: var(--s-400); }
  .card-stage { padding: 0; }
  /* a portrait card reads better on a phone */
  .card { aspect-ratio: 4 / 5; }
  .card-face { padding: var(--s-300); }
  .card-grid { top: var(--s-300); right: var(--s-300); width: 72px; height: 72px; }
  .card-brand { flex-direction: column; align-items: flex-start; gap: var(--s-200); margin-top: var(--s-200); }
  .card-hint { right: var(--s-300); bottom: var(--s-300); }
  .card-foot { padding-bottom: var(--s-500); }
  .card-email { font-size: 20px; line-height: 28px; margin-top: var(--s-600); }
  .card-actions { flex-direction: column; }
  .card-btn { justify-content: center; height: 44px; }
  .card-company { align-self: center; margin: var(--s-100) 0 0; }
  .card-emboss { right: -30%; bottom: -12%; width: 110%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: var(--s-900) var(--gutter) var(--s-400); border-top: 1px solid var(--line); overflow: hidden; }
.footer-word {
  font-size: 22vw; line-height: 1; font-weight: 600; letter-spacing: .04em; text-align: center;
  color: var(--surface-1);
  user-select: none;
}
.footer-word .ch { display: inline-block; transition: color .6s var(--ease), transform .6s var(--ease); }
.footer-word .ch:hover { color: var(--surface-4); transform: translateY(-8px); }
.footer-row {
  margin-top: var(--s-600); display: flex; align-items: center; justify-content: space-between; gap: var(--s-300);
  font-size: 14px; line-height: 20px; color: var(--text-3);
}
.footer-row nav { display: flex; gap: var(--s-300); }
.footer-row a { transition: color .3s var(--ease); }
.footer-row a:hover { color: var(--text); }
.footer-top { display: inline-flex; align-items: center; gap: var(--s-50); }
.footer-top svg { width: 16px; height: 16px; }
@media (max-width: 767px) {
  .footer { padding-top: var(--s-600); }
  .footer-row { flex-direction: column; align-items: flex-start; gap: var(--s-200); }
}

/* ==========================================================================
   Reduced motion: no movement, plain opacity only
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { transform: none; transition: opacity .3s linear; }
  .hero-title .ch, .hero-sub, .hero-meta, .scroll-guide { transform: none !important; }
  .stage, .stage.is-on { transition: opacity .3s linear; }
  .intro { display: none; }
  .manifesto-text .w { color: var(--text); transition: none; }
  [data-split] .ch { transform: none; transition: opacity .3s linear; }
  .case-media::after, .bento-shot::after { display: none; }
  .case-media img, .bento-shot img { transform: none; }
  .card-inner { transition: none; }
  .card-sheen { display: none; }
}
