/* ----------  Reset + tokens ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: #050508; color: #f0f0f5; }
:root {
  --bg: #050508;
  --bg-2: #0a0a12;
  --fg: #f0f0f5;
  --dim: #6b6b78;
  --dimmer: #3a3a44;
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.12);
  --cyan: oklch(0.85 0.16 220);
  --magenta: oklch(0.72 0.22 320);
  --amber: oklch(0.88 0.16 85);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

html { font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(120,200,255,0.06), transparent 60%),
    radial-gradient(900px 600px at 80% 80%, rgba(200,100,255,0.05), transparent 60%),
    #050508;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: none; }

/* ----------  Background canvases ---------- */
#bg, #fg-fx {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
#fg-fx { z-index: 50; mix-blend-mode: screen; }

/* subtle grid overlay */
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
}

/* scanline sweep */
.scan {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent 49%, rgba(160,220,255,0.07) 50%, transparent 51%);
  background-size: 100% 8px;
  opacity: 0.25;
  animation: scan 14s linear infinite;
}
@keyframes scan { from { background-position: 0 0; } to { background-position: 0 100%; } }

/* vignette */
.vignette {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.6) 100%);
}

/* ----------  Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  transition: opacity .25s ease, transform .25s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: width .35s cubic-bezier(.2,.8,.2,1),
              height .35s cubic-bezier(.2,.8,.2,1),
              border-color .3s ease,
              background .3s ease,
              mix-blend-mode .3s ease;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: rgba(255,255,255,0.85);
}
/* Envelope icon: hidden by default, shown only when over mailto */
.cursor-mail {
  position: absolute;
  width: 26px; height: 26px;
  color: #fff;
  opacity: 0; transform: scale(0.6) rotate(-8deg);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.cursor-mail .arr {
  transform-origin: 18px 6px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cursor-ring.mail {
  width: 64px; height: 64px;
  border-color: rgba(255,255,255,0.95);
  mix-blend-mode: normal;
  background: radial-gradient(circle, rgba(160,220,255,0.08), transparent 70%);
  box-shadow: 0 0 24px rgba(160,220,255,0.25);
}
.cursor-ring.mail .cursor-mail {
  opacity: 1; transform: scale(1) rotate(0);
}
.cursor-ring.mail .cursor-mail .arr {
  transform: translate(2px, -2px);
}
.cursor-dot.hide-for-mail { opacity: 0; }

/* ----------  Loader ---------- */
#loader {
  position: fixed; inset: 0; background: #050508; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; transition: opacity .8s ease;
}
#loader.gone { opacity: 0; pointer-events: none; }
#loader svg { width: 96px; height: 104px; }
#loader path {
  fill: none; stroke: #f0f0f5; stroke-width: 5;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: draw 1.1s cubic-bezier(.6,.04,.2,1) forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; fill: #f0f0f5; }
}
.load-readout {
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--dim); display: flex; gap: 12px;
}
.load-readout .pct { color: var(--cyan); }

/* ----------  Layout shell ---------- */
.shell {
  position: relative; z-index: 10;
  padding: 32px max(32px, 4vw);
}

/* ----------  Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px max(22px, 2.5vw);
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
  background: linear-gradient(to bottom, rgba(5,5,8,0.7), transparent);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.topbar .left, .topbar .right { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; }
.topbar .right .status { display: flex; align-items: center; gap: 8px; }
.topbar .mark {
  display: flex; align-items: center; gap: 10px; color: var(--fg);
}
.topbar .mark svg { width: 18px; height: 20px; }
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%; background: oklch(0.75 0.2 145);
  box-shadow: 0 0 8px oklch(0.75 0.2 145);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ----------  Hero ---------- */
.hero {
  min-height: 100vh; position: relative;
  display: grid; grid-template-rows: 1fr auto;
  padding: 120px max(32px, 4vw) 64px;
}

.hero-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}

.logo-wrap {
  position: relative; width: 320px; height: 350px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}
.logo-3d {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .12s linear, filter .5s ease;
}
.logo-3d svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 24px rgba(160,220,255,0.25)) drop-shadow(0 0 60px rgba(200,100,255,0.18));
  transition: filter .6s ease;
}
.logo-3d svg path {
  fill: #f0f0f5;
  transition: fill .5s ease, opacity .5s ease;
}

