/* ============================================================
   Base styles — depend only on palette tokens from palettes.css
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv01", "cv11";
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 600ms cubic-bezier(.65,.05,.35,1), color 600ms cubic-bezier(.65,.05,.35,1);
}

body { overflow-x: hidden; }
#root { position: relative; min-height: 100vh; }

[dir="rtl"] body {
  direction: rtl;
}

[dir="rtl"] .h-display,
[dir="rtl"] .hero-title,
[dir="rtl"] .showcase-title {
  letter-spacing: 0;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .proof-visual-copy,
[dir="rtl"] .motion-case-copy,
[dir="rtl"] .about-teaser-panel,
[dir="rtl"] .about-body,
[dir="rtl"] .contact,
[dir="rtl"] .profile-card-copy,
[dir="rtl"] .profile-card-head {
  text-align: right;
}

[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .mono-label,
[dir="rtl"] .nav-status,
[dir="rtl"] .pretitle {
  direction: rtl;
}

[dir="rtl"] .btn .arrow,
[dir="rtl"] .arrow,
[dir="rtl"] .contact-email svg,
[dir="rtl"] .profile-card-pill svg {
  transform: scaleX(-1);
}

[dir="rtl"] .hero-corner.tr {
  right: auto;
  left: 32px;
  text-align: left;
}

[dir="rtl"] .hero-corner.br {
  right: auto;
  left: 32px;
}

[dir="rtl"] .section-header,
[dir="rtl"] .about-teaser-grid,
[dir="rtl"] .about-grid,
[dir="rtl"] .proof-process,
[dir="rtl"] .proof-wide,
[dir="rtl"] .proof-system,
[dir="rtl"] .motion-case-board,
[dir="rtl"] .profile-card-body,
[dir="rtl"] .footer,
[dir="rtl"] .timeline-row,
[dir="rtl"] .about-meta-row,
[dir="rtl"] .work-row {
  direction: rtl;
}

[dir="rtl"] .proof-process-media {
  direction: rtl;
}

::selection { background: var(--selection); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }

/* Grain overlay — fixed, blendable */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity, 0.04);
  mix-blend-mode: overlay;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

/* Mono labels (used in nav, section headers, corner labels) */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.mono-label .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

/* Headings */
.h-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.03em);
  line-height: 0.96;
  color: var(--ink);
}

/* Section header — mono label + numerical index */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: var(--display-tracking, -0.03em);
  line-height: 1;
}
.section-header .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 200ms cubic-bezier(.2,.7,.3,1), background 200ms, color 200ms, border-color 200ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--bg-soft); }

.btn .arrow {
  transition: transform 200ms cubic-bezier(.2,.7,.3,1);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Custom cursors — 3 styles, all replace native pointer
   ============================================================ */
.cursor-dot, .cursor-aurora, .cursor-spot, .cursor-comet {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

/* Shared inner dot (used by aurora + comet, NOT spotlight) */
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: normal;
  transition: width 220ms cubic-bezier(.2,.7,.3,1), height 220ms cubic-bezier(.2,.7,.3,1), background 220ms;
}
.cursor-dot.hover { width: 12px; height: 12px; }

/* AURORA — large soft accent halo trailing the dot */
.cursor-aurora {
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    var(--accent) 0%,
    color-mix(in oklab, var(--accent) 60%, transparent) 18%,
    transparent 65%);
  opacity: 0.32;
  filter: blur(28px);
  mix-blend-mode: screen;
  transition: width 300ms cubic-bezier(.2,.7,.3,1), height 300ms cubic-bezier(.2,.7,.3,1), opacity 300ms;
}
[data-mode="light"] .cursor-aurora { mix-blend-mode: multiply; opacity: 0.18; }
.cursor-aurora.hover { width: 480px; height: 480px; opacity: 0.5; }

/* SPOTLIGHT — full-screen darken with circular cutout following pointer */
.cursor-spot {
  width: 100vw; height: 100vh;
  transform: none; top: 0; left: 0;
  background: radial-gradient(circle 220px at var(--cx, 50%) var(--cy, 50%),
    transparent 0,
    color-mix(in oklab, var(--bg) 70%, transparent) 60%,
    color-mix(in oklab, var(--bg) 90%, transparent) 100%);
  mix-blend-mode: normal;
  transition: opacity 260ms;
}
.cursor-spot.hover { /* expand cutout — handled in JS by changing CSS var */ }

/* COMET — small bright head + trailing streak (drawn as canvas) */
.cursor-comet {
  /* canvas covers full screen; styling handled inline */
  width: 100vw; height: 100vh;
  transform: none; top: 0; left: 0;
  mix-blend-mode: screen;
}
[data-mode="light"] .cursor-comet { mix-blend-mode: multiply; opacity: 0.85; }

/* Hide native cursor when any custom is on */
body[data-cursor-style]:not([data-cursor-style="off"]),
body[data-cursor-style]:not([data-cursor-style="off"]) * {
  cursor: none !important;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-aurora, .cursor-spot, .cursor-comet { display: none !important; }
  body[data-cursor-style]:not([data-cursor-style="off"]),
  body[data-cursor-style]:not([data-cursor-style="off"]) * { cursor: auto !important; }
}

/* ============================================================
   Section background canvas (palette-aware ambient motion)
   ============================================================ */
.section-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
[data-mode="light"] .section-bg { opacity: 0.5; }
[data-mode="light"] .section-bg { opacity: 0.42; }

.scroll-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.82;
  mix-blend-mode: screen;
}
[data-mode="light"] .scroll-world {
  opacity: 0.54;
  mix-blend-mode: multiply;
}

section.block { isolation: isolate; position: relative; }
section.block > .wrap { position: relative; z-index: 1; }
.contact { isolation: isolate; position: relative; }
.contact > .wrap { position: relative; z-index: 1; }

/* Scroll-tied effects */
.hero-content { will-change: transform, opacity; }
.hero-video-wrap { will-change: auto; }

