/* Lakshaya marketing site.
   Built to the reference's structure and motion: grey dotted sections and
   near-black sections, a 15px rounded-dot grid that stays continuous from
   section to section, rem type that scales with the viewport, and one accent
   (Lakshaya blue). Radius scale: xs .125rem, sm .25, md .375, lg .5, xl .75. */

:root {
  --paper: #e3e3e3;
  --ink: #0e0e0e;
  --ink-2: #3a3a3a;
  --ink-3: #676767;
  --night: #0e0e0e;
  --offblack: #1a1a1c;
  --g1: #202020;
  --g2: #2a2a2a;
  --g3: #3e3e3e;
  --light-1: #9c9996;
  --light-2: #b9b9b9;
  --white: #fafafa;
  --accent: #3d6ff2;
  --accent-2: #2f5cd6;
  --accent-soft: rgba(61, 111, 242, 0.18);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --inout-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --inout-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --circ: cubic-bezier(0, 0.55, 0.45, 1);
  --back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sine: cubic-bezier(0.37, 0, 0.63, 1);
  --nav-bar: 3.75rem; --nav-gap: 0.875rem; --nav-h: calc(var(--nav-bar) + var(--nav-gap));
  --dot-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Crect x='6.5' y='6.5' width='2' height='2' rx='1' fill='%23000' fill-opacity='.08'/%3E%3C/svg%3E");
  --dot-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Crect x='6.5' y='6.5' width='2' height='2' rx='1' fill='%23fff' fill-opacity='.08'/%3E%3C/svg%3E");
  /* z scale: dot glow 1, content 2-10, showcase dock 30, hero marquee 40, nav 100, menus 110 */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
@media (min-width: 64rem) { html { font-size: clamp(16px, 1vw, 20px); } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.5; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* dotted grid: one tile size everywhere, offset by JS so it lines up across sections */
.dotted { background-image: var(--dot-dark); background-size: 15px 15px; background-position: 0 var(--dot-y, 0); }
.dotted.night { background-image: var(--dot-light); }
.dot-glow { position: fixed; inset: 0; z-index: 1; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 0.875rem; border-radius: 0.375rem; border: 0; cursor: pointer;
  font-size: 0.85rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform 0.4s var(--expo), background-color 0.3s var(--cubic), color 0.3s var(--cubic);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .nav-btn:focus-visible, .dock-input:focus-visible, .dock-tabs button:focus-visible,
.persona-tabs button:focus-visible, summary:focus-visible, .tour-card:focus-visible, .pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-soft { background: #e6e7ea; color: var(--ink); }
.btn-soft:hover { background: #dadce0; }
.btn-grad { position: relative; overflow: hidden; color: #fff; background: #0f1a3a; isolation: isolate; }
.btn-grad::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 120%; z-index: -1; background: linear-gradient(90deg, #0d1640 0%, #2f5cd6 25%, #a9bdff 70%, #e9efff 120%); transform-origin: 0 50%; transition: transform 0.5s var(--inout-cubic); }
.btn-grad:hover::before { transform: scaleX(2); }
.btn.wide { width: 100%; height: 2.75rem; }

/* ---------- nav: a floating bar, clear of the screen edge ---------- */
.nav {
  position: fixed; top: var(--nav-gap); left: 50%; z-index: 100; transform: translateX(-50%);
  width: calc(100% - 3rem); max-width: 80rem; height: var(--nav-bar);
  display: flex; align-items: center; gap: 2rem; padding: 0 0.75rem 0 1.5rem;
  background: var(--g1); color: var(--white);
  border-radius: 0.875rem; box-shadow: 0 0 0 1px #3a3a3a, 0 14px 34px -10px rgba(0, 0, 0, 0.28);
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.mark { width: 1.375rem; height: 1.375rem; color: currentColor; flex: none; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; height: 2.25rem; padding: 0 0.85rem; border-radius: 0.5rem;
  background: none; border: 0; cursor: pointer; font-size: 0.875rem; color: #cfcfcf; text-decoration: none;
  transition: color 0.2s var(--cubic), background-color 0.2s var(--cubic);
}
.nav-btn:hover, .nav-btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-btn svg { width: 0.7rem; height: 0.7rem; transition: transform 0.3s var(--cubic); }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-item { position: relative; }
.menu {
  position: absolute; top: calc(100% + 0.6rem); left: -0.5rem; z-index: 110; width: 34rem; padding: 0.5rem;
  display: grid; grid-template-columns: 1fr 14.125rem; gap: 0.5rem;
  background: var(--g1); border-radius: 0.5rem; box-shadow: inset 0 0 0 1px #3a3a3a, 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(-0.25rem); pointer-events: none; transition: opacity 0.18s ease-in-out, transform 0.18s ease-in-out;
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-links { display: grid; gap: 0.125rem; align-content: start; }
.menu-links a { display: grid; gap: 0.1rem; padding: 0.6rem 0.7rem; border-radius: 0.375rem; text-decoration: none; }
.menu-links a:hover { background: rgba(255, 255, 255, 0.06); }
.menu b { font-weight: 500; font-size: 0.85rem; }
.menu span { font-size: 0.78rem; color: var(--light-1); }
.menu-feature { display: grid; gap: 0.25rem; padding: 0.375rem; border-radius: 0.375rem; background: var(--g2); text-decoration: none; }
.mf-img { display: block; aspect-ratio: 4 / 3; border-radius: 0.25rem; overflow: hidden; background: var(--g3); margin-bottom: 0.4rem; }
.mf-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s var(--cubic); }
.menu-feature b, .menu-feature span { padding: 0 0.25rem; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 0.625rem; }
.burger { display: none; width: 2.25rem; height: 2.25rem; border-radius: 0.375rem; border: 0; background: rgba(255, 255, 255, 0.08); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 0.7rem; right: 0.7rem; height: 1.5px; background: #fff; transition: transform 0.45s var(--expo); }
.burger span:first-child { top: 0.85rem; }
.burger span:last-child { top: 1.3rem; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(0.225rem) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-0.225rem) rotate(-45deg); }
/* the menu scrolls on short screens, so the buttons at the end are always reachable */
.mobile-menu { position: fixed; inset: 0; z-index: 99; padding: 5.5rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 0.1rem; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: rgba(14, 14, 14, 0.96); }
.mobile-menu a:not(.btn) { color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 1.75rem; font-weight: 300; padding: 0.3rem 0; }
/* the two actions come first, so they never sit below the fold */
.mm-ctas { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.25rem; }
.mm-ctas .btn { height: 2.9rem; justify-content: center; }
.mm-ctas .btn[hidden] { display: none; }
.mm-ctas:has(.btn[hidden]) { grid-template-columns: 1fr; }
.mobile-menu > * { opacity: 0; transform: translateY(1.1rem); transition: opacity 0.5s var(--expo), transform 0.6s var(--expo); }
.mobile-menu.open > * { opacity: 1; transform: none; }
.mobile-menu.open > *:nth-child(2) { transition-delay: 0.04s; } .mobile-menu.open > *:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.open > *:nth-child(4) { transition-delay: 0.12s; } .mobile-menu.open > *:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.open > *:nth-child(6) { transition-delay: 0.2s; } .mobile-menu.open > *:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu.open > *:nth-child(8) { transition-delay: 0.28s; } .mobile-menu.open > *:nth-child(9) { transition-delay: 0.32s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero-lens { position: absolute; left: 50%; top: var(--band-y, 50%); z-index: 1; width: 120vw; transform: translate(-50%, -50%) scale(0); pointer-events: none; }
.hero-lens svg { display: block; width: 100%; height: auto; }
.hero-lens path { fill: var(--g1); }
.hero-gl { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.hero-gl canvas { position: absolute; left: 0; display: block; }
.hero-copy { position: relative; z-index: 3; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 2rem) 1.25rem 9rem; }
.hero-title { position: relative; top: 2rem; margin: 0; text-align: center; font-family: var(--serif); font-weight: 300; font-size: 3.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); display: flex; flex-direction: column; }
.ht-line { display: block; white-space: nowrap; }
.pixel-word { position: relative; display: inline-block; vertical-align: top; font-style: italic; color: var(--accent); }
.pixel-word canvas { position: absolute; pointer-events: none; }
.pixel-word.live .pw-text { visibility: hidden; }
.pw-text { display: inline-block; white-space: nowrap; }
.tunnel { position: relative; width: 100%; height: 22rem; pointer-events: none; }
.tunnel-line { position: absolute; left: 50%; top: 50%; width: 40vw; height: 2px; margin-left: -20vw; background: var(--ink); transform: scaleX(0); opacity: 0; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.tunnel[data-mode="gl"] .ring, .tunnel[data-mode="gl"] .tunnel-line { display: none; }
.card { position: absolute; left: 0; top: 0; border-radius: 6px; overflow: hidden; background: #fff; backface-visibility: hidden; will-change: transform, opacity; }
.card img, .card video { width: 100%; height: 100%; object-fit: cover; }
.card.ui { background: #fff; display: grid; place-items: center; padding: 6%; }
.card.ui img { height: auto; object-fit: contain; }
.card.type { display: grid; align-content: space-between; padding: 22px; color: #fff; background: var(--accent); }
.card.type.dark { background: var(--g1); }
.card.type b { font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1; }
.card.type span { font-size: 15px; line-height: 1.35; opacity: 0.86; }
.hero-foot { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-sub { margin: 0; max-width: 30rem; text-align: center; text-wrap: balance; color: var(--ink); font-size: 0.85rem; line-height: 1.5; letter-spacing: -0.03em; }
.hero-prompt-slot { width: 20rem; max-width: 100%; height: 3.45rem; }
.intro-reveal { opacity: 0; transform: scale(1.2); }
.intro-reveal.on { opacity: 1; transform: none; transition: opacity 1.5s var(--expo), transform 1.5s var(--expo); }
.hero-foot.intro-reveal.on { transition-delay: 0.2s; }

.works { position: absolute; left: 0; right: 0; bottom: 2.25rem; z-index: 40; display: flex; align-items: center; gap: 1.75rem; padding: 0 1.5rem; opacity: 0; transform: translateY(12px); }
.works.on { opacity: var(--fade, 1); transform: none; transition: transform 1.2s var(--expo) 0.5s, opacity 1.2s var(--expo) 0.5s; }
.works.on.settled { transition: none; }
.works p { margin: 0; flex: none; font-size: 0.78rem; color: var(--ink-3); max-width: 15ch; line-height: 1.3; }
.marquee { position: relative; flex: 1; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0 1.75rem; height: 1.85rem; font-size: 1rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; letter-spacing: -0.02em; }
.logo img { height: 1.375rem; width: auto; filter: grayscale(1) brightness(0.2); opacity: 0.85; }

/* ---------- prompt (dock) ---------- */
.prompt-ico { width: 1.25rem; height: 1.25rem; flex: none; opacity: 0.6; filter: saturate(0.4); transition: opacity 0.3s var(--cubic), filter 0.3s var(--cubic); }
.prompt-text { position: relative; flex: 1; min-width: 0; font-size: 0.875rem; line-height: 1.19rem; letter-spacing: -0.03em; color: var(--white); }
.prompt-text .ph { color: var(--light-2); transition: opacity 0.35s ease; }
.prompt-text .ph.fade { opacity: 0; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--accent); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.prompt-go { position: relative; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--g3); color: #fff; transition: background-color 0.3s var(--cubic); }
.prompt-go svg { width: 0.85rem; height: 0.85rem; }
.prompt-go.press { animation: press 0.4s var(--cubic); background: var(--accent); }
.prompt-go.lit { background: var(--accent); }
@keyframes press { 50% { transform: scale(0.8); } }
.prompt-ico.spin { opacity: 1; filter: none; animation: spin 0.6s linear infinite; }
.prompt-ico.lit { opacity: 1; filter: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- showcase ---------- */
.showcase { position: relative; z-index: 4; background: var(--night); color: var(--white); isolation: isolate; }
.sc-layer { position: absolute; inset: 0; pointer-events: none; }
.sc-layer-bg { z-index: 0; }
.sc-layer-dock { z-index: 30; }
.sc-bg { position: sticky; top: 0; height: 100lvh; overflow: hidden; }
.sc-media { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--inout-cubic); }
.sc-media.on { opacity: 1; }
.sc-media video { width: 100%; height: 100%; object-fit: cover; }
.sc-noise { position: absolute; inset: -50%; background: url("../art/noise.webp") 0 0 / 96px; mix-blend-mode: overlay; opacity: 0.12; animation: noise 3s steps(5) infinite; pointer-events: none; }
@keyframes noise { 20% { transform: translate(96px, -64px); } 40% { transform: translate(-80px, 112px); } 60% { transform: translate(128px, 48px); } 80% { transform: translate(-48px, -96px); } }
.sc-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 14, 14, 0.55), transparent 45%); pointer-events: none; }
.sc-cap { position: absolute; z-index: 1; left: 4vw; bottom: 7vh; max-width: min(34vw, 30rem); opacity: 0; transform: translateY(1rem); transition: opacity 0.8s var(--inout-cubic), transform 0.8s var(--inout-cubic); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.sc-cap.on { opacity: 1; transform: none; }
.sc-cap h2 { margin: 0 0 0.6rem; font-family: var(--serif); font-weight: 300; font-size: 2.625rem; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.sc-cap p { margin: 0; font-size: 0.95rem; line-height: 1.45; color: rgba(250, 250, 250, 0.85); }

.sc-dock { position: sticky; top: 0; height: 100lvh; pointer-events: none; }
.dock-box { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform, width; }
.dock-tabs { overflow: hidden; height: 0; opacity: 0; }
.dock-tabs-in { position: relative; display: flex; padding: 0.2rem; margin-bottom: 0.375rem; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--g1); border-radius: 0.375rem; box-shadow: inset 0 0 0 1px var(--g3); }
.dock-tabs button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; height: 1.6rem; padding: 0 0.65rem; border-radius: 0.25rem; font-size: 0.75rem; color: var(--light-1); white-space: nowrap; opacity: 0; transform: translateY(10px); transition: color 0.3s var(--cubic) 0.1s; }
.dock-tabs.show button { opacity: 1; transform: none; transition: opacity 0.45s var(--cubic), transform 0.45s var(--cubic), color 0.3s var(--cubic) 0.1s; }
.dock-tabs button[aria-selected="true"] { color: #fff; }
.dock-ind { position: absolute; z-index: 0; top: 0.2rem; bottom: 0.2rem; left: 0; width: 0; border-radius: 0.25rem; background: var(--accent); transition: transform 0.5s var(--circ), width 0.5s var(--circ); }
.dock-input { position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 3.45rem; padding: 0.5rem 0.5rem 0.5rem 0.9rem; background: var(--g1); color: var(--white); border-radius: var(--r, 1rem); text-decoration: none; box-shadow: inset 0 0 0 1px var(--g3), 0 18px 40px rgba(0, 0, 0, 0.25); }
.dock-glow { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(120deg, transparent 35%, var(--accent) 50%, transparent 65%) 5% 5% / 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity 0.5s ease; }
.dock-input:hover .dock-glow, .dock-input:focus-visible .dock-glow { opacity: 1; animation: sweep 2s linear infinite; }
@keyframes sweep { to { background-position: 95% 95%; } }

.sc-scenes { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; padding: 24vh 1rem calc(24vh + 8rem); }
.scene { position: relative; width: 54.2vw; }
.scene .sc-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sc-view { position: relative; aspect-ratio: 780 / 559; overflow: hidden; border-radius: 0.5rem; background-color: var(--night); background-image: var(--dot-light); background-size: 15px 15px; box-shadow: inset 0 0 0 1px var(--g2); touch-action: pan-y; }
.sc-view::before, .sc-view::after { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 3; pointer-events: none; }
.sc-view::before { left: 0; background: linear-gradient(90deg, rgba(14, 14, 14, 0.5), transparent); }
.sc-view::after { right: 0; background: linear-gradient(-90deg, rgba(14, 14, 14, 0.5), transparent); }
.sc-view.grab { cursor: grab; } .sc-view.grabbing { cursor: grabbing; }
.sc-track { position: absolute; left: 0; top: 0; height: 459px; transform-origin: 0 0; will-change: transform; }
.sc-wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.sc-wires path { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sc-wires path.ghost { stroke: rgba(141, 168, 255, 0.28); stroke-dasharray: 3 4; stroke-dashoffset: 0; }
.sc-wires .port { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 0.25s var(--back); }
.sc-wires .port.on { transform: scale(1); }
.sc-wires .port .o { fill: var(--offblack); stroke: var(--accent); stroke-width: 1; }
.sc-wires .port .i { fill: var(--accent); }
.sc-card { position: absolute; padding: 8px; border-radius: 0.25rem; background: var(--offblack); box-shadow: inset 0 0 0 1px var(--g2); opacity: 0.3; transform: translateY(8px) scale(0.98); transition: opacity 0.6s var(--cubic), transform 0.6s var(--cubic); }
/* before a card is built it shows as an outline with a shimmer where its image goes */
.sc-card:not(.in) { box-shadow: inset 0 0 0 1px var(--g3); }
.sc-card:not(.in) header, .sc-card:not(.in) .tag { opacity: 0.5; }
.sc-card:not(.in) img { opacity: 0; }
.sc-card:not(.in)::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; top: 52px; border-radius: 0.2rem; background: linear-gradient(100deg, var(--g2) 30%, #34343a 50%, var(--g2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
.sc-card.in { opacity: 1; transform: none; }
.sc-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; line-height: 1.2; }
.sc-card header b { font-weight: 500; color: #fff; }
.sc-card header span { font-family: var(--mono); font-size: 10px; color: var(--light-1); }
.sc-card .tag { display: inline-block; margin-bottom: 6px; font-style: normal; font-size: 10px; font-weight: 500; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--accent); color: #fff; }
.sc-card img { width: 100%; border-radius: 0.2rem; background: #fff; filter: brightness(10) sepia(0.2); transition: filter 0.6s var(--circ), opacity 0.2s linear; }
.sc-card.in img { filter: none; }

/* ---------- section titles ---------- */
.sec-title { margin: 0; text-align: center; font-family: var(--serif); font-weight: 300; font-size: 2.625rem; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.sec-sub { margin: 1rem auto 0; max-width: 34rem; text-align: center; color: var(--ink-2); font-size: 0.95rem; letter-spacing: -0.03em; }

/* ---------- people: deck in perspective ---------- */
.people { position: relative; z-index: 2; padding: 7rem 1rem 6rem; overflow: hidden; }
.deck-wrap { position: relative; height: 50rem; max-width: 80rem; margin: 2rem auto 0; }
.deck { position: absolute; left: 50%; top: 15rem; width: 25rem; margin-left: -12.5rem; perspective: 30rem; perspective-origin: 50% 0; transform-style: preserve-3d; }
.pcard { position: absolute; left: 0; top: 0; width: 25rem; padding: 0.75rem 0.75rem 1rem; border-radius: 0.5rem; background: #fff; cursor: pointer; will-change: transform; box-shadow: 0 0 0 1px rgba(14, 14, 14, 0.04), 0 30px 60px rgba(14, 14, 14, 0.1); }
.pcard .pimg { aspect-ratio: 1; border-radius: 0.375rem; overflow: hidden; background: #f0f0f0; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pcard .notch { position: absolute; left: -1.5rem; top: 2.5rem; width: 1.5rem; padding: 0.6rem 0; border-radius: 0.375rem 0 0 0.375rem; background: #fff; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-align: center; color: var(--ink-3); }
.pcard h3 { margin: 1rem 0.25rem 0.5rem; font-family: var(--serif); font-weight: 300; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; }
.pcard p { margin: 0 0.25rem; color: var(--ink-2); font-size: 0.8rem; line-height: 1.3; letter-spacing: -0.03em; }
.usecases { position: absolute; inset: 0; pointer-events: none; }
.uc { position: absolute; width: 16rem; perspective: 700px; pointer-events: auto; opacity: 0; transform: scale(0.7); }
.uc.big { width: 20rem; }
.uc.in { opacity: 1; transform: none; transition: opacity 0.6s var(--cubic), transform 0.6s var(--cubic); }
.uc.out { opacity: 0; transform: scale(0.7); transition: opacity 0.3s cubic-bezier(0.32, 0, 0.67, 0), transform 0.3s cubic-bezier(0.32, 0, 0.67, 0); }
.uc-flip { position: relative; transform-style: preserve-3d; transition: transform 0.6s var(--expo); }
.uc:hover .uc-flip { transform: rotateY(180deg); }
.uc-face { position: relative; padding: 0.35rem; border-radius: 0.5rem; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 0 1px rgba(14, 14, 14, 0.04), 0 16px 32px rgba(14, 14, 14, 0.12); }
.uc-face img { width: 100%; border-radius: 0.3rem; }
.uc-face em { position: absolute; top: -0.7rem; left: 0.7rem; font-style: normal; font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.5rem; border-radius: 0.25rem; background: var(--accent); color: #fff; }
.uc-back { position: absolute; inset: 0; transform: rotateY(180deg); overflow: hidden; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3rem; padding: 0.6rem; }
.uc-back img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); filter: blur(6px); opacity: 0.4; }
.uc-back span { position: relative; width: max-content; font-size: 0.62rem; font-weight: 500; padding: 0.15rem 0.45rem; border-radius: 0.25rem; background: rgba(255, 255, 255, 0.14); color: #fff; }
.uc-back span.k { background: var(--accent); }
.persona-tabs { position: relative; display: flex; width: max-content; max-width: calc(100vw - 2rem); overflow-x: auto; scrollbar-width: none; margin: 0 auto; padding: 0.25rem; border-radius: 0.5rem; background: #fff; box-shadow: 0 0 0 1px rgba(14, 14, 14, 0.05); }
.persona-tabs button { position: relative; z-index: 1; flex: none; border: 0; background: none; cursor: pointer; height: 2rem; padding: 0 0.9rem; border-radius: 0.375rem; font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; transition: color 0.3s ease 0.1s; }
.persona-tabs button[aria-selected="true"] { color: #fff; }
.pt-ind { position: absolute; z-index: 0; top: 0.25rem; bottom: 0.25rem; left: 0; width: 0; border-radius: 0.375rem; background: var(--accent); transition: transform 0.4s var(--inout-cubic), width 0.4s var(--inout-cubic); }

/* ---------- tours ---------- */
.tours { position: relative; z-index: 2; padding: 2rem 1rem 8rem; }
.try-row { max-width: 72rem; margin: 2.5rem auto 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.25rem 1.25rem 1.5rem; border-radius: 0.75rem; background: #fff; box-shadow: 0 0 0 1px rgba(14, 14, 14, 0.06); }
.try-row p { margin: 0; max-width: 40rem; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); letter-spacing: -0.02em; }
.try-row .btn { flex: none; }
.try-row[hidden], [data-try-link][hidden] { display: none; }
.tour-grid { max-width: 72rem; margin: 3rem auto 0; display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 1rem; }
.tour-card { position: relative; display: flex; flex-direction: column; padding: 0.5rem; border-radius: 0.75rem; background: #fff; text-decoration: none; transform-style: preserve-3d; will-change: transform; transition: transform 0.6s var(--expo), box-shadow 0.6s var(--cubic); box-shadow: 0 0 0 1px rgba(14, 14, 14, 0.04); }
.tour-card:hover { box-shadow: 0 0 0 1px rgba(14, 14, 14, 0.04), 0 30px 60px rgba(14, 14, 14, 0.12); }
.tour-card.big { grid-row: span 2; }
.tc-img { border-radius: 0.5rem; overflow: hidden; aspect-ratio: 16 / 9; background: #eee; }
.tour-card.big .tc-img { aspect-ratio: auto; flex: 1; min-height: 20rem; }
.tc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--expo); }
.tour-card:hover .tc-img img { transform: scale(1.03); }
.tc-body { padding: 1rem 0.5rem 0.4rem; display: grid; gap: 0.35rem; }
.tc-body h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.05; }
.tc-body p { margin: 0; color: var(--ink-2); font-size: 0.9rem; letter-spacing: -0.03em; }
.tc-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.tour-card .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--cubic); background: radial-gradient(25rem circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.35), transparent 60%); }
.tour-card:hover .glare { opacity: 1; }

/* ---------- pricing ---------- */
.pricing, .faq { background-color: var(--night); color: var(--white); position: relative; z-index: 2; }
.pricing { padding: 8rem 1rem 3.5rem; }
/* pricing: the case for one price on the left, the calculator on art on the right */
.pz { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 4rem; align-items: center; }
.pz-eyebrow { margin: 0 0 1rem; font: 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8fa8ff; }
.pz-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 3.6rem; line-height: 1.02; letter-spacing: -0.025em; color: var(--white); text-wrap: balance; }
.pz-title em, .pz-pilot h3 em { font-style: italic; color: #7f9cff; }
.pz-lede { margin: 1.25rem 0 0; max-width: 30rem; font-size: 1rem; line-height: 1.55; color: var(--light-2); }
.pz-incl { margin: 2.25rem 0 0; display: grid; }
.pz-incl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.pz-incl > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.pz-incl dt { padding-top: 0.15rem; font: 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-1); }
.pz-incl dd { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--light-2); }

.pz-art { position: relative; padding: 9rem 1.25rem 1.25rem; border-radius: 1.5rem; background: url("../art/3d/okrs-cobalt.webp") center top / cover no-repeat, #2f5cd6; box-shadow: 0 40px 80px -20px rgba(47, 92, 214, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pz-coin { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3; perspective: 600px; }
.plan { position: relative; }
.pz-card { position: relative; z-index: 2; padding: 1.6rem 1.6rem 1.25rem; border-radius: 1.1rem; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: var(--ink); box-shadow: 0 20px 50px -12px rgba(10, 20, 60, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.pz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pz-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.pz-pill { padding: 0.3rem 0.65rem; border-radius: 99px; background: rgba(61, 111, 242, 0.1); color: var(--accent-2); font: 500 0.68rem var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.pz-price { display: flex; align-items: flex-end; gap: 0.85rem; margin: 0.9rem 0 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(14, 14, 14, 0.08); }
.pz-price .amt { font-family: var(--serif); font-weight: 300; font-size: 5rem; line-height: 0.85; letter-spacing: -0.04em; }
.pz-price .per { padding-bottom: 0.3rem; font-size: 0.8rem; line-height: 1.4; color: var(--ink-3); }
.pz-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pz-q label { font-size: 0.92rem; color: var(--ink-2); }
.stepper { flex: none; display: flex; align-items: center; border: 1px solid rgba(14, 14, 14, 0.12); border-radius: 0.6rem; overflow: hidden; background: #fff; }
.stepper button { width: 2.1rem; height: 2.2rem; border: 0; background: transparent; font-size: 1.05rem; color: var(--ink-2); cursor: pointer; transition: background 0.2s; }
.stepper button:hover { background: #f0f2f7; color: var(--ink); }
.stepper input { width: 4.2rem; height: 2.2rem; border: 0; border-left: 1px solid rgba(14, 14, 14, 0.08); border-right: 1px solid rgba(14, 14, 14, 0.08); text-align: center; font: 500 0.95rem var(--mono); color: var(--ink); background: #fff; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pz-range { --p: 0.1; position: relative; margin: 1.3rem 0 0; height: 2rem; display: flex; align-items: center; }
#seats { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 0; border-radius: 99px; background: linear-gradient(90deg, #2f5cd6, #7f9cff calc(var(--p) * 100%), #e4e7ef calc(var(--p) * 100%)); cursor: pointer; }
#seats::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 30px; border: 0; background: transparent; }
#seats::-moz-range-thumb { width: 48px; height: 30px; border: 0; background: transparent; }
#seats:focus-visible { outline: none; }
#seats:focus-visible + .pz-bubble { outline: 2px solid var(--accent); outline-offset: 2px; }
.pz-bubble { position: absolute; top: 50%; left: calc(var(--p) * (100% - 48px) + 24px); transform: translate(-50%, -50%); min-width: 48px; height: 30px; padding: 0 0.55rem; display: grid; place-items: center; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1.5px var(--accent), 0 4px 12px rgba(47, 92, 214, 0.3); font: 600 0.8rem var(--mono); color: var(--ink); pointer-events: none; }
.pz-scale { display: flex; justify-content: space-between; margin-top: 0.35rem; font: 0.66rem var(--mono); color: var(--ink-3); }
.pz-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 0.8rem; background: linear-gradient(135deg, #eef2ff, #f6f7fb); box-shadow: inset 0 0 0 1px rgba(61, 111, 242, 0.12); }
.pz-total > div { display: flex; flex-direction: column; gap: 0.2rem; }
.pz-total .k { font-size: 0.72rem; color: var(--ink-3); }
.pz-total .v { font-family: var(--serif); font-weight: 400; font-size: 2.3rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pz-total .v small { margin-left: 0.15rem; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0; color: var(--ink-3); }
.pz-year { align-items: flex-end; text-align: right; }
.pz-year span { font-size: 1rem; font-weight: 500; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.pz-year small { font-size: 0.7rem; color: var(--ink-3); }
.pz-hint { margin: 0.7rem 0 0; font-size: 0.76rem; color: var(--accent-2); }
.pz-cta { margin-top: 1.1rem; height: 3rem !important; font-size: 0.95rem; }
.pz-link { display: block; margin: 0.6rem auto 0; padding: 0.2rem; border: 0; background: none; font: inherit; font-size: 0.8rem; color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pz-link:hover { color: var(--ink); }

.pz-pilot { max-width: 72rem; margin: 5rem auto 0; padding: 2.5rem; border-radius: 1.5rem; background: radial-gradient(120% 140% at 0% 0%, rgba(61, 111, 242, 0.16), transparent 55%), linear-gradient(180deg, #151619, #111113); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3rem; align-items: center; }
.pz-pilot-head .pz-eyebrow { margin-bottom: 0.75rem; }
.pz-pilot h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1.05; letter-spacing: -0.02em; color: var(--white); }
.pz-pilot-head p:last-child { margin: 0.8rem 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--light-1); }
.pz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.pz-steps li { padding: 1.2rem 1.1rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; gap: 0.35rem; transition: background 0.3s var(--cubic), box-shadow 0.3s var(--cubic); }
.pz-steps li:hover { background: rgba(61, 111, 242, 0.08); box-shadow: inset 0 0 0 1px rgba(127, 156, 255, 0.35); }
.pz-steps .n { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: #7f9cff; }
.pz-steps b { margin-top: 0.4rem; font-weight: 500; font-size: 1rem; color: var(--white); }
.pz-steps li > span:last-child { font-size: 0.8rem; line-height: 1.45; color: var(--light-1); }

@media (max-width: 1100px) {
  .pz { grid-template-columns: 1fr; gap: 3rem; max-width: 36rem; }
  .pz-title { font-size: 3rem; }
  .pz-pilot { grid-template-columns: 1fr; gap: 1.75rem; max-width: 36rem; }
  .pz-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pz-title { font-size: 2.5rem; }
  .pz-incl > div { grid-template-columns: 1fr; gap: 0.35rem; }
  .pz-art { padding: 7rem 0.75rem 0.75rem; border-radius: 1.25rem; }
  .pz-coin { top: 1.1rem; right: 1.1rem; }
  .pz-card { padding: 1.3rem 1.1rem 1rem; }
  .pz-price .amt { font-size: 4.2rem; }
  .pz-q { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .pz-total .v { font-size: 2rem; }
  .pz-pilot { margin-top: 3.5rem; padding: 1.75rem 1.25rem; }
  .pz-steps { grid-template-columns: 1fr; }
}

/* ---------- coin (CSS 3D) ---------- */
.coin { --s: 150px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; will-change: transform; }
.coin.small { --s: 4.75rem; }
.coin .face, .coin .rim { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; }
.coin .rim { background: linear-gradient(90deg, #6d7480, #d9dce2 40%, #8b919c 70%, #50555e); }
.coin .face { display: grid; place-items: center; color: #4b505a; background: radial-gradient(circle at 32% 28%, #ffffff, #d7dae0 38%, #a4a9b3 72%, #7d838e); box-shadow: inset 0 0 0 calc(var(--s) * 0.035) rgba(255, 255, 255, 0.55), inset 0 0 calc(var(--s) * 0.12) rgba(0, 0, 0, 0.25); }
.coin .face img { width: 52%; height: 52%; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.25)); }
.coin .face.back { transform: rotateY(180deg) translateZ(calc(var(--s) * 0.06)); }
.coin .face.front { transform: translateZ(calc(var(--s) * 0.06)); }

/* ---------- faq ---------- */
.faq { padding: 6rem 1rem 9rem; }
.faq-list { max-width: 46rem; margin: 3rem auto 0; }
.faq details { border-top: 1px solid rgba(185, 185, 185, 0.4); }
.faq details:last-child { border-bottom: 1px solid rgba(185, 185, 185, 0.4); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.1rem 0.1rem; font-size: 1.05rem; letter-spacing: -0.03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; flex: none; width: 0.75rem; height: 0.75rem; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--light-2); transition: transform 0.2s var(--sine); }
.faq .pm::before { width: 0.75rem; height: 1.5px; margin: -0.75px 0 0 -0.375rem; }
.faq .pm::after { width: 1.5px; height: 0.75rem; margin: -0.375rem 0 0 -0.75px; }
.faq details.is-open .pm::after { transform: rotate(90deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0; padding: 0 0.1rem 1.35rem; color: var(--light-2); max-width: 40rem; font-size: 0.92rem; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--night); color: var(--white); padding: 4rem 1rem 1rem; overflow: hidden; }
.wordmark { position: relative; max-width: 80rem; margin: 0 auto; transform: translateY(100%) scale(0.95); opacity: 0; transition: transform 0.6s var(--cubic), opacity 0.6s var(--cubic); }
.wordmark.in { transform: none; opacity: 1; }
.wm-base, .wm-glow { display: flex; align-items: center; justify-content: center; gap: 0.18em; font-weight: 600; letter-spacing: -0.05em; font-size: clamp(3.5rem, 15vw, 16rem); line-height: 0.8; user-select: none; }
.wm-base { color: var(--g3); }
.wm-base .mark, .wm-glow .mark { width: 0.78em; height: 0.78em; }
.wm-base .mark { filter: grayscale(1) brightness(0.3); }
.wm-glow { position: absolute; inset: 0; color: transparent; pointer-events: none;
  -webkit-mask: radial-gradient(circle var(--rad, 0px) at var(--mx, 50%) var(--my, 50%), #000 0 34%, rgba(0, 0, 0, 0.65) 58%, rgba(0, 0, 0, 0.2) 76%, transparent 88%);
  mask: radial-gradient(circle var(--rad, 0px) at var(--mx, 50%) var(--my, 50%), #000 0 34%, rgba(0, 0, 0, 0.65) 58%, rgba(0, 0, 0, 0.2) 76%, transparent 88%); }
.wm-glow span { background: linear-gradient(110deg, #3d6ff2, #9db6ff, #e9efff, #2f5cd6, #0d1640, #3d6ff2) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; animation: mesh 8s linear infinite; }
.wm-glow .mark { filter: saturate(1.15) brightness(1.1); }
@keyframes mesh { to { background-position: 300% 0; } }
.foot-card { position: relative; max-width: 80rem; margin: calc(clamp(5.5rem, 19vw, 20rem) * -0.2) auto 0; padding: 1.75rem; border-radius: 0.5rem; background: var(--g2); display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.75rem 2.5rem; }
.foot-news h3 { margin: 0 0 0.85rem; font-family: var(--serif); font-weight: 300; font-size: 1.9rem; letter-spacing: -0.02em; }
.news { position: relative; display: flex; max-width: 22rem; height: 2.75rem; border-radius: 0.5rem; background: #fff; }
.news input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 0.9rem; font: inherit; font-size: 0.85rem; color: var(--ink); outline: none; border-radius: 0.5rem; }
.news input::placeholder { color: var(--ink-3); }
.news input:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.news button { width: 2.75rem; border: 0; border-radius: 0.5rem; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform 0.4s var(--expo); }
.news button:hover { transform: translateX(2px); }
.news button svg { width: 1rem; height: 1rem; }
.news-msg { min-height: 1.4em; margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--light-1); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 640px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols h4 { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 500; color: var(--white); letter-spacing: 0.04em; text-transform: uppercase; }
.foot-cols a, .foot-cols button { display: block; padding: 0.25rem 0; font-size: 0.85rem; color: var(--light-1); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.foot-cols a:hover, .foot-cols button:hover { color: var(--white); }
.foot-base { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 1.1rem; border-top: 1px solid var(--g3); font-size: 0.8rem; color: var(--light-1); }
.coin-end { perspective: 900px; }
.coin-end .coin { --s: 5.5rem; }

/* ---------- demo dialog ---------- */
.demo { border: 0; padding: 0; background: none; max-width: calc(100vw - 2rem); }
.demo::backdrop { background: rgba(14, 14, 14, 0.6); backdrop-filter: blur(6px); }
.demo-in { position: relative; width: 29rem; max-width: 100%; padding: 1.9rem; border-radius: 0.75rem; background: #f4f4f4; color: var(--ink); display: grid; gap: 0.9rem; }
.demo-in h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 2.1rem; letter-spacing: -0.02em; }
.demo-in > p { margin: -0.4rem 0 0.4rem; color: var(--ink-2); font-size: 0.9rem; }
.field { display: grid; gap: 0.4rem; }
.field.two { grid-template-columns: 1.4fr 1fr; gap: 0.75rem; }
.field.two > div { display: grid; gap: 0.4rem; }
.field label { font-size: 0.8rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select { height: 2.6rem; border-radius: 0.375rem; border: 1px solid #c9c9c9; background: #fff; padding: 0 0.75rem; font: inherit; font-size: 0.9rem; color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.demo-x { position: absolute; top: 0.9rem; right: 0.9rem; width: 2.1rem; height: 2.1rem; border-radius: 0.375rem; border: 0; background: #e3e3e3; cursor: pointer; display: grid; place-items: center; }
.demo-x svg { width: 0.85rem; height: 0.85rem; }
.demo-msg { margin: 0; min-height: 1.3em; font-size: 0.85rem; color: var(--ink-2); }
.demo[open] .demo-in { animation: pop 0.5s var(--expo); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

/* ---------- in-view reveal: opacity, y 10%, scale .95 over .6s ---------- */
.reveal { opacity: 0; transform: translateY(10%) scale(0.95); transition: opacity 0.6s var(--cubic), transform 0.6s var(--cubic); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: inline-block; }
  .nav-cta .btn-ghost { display: none; }
  .nav { width: calc(100% - 1.5rem); gap: 1rem; padding: 0 0.625rem 0 1.125rem; }
}
/* Below 1024px (Melius's lg): one column. site.js switches at the same width
   (PHONE): the dock docks under the nav, scene panels go full width and taller
   with the camera closer, and the people deck stacks shallow. */
@media (max-width: 1023px) {
  .sc-scenes { align-items: center; gap: 4.5rem; padding: 46vh 1rem 34vh; }
  .scene { width: min(100%, 40rem); align-self: center; }
  .sc-view { aspect-ratio: 1; }
  .dock-tabs-in { width: 100%; }
  .sc-cap { display: none; }
  .scene .sc-caption { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin: 0 0 0.75rem; padding: 1rem 1.1rem 1.1rem; border-radius: 0.5rem; background: rgba(14, 14, 14, 0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--g2); }
  .scene .sc-caption h2 { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 300; font-size: 2rem; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
  .scene .sc-caption p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: rgba(250, 250, 250, 0.85); }
  .people { padding-top: 5rem; }
  .deck { --dw: min(calc(100vw - 4rem), 25rem); width: var(--dw); margin-left: calc(var(--dw) / -2); top: 5.5rem; }
  .pcard { width: min(calc(100vw - 4rem), 25rem); }
  .pcard .notch { display: none; }
  .deck-wrap { height: calc(min(calc(100vw - 4rem), 25rem) + 14rem); margin-top: 2rem; }
  .usecases { display: none; }
  /* the tab row matches the card; a faded edge says more tabs are there */
  .persona-tabs { max-width: min(calc(100vw - 4rem), 25rem); }
  .persona-tabs.more-r { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .persona-tabs.more-l { -webkit-mask-image: linear-gradient(-90deg, #000 80%, transparent); mask-image: linear-gradient(-90deg, #000 80%, transparent); }
  .persona-tabs.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
}
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-card.big { grid-row: auto; }
  .tour-card.big .tc-img { aspect-ratio: 16 / 9; min-height: 0; }
  .foot-card { grid-template-columns: 1fr; }
  .works { flex-direction: column; align-items: stretch; gap: 0.6rem; bottom: 1.5rem; }
  .works p { max-width: none; text-align: center; }
  .logo { padding: 0 1.1rem; font-size: 0.85rem; }
  .logo img { height: 1.1rem; }
}
@media (max-width: 640px) {
  .try-row { flex-direction: column; align-items: stretch; text-align: center; }
  .nav { gap: 0.75rem; width: calc(100% - 1rem); }
  .hero-title { font-size: 2.6rem; }
  .ht-line { white-space: normal; }
  .tunnel { height: 16rem; }
  .coin-slot { right: 0.5rem; }
  .sec-title { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .intro-reveal, .works, .reveal, .wordmark { opacity: 1 !important; transform: none !important; }
  .sc-card { opacity: 1; transform: none; } .sc-card img { filter: none; }
  .sc-wires path { stroke-dashoffset: 0; } .sc-wires .port { transform: none; }
}