/* ----- Hover: rainbow beam-in (mirrors the mailto effect) ----- */
.logo-wrap:hover .logo-3d svg path,
.logo-wrap.lit .logo-3d svg path {
  fill: url(#logoGrad);
}
.logo-wrap:hover .logo-3d svg,
.logo-wrap.lit .logo-3d svg {
  filter:
    drop-shadow(0 0 12px rgba(255,220,180,0.45))
    drop-shadow(0 0 26px rgba(160,220,255,0.55))
    drop-shadow(0 0 60px rgba(220,140,255,0.45));
}

/* Vertical light beams behind logo, like the mailto streaks */
.logo-beams {
  position: absolute; inset: -40px;
  pointer-events: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20%;
}
.logo-beams span {
  display: block;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,0) 18%,
    rgba(255,255,255,0.95) 50%,
    rgba(255,255,255,0) 82%,
    transparent 100%);
  filter: blur(0.6px);
  transform: scaleY(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.logo-wrap:hover .logo-beams span,
.logo-wrap.lit .logo-beams span {
  opacity: 0.9;
  transform: scaleY(1);
}
.logo-wrap .logo-beams span:nth-child(1) { transition-delay: 0ms; }
.logo-wrap .logo-beams span:nth-child(2) { transition-delay: 60ms; }
.logo-wrap .logo-beams span:nth-child(3) { transition-delay: 30ms; }
.logo-wrap .logo-beams span:nth-child(4) { transition-delay: 120ms; }
.logo-wrap .logo-beams span:nth-child(5) { transition-delay: 80ms; }
.logo-wrap .logo-beams span:nth-child(6) { transition-delay: 160ms; }
.logo-wrap .logo-beams span:nth-child(7) { transition-delay: 110ms; }

/* ----- Shockwave: three expanding rings, colourful, dramatic ----- */
.logo-shock {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.logo-shock span {
  position: absolute;
  width: 60%; height: 60%;
  border-radius: 50%;
  border: 2px solid transparent;
  opacity: 0;
}
.logo-wrap.shock .logo-shock span {
  animation: shockring 1.6s cubic-bezier(.16,.84,.32,1) forwards;
}
.logo-wrap.shock .logo-shock span:nth-child(1) {
  border-color: oklch(0.88 0.18 60);
  animation-delay: 0ms;
}
.logo-wrap.shock .logo-shock span:nth-child(2) {
  border-color: oklch(0.85 0.16 220);
  animation-delay: 90ms;
}
.logo-wrap.shock .logo-shock span:nth-child(3) {
  border-color: oklch(0.78 0.22 320);
  animation-delay: 180ms;
}
@keyframes shockring {
  0%   { transform: scale(0.4); opacity: 0; border-width: 3px; }
  10%  { opacity: 1; }
  60%  { opacity: 0.6; border-width: 1.5px; }
  100% { transform: scale(7.5); opacity: 0; border-width: 0.5px; }
}

/* During shockwave, the rainbow beam-in is forced on */
.logo-wrap.shock .logo-3d {
  animation: shockpulse 1.2s cubic-bezier(.2,.8,.2,1);
}
@keyframes shockpulse {
  0%   { transform: scale(1); }
  16%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.logo-wrap.shock .logo-beams span {
  animation: shockbeam 1.2s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes shockbeam {
  0%   { transform: scaleY(1); opacity: 1; filter: blur(0px); }
  40%  { transform: scaleY(2.4); opacity: 1; filter: blur(2px); }
  100% { transform: scaleY(0); opacity: 0; filter: blur(0px); }
}

/* Full-screen flash overlay */
.shock-flash {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%),
    rgba(255,255,255,0.25) 0%,
    rgba(160,220,255,0.18) 20%,
    rgba(220,140,255,0.10) 40%,
    transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
}
.shock-flash.go { animation: shockflash 1.2s ease-out forwards; }
@keyframes shockflash {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  100% { opacity: 0; }
}
.logo-rings {
  position: absolute; inset: -40px; pointer-events: none;
}
.logo-rings span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  animation: ringspin var(--d, 24s) linear infinite;
}
.logo-rings span:nth-child(1) { animation-duration: 32s; }
.logo-rings span:nth-child(2) { inset: 20px; animation-duration: 18s; animation-direction: reverse; border-color: rgba(160,220,255,0.12); }
.logo-rings span:nth-child(3) { inset: 60px; animation-duration: 12s; border-color: rgba(200,100,255,0.10); }
@keyframes ringspin { to { transform: rotate(360deg); } }

.logo-orbit {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.logo-orbit.b { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); width: 4px; height: 4px; }

/* ===== Hero intro: zoom in from space ===== */
.logo-wrap.intro .logo-3d {
  animation: hero-zoom 2.0s cubic-bezier(.4, .04, .15, 1) both;
}
@keyframes hero-zoom {
  0%   { transform: scale(0.015); filter: blur(10px); opacity: 0; }
  18%  { opacity: 1; }
  78%  { filter: blur(0); transform: scale(1.12); }
  100% { transform: scale(1); filter: blur(0); }
}
.logo-wrap.intro .logo-rings span,
.logo-wrap.intro .logo-orbit,
.logo-wrap.intro .logo-beams span { opacity: 0; transition: opacity .8s ease; }
.logo-wrap.intro.lit .logo-rings span,
.logo-wrap.intro.lit .logo-orbit { opacity: 1; }

/* Stars warp speed during intro */
body.warp::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, transparent 30%, rgba(0,0,0,0.6) 100%);
  animation: warp-vignette 2.6s ease-out both;
}
@keyframes warp-vignette {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.wordmark {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .35s ease;
}
.wordmark.show { opacity: 1; }
.wordmark .tm {
  font-family: var(--mono); font-size: 0.18em; margin-left: 0.4em; margin-top: 0.4em;
  color: var(--dim); letter-spacing: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.wordmark.beamed .tm { opacity: 1; }
.wordmark .char {
  display: inline-block; position: relative;
  will-change: transform;
}
.wordmark .char .beam {
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 260%;
  transform: translate(-50%, -50%) scaleY(0);
  transform-origin: center;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,0) 18%,
    rgba(255,255,255,0.95) 50%,
    rgba(255,255,255,0) 82%,
    transparent 100%);
  filter: blur(0.6px);
  opacity: 0;
  pointer-events: none;
}
.wordmark .char .glyph {
  position: relative; display: inline-block;
  color: #f0f0f5;
  background: linear-gradient(180deg, #f0f0f5, #f0f0f5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.wordmark .char:hover .glyph { transform: translateY(-8px); }

/* Per-char beam-in cascade. JS sets --ci on each .char. */
.wordmark.beaming .char .beam {
  animation: beam-pulse 1.2s ease-out forwards;
  animation-delay: calc(var(--ci, 0) * 70ms);
}
.wordmark.beaming .char .glyph {
  animation: glyph-rainbow 1.4s ease-in-out forwards;
  animation-delay: calc(var(--ci, 0) * 70ms);
}
@keyframes beam-pulse {
  0%   { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
  35%  { opacity: 1; transform: translate(-50%, -50%) scaleY(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
}
@keyframes glyph-rainbow {
  0% {
    background: linear-gradient(180deg, rgba(240,240,245,0), rgba(240,240,245,0));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
  }
  20%, 55% {
    background: linear-gradient(180deg,
      oklch(0.92 0.16 30) 0%,
      oklch(0.88 0.18 60) 18%,
      oklch(0.92 0.16 130) 38%,
      oklch(0.88 0.18 200) 58%,
      oklch(0.78 0.22 280) 78%,
      oklch(0.78 0.22 330) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(180, 220, 255, 0.55)) drop-shadow(0 0 28px rgba(220, 140, 255, 0.4));
  }
  100% {
    background: linear-gradient(180deg, #f0f0f5, #f0f0f5);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
  }
}

.tagline {
  margin-top: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  transition: opacity .8s ease;
}
.tagline.show { opacity: 1; }
.tagline .sep { color: var(--dimmer); margin: 0 12px; }
.tagline em { font-style: normal; color: var(--fg); }

.subhead {
  margin-top: 40px;
  max-width: 640px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25; color: var(--fg);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
.subhead.show { opacity: 1; transform: translateY(0); }
.subhead .accent { color: var(--cyan); }

/* readouts row */
.readouts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  opacity: 0;
  transition: opacity 1s ease;
}
.readouts.show { opacity: 1; }
.readout {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 64px;
}
.readout:last-child { border-right: 0; }
.readout .k { color: var(--dim); letter-spacing: .18em; text-transform: uppercase; font-size: 9px; }
.readout .v { color: var(--fg); font-size: 12px; }
.readout .v.pulse::after {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); margin-left: 8px; box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}

/* ----------  Section frame ---------- */
section.block {
  position: relative; z-index: 10;
  padding: 140px max(32px, 4vw);
  border-top: 1px solid var(--line);
}
.sec-head {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 64px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--dim);
}
.sec-head .num { color: var(--cyan); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line-2); }
.sec-title {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1; font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg); text-wrap: balance;
}
.sec-title .grad {
  background: linear-gradient(110deg, var(--cyan), var(--magenta) 60%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5; color: #cfd0d8;
  max-width: 760px; text-wrap: pretty;
}

/* ----------  About / Operator ---------- */
.operator {
  display: grid; grid-template-columns: 1fr 280px; gap: 80px; align-items: start;
}
.bio p + p { margin-top: 18px; }
.bio strong { color: var(--fg); font-weight: 500; }
.bio em { color: var(--cyan); font-style: normal; }

.id-card {
  border: 1px solid var(--line-2);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  position: relative;
  font-family: var(--mono); font-size: 11px;
}
.id-card::before, .id-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--cyan);
}
.id-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.id-card::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.id-card .id-label { color: var(--dim); letter-spacing: .25em; text-transform: uppercase; font-size: 9px; margin-bottom: 18px; }
.id-card .id-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.id-card .id-row:last-child { border-bottom: 0; }
.id-card .id-row .k { color: var(--dim); }
.id-card .id-row .v { color: var(--fg); text-align: right; }
.id-card .id-meter {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(0deg, rgba(160,220,255,0.04) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 50% 100%, rgba(160,220,255,0.10), transparent 70%);
  overflow: hidden;
}
.id-card .id-meter canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.id-card .id-meter-cap {
  position: absolute; bottom: 8px; left: 10px; right: 10px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 9px; letter-spacing: .25em;
  text-transform: uppercase;
  pointer-events: none;
}
.id-card .id-meter-cap .k { color: var(--dim); }
.id-card .id-meter-cap .v { color: var(--cyan); }
.id-card .id-row .v.amber { color: oklch(0.88 0.16 85); }

/* ----------  Capabilities (3D cylinder) ---------- */
.cyl-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 36px;
  user-select: none;
}
.cyl-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  perspective: 1600px;
  perspective-origin: 50% 50%;
}
.cyl {
  position: absolute;
  left: 50%; top: 50%;
  width: 340px; height: 380px;
  margin-left: -170px; margin-top: -190px;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .85, .25, 1);
}
.cyl .cap {
  position: absolute; inset: 0;
  width: 340px; height: 380px;
  transform: rotateY(calc(var(--i) * 60deg)) translateZ(360px);
  backface-visibility: hidden;
  padding: 28px 26px 26px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(20, 22, 30, 0.6), rgba(8, 8, 12, 0.6));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: opacity .6s ease, border-color .6s ease, box-shadow .6s ease;
  opacity: 0.35;
  cursor: none;
}
.cyl .cap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(160,220,255,0.06), transparent 30%);
  opacity: 0;
  transition: opacity .6s ease;
}
.cyl .cap.active {
  opacity: 1;
  border-color: rgba(160,220,255,0.35);
  box-shadow: 0 30px 80px -20px rgba(160,220,255,0.18), 0 0 0 1px rgba(160,220,255,0.12);
}
.cyl .cap.active::before { opacity: 1; }
.cyl .cap.neighbor { opacity: 0.55; }
.cyl .cap-num {
  font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .25em;
}
.cyl .cap.active .cap-num { color: var(--cyan); }
.cyl .cap h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 1.05; color: var(--fg);
  letter-spacing: -0.01em;
}
.cyl .cap p { font-size: 14px; line-height: 1.55; color: #b4b5be; }
.cyl .cap .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.cyl .cap .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim);
  padding: 4px 8px; border: 1px solid var(--line-2);
}