/* Reveal animation utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.7,.3,1), transform 900ms cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-soft); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 400ms ease, backdrop-filter 400ms ease, border-color 400ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}
.nav-brand .mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 10px;
  color: var(--ink);
  padding: 6px;
  border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 52%, transparent);
  box-shadow: 0 14px 40px color-mix(in oklab, #000 24%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: color-mix(in oklab, var(--ink) 88%, white 12%);
  text-shadow: 0 1px 18px color-mix(in oklab, #000 72%, transparent);
  transition: color 200ms, background 200ms, transform 200ms cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover {
  color: var(--accent-ink);
  background: var(--accent);
  transform: translateY(-1px);
  text-shadow: none;
}
.nav-links a::after {
  content: none;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in oklab, var(--bg-elev) 72%, transparent);
  color: var(--ink);
  box-shadow: 0 12px 32px -24px rgba(0,0,0,.8);
  transition: transform 180ms cubic-bezier(.2,.7,.3,1), border-color 180ms, background 180ms;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  background: var(--bg-elev);
}
.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: block;
}
.theme-icon.dark {
  background: transparent;
  box-shadow: inset -5px -3px 0 0 var(--ink-soft);
}
.theme-icon.light {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 24%, transparent);
}
.theme-icon.light::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  background:
    linear-gradient(var(--accent), var(--accent)) 50% 0 / 2px 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 50% 100% / 2px 5px no-repeat,
    linear-gradient(90deg, var(--accent), var(--accent)) 0 50% / 5px 2px no-repeat,
    linear-gradient(90deg, var(--accent), var(--accent)) 100% 50% / 5px 2px no-repeat;
}
.palette-choice {
  width: min(560px, 100%);
  margin: -8px 0 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklab, var(--bg) 58%, transparent);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}
.palette-choice.compact {
  width: auto;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
}
.palette-choice-line {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}
.palette-choice-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.palette-choice-button {
  min-height: 36px;
  padding: 8px 12px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-soft) 68%, transparent);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  transition: transform 180ms cubic-bezier(.2,.7,.3,1), border-color 180ms, color 180ms, background 180ms;
}
.palette-choice-button:hover,
.palette-choice-button[data-active="true"] {
  color: var(--ink);
  border-color: color-mix(in oklab, var(--swatch, var(--accent)) 68%, var(--line));
  background: color-mix(in oklab, var(--swatch, var(--accent)) 18%, var(--bg-soft));
}
.palette-choice-button:hover {
  transform: translateY(-1px);
}
.palette-choice-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--swatch, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--swatch, var(--accent)) 18%, transparent);
}
.palette-choice.compact .palette-choice-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  justify-content: center;
}
.palette-choice.compact .palette-choice-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.palette-choice.compact .palette-choice-dot {
  width: 13px;
  height: 13px;
}
.language-choice {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-elev) 68%, transparent);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  flex: 0 0 auto;
}
.language-choice-button {
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink-mute);
  font: 800 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  transition: color 180ms, background 180ms, transform 180ms cubic-bezier(.2,.7,.3,1);
}
.language-choice-button:hover,
.language-choice-button[data-active="true"] {
  color: var(--accent-ink);
  background: var(--accent);
}
.language-choice-button:hover { transform: translateY(-1px); }
.nav-status {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-mute);
  font-size: 11px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .theme-toggle { width: 40px; height: 40px; }
  .nav .palette-choice.compact { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 120px 32px 80px;
}
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: var(--bg);
  transform: translateZ(0);
}
.hero-video-wrap video,
.hero-video-wrap img,
.hero-video-wrap canvas {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
}

[dir="rtl"] .hero-video-wrap video,
[dir="rtl"] .hero-video-wrap img,
[dir="rtl"] .hero-video-wrap canvas {
  transform: scaleX(-1) translateZ(0);
}

[dir="rtl"] .hero-video-wrap {
  transform-origin: center;
}

.hero-still-image {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
}
.hero-loop-video {
  position: absolute;
  inset: 0;
}
.hero-loop-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateZ(0);
  transition: none;
}
.hero-loop-video video.active {
  opacity: 1;
}
/* Gradient veil over the video so the type stays legible regardless of footage */
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 25% 110%, var(--hero-tint-1), transparent 55%),
    linear-gradient(180deg, transparent 0%, var(--hero-tint-2) 70%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-eyebrow .line {
  width: 48px; height: 1px; background: var(--ink-soft); opacity: 0.4;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(48px, 9vw, 156px);
  letter-spacing: var(--display-tracking, -0.04em);
  line-height: 0.92;
  margin-bottom: 32px;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-title .accent { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(740px, 100%);
  margin-bottom: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hero-proof-item {
  min-height: 74px;
  padding: 16px 18px;
  background: color-mix(in oklab, var(--bg) 74%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-proof-item .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.hero-proof-item .v {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero corner labels — Nate Herk-style mono labels */
.hero-corners {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}
.hero-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-corner.tl { top: 100px; left: 32px; }
.hero-corner.tr { top: 100px; right: 32px; text-align: right; }
.hero-corner.bl { bottom: 32px; left: 32px; display: none; } /* nav already covers this */
.hero-corner.br { bottom: 32px; right: 32px; }
.hero-corner .seg {
  width: 18px; height: 1px; background: var(--ink-mute); opacity: 0.5;
}

/* Marquee under hero */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  overflow: hidden;
  padding: 18px 0;
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-track .item {
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee-track .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections
   ============================================================ */
section.block {
  padding: 140px 0;
  position: relative;
}
@media (max-width: 720px) {
  section.block { padding: 100px 0; }
}

@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav-status { display: none; }
  .nav-brand { max-width: 140px; overflow: hidden; white-space: nowrap; }
  .hero { padding: 112px 20px 70px; }
  .hero-corner.tr { top: 86px; right: 20px; }
  .hero-corner.br { display: none; }
  .hero-title { font-size: clamp(48px, 16vw, 76px); max-width: 11ch; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof-item { min-height: 54px; flex-direction: row; align-items: center; gap: 18px; }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--bg);
  padding: 40px;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: background 300ms ease;
  cursor: pointer;
}
.service-card:hover { background: var(--bg-elev); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.service-card .name {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: var(--display-tracking, -0.02em);
  line-height: 1.05;
  margin-bottom: 16px;
}
.service-card .desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 24px;
  flex: 1;
}
.service-card .meta {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}
.service-card .arrow-link {
  position: absolute; top: 32px; right: 32px;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: all 240ms cubic-bezier(.2,.7,.3,1);
}
[dir="rtl"] .service-card .arrow-link {
  right: auto;
  left: 32px;
}
.service-card:hover .arrow-link {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  transform: rotate(-45deg);
}

/* Work / Case studies */
.proof-visual-grid {
  display: grid;
  gap: 18px;
  margin: 0 0 56px;
}
.proof-visual-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 12%, var(--accent-soft), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--paper) 92%, #000 8%), color-mix(in srgb, var(--paper) 76%, var(--accent) 8%));
  padding: clamp(22px, 3vw, 38px);
  min-height: 0;
  display: grid;
  gap: clamp(22px, 3vw, 42px);
  isolation: isolate;
}
.proof-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.95%, color-mix(in srgb, var(--accent) 18%, transparent) 50%, transparent 50.05%),
    repeating-linear-gradient(0deg, transparent 0 52px, color-mix(in srgb, var(--ink) 3%, transparent) 53px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.proof-visual-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}
.proof-visual-copy span {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.proof-visual-copy h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(28px, 4vw, 58px);
  letter-spacing: var(--display-tracking, -0.04em);
  line-height: 0.98;
  max-width: 12ch;
}
.proof-visual-copy p {
  color: var(--ink-soft);
  max-width: 42ch;
}
.proof-process,
.proof-wide {
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  align-items: end;
}
.proof-process-media {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.08fr 0.76fr;
  gap: 14px;
  align-items: stretch;
}
.proof-media-pane,
.proof-wide-frame {
  margin: 0;
  min-width: 0;
  position: relative;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  overflow: hidden;
  box-shadow: 0 24px 70px color-mix(in srgb, #000 34%, transparent);
}
.proof-media-pane {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 12px;
}
.proof-media-pane figcaption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 4px 0;
}
.proof-media-pane img {
  width: 100%;
  height: clamp(220px, 27vw, 360px);
  object-fit: contain;
  display: block;
  align-self: center;
  justify-self: center;
}
.proof-process-media .proof-media-pane:nth-child(2) img {
  height: clamp(240px, 29vw, 390px);
}
.proof-wide-frame {
  padding: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    color-mix(in srgb, var(--bg) 82%, #000 18%);
}
.proof-wide-frame img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border-radius: 16px;
  filter: saturate(0.95) contrast(1.06);
}
.proof-system {
  grid-template-columns: minmax(260px, 0.58fr) minmax(260px, 0.42fr);
  align-items: end;
}
.proof-system-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.proof-system-item {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 18%, var(--accent-soft), transparent 46%),
    color-mix(in srgb, var(--bg-soft) 78%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--ink);
  font-weight: 700;
}
.proof-system-item span {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.motion-case-board {
  position: relative;
  overflow: hidden;
  margin: 0 0 56px;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 20%, var(--accent-soft), transparent 32%),
    radial-gradient(circle at 14% 92%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    color-mix(in srgb, var(--paper) 88%, #000 12%);
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(24px, 3.4vw, 46px);
  isolation: isolate;
}
.motion-case-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.95%, color-mix(in srgb, var(--accent) 18%, transparent) 50%, transparent 50.05%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 1px, transparent 1px 72px);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}
.motion-case-board::after {
  content: "";
  position: absolute;
  width: 54%;
  aspect-ratio: 1;
  right: -18%;
  top: -20%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transform: rotate(-18deg);
  opacity: 0.45;
  z-index: 0;
}
.motion-case-copy,
.motion-stage {
  position: relative;
  z-index: 1;
}
.motion-case-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}
.motion-case-copy h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(34px, 5.2vw, 78px);
  line-height: 0.94;
  letter-spacing: var(--display-tracking, -0.04em);
  max-width: 10ch;
}
.motion-case-copy p {
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.55;
}
.motion-case-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.motion-case-steps span {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-soft) 64%, transparent);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 700;
}
.motion-case-steps b {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.motion-stage {
  min-height: 430px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 26px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--paper) 88%, #000 12%)),
    var(--bg);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent), 0 28px 90px color-mix(in srgb, #000 34%, transparent);
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  overflow: hidden;
}
.motion-stage-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.motion-frame-stack {
  position: relative;
  min-height: 320px;
}
.motion-frame {
  --x: calc(var(--i) * 27%);
  --delay: calc(var(--i) * -1.4s);
  position: absolute;
  left: var(--x);
  top: calc(16px + var(--i) * 20px);
  width: min(46%, 360px);
  height: clamp(250px, 26vw, 330px);
  margin: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 44%),
    color-mix(in srgb, var(--bg) 86%, #000 14%);
  box-shadow: 0 24px 70px color-mix(in srgb, #000 38%, transparent);
  animation: motionFrameFloat 7s ease-in-out infinite;
  animation-delay: var(--delay);
}
.motion-frame:nth-child(2) {
  z-index: 2;
  transform: translateY(-8px);
}
.motion-frame:nth-child(3) {
  z-index: 1;
  width: min(54%, 440px);
}
.motion-frame img {
  width: 100%;
  height: calc(100% - 70px);
  object-fit: contain;
  border-radius: 17px;
  background: color-mix(in srgb, var(--paper) 86%, #000 14%);
}
.motion-frame:nth-child(3) img {
  object-fit: cover;
  object-position: center;
}
.motion-frame figcaption {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-content: center;
  padding: 10px 4px 0;
}
.motion-frame figcaption span {
  grid-row: span 2;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 11px;
}
.motion-frame figcaption strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}
.motion-frame figcaption em {
  color: var(--ink-mute);
  font-style: normal;
  font-size: 12px;
}
.motion-timeline {
  position: relative;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  align-items: center;
  padding: 0 14px;
  overflow: hidden;
}
.motion-timeline i {
  height: calc(8px + (var(--i) % 4) * 5px);
  width: 1px;
  background: color-mix(in srgb, var(--ink) 20%, transparent);
  justify-self: center;
}
.motion-playhead {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 2px;
  left: 16px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
  animation: motionPlayhead 5.8s linear infinite;
}
@keyframes motionFrameFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes motionPlayhead {
  0% { left: 16px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 18px); opacity: 0; }
}
.work-list { display: flex; flex-direction: column; }
.work-row {
  display: grid;
  grid-template-columns: 60px 1.6fr 1fr 0.8fr 40px;
  gap: 24px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: padding 300ms cubic-bezier(.2,.7,.3,1);
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row:hover { padding: 36px 16px; }
.work-row::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent-soft);
  opacity: 0; transition: opacity 280ms;
}
.work-row:hover::before { opacity: 1; }
.work-row > * { position: relative; }
.work-row .num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-mute); letter-spacing: 0.14em;
}
.work-row .title {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: var(--display-tracking, -0.02em);
  line-height: 1.1;
}
.work-row .client {
  color: var(--ink-soft);
  font-size: 14px;
}
.work-row .year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-align: right;
}
[dir="rtl"] .work-row .year,
[dir="rtl"] .work-row .arrow {
  text-align: left;
}
.work-row .arrow {
  text-align: right;
  color: var(--ink-soft);
  transition: transform 240ms, color 240ms;
}
.work-row:hover .arrow { transform: translateX(4px); color: var(--accent); }

