/* Tinoken homepage V1 — dark, cinematic, calm. */

:root {
  --bg: #07060d;
  --bg-2: #0c0a17;
  --surface: rgba(22, 18, 42, 0.55);
  --surface-2: rgba(30, 25, 58, 0.7);
  --line: rgba(196, 186, 255, 0.10);
  --line-2: rgba(196, 186, 255, 0.18);
  --ink: #f4f2ff;
  --ink-2: #bdb7dc;
  --ink-3: #8e88b2;
  --accent: #6352f0;
  --accent-2: #a99dff;
  --accent-3: #d6cfff;
  --ok: #8be3b5;
  --err: #ff9fae;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* poster placeholders, shown until a poster/video exists */
  --ph-rube: radial-gradient(120% 90% at 20% 15%, #3b2b8f 0%, transparent 55%), radial-gradient(90% 80% at 85% 90%, #7a3c9e 0%, transparent 60%), linear-gradient(140deg, #140f2b, #0b0918 60%, #1b1036);
  --ph-rollercoasters: radial-gradient(100% 80% at 80% 10%, #ff8a5c55 0%, transparent 50%), radial-gradient(120% 90% at 10% 100%, #4b2fd1 0%, transparent 60%), linear-gradient(160deg, #1a1033, #0a0817);
  --ph-particles: radial-gradient(60% 60% at 50% 50%, #8e7bff66 0%, transparent 60%), radial-gradient(100% 100% at 0% 0%, #1d1650 0%, transparent 70%), linear-gradient(180deg, #0b0a1c, #070612);
  --ph-motion: radial-gradient(90% 90% at 90% 20%, #e05ab455 0%, transparent 55%), radial-gradient(100% 100% at 10% 80%, #3a2bb0 0%, transparent 60%), linear-gradient(135deg, #180f2e, #0a0816);
  --ph-avatars: radial-gradient(70% 80% at 50% 30%, #5ec8ff44 0%, transparent 60%), radial-gradient(100% 100% at 100% 100%, #4a2fbf 0%, transparent 60%), linear-gradient(170deg, #0f1430, #090a18);
  --ph-island: radial-gradient(100% 70% at 50% 100%, #2fbf9f44 0%, transparent 60%), radial-gradient(90% 90% at 20% 10%, #4231b8 0%, transparent 60%), linear-gradient(180deg, #120f2c, #08101a);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(99, 82, 240, .55); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- living background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #150f2e 0%, var(--bg) 60%); }
.aurora {
  position: absolute; border-radius: 50%;
  will-change: transform;
  animation: drift 48s var(--ease) infinite alternate;
}
.a1 { width: 90vmax; height: 70vmax; left: -30vmax; top: -35vmax; background: radial-gradient(closest-side, rgba(99, 82, 240, .42), rgba(99, 82, 240, 0)); }
.a2 { width: 80vmax; height: 60vmax; right: -35vmax; top: 10vmax; background: radial-gradient(closest-side, rgba(150, 70, 210, .26), rgba(150, 70, 210, 0)); animation-duration: 62s; animation-delay: -20s; }
.a3 { width: 70vmax; height: 50vmax; left: 10vmax; bottom: -35vmax; background: radial-gradient(closest-side, rgba(70, 60, 200, .30), rgba(70, 60, 200, 0)); animation-duration: 74s; animation-delay: -35s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(8vmax, 4vmax, 0) scale(1.12) rotate(8deg); }
  100% { transform: translate3d(-4vmax, 9vmax, 0) scale(.94) rotate(-6deg); }
}
.lattice {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(200, 190, 255, .16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 45% at 50% 28%, #000 0%, transparent 75%);
          mask-image: radial-gradient(60% 45% at 50% 28%, #000 0%, transparent 75%);
  opacity: .55;
}
.grain {
  position: absolute; inset: -50%;
  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 type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  mix-blend-mode: overlay;
}

/* ---------- type ---------- */
em { font-style: normal; }
h1 em, .h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #c9c0ff 0%, #a99dff 45%, #e3c6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 em { font-size: 1.08em; line-height: 0; }
.body { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; max-width: 52ch; text-wrap: pretty; }
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.kicker .idx { color: var(--accent-2); }
.kicker .idx::after { content: ""; display: inline-block; width: 22px; height: 1px; margin-left: 10px; vertical-align: middle; background: var(--line-2); }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 500 15.5px/1 var(--font-sans); letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease), color .25s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[href="#djentic"]:hover .arrow { transform: translateY(2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #7465ff, #5a48ea);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 1px rgba(99, 82, 240, .5), 0 10px 30px -8px rgba(99, 82, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(120, 104, 255, .7), 0 16px 40px -10px rgba(99, 82, 240, .9), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .04); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(196, 186, 255, .32); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14.5px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(9, 7, 18, .62); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.brand-mark { width: 22px; height: 22px; color: var(--accent-3); filter: drop-shadow(0 0 8px rgba(99, 82, 240, .8)); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current] { color: var(--ink); background: rgba(99, 82, 240, .16); }
.nav-cta { margin-left: 8px; }

/* ---------- hero ---------- */
.hero {
  overflow-x: clip;
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 96px 0 96px;
  text-align: center;
  isolation: isolate;
}
.hero-stage { position: relative; width: clamp(190px, min(22vw, 26vh), 270px); aspect-ratio: 1; margin: 0 auto 6px; display: grid; place-items: center; }
.hero { grid-template-rows: auto auto; align-content: center; }
.hero-glow {
  position: absolute; inset: -70%; z-index: -1; border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(99, 82, 240, .55), rgba(99, 82, 240, .18) 45%, transparent 70%);
  animation: breathe 9.6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.ripple {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 1px solid rgba(196, 186, 255, .22);
  animation: ripple 9.6s cubic-bezier(.25, .6, .3, 1) infinite;
  opacity: 0;
}
.ripple.r2 { animation-delay: -4.8s; }
@keyframes ripple { 0% { transform: scale(.55); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.poly { position: relative; width: 66%; height: auto; overflow: visible; shape-rendering: geometricPrecision; filter: drop-shadow(0 0 4px rgba(170, 155, 255, .4)); }
/* djentic lattice: bright tips and core, softer inner ring; each dot breathes at its own rate (never past its brand size) */
.poly .d {
  transform-box: fill-box; transform-origin: center;
  --lo: .55; --hi: 1;
  animation: dot var(--p, 6s) ease-in-out var(--o, 0s) infinite;
}
.poly .in { --lo: .38; --hi: .72; }
.poly .core { --lo: .92; --hi: 1; }
@keyframes dot {
  0%, 100% { transform: scale(.84); opacity: var(--lo); }
  50% { transform: scale(1); opacity: var(--hi); }
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 26px 0 22px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--ink-2); font-size: 12px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(169, 157, 255, .6); animation: ping 3.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(169, 157, 255, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(169, 157, 255, 0); } }
h1 {
  font-size: clamp(44px, min(7.4vw, 11.5vh), 104px);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -0.048em;
  max-width: 13ch;
  text-wrap: balance;
}
h1 em { font-size: 1.07em; letter-spacing: -0.02em; }
.lede { margin-top: 22px; font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); letter-spacing: -0.01em; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 24px; height: 52px; display: block;
}
.scroll-cue::before { /* the track */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(196, 186, 255, .35) 30%, rgba(196, 186, 255, .35) 70%, transparent);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 10px 2px rgba(169, 157, 255, .7);
  animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 75% { transform: translateY(36px); opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 170px) 0; }
.section-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px clamp(28px, 6vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .kicker { grid-column: 1 / -1; }
.section-head .body { padding-bottom: 8px; }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - var(--gutter) * 2)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* ---------- featured ---------- */
.featured { padding-top: clamp(80px, 10vw, 130px); }
.featured::before { display: none; }
.feat-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.feat-copy { display: grid; gap: 22px; }
.feat-side { display: grid; gap: 26px; justify-items: start; padding-bottom: 6px; }
.dj-lockup { display: inline-flex; align-items: center; gap: 12px; }
.dj-tile { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 26px -6px rgba(99, 82, 240, .9); }
.dj-name { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }

.feature-frame {
  position: relative; margin: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(160deg, rgba(196, 186, 255, .38), rgba(196, 186, 255, .06) 40%, rgba(99, 82, 240, .35));
  box-shadow: 0 50px 120px -40px rgba(99, 82, 240, .55), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.feature-frame::before {
  content: ""; position: absolute; inset: 8% 6% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(99, 82, 240, .45), transparent);
  filter: blur(40px);
}
.frame-chrome {
  display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: rgba(14, 11, 28, .92);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}
.frame-chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(196, 186, 255, .16); }
.frame-chrome span { margin-left: 12px; }
.feature-frame .media { aspect-ratio: 16 / 9; border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px); }

/* ---------- media + placeholders ---------- */
.media {
  position: relative; overflow: hidden;
  background: var(--ph, var(--ph-rube));
  isolation: isolate;
}
.media::after { /* soft vignette + sheen over placeholder and video */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 4, 12, .45));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.media video { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .8s var(--ease); }
.media.is-missing video { opacity: 0; }
.media::before { /* faint lattice on placeholders, hidden under real footage */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(220, 212, 255, .22) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.clip-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(10, 8, 20, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; cursor: pointer;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.media:hover .clip-toggle, .clip-toggle:focus-visible, .media.held .clip-toggle { opacity: 1; transform: none; }
.clip-toggle:hover { background: rgba(99, 82, 240, .7); }
.media.is-missing .clip-toggle { display: none; }
.i-pause { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.is-paused .i-pause { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

/* ---------- built by agents (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(170px, 17vw, 230px);
  gap: 16px;
}
.c-a { grid-column: span 2; grid-row: span 2; }
.clip {
  position: relative; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.clip .media { position: absolute; inset: 0; }
.clip:hover { border-color: rgba(196, 186, 255, .28); box-shadow: 0 24px 60px -30px rgba(99, 82, 240, .7); }
.clip .media::after { background: linear-gradient(180deg, transparent 45%, rgba(6, 5, 14, .86)), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 4, 12, .35)); }
.cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 16px 60px 16px 18px;
}
.cap-t { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.cap-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-3); padding: 3px 8px; border-radius: 999px; background: rgba(99, 82, 240, .28); border: 1px solid rgba(169, 157, 255, .28); }
.c-a .cap { padding: 22px 64px 22px 24px; }
.c-a .cap-t { font-size: 19px; }

/* ---------- approach ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: p; }
.principle {
  position: relative; padding: 34px 30px 36px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 23, 54, .55), rgba(14, 11, 28, .35));
  border: 1px solid var(--line);
  overflow: hidden;
}
.principle::before { /* thin top highlight */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 186, 255, .4), transparent);
}
.p-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 64px; }
.p-idx { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-2); letter-spacing: .08em; }
.glyph { width: 84px; height: 50px; overflow: visible; fill: var(--accent-3); }
.glyph circle { transform-box: fill-box; transform-origin: center; opacity: .22; }
/* code computes: a deterministic scan, one step at a time */
.g-code circle { animation: g-scan 3s steps(1, end) infinite; animation-delay: calc(var(--i) * .2s); }
@keyframes g-scan { 0% { opacity: 1; fill: #fff; } 6.66% { opacity: .22; fill: var(--accent-3); } }
/* models learn: each column grows a little stronger, in a slow wave */
.g-learn circle { animation: g-grow 6s var(--ease) infinite; animation-delay: calc(var(--c) * .35s + var(--i) * .03s); }
@keyframes g-grow { 0% { transform: scale(.35); opacity: .15; } 45%, 75% { transform: scale(1); opacity: .95; } 100% { transform: scale(.35); opacity: .15; } }
/* LLMs explain: dots type out like lines of text */
.g-explain circle { animation: g-type 5.4s ease-out infinite; animation-delay: calc(var(--i) * .16s); }
@keyframes g-type { 0% { opacity: .12; transform: scale(.6); } 6%, 70% { opacity: .9; transform: scale(1); } 85%, 100% { opacity: .12; transform: scale(.6); } }
.principle h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; margin-bottom: 14px; }
.principle p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* cursor spotlight (set by main.js) */
.spot { --mx: 50%; --my: 50%; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(140, 125, 255, .12), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.spot:hover::after { opacity: 1; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.contact-copy { display: grid; gap: 20px; position: sticky; top: 120px; }
.mail a { font-family: var(--font-mono); font-size: 15px; color: var(--accent-3); border-bottom: 1px solid rgba(169, 157, 255, .35); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.mail a:hover { color: #fff; border-color: #fff; }
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 25, 58, .6), rgba(15, 12, 30, .5));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -50px rgba(99, 82, 240, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ct { display: grid; gap: 18px; padding: clamp(22px, 3.4vw, 36px); }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font: 16px/1.5 var(--font-sans); color: var(--ink);
  background: rgba(5, 4, 12, .5);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #6f6992; }
.field input:hover, .field textarea:hover { border-color: rgba(196, 186, 255, .3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(99, 82, 240, .25); background: rgba(5, 4, 12, .7); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.ct-status { font-size: 14.5px; color: var(--ink-2); min-height: 1.5em; }
.ct-status.ok { color: var(--ok); }
.ct-status.err { color: var(--err); }
.ct.sent .field, .ct.sent .ct-row { opacity: .5; pointer-events: none; }
.ct.sent #ct-send { display: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 16px; }
.fine { color: var(--ink-3); font-size: 14px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feat-head, .section-head { grid-template-columns: 1fr; align-items: start; }
  .principles { grid-template-columns: 1fr; }
  .p-top { margin-bottom: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .frame-chrome span { display: none; }
  .bento-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .bento-scroller::-webkit-scrollbar { display: none; }
  .bento {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw; grid-auto-rows: auto;
    max-width: none; width: max-content; gap: 12px;
  }
  .c-a { grid-column: auto; grid-row: auto; }
  .clip { aspect-ratio: 4 / 5; scroll-snap-align: center; }
  .c-a .cap { padding: 16px 60px 16px 18px; }
  .c-a .cap-t { font-size: 15px; }
  .clip-toggle { opacity: 1; transform: none; }
  .ct-row { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .eyebrow { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .poly .d { animation: none; transform: none; opacity: var(--hi); }
  .scroll-cue span { animation: none; top: 22px; }
  .ripple { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