.cyl-ctrl {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--dim);
}
.cyl-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
  cursor: none;
}
.cyl-btn:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(160,220,255,0.06); }
.cyl-readout {
  display: flex; align-items: baseline; gap: 8px;
  min-width: 84px; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.cyl-readout #cyl-idx { color: var(--cyan); font-size: 14px; }
.cyl-readout .sep { color: var(--dimmer); }
.cyl-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--fg);
  text-align: center;
  margin-top: -18px;
}

.cyl-dots { display: flex; gap: 10px; }
.cyl-dots button {
  width: 28px; height: 2px;
  background: var(--line-2);
  border: 0;
  transition: background .25s ease, width .25s ease;
  cursor: none;
}
.cyl-dots button.on { background: var(--cyan); width: 44px; }

/* ----------  Audience strip ---------- */
.audience {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.aud {
  border: 1px solid var(--line-2); padding: 28px;
  position: relative; overflow: hidden;
  transition: border-color .4s ease, transform .4s ease;
}
.aud:hover { border-color: rgba(160,220,255,0.4); transform: translateY(-2px); }
.aud .size { font-family: var(--mono); font-size: 10px; letter-spacing: .25em; color: var(--cyan); margin-bottom: 12px; text-transform: uppercase; }
.aud h4 { font-family: var(--serif); font-style: italic; font-size: 28px; font-weight: 400; margin-bottom: 12px; color: var(--fg); }
.aud p { font-size: 14px; line-height: 1.5; color: #b4b5be; }
.aud .meter {
  margin-top: 18px; height: 2px; background: var(--line-2); position: relative; overflow: hidden;
}
.aud .meter::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 30%);
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

/* ----------  Availability ---------- */
.avail {
  border: 1px solid var(--line-2);
  padding: 56px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,200,140,0.04), transparent),
    rgba(255,255,255,0.01);
}
.avail .stamp {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber); padding: 6px 12px;
}
.avail .pre {
  font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .25em; text-transform: uppercase; margin-bottom: 24px;
}
.avail h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.15; max-width: 900px;
  margin-bottom: 24px; color: var(--fg);
}
.avail h2 .amber { color: var(--amber); }
.avail p { font-size: 17px; line-height: 1.5; color: #cfd0d8; max-width: 720px; }
.avail p + p { margin-top: 14px; }

/* ----------  CTA ---------- */
.cta {
  text-align: center;
  padding: 180px max(32px, 4vw);
  position: relative;
  border-top: 1px solid var(--line);
}
.cta .pre {
  font-family: var(--mono); font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 32px;
}
.mailto-mega {
  display: inline-block; position: relative;
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(40px, 8.6vw, 132px);
  letter-spacing: -0.04em; line-height: 1;
  color: var(--fg);
  cursor: none;
  white-space: nowrap;
}
.mailto-mega .at { font-family: var(--serif); font-style: italic; }
.mailto-mega .char {
  display: inline-block; position: relative;
  color: #f0f0f5;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
/* Vertical light-beam state, triggered per-char on hover */
.mailto-mega .char .beam {
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 220%;
  transform: translate(-50%, -50%) scaleY(0);
  transform-origin: center;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,0.9) 50%,
    rgba(255,255,255,0) 80%,
    transparent 100%);
  filter: blur(0.5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.mailto-mega .char .glyph {
  position: relative; display: inline-block;
  background: linear-gradient(180deg, #f0f0f5, #f0f0f5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(0px);
  transition:
    background .5s ease,
    filter .5s ease,
    text-shadow .5s ease,
    transform .6s cubic-bezier(.2,.8,.2,1),
    opacity .4s ease;
  transform: translateY(0);
}
.mailto-mega .char.lit .beam {
  opacity: 1;
  transform: translate(-50%, -50%) scaleY(1);
}
.mailto-mega .char.lit .glyph {
  background: linear-gradient(180deg,
    oklch(0.92 0.16 30) 0%,
    oklch(0.88 0.18 60) 18%,
    oklch(0.92 0.16 130) 38%,
    oklch(0.88 0.18 200) 58%,
    oklch(0.78 0.22 280) 78%,
    oklch(0.78 0.22 330) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(0.4px) drop-shadow(0 0 14px rgba(180, 220, 255, 0.55)) drop-shadow(0 0 28px rgba(220, 140, 255, 0.4));
  transform: translateY(-2px);
}

.cta .below {
  margin-top: 56px; display: flex; gap: 40px; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--dim);
}
.cta .below b { color: var(--fg); font-weight: 500; }

/* ----------  Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px max(32px, 4vw) 32px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--dim);
  position: relative; z-index: 10;
}
footer .foot-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
footer .center { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
footer .sep { color: var(--dimmer); }
footer .foot-legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  max-width: 1000px;
}
footer .foot-legal .reg {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  padding-top: 2px;
}
footer .foot-legal p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--dim);
  text-wrap: balance;
}
footer .foot-legal b {
  color: var(--fg);
  font-weight: 500;
}
footer .foot-legal .muted { color: var(--dimmer); }
footer .foot-legal .nzbn {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* ----------  Business card (vCard download) ---------- */
.vcard-block {
  margin-top: 88px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.vcard-hint {
  font-family: var(--mono); font-size: 10px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--dim);
}
.vcard {
  position: relative;
  width: min(420px, 92vw);
  aspect-ratio: 1.62 / 1;
  padding: 0;
  border: 0;
  background: none;
  perspective: 1400px;
  cursor: none;
  font: inherit; color: inherit;
}
.vcard-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .4s ease;
  will-change: transform;
}
.vcard:hover .vcard-inner {
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.55));
  transform: translateY(-3px);
}
.vcard.flipped .vcard-inner { transform: rotateY(180deg) translateY(-3px); }
.vcard-face {
  position: absolute; inset: 0;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(160,220,255,0.12), transparent 55%),
    radial-gradient(110% 80% at 100% 100%, rgba(220,140,255,0.10), transparent 55%),
    linear-gradient(160deg, #15151e 0%, #0a0a12 60%, #08080d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 30px -10px rgba(0,0,0,0.6);
}
.vcard-front {
  display: grid;
  grid-template-columns: 38% 1px 1fr;
  text-align: left;
  position: relative;
}
.vcard-front::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 8px);
}
.vcard-brand {
  position: relative;
  padding: 18px 14px 16px 18px;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}