@media (max-width: 720px) {
  .proof-visual-grid { margin-bottom: 36px; }
  .proof-visual-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .proof-process,
  .proof-wide,
  .proof-system {
    grid-template-columns: 1fr;
  }
  .proof-process-media {
    grid-template-columns: 1fr;
  }
  .proof-media-pane img {
    height: auto;
    max-height: 420px;
  }
  .proof-system-grid {
    grid-template-columns: 1fr;
  }
  .motion-case-board {
    grid-template-columns: 1fr;
    margin-bottom: 36px;
    min-height: 0;
    border-radius: 24px;
  }
  .motion-case-copy h3 {
    max-width: 12ch;
  }
  .motion-case-steps {
    grid-template-columns: 1fr;
  }
  .motion-stage {
    min-height: 0;
    padding: 14px;
    border-radius: 22px;
  }
  .motion-frame-stack {
    min-height: 680px;
    display: grid;
    gap: 14px;
  }
  .motion-frame,
  .motion-frame:nth-child(3) {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 250px;
    animation: none;
  }
  .motion-frame img {
    height: auto;
    max-height: 320px;
  }
  .work-row { grid-template-columns: 40px 1fr 40px; gap: 12px; }
  .work-row .client, .work-row .year { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-frame,
  .motion-playhead {
    animation: none;
  }
}

/* About teaser */
.about-teaser {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}
.about-teaser-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: var(--display-weight, 500);
  letter-spacing: var(--display-tracking, -0.04em);
  line-height: 0.94;
  max-width: 10ch;
}
.about-teaser-panel {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.about-teaser-panel p {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  margin-bottom: 28px;
}

/* About page hero */
.about-page-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 32px 0 28px;
  overflow: hidden;
}
.about-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 72% 44%, var(--hero-tint-1), transparent 42%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 86%, transparent), var(--bg));
  pointer-events: none;
}
.about-showcase-card {
  position: relative;
  z-index: 1;
  height: min(880px, calc(100svh - 62px));
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--hot-x, 50%) var(--hot-y, 42%), var(--accent-soft), transparent 34%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 94%, #000 6%), color-mix(in oklab, var(--bg-elev) 82%, var(--bg) 18%));
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.about-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.9%, color-mix(in oklab, var(--accent) 24%, transparent) 50%, transparent 50.1%),
    repeating-linear-gradient(0deg, transparent 0 38px, color-mix(in oklab, var(--ink) 4%, transparent) 39px);
  opacity: 0.5;
}
.about-showcase-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg) 88%, var(--bg-elev) 12%) 88%);
}
.showcase-topline {
  position: absolute;
  z-index: 5;
  top: 40px;
  left: clamp(28px, 5vw, 72px);
  right: clamp(28px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.55vw, 24px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--ink) 78%, #9aa4ae);
}
.showcase-topline a {
  transition: color 180ms ease, transform 180ms ease;
}
.showcase-topline a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
.about-theme-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.showcase-title {
  position: absolute;
  z-index: 3;
  top: 112px;
  left: 50%;
  transform: translateX(calc(-50% + var(--title-shift, 0px)));
  width: 92%;
  text-align: center;
  font-family: "Space Grotesk", var(--font-body);
  font-size: clamp(72px, 13vw, 228px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.045em;
  color: color-mix(in oklab, var(--ink) 74%, #7f8992);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
.showcase-avatar-shell {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 12%;
  width: min(670px, 49vw);
  height: 64%;
  transform: translateX(-50%);
}
.showcase-avatar {
  position: absolute;
  inset: 0;
  transform:
    translateX(var(--avatar-x, 0px))
    translateY(var(--avatar-y, 0px))
    rotateY(var(--avatar-rot, 0deg))
    scale(var(--avatar-scale, 1));
  transform-style: preserve-3d;
  transition: var(--avatar-transition, transform 0.6s ease-in-out);
  will-change: transform;
}
.showcase-orbits {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
}
.showcase-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: contrast(1.06) saturate(1.08) brightness(0.96) drop-shadow(0 28px 70px rgba(0,0,0,.86));
}
.showcase-avatar::before {
  content: "";
  position: absolute;
  inset: 2% 7% 8%;
  z-index: -1;
  border-radius: 46%;
  background: radial-gradient(ellipse at 50% 28%, color-mix(in oklab, var(--accent) 44%, transparent), transparent 60%);
  filter: blur(36px);
  opacity: 0.8;
}
.showcase-avatar::after {
  content: none;
}
.showcase-orbit {
  position: absolute;
  left: 50%;
  top: 43%;
  border: 1px solid color-mix(in oklab, var(--accent) 38%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--orbit-a-rot, 0deg));
  opacity: 0.62;
}
.orbit-a {
  width: 86%;
  height: 33%;
}
.orbit-b {
  width: 66%;
  height: 25%;
  transform: translate(-50%, -50%) rotate(var(--orbit-b-rot, -18deg));
  opacity: 0.38;
}
.showcase-card {
  position: absolute;
  z-index: 6;
  max-width: 315px;
  padding: 18px 20px;
  border: 1px solid color-mix(in oklab, var(--ink) 13%, transparent);
  border-radius: 8px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 22px 70px -36px rgba(0,0,0,.9);
}
.showcase-card span {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.showcase-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.35;
  font-weight: 600;
}
.showcase-card-left {
  left: clamp(28px, 4vw, 70px);
  bottom: 56px;
}
.showcase-card-right {
  right: clamp(28px, 4vw, 70px);
  bottom: 56px;
}
.showcase-cta {
  position: absolute;
  z-index: 7;
  right: clamp(34px, 4.5vw, 82px);
  bottom: 72px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  justify-content: center;
  padding: 18px 28px;
  border-radius: 999px;
  border: 2px solid color-mix(in oklab, var(--accent) 70%, #fff);
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 68%, #5b39ff), color-mix(in oklab, var(--accent) 40%, #ff3d96));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 0 32px color-mix(in oklab, var(--accent) 38%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.showcase-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 46px color-mix(in oklab, var(--accent) 54%, transparent);
}

@media (max-width: 900px) {
  .about-page-hero {
    padding-top: 32px;
  }
  .about-showcase-card {
    height: calc(100svh - 58px);
    min-height: 650px;
  }
  .showcase-topline {
    top: 28px;
    font-size: 13px;
  }
  .showcase-title {
    top: 92px;
    font-size: clamp(62px, 16vw, 128px);
  }
  .showcase-avatar-shell {
    width: min(600px, 88vw);
    height: 59%;
    bottom: 15%;
  }
  .showcase-card-left {
    left: 20px;
    right: 20px;
    bottom: 24px;
    max-width: none;
  }
  .showcase-cta {
    right: 20px;
    bottom: 146px;
    min-width: 190px;
  }
}

@media (max-width: 560px) {
  .about-showcase-card {
    min-height: 620px;
  }
  .showcase-topline {
    gap: 20px;
    overflow-x: auto;
  }
  .showcase-title {
    top: 86px;
    font-size: clamp(48px, 19vw, 78px);
  }
  .showcase-avatar-shell {
    width: 102vw;
    height: 58%;
    bottom: 104px;
  }
  .showcase-cta {
    left: 20px;
    right: 20px;
    bottom: 126px;
  }
}

/* Scroll-stacked cards */
.scroll-card-section {
  position: relative;
  z-index: 2;
  padding: 90px 0 120px;
}
.scroll-card-kicker {
  margin-bottom: 28px;
}
.profile-scroll-card-sticky {
  --top: 92px;
  height: 85svh;
  position: sticky;
  top: var(--top);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}
.profile-scroll-card {
  position: absolute;
  top: calc(var(--i) * 30px);
  width: 100%;
  min-height: min(660px, calc(85svh - 18px));
  padding: clamp(24px, 3.4vw, 46px);
  border: 2px solid color-mix(in oklab, var(--ink) 70%, transparent);
  border-radius: clamp(34px, 5vw, 74px);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in oklab, var(--card-accent) 18%, transparent), transparent 30%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 96%, #000 4%), color-mix(in oklab, var(--bg-elev) 88%, var(--bg) 12%));
  box-shadow: 0 32px 100px -54px rgba(0,0,0,.72);
  overflow: hidden;
  transform: scale(var(--card-scale, 1));
  transform-origin: top center;
  transition: transform 90ms linear;
  pointer-events: auto;
}
.profile-scroll-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.9%, color-mix(in oklab, var(--card-accent) 20%, transparent) 50%, transparent 50.1%),
    repeating-linear-gradient(0deg, transparent 0 42px, color-mix(in oklab, var(--ink) 5%, transparent) 43px);
  opacity: 0.35;
}
.profile-card-head,
.profile-card-body {
  position: relative;
  z-index: 1;
}
.profile-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}
.profile-card-num {
  font-family: "Space Grotesk", var(--font-body);
  font-size: clamp(66px, 8.4vw, 138px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: color-mix(in oklab, var(--ink) 84%, #9aa4ae);
}
.profile-card-type {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 28px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.profile-card-head h2 {
  font-size: clamp(20px, 2.1vw, 36px);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}
.profile-card-pill {
  justify-self: end;
  padding: 18px 34px;
  border: 2px solid color-mix(in oklab, var(--ink) 68%, transparent);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--ink);
}
.profile-card-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.profile-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 24px);
}
.profile-card-copy p {
  font-size: clamp(19px, 1.95vw, 30px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 18ch;
}
.profile-card-tags {
  display: grid;
  gap: 14px;
}
.profile-card-tags span {
  min-height: clamp(52px, 6.2svh, 68px);
  border-radius: 24px;
  background: color-mix(in oklab, var(--ink) 10%, transparent);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-weight: 700;
}
.profile-card-visual {
  min-height: clamp(270px, 44svh, 360px);
  border-radius: 34px;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 24% 30%, color-mix(in oklab, var(--card-accent) 80%, #fff 20%) 0 4px, transparent 5px),
    radial-gradient(circle at 68% 58%, color-mix(in oklab, var(--card-accent) 72%, #fff 28%) 0 5px, transparent 6px),
    radial-gradient(circle at 40% 72%, color-mix(in oklab, var(--card-accent) 60%, #fff 40%) 0 3px, transparent 4px),
    linear-gradient(135deg, color-mix(in oklab, var(--card-accent) 30%, var(--bg-soft)), color-mix(in oklab, var(--bg) 92%, #000 8%) 70%);
}
.profile-card-visual.has-image {
  display: grid;
  place-items: center;
  padding: 54px 20px 20px;
  background:
    radial-gradient(circle at 72% 18%, var(--accent-soft), transparent 42%),
    color-mix(in oklab, var(--bg) 88%, #000 12%);
}
.profile-card-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: clamp(220px, 34svh, 305px);
  object-fit: contain;
  border-radius: 24px;
  filter: saturate(0.98) contrast(1.04);
  box-shadow: 0 22px 60px color-mix(in oklab, #000 34%, transparent);
}
.profile-card-visual.has-image .visual-orb {
  opacity: 0.18;
}
.profile-card-visual.has-image .visual-grid {
  z-index: 0;
}
.profile-card-visual.has-image .visual-label,
.profile-card-visual.is-product .visual-label {
  z-index: 5;
}
.profile-card-visual.is-product {
  display: grid;
  place-items: center;
  padding: clamp(56px, 5vw, 68px) clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px);
  background:
    radial-gradient(circle at 68% 36%, color-mix(in oklab, var(--card-accent) 30%, transparent), transparent 34%),
    radial-gradient(circle at 22% 72%, color-mix(in oklab, var(--ink) 9%, transparent), transparent 30%),
    color-mix(in oklab, var(--bg) 90%, #000 10%);
}
.product-visual {
  position: relative;
  z-index: 2;
  width: min(92%, 620px);
  height: min(86%, 300px);
  min-height: 240px;
}
.product-window {
  position: absolute;
  border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg-soft) 80%, transparent), color-mix(in oklab, var(--bg) 92%, #000 8%));
  box-shadow: 0 26px 70px color-mix(in oklab, #000 36%, transparent);
  overflow: hidden;
}
.product-window-main {
  inset: 10% 22% 8% 4%;
  padding: 28px;
}
.product-window-side {
  right: 2%;
  top: 0;
  width: 34%;
  height: 54%;
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: center;
}
.product-window-bar {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 68px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 62%, var(--ink) 12%);
}
.product-chart {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 78px;
  height: 108px;
  display: flex;
  align-items: end;
  gap: 14px;
}
.product-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 82%, #fff 10%), color-mix(in oklab, var(--accent) 22%, transparent));
  box-shadow: 0 0 22px color-mix(in oklab, var(--accent) 35%, transparent);
}
.product-line,
.product-line.short {
  position: absolute;
  left: 28px;
  height: 11px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 16%, transparent);
}
.product-line {
  right: 34px;
  bottom: 46px;
}
.product-line.short {
  width: 38%;
  bottom: 26px;
}
.product-chip {
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  background: color-mix(in oklab, var(--ink) 9%, transparent);
}
.product-node-map {
  position: absolute;
  inset: 20% 4% 16% 8%;
  pointer-events: none;
}
.product-node-map::before,
.product-node-map::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  border-radius: 999px;
  transform: rotate(-18deg);
}
.product-node-map::before {
  inset: 20% 0 22% 12%;
}
.product-node-map::after {
  inset: 4% 18% 6% 0;
  transform: rotate(16deg);
}
.product-node-map .node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}
.product-node-map .n1 { left: 6%; top: 48%; }
.product-node-map .n2 { left: 42%; top: 12%; }
.product-node-map .n3 { right: 12%; top: 38%; }
.product-node-map .n4 { right: 32%; bottom: 8%; }
.visual-orb {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  right: 8%;
  top: 13%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--card-accent) 18%, transparent 66%);
  filter: blur(2px);
  opacity: 0.72;
}
.visual-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.8%, color-mix(in oklab, var(--ink) 18%, transparent) 50%, transparent 50.2%),
    repeating-linear-gradient(90deg, color-mix(in oklab, var(--ink) 6%, transparent) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, color-mix(in oklab, var(--ink) 6%, transparent) 0 1px, transparent 1px 56px);
  mix-blend-mode: screen;
}
.visual-label {
  position: absolute;
  z-index: 3;
  left: 24px;
  top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
  border-radius: 999px;
  padding: 10px 14px;
}

