/* ==========================================================================
   Sriram Venkatassamy — v2 "Human ⇄ Machine"
   Layout: full-bleed stage with a fixed WebGL particle scene behind a 12-col
   editorial grid; sections hand the scene a shape (face / field / sphere / ring).
   ========================================================================== */
:root {
  /* light: ink particles on fog — the smoke of the portrait film */
  --bg: #e7eaee;
  --bg-2: #f3f4f6;
  --glass: rgba(255, 255, 255, .55);
  --glass-line: rgba(255, 255, 255, .8);
  --fg: #0e1116;
  --muted: #59606c;
  --faint: #8b929d;
  --line: rgba(14, 17, 22, .12);
  --warm: #f0532e;       /* human */
  --cool: #2c56f5;       /* machine */
  --scene-ink: #10141b;
  --scene-dark: 0;
  --voxel: #eefe3e;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(12px, .78vw, 13px);
  --step-0: clamp(15px, 1.05vw, 17px);
  --step-1: clamp(18px, 1.4vw, 22px);
  --step-2: clamp(24px, 2.2vw, 34px);
  --step-3: clamp(34px, 4vw, 64px);
  --step-4: clamp(48px, 7vw, 112px);
  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --bg-2: #12151c; --glass: rgba(24, 28, 37, .55); --glass-line: rgba(255,255,255,.08);
    --fg: #eceef2; --muted: #9aa1ad; --faint: #6c7380; --line: rgba(236, 238, 242, .12);
    --warm: #ff7a55; --cool: #7b95ff; --scene-ink: #c9cfda; --scene-dark: 1; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --bg-2: #12151c; --glass: rgba(24, 28, 37, .55); --glass-line: rgba(255,255,255,.08);
  --fg: #eceef2; --muted: #9aa1ad; --faint: #6c7380; --line: rgba(236, 238, 242, .12);
  --warm: #ff7a55; --cool: #7b95ff; --scene-ink: #c9cfda; --scene-dark: 1; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cool); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.mono { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- scene ------------------------------------------------------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
#scene.is-ready { opacity: 1; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .site-head, footer { position: relative; z-index: 2; }

/* ---------- header ------------------------------------------------------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-head {
  position: fixed; z-index: 50; top: env(safe-area-inset-top, 0px); left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gut-r) 18px var(--gut-l);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #111; }
.brand span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; }
.brand span b { display: block; font-weight: 500; }
.nav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav a { padding: 8px 15px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: var(--fg); background: var(--bg-2); }
.head-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.btn-ai {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 14px; color: var(--bg); background: var(--fg); overflow: hidden; isolation: isolate;
}
.btn-ai .orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--cool) 45%, var(--warm)); box-shadow: 0 0 12px var(--cool); animation: orb 4s linear infinite; }
@keyframes orb { to { filter: hue-rotate(360deg); } }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* ---------- hero ------------------------------------------------------------ */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-content: end; padding-block: 130px 32px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; }
.hero-copy { grid-column: 1 / span 6; display: grid; gap: 22px; }
.eyebrow-line { display: flex; align-items: center; gap: 10px; }
.eyebrow-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warm) 22%, transparent); }
.hero h1 { font-size: var(--step-3); font-weight: 500; font-stretch: 100%; letter-spacing: -.035em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--cool); }
.hero h1 .h { color: var(--warm); }
.hero-sub { max-width: 46ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); backdrop-filter: blur(8px); }
.btn svg { width: 16px; height: 16px; }
.name-xl {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; line-height: .8; letter-spacing: -.04em;
  font-size: clamp(64px, 17.2vw, 300px); margin-top: 48px; white-space: nowrap; user-select: none;
  display: flex; justify-content: space-between;
}
.name-xl span { display: inline-block; transform: translateY(0); transition: transform 1s var(--ease), opacity 1s; }
.js .name-xl span { transform: translateY(18%); opacity: .001; }
.js.loaded .name-xl span { transform: none; opacity: 1; }
.name-xl span:nth-child(2) { transition-delay: .05s } .name-xl span:nth-child(3) { transition-delay: .1s }
.name-xl span:nth-child(4) { transition-delay: .15s } .name-xl span:nth-child(5) { transition-delay: .2s } .name-xl span:nth-child(6) { transition-delay: .25s }
.hero-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.hero-meta div { display: grid; gap: 2px; }
.hero-meta b { font-weight: 500; font-size: 15px; }
.no-webgl .hero { background: radial-gradient(60% 70% at 70% 40%, color-mix(in srgb, var(--cool) 14%, transparent), transparent); }
.hero-fallback { display: none; }
.no-webgl .hero-fallback { display: block; position: absolute; right: 4%; bottom: 30%; width: min(44vw, 560px); border-radius: 50%; overflow: hidden; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }

/* ---------- marquee ---------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: var(--step-2); letter-spacing: -.02em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cool); }
.marquee-track span:nth-child(2n)::after { background: var(--warm); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------------------------------------------- */
.section { padding-block: clamp(80px, 11vw, 160px); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .label { grid-column: 1 / span 3; display: flex; gap: 10px; align-items: baseline; }
.sec-head h2 { grid-column: 4 / span 7; font-size: var(--step-3); font-weight: 500; }
.sec-head h2 sup { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0; vertical-align: super; white-space: nowrap; color: var(--muted); margin-left: 8px; }
.sec-head p { grid-column: 4 / span 6; color: var(--muted); }
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal:not(.in) { opacity: .001; transform: translateY(28px); }

/* ---------- featured (3D tilt) -------------------------------------------- */
.featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; perspective: 1400px; }
.f-card {
  position: relative; display: block; text-decoration: none; color: #fff; border-radius: 28px; overflow: hidden;
  aspect-ratio: 4 / 3; background: #10131a; transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s;
  border: 0; padding: 0; text-align: left; cursor: pointer; width: 100%;
  box-shadow: 0 30px 80px -40px rgba(14, 17, 22, .5);
}
.f-card:nth-child(2) { aspect-ratio: auto; height: 100%; }
.f-card video, .f-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06) translateZ(0); transition: transform 1.2s var(--ease); }
.f-card:hover video { transform: scale(1.1); }
.f-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,8,12,.85), rgba(6,8,12,0) 55%); }
.f-body { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; display: grid; gap: 10px; transform: translateZ(40px); }
.f-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.f-tags span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.f-body h3 { font-size: clamp(28px, 3vw, 46px); font-weight: 600; }
.f-body p { max-width: 52ch; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.45; }
.f-go { position: absolute; z-index: 2; top: 22px; right: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #0e1116; transform: translateZ(60px) scale(.9); transition: transform .4s var(--ease); }
.f-card:hover .f-go { transform: translateZ(60px) scale(1) rotate(-45deg); }
.f-go svg { width: 22px; }

/* ---------- project index ----------------------------------------------------- */
.index { margin-top: 48px; border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 1fr); gap: 20px; align-items: center;
  padding-block: 22px; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
  transition: padding .45s var(--ease), color .3s;
}
.index-row > * { min-width: 0; }
.index-row h3 { font-size: clamp(22px, 2.4vw, 36px); font-weight: 500; font-stretch: 105%; transition: transform .45s var(--ease); }
.index-row .c2 { color: var(--muted); }
.index-row .c3 { display: flex; flex-wrap: wrap; gap: 6px; }
.index-row .c3 span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.index-row .c4 { justify-self: end; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
.index-row .c4 i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; transition: background .3s, color .3s, transform .4s var(--ease); }
.index-row:hover h3 { transform: translateX(14px); }
.index-row:hover .c4 i { background: var(--fg); color: var(--bg); transform: rotate(-45deg); }
.index-row .thumb { display: none; }
.status-soon { color: var(--warm); }
.hover-preview {
  position: fixed; z-index: 40; left: 0; top: 0; width: 340px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-4deg); transition: opacity .35s, transform .5s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); background: #111;
}
.hover-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.hover-preview img, .hover-preview video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- pitch ------------------------------------------------------------- */
.pitch-wrap { position: relative; border-radius: 32px; overflow: hidden; background: #0b0d12; aspect-ratio: 16 / 9; }
.pitch-wrap video { width: 100%; height: 100%; object-fit: cover; }
.pitch-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(to top, rgba(6,8,12,.6), transparent 50%); cursor: pointer; color: #fff;
}
.pitch-play span { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; transition: transform .4s var(--ease); }
.pitch-play:hover span { transform: scale(1.08); }
.pitch-cap { position: absolute; left: 28px; bottom: 24px; right: 28px; display: flex; justify-content: space-between; gap: 16px; color: #fff; pointer-events: none; }
.pitch-wrap.playing .pitch-play, .pitch-wrap.playing .pitch-cap { display: none; }

/* ---------- about --------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.about-side { grid-column: 1 / span 4; align-self: start; position: sticky; top: 110px; display: grid; gap: 18px; }
.portrait { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.02); }
.portrait .chip { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.portrait .chip i { width: 8px; height: 8px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 0 3px rgba(43,212,125,.25); }
.about-main { grid-column: 6 / span 7; display: grid; gap: 56px; }
.manifesto { font-family: var(--f-display); font-size: var(--step-3); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.manifesto .w { color: var(--faint); transition: color .4s; }
.manifesto .w.on { color: var(--fg); }
.manifesto .w.hum.on { color: var(--warm); }
.manifesto .w.mac.on { color: var(--cool); }
.role-line { font-size: var(--step-2); font-family: var(--f-display); font-weight: 400; line-height: 1.25; letter-spacing: -.02em; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.principle { padding: 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 10px; align-content: start; }
.principle h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.principle p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.principle.wide { grid-column: 1 / -1; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, color .25s; background: var(--glass); }
.socials a:hover { background: var(--fg); color: var(--bg); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials svg[fill="none"] { fill: none; }

/* ---------- voices: 3D ring ------------------------------------------------------ */
.voices { position: relative; }
.ring-stage { position: relative; height: 520px; perspective: 1600px; touch-action: pan-y; cursor: grab; user-select: none; }
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.q-card {
  position: absolute; left: -190px; top: -200px; width: 380px; min-height: 400px; padding: 30px 28px; border-radius: 26px;
  display: grid; align-content: space-between; gap: 22px; backface-visibility: hidden;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 30px 60px -30px rgba(14, 17, 22, .35); font-size: 15px; line-height: 1.6; color: var(--muted);
}
.q-card strong { color: var(--fg); font-weight: 600; }
.q-card .qm { font-family: var(--f-display); font-size: 64px; line-height: .6; color: var(--cool); }
.q-card footer { display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.q-card footer b { color: var(--fg); font-weight: 600; font-size: 15px; }
.q-card footer span { font-size: 13px; }
.ring-ctrl { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* ---------- writing ---------------------------------------------------------------- */
.posts { border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) auto; gap: 20px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.post > * { min-width: 0; }
.post h3 { font-size: clamp(19px, 1.8vw, 26px); font-weight: 500; transition: color .3s; }
.post p { color: var(--muted); font-size: 15px; }
.post:hover h3 { color: var(--cool); }
.post .src { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; overflow-x: auto; scrollbar-width: none; margin-top: 64px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--bg-2); }
.shot video { width: 100%; height: 100%; object-fit: cover; }
.shot button { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; cursor: pointer; backdrop-filter: blur(8px); }
.voxel-card { position: relative; margin-top: 14px; border-radius: 28px; overflow: hidden; background: var(--voxel); min-height: 320px; display: grid; align-content: end; color: #111; }
.voxel-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voxel-card .v-body { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 24px 28px; flex-wrap: wrap; }
.voxel-card .pill { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.55); font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- contact ------------------------------------------------------------------ */
.contact { min-height: 100svh; display: grid; align-content: center; text-align: center; padding-block: 140px 60px; }
.contact h2 { font-size: clamp(52px, 10vw, 168px); font-weight: 700; font-stretch: 118%; letter-spacing: -.05em; line-height: .88; }
.contact h2 .h { color: var(--warm); }
.contact h2 .m { color: var(--cool); }
.contact .lede { max-width: 48ch; margin: 28px auto 0; color: var(--muted); font-size: var(--step-1); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.contact-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 48px; margin-top: 56px; font-size: 15px; }
.contact-meta div { display: grid; gap: 2px; }
.contact-meta .mono { color: var(--muted); }
.copy { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.site-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- cursor -------------------------------------------------------------------- */
.cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--fg); pointer-events: none; mix-blend-mode: difference; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); display: grid; place-items: center; }
:root .cursor { background: #fff; }
.cursor span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: #000; opacity: 0; transition: opacity .2s; text-transform: uppercase; }
.cursor.big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor.big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .hover-preview { display: none !important; } }

/* ---------- preloader ---------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: end start; padding: 32px var(--gut-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gut-l); transition: transform 1s var(--ease) .1s, opacity .6s .5s; }
.loader .count { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(80px, 16vw, 240px); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader .mono { margin-bottom: 12px; color: var(--muted); }
.loaded .loader { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* ---------- modals ------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(8, 10, 14, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-box { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-2); border-radius: 28px; color: var(--fg); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; cursor: pointer; }
.modal-soai video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.modal-copy { padding: 28px 32px 34px; display: grid; gap: 14px; }
.modal-copy h3 { font-size: 30px; }
.modal-copy p { color: var(--muted); max-width: 70ch; }
.modal-book .modal-box { width: min(760px, 100%); }
.modal-book iframe { width: 100%; height: 680px; border: 0; display: block; background: #fff; }
.modal-book .fallback { padding: 16px 24px 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--fg); background: transparent; color: var(--fg); text-decoration: none; font-size: 14px; cursor: pointer; }

/* ---------- mobile menu ---------------------------------------------------------------- */
.mmenu { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; align-content: center; gap: 8px; padding: 80px var(--gut-r) 40px var(--gut-l); }
.mmenu a { font-family: var(--f-display); font-size: 48px; font-weight: 600; font-stretch: 110%; letter-spacing: -.03em; text-decoration: none; }

/* ======================================================================================
   Case-study template (shared by Aura Search, Tracky, Booketa, hold-on pages)
   ====================================================================================== */
.cs main { padding-top: 96px; }
.progress { position: fixed; z-index: 55; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--warm), var(--cool)); }
.back-btn { display: none; }
.cs-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; padding-block: 72px 32px; }
.cs-hero h1 { grid-column: 1 / span 8; font-size: var(--step-4); font-weight: 700; font-stretch: 115%; letter-spacing: -.05em; line-height: .9; }
.cs-hero .tag { grid-column: 9 / span 4; display: grid; gap: 8px; }
.cs-hero .tag h3 { font-size: var(--step-1); font-weight: 600; }
.cs-hero .tag p { color: var(--muted); }
.band { padding-block: 20px 40px; }
.media-frame { border-radius: 28px; overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 80px -50px rgba(14,17,22,.5); }
.media-frame video, .media-frame img { width: 100%; height: auto; }
.note-band { text-align: center; color: var(--muted); padding-block: 8px 24px; font-size: 15px; }
.cs-section { padding-block: clamp(56px, 7vw, 100px); scroll-margin-top: 90px; border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 400; margin-bottom: 14px; }
.eyebrow.small { color: var(--cool); margin-bottom: 6px; }
.lead { font-size: var(--step-1); line-height: 1.55; max-width: 62ch; }
.lead + .lead { margin-top: 14px; }
.big-q { font-size: var(--step-3); font-weight: 500; letter-spacing: -.035em; margin-bottom: 18px; color: var(--fg); }
.meta-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.meta-grid h6 { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 400; margin-bottom: 10px; }
.meta-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.disclaimer { margin-top: 48px; padding: 28px 32px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); display: grid; gap: 12px; font-size: 15px; color: var(--muted); }
.disclaimer a { color: var(--cool); font-weight: 600; text-decoration: none; }
.disclaimer b { color: var(--fg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile, .stat, .pain, .group, .challenge, .ds-note, .phase-head, .features li, .story-cols p {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tile { padding: 26px 22px; display: grid; gap: 14px; align-content: start; }
.tile h4 { font-size: 21px; font-weight: 600; }
.tile p { font-size: 15px; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.group { padding: 32px 32px 32px 100px; position: relative; }
.group .ico { position: absolute; left: 32px; top: 32px; width: 44px; height: 44px; color: var(--cool); }
.group h4 { font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.group p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 24px; display: grid; gap: 6px; align-content: start; }
.stat h2 { font-size: clamp(34px, 3.4vw, 52px); font-weight: 700; font-stretch: 112%; color: var(--warm); }
.stat h6 { font-size: 15px; font-weight: 600; font-family: var(--f-body); letter-spacing: 0; }
.stat p { font-size: 13px; color: var(--muted); }
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pain { padding: 22px 18px; display: grid; gap: 12px; align-content: start; font-size: 14px; }
.pain b { font-size: 16px; }
.pain q { color: var(--muted); font-style: italic; }
.issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.issue h6 { font-size: 18px; font-family: var(--f-display); margin-bottom: 8px; }
.issue p { font-size: 15px; color: var(--muted); }
.issue .fix { color: var(--cool); }
.challenge { padding: 28px 30px; text-align: center; display: grid; gap: 8px; margin-block: 28px; }
.challenge h6 { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--warm); font-weight: 400; }
.challenge p:first-of-type { font-family: var(--f-display); font-size: var(--step-2); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.challenge p + p { font-size: 13px; color: var(--muted); }
.img-stack { display: grid; gap: 20px; margin-top: 28px; }
.img-stack img, .img-grid-2 img, .img-grid-3 img, .block img { border-radius: 18px; width: 100%; height: auto; background: var(--bg-2); }
.img-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.img-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.label-h { font-size: 22px; font-weight: 600; margin-top: 36px; }
.decisions { display: grid; gap: 10px; padding-left: 20px; font-size: 17px; }
.ds-note { padding: 24px 28px; display: grid; gap: 8px; margin-block: 24px; }
.ds-note h2 { font-size: 20px; }
.toc { transition: opacity .4s; }
.toc:not(.show) { opacity: 0; pointer-events: none; }
.toc { position: fixed; right: max(28px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 20; display: grid; gap: 4px; text-align: right; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.toc a { color: var(--faint); text-decoration: none; padding: 2px 0; transition: color .2s; }
.toc a.active, .toc a:hover { color: var(--fg); }
.toc a.active::before { content: "●  "; color: var(--warm); }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; border-radius: 22px; overflow: hidden; background: var(--bg-2); }
.slider-media { grid-auto-columns: min(980px, 88%); }
.slider-media video, .slider-media img { width: 100%; height: auto; }
.slider-phones { grid-auto-columns: min(260px, 62%); }
.rail-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(10px); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.rail-arrow svg { width: 22px; }
.rail-arrow.prev { left: 10px; } .rail-arrow.next { right: 10px; }
.rail-arrow[disabled] { opacity: 0; pointer-events: none; }
/* Tracky / Booketa */
.bk-hero { position: relative; border-radius: 32px; overflow: hidden; background: #0b0d12; color: #fff; margin-top: 8px; }
.bk-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-block: 80px 60px; }
.bk-hero .wrap > * { min-width: 0; }
.bk-hero h1 { font-size: var(--step-4); font-weight: 700; font-stretch: 115%; letter-spacing: -.05em; }
.bk-hero p { max-width: 52ch; color: rgba(255,255,255,.82); }
.bk-hero .chip { display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-family: var(--f-mono); font-size: 12px; }
.bk-hero .logo-mark { width: 64px; margin-bottom: 16px; }
.orbit { position: relative; display: grid; place-items: center; }
.orbit img:first-child { position: absolute; width: 112%; max-width: none; opacity: .35; animation: spin 60s linear infinite; }
.orbit img:last-child { position: relative; width: min(420px, 80%); }
@keyframes spin { to { transform: rotate(360deg); } }
.process-banner { border-radius: 28px; padding: 40px 44px; margin-top: 40px; background: var(--fg); color: var(--bg); }
.process-banner h2 { font-size: var(--step-3); font-weight: 600; font-stretch: 112%; }
.phase { padding-block: 56px 16px; }
.phase-head { display: grid; gap: 6px; padding: 28px 32px; margin-bottom: 28px; }
.phase-head h2 { font-size: var(--step-3); font-weight: 600; font-stretch: 110%; }
.phase-head p { color: var(--muted); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.block { padding-block: 22px; display: grid; gap: 12px; }
.block h2 { font-size: var(--step-2); font-weight: 600; }
.block h3 { font-size: 18px; font-weight: 600; margin-top: 8px; }
.block ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; }
.features li { list-style: none; padding: 20px 22px; font-weight: 500; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.story-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: 14px; }
.story-cols p { padding: 20px; white-space: pre-line; }
.next-project { display: grid; gap: 10px; padding-block: 90px; text-decoration: none; border-top: 1px solid var(--line); }
.next-project h2 { font-size: var(--step-4); font-weight: 700; font-stretch: 115%; letter-spacing: -.05em; transition: color .3s; }
.next-project:hover h2 { color: var(--cool); }
/* Hold-on */
.holdon { min-height: 80vh; display: grid; place-items: center; padding-block: 60px; }
.holdon-card { max-width: 820px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.holdon-card video { width: min(360px, 100%); aspect-ratio: 16/9; object-fit: cover; border-radius: 999px; margin-bottom: 16px; }
.holdon-card h1 { font-size: var(--step-4); font-weight: 700; font-stretch: 115%; letter-spacing: -.05em; }
.holdon-card h2 { font-size: var(--step-2); font-weight: 500; color: var(--warm); }
.holdon-card p { max-width: 60ch; color: var(--muted); }
.holdon-foot { display: none; }

/* ---------- responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .toc { display: none; }
  .meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pains, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { grid-column: 1 / span 8; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .btn-ai .t { display: none; }
  .btn-ai { padding: 10px; }
  .site-head { grid-template-columns: 1fr auto; }
  .brand span { display: none; }
  .hero { min-height: 100svh; padding-top: 110px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero h1 { max-width: 12ch; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head .label, .sec-head h2, .sec-head p { grid-column: 1 / -1; }
  .featured { grid-template-columns: 1fr; }
  .f-card:nth-child(2) { aspect-ratio: 4 / 3; height: auto; }
  .index-row { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; }
  .index-row .thumb { display: block; width: 72px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; grid-row: span 2; }
  .index-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .index-row .c2 { grid-column: 2; font-size: 14px; }
  .index-row .c3 { display: none; }
  .index-row h3 { grid-column: 2; }
  .index-row .c4 { grid-column: 3; grid-row: 1 / span 2; }
  .about-side { position: static; grid-column: 1 / -1; }
  .portrait { aspect-ratio: 1; max-width: 420px; }
  .about-main { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .ring-stage { height: 470px; }
  .q-card { width: 300px; left: -150px; min-height: 380px; top: -190px; }
  .post { grid-template-columns: minmax(0, 1fr) auto; }
  .post p { display: none; }
  .cs-hero h1, .cs-hero .tag { grid-column: 1 / -1; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .groups, .issue-grid, .img-grid-2, .img-grid-3, .features, .story-cols, .bk-hero .wrap, .pains { grid-template-columns: 1fr; }
  .group { padding: 92px 24px 26px; }
  .group .ico { left: 24px; top: 28px; }
  .pitch-play span { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in), .js .name-xl span { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .pitch-cap { display: none; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { display: grid; gap: 12px; padding: 28px 30px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.faq-item h2 { font-size: var(--step-2); font-weight: 600; letter-spacing: -.02em; }
.faq-item .lead { max-width: 70ch; }
.faq-item p.muted { max-width: 70ch; }
.faq-item a, .cs-hero .tag a { color: var(--cool); text-underline-offset: 3px; }

/* ---------- interaction design ---------- */
.ixd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1400px; }
.ixd-card { aspect-ratio: 1; }
.ixd-card .f-body h3 { font-size: clamp(24px, 2.2vw, 34px); }
@media (max-width: 860px) { .ixd-grid { grid-template-columns: 1fr; } .ixd-card { aspect-ratio: 4 / 3; } }

/* ---- ServiceNow case study ---- */
.sn-flow-card { border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 40px); background: color-mix(in oklab, var(--cool) 6%, transparent); }
.sn-flow-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; font-size: 12px; }
.sn-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.sn-flow li { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--bg); display: grid; gap: 6px; align-content: start; }
.sn-flow li .mono { color: var(--cool); font-size: 12px; }
.sn-flow li b { font-size: 17px; }
.sn-flow li p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.sn-flow li:nth-child(3) { border-color: var(--warm); box-shadow: 0 0 0 1px var(--warm) inset; }
.sn-flow li:nth-child(3) .mono { color: var(--warm); }
.sn-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 18px; color: var(--muted); font-size: 14px; z-index: 1; }
.sn-flow-rail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sn-flow-rail span { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.sn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.sn-cards > div { border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.sn-cards h3 { font-size: var(--step-1); font-weight: 600; }
.sn-cards p { color: var(--muted); }
.sn-tokens { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
.sn-tokens span { aspect-ratio: 3/4; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: end start; padding: 8px; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted); background: linear-gradient(180deg, color-mix(in oklab, var(--cool) 14%, transparent) 0 22%, transparent 22%); }
.sn-points { margin-top: 28px; display: grid; gap: 14px; max-width: 760px; padding-left: 1.1em; }
.sn-points li { color: var(--muted); } .sn-points b { color: var(--ink, inherit); }
@media (max-width: 900px) {
  .sn-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-flow li::after { display: none; }
  .sn-cards { grid-template-columns: 1fr; }
  .sn-tokens { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