.vcard-mark {
  width: 52px; height: 56px;
  filter: drop-shadow(0 0 14px rgba(160,220,255,0.35));
}
.vcard-wordmark {
  font-family: var(--sans); font-weight: 600;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--fg);
  line-height: 1;
}
.vcard-wordmark .tm {
  font-family: var(--mono); font-size: 8px;
  color: var(--dim); margin-left: 2px;
  vertical-align: 6px;
  letter-spacing: 0;
}
.vcard-tagline {
  font-family: var(--mono); font-size: 8px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim);
  margin-top: -2px;
}
.vcard-divider {
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(160,220,255,0.22) 18%,
    rgba(220,140,255,0.18) 60%,
    transparent 100%);
  margin: 14px 0;
  z-index: 2;
}
.vcard-info {
  padding: 18px 18px 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 2;
  min-width: 0;
}
.vcard-name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.vcard-role {
  font-family: var(--mono); font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 2px;
}
.vcard-meta {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg);
}
.vcard-meta .vc-row .v { color: var(--fg); font-size: 11px; }
.vcard-meta .vc-row .v.dim { color: var(--dim); }
.vcard-cta {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim);
}
.vcard-cta .dl-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  color: var(--cyan);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.vcard:hover .vcard-cta { color: var(--fg); }
.vcard:hover .vcard-cta .dl-icon {
  border-color: var(--cyan);
  background: rgba(160,220,255,0.08);
  transform: translateY(1px);
}