@media (max-width: 760px) {
  .scroll-card-section {
    padding-top: 50px;
  }
  .profile-scroll-card {
    min-height: min(660px, calc(85svh - 18px));
    border-radius: 34px;
    top: calc(var(--i) * 22px);
  }
  .profile-scroll-card-sticky {
    --top: 54px;
    height: 88svh;
  }
  .profile-card-head {
    grid-template-columns: auto 1fr;
  }
  .profile-card-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .profile-card-body {
    grid-template-columns: 1fr;
  }
  .profile-card-visual {
    min-height: 260px;
  }
  .profile-card-image {
    max-height: 240px;
  }
}

/* About */
.about {
  position: relative;
}
.about-intro {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: var(--display-tracking, -0.02em);
  line-height: 1.18;
  max-width: 22ch;
  text-wrap: balance;
  margin-bottom: 80px;
}
.about-intro em { color: var(--accent); font-style: italic; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .about-teaser-grid {
    grid-template-columns: 1fr;
  }
  .about-teaser-panel {
    border-left: 0;
    padding-left: 0;
  }
}

.about-side {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 32px;
}
.about-portrait {
  aspect-ratio: 3/4;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.about-portrait image-slot {
  --slot-radius: 4px;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  filter: saturate(0.92) contrast(1.06);
}
.about-meta { display: flex; flex-direction: column; gap: 16px; }
.about-meta-row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.about-meta-row .k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.about-meta-row .v { color: var(--ink); }

.about-body { display: flex; flex-direction: column; gap: 48px; }
.about-body p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.about-body p strong { color: var(--ink); font-weight: 500; }

.about-quote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 24px;
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: var(--display-tracking, -0.02em);
  line-height: 1.3;
  color: var(--ink);
}