.vcard-back {
  transform: rotateY(180deg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(160,220,255,0.12), transparent 60%),
    linear-gradient(160deg, #15151e 0%, #0a0a12 60%, #08080d 100%);
}
.vcard-back-mark svg { width: 64px; height: 70px; color: var(--fg); filter: drop-shadow(0 0 22px rgba(160,220,255,0.45)); }
.vcard-back-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--cyan);
}

@media (max-width: 720px) {
  .vcard { width: 92vw; aspect-ratio: 1.55 / 1; }
  .vcard-front { grid-template-columns: 36% 1px 1fr; }
  .vcard-brand { padding: 14px 12px 12px 14px; }
  .vcard-info { padding: 14px; }
}
.scroll-progress {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.04);
  z-index: 200;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--prog, #f0f0f5);
  box-shadow: 0 0 12px var(--prog-glow, rgba(160, 220, 255, 0.4));
  transition: width .12s linear, background .8s ease, box-shadow .8s ease;
}

/* ----------  Reveal (CSS-only, fires on load — never traps content) ---------- */
.reveal { opacity: 1; transform: none; }
@keyframes reveal-in {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
html.has-js .reveal {
  animation: reveal-in .9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--rd, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html.has-js .reveal { animation: none; }
}

/* ----------  Responsive ---------- */
@media (max-width: 1100px) {
  .topbar .clock-2,
  .topbar .ip { display: none; }
}
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .readouts { grid-template-columns: repeat(2, 1fr); }
  .readout:nth-child(2) { border-right: 0; }
  .readout:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .operator { grid-template-columns: 1fr; gap: 40px; }
  .cyl-wrap { height: 360px; perspective: 1200px; }
  .cyl { width: 280px; height: 320px; margin-left: -140px; margin-top: -160px; }
  .cyl .cap { width: 280px; height: 320px; transform: rotateY(calc(var(--i) * 60deg)) translateZ(300px); padding: 22px; }
  .cyl .cap h3 { font-size: 24px; }
  .audience { grid-template-columns: 1fr; }
  .avail { padding: 32px 24px; }
  .topbar .left .clock-2 { display: none; }
  .topbar .right .ip { display: none; }
}