.timeline { display: flex; flex-direction: column; }
.timeline-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.timeline-row .when {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; color: var(--ink-mute);
  padding-top: 4px;
}
.timeline-row .what .role {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: 18px;
  margin-bottom: 4px;
  letter-spacing: var(--display-tracking, -0.01em);
}
.timeline-row .what .org { color: var(--ink-soft); font-size: 14px; }

/* Stack chips */
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 200ms;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Contact / footer */
.contact {
  border-top: 1px solid var(--line);
  padding: 160px 0 80px;
  position: relative;
  text-align: center;
}
.contact .pretitle {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.contact-headline {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 500);
  font-size: clamp(56px, 11vw, 180px);
  letter-spacing: var(--display-tracking, -0.04em);
  line-height: 0.94;
  margin-bottom: 48px;
  text-wrap: balance;
}
.contact-headline em { color: var(--accent); font-style: italic; }
.contact-email {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--ink);
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 80px;
  transition: all 240ms;
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer .center { display: flex; gap: 24px; justify-content: center; }
.footer a:hover { color: var(--accent); }
.footer .right { text-align: right; }

@media (max-width: 720px) {
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer .right { text-align: center; }
}

/* ============================================================
   Admin page
   ============================================================ */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, var(--hero-tint-1), transparent 28%),
    radial-gradient(circle at 86% 16%, color-mix(in oklab, var(--accent) 24%, transparent), transparent 24%),
    var(--bg);
}
.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  gap: 24px;
}
.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-auth[hidden],
.admin-shell[hidden] {
  display: none !important;
}
.admin-auth-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-elev) 82%, transparent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  gap: 18px;
}
.admin-auth-card h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 68px);
  line-height: .92;
  letter-spacing: var(--display-tracking);
}
.admin-auth-card p:not(.mono-label):not(.admin-status) {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.admin-hero,
.admin-panel,
.admin-preview-card {
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-elev) 78%, transparent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.admin-hero {
  padding: clamp(28px, 5vw, 56px);
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 20px;
}
.admin-hero h1 {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 92px);
  line-height: .92;
  letter-spacing: var(--display-tracking);
}
.admin-hero p:not(.mono-label):not(.admin-status) {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}
.admin-hero code {
  font-family: var(--font-mono);
  color: var(--accent);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.admin-status {
  min-height: 22px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: .03em;
}
.admin-status[data-tone="ok"] { color: var(--accent); }
.admin-status[data-tone="warn"] { color: #e0a15e; }
.admin-panel {
  padding: clamp(22px, 3.4vw, 40px);
  display: grid;
  gap: 32px;
}
.admin-section {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 24px;
  align-items: start;
}
.admin-section h2,
.admin-preview-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}
.admin-section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.admin-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-palette {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklab, var(--bg-soft) 74%, transparent);
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  transition: transform 180ms cubic-bezier(.2,.7,.3,1), border-color 180ms, background 180ms;
}
.admin-palette:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line));
}
.admin-palette[data-active="true"] {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent-soft) 42%, var(--bg-soft));
}
.admin-swatch {
  width: 30px;
  height: 54px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.admin-palette-name {
  font-weight: 700;
  letter-spacing: -.02em;
}
.admin-mini-swatches {
  grid-column: 2;
  display: flex;
  gap: 5px;
}
.admin-mini-swatches i {
  width: 22px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-control {
  display: grid;
  gap: 9px;
}
.admin-control span,
.admin-toggles label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.admin-control input,
.admin-control select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklab, var(--bg-soft) 84%, transparent);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}
.admin-control input:focus,
.admin-control select:focus {
  border-color: var(--accent);
}
.admin-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-toggles label {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklab, var(--bg-soft) 64%, transparent);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-toggles input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.admin-range {
  flex-wrap: wrap;
}
.admin-range input {
  flex: 1 1 140px;
  accent-color: var(--accent);
}
.admin-range output {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}
.admin-preview-card {
  padding: clamp(24px, 4vw, 46px);
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 18px;
  overflow: hidden;
  position: relative;
}
.admin-preview-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -42% 32%;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}
.admin-preview-card > * { position: relative; z-index: 1; }
.admin-preview-card p {
  max-width: 520px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.admin-preview-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}
.admin-preview-row span {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-preview-row span:nth-child(1) { background: var(--accent); color: var(--accent-ink); }
.admin-preview-row span:nth-child(2) { background: var(--bg-soft); color: var(--ink); }
.admin-preview-row span:nth-child(3) { background: var(--ink); color: var(--bg); }

@media (max-width: 820px) {
  .admin-shell { width: min(100% - 28px, 1180px); padding: 34px 0; }
  .admin-section { grid-template-columns: 1fr; }
  .admin-palette-grid,
  .admin-grid,
  .admin-toggles,
  .admin-preview-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Mobile hardening
   ============================================================ */
html,
body,
#root {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .nav {
    padding: 14px 18px;
    gap: 10px;
    background: color-mix(in oklab, var(--bg) 54%, transparent);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    border-bottom-color: color-mix(in oklab, var(--ink) 10%, transparent);
  }

  .nav-brand {
    min-width: 0;
    max-width: 34vw;
    overflow: hidden;
    white-space: nowrap;
  }

  .nav-cta {
    gap: 8px;
    min-width: 0;
  }

  .nav-status {
    display: none;
  }

  .nav .btn-primary {
    min-height: 40px;
    padding: 11px 14px;
    font-size: 13px;
  }

  .language-choice {
    padding: 4px;
    gap: 2px;
  }

  .language-choice-button {
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding-inline: 18px;
  }

  .nav {
    padding: 10px 12px;
  }

  .nav-brand {
    max-width: 42vw;
    gap: 8px;
    font-size: 14px;
  }

  .nav-brand .mark {
    flex: 0 0 auto;
  }

  .nav .btn-primary {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .nav .btn-primary .arrow {
    width: 16px;
    height: 16px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 100svh;
    padding: 112px 18px 42px;
    justify-content: center;
  }

  .hero-video-wrap video,
  .hero-video-wrap img,
  .hero-video-wrap canvas {
    object-position: 62% center;
  }

  [dir="rtl"] .hero-video-wrap video,
  [dir="rtl"] .hero-video-wrap img,
  [dir="rtl"] .hero-video-wrap canvas {
    object-position: 38% center;
  }

  .hero-veil {
    background:
      radial-gradient(ellipse at 50% 105%, var(--hero-tint-1), transparent 62%),
      linear-gradient(180deg, color-mix(in oklab, var(--bg) 34%, transparent) 0%, var(--hero-tint-2) 58%, var(--bg) 100%);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-eyebrow {
    gap: 10px;
    margin-bottom: 20px;
    font-size: 9px;
    line-height: 1.35;
  }

  .hero-eyebrow .line {
    width: 34px;
    flex: 0 0 auto;
  }

  .hero-title {
    font-size: clamp(42px, 13.4vw, 68px);
    line-height: 0.98;
    max-width: 10.8ch;
    margin-bottom: 22px;
  }

  [dir="rtl"] .hero-title {
    max-width: 9.2ch;
    font-size: clamp(40px, 12.2vw, 60px);
    line-height: 1.03;
  }

  .hero-sub {
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .palette-choice {
    width: 100%;
    margin: 0 0 20px;
    padding: 12px;
  }

  .palette-choice-options {
    gap: 7px;
  }

  .palette-choice-button {
    min-height: 34px;
    padding-inline: 10px 11px;
  }

  .hero-proof {
    margin-bottom: 18px;
  }

  .hero-proof-item {
    padding: 12px 14px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
    justify-content: center;
    padding-inline: 16px;
  }

  .hero-corner {
    display: none;
  }

  .section-header {
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
  }

  .section-header h2 {
    max-width: 10ch;
  }

  .service-card {
    min-height: 260px;
    padding: 26px;
  }

  .proof-visual-card,
  .motion-case-board {
    padding: 22px;
  }

  .proof-visual-copy h3,
  .motion-case-copy h3 {
    max-width: none;
    font-size: clamp(34px, 11vw, 50px);
  }

  .proof-process-media {
    gap: 14px;
  }

  .proof-media-pane img {
    max-height: 360px;
  }

  .motion-frame-stack {
    min-height: 0;
  }

  .motion-frame figcaption {
    grid-template-columns: 1fr;
  }

  .about-teaser-grid {
    gap: 34px;
  }

  .about-teaser-title {
    max-width: 11ch;
  }

  .contact {
    padding: 110px 0 52px;
  }

  .contact-headline {
    font-size: clamp(52px, 17vw, 82px);
    line-height: 1;
    margin-bottom: 32px;
  }

  .contact-email {
    width: 100%;
    justify-content: center;
    padding-inline: 16px;
    margin-bottom: 52px;
  }
}

@media (max-width: 460px) {
  .nav {
    gap: 6px;
  }

  .nav-brand {
    max-width: 34vw;
    font-size: 13px;
  }

  .nav .btn-primary {
    display: none;
  }

  .language-choice-button {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    font-size: 9px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-title {
    font-size: clamp(39px, 12.6vw, 56px);
    max-width: 10.4ch;
  }

  [dir="rtl"] .hero-title {
    font-size: clamp(37px, 11.4vw, 52px);
    max-width: 9ch;
  }

  .palette-choice-line {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .about-page-hero {
    min-height: auto;
    padding: 78px 0 34px;
    overflow: visible;
  }

  .about-showcase-card {
    height: auto;
    min-height: min(760px, calc(100svh - 24px));
  }

  .showcase-topline {
    top: 20px;
    left: 18px;
    right: 18px;
    gap: 14px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 12px;
    padding-bottom: 8px;
  }

  .showcase-topline a,
  .showcase-topline button,
  .showcase-topline span {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .showcase-topline::-webkit-scrollbar {
    display: none;
  }

  .showcase-title {
    top: 86px;
    width: 96%;
    font-size: clamp(54px, 15vw, 98px);
    line-height: 0.9;
    overflow-wrap: normal;
  }

  [dir="rtl"] .showcase-title {
    font-size: clamp(46px, 12.4vw, 78px);
    line-height: 1;
  }

  .showcase-avatar-shell {
    width: min(92vw, 520px);
    height: 45%;
    bottom: 190px;
  }

  .showcase-card-left {
    left: 18px;
    right: 18px;
    bottom: 24px;
    padding: 16px 18px;
  }

  .showcase-cta {
    left: 18px;
    right: 18px;
    bottom: 112px;
    min-width: 0;
    padding: 15px 20px;
  }
}

@media (max-width: 560px) {
  .about-page-hero {
    padding-top: 70px;
  }

  .about-showcase-card {
    min-height: 700px;
    border-radius: 8px;
  }

  .showcase-title {
    top: 132px;
    width: 96%;
    font-size: clamp(42px, 13vw, 58px);
  }

  [dir="rtl"] .showcase-title {
    font-size: clamp(36px, 11.6vw, 50px);
  }

  .showcase-topline a:nth-of-type(n+2) {
    display: none;
  }

  .showcase-topline {
    justify-content: space-between;
    overflow: visible;
    gap: 10px;
  }

  .showcase-topline .palette-choice.compact {
    display: none;
  }

  .showcase-topline .language-choice {
    margin-left: auto;
  }

  [dir="rtl"] .showcase-topline .language-choice {
    margin-left: 0;
    margin-right: auto;
  }

  .showcase-avatar-shell {
    width: min(104vw, 440px);
    height: 40%;
    bottom: 202px;
  }

  .showcase-orbit {
    opacity: 0.44;
  }

  .orbit-a {
    width: 92%;
    height: 30%;
  }

  .orbit-b {
    width: 70%;
    height: 23%;
  }
}

@media (max-width: 760px) {
  .scroll-card-section {
    padding: 58px 0 80px;
  }

  .profile-scroll-card-sticky {
    position: relative;
    top: auto;
    height: auto;
    margin-bottom: 18px;
  }

  .profile-scroll-card {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 24px;
    border-radius: 28px;
    transform: none !important;
  }

  .profile-card-head {
    grid-template-columns: auto 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .profile-card-num {
    font-size: clamp(58px, 22vw, 90px);
  }

  .profile-card-type {
    font-size: 15px;
    margin-bottom: 7px;
  }

  .profile-card-head h2 {
    font-size: clamp(21px, 7vw, 34px);
  }

  .profile-card-pill {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
    padding: 13px 18px;
    font-size: 11px;
  }

  .profile-card-body {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profile-card-copy {
    order: 1;
    justify-content: flex-start;
  }

  .profile-card-copy p {
    max-width: none;
    font-size: clamp(23px, 8vw, 34px);
    line-height: 1.08;
  }

  .profile-card-tags span {
    min-height: 48px;
    border-radius: 18px;
    padding-inline: 18px;
  }

  .profile-card-visual {
    order: 2;
    min-height: 260px;
    border-radius: 24px;
  }

  .profile-card-visual.has-image,
  .profile-card-visual.is-product {
    padding: 42px 14px 16px;
  }

  .profile-card-image {
    max-height: 260px;
    border-radius: 18px;
  }

  .product-visual {
    width: 100%;
    min-height: 230px;
  }

  .product-window-main {
    inset: 15% 16% 10% 0;
    padding: 22px;
  }

  .product-window-side {
    width: 38%;
    padding: 14px;
  }

  .visual-label {
    top: 14px;
    left: 14px;
    padding: 8px 11px;
    font-size: 9px;
  }

  .about-grid {
    gap: 32px;
  }

  .about-side {
    position: relative;
    top: auto;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .showcase-avatar-shell {
    height: 39%;
    bottom: 220px;
  }

  .showcase-card strong {
    font-size: 15px;
  }

  .profile-scroll-card {
    padding: 20px;
  }

  .profile-card-copy p {
    font-size: 25px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 100ms !important;
  }
  .marquee-track { animation: none; }
}
