/* Omnimathos — black stage, hyper-colour field, blocky type.
   Syne for the wordmark, Archivo (variable width + weight) for everything else.
   No serifs, no italics. */

:root {
  --black: #000;
  --white: #f7f3ee;
  --dim: rgba(247, 243, 238, .55);
  --hot: #ff2bd6;
  --ice: #00f0ff;
  --sun: #ffe600;
  --grad: linear-gradient(90deg, var(--hot), var(--ice), var(--sun));
  --mark: "Syne", "Arial Black", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { background: var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--hot); color: #000; }
@media (hover: hover) and (pointer: fine) { body, a, button, input { cursor: none; } }

/* Blocky display type used for every heading */
.block {
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .9;
}
.label {
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 112%;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--white); }

/* ---------- Stage ---------- */
#stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#videoLayer video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
#videoLayer video.on { opacity: 1; }
.has-video #field { mix-blend-mode: color; 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .14; mix-blend-mode: overlay;
  animation: grain 1s steps(6) infinite;
  pointer-events: none;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(4%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.6) 0 1px, transparent 1px 3px);
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 38%, rgba(0,0,0,.8) 100%);
}
.dim-stage #stage::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }

/* ---------- Cursor ---------- */
#cursor {
  position: fixed; left: 0; top: 0; z-index: 200;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  pointer-events: none;
  transition: width .4s var(--out), height .4s var(--out), margin .4s var(--out), background .3s;
}
#cursor.big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
#cursor .ct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #000; font-family: var(--sans); font-weight: 800; font-size: 10px; letter-spacing: .14em;
  opacity: 0; transition: opacity .25s;
}
#cursor.view { mix-blend-mode: normal; background: var(--sun); }
#cursor.view .ct { opacity: 1; }
@media (hover: none), (pointer: coarse) { #cursor { display: none; } }

/* ---------- Loader (first visit) + page wipe (every navigation) ---------- */
#loader {
  position: fixed; inset: 0; z-index: 150; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
#loader.done { clip-path: inset(0 0 100% 0); }
#loader.skip { display: none; }
.loader-count { font-family: var(--mark); font-weight: 800; font-size: clamp(4rem, 14vw, 12rem); line-height: 1; letter-spacing: -.04em; }
.loader-word { color: var(--dim); }
#wipe {
  position: fixed; inset: 0; z-index: 140;
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}
#wipe i { background: #000; transform: scaleY(1); transform-origin: top; transition: transform .65s var(--ease); }
#wipe i:nth-child(1) { background: var(--hot); } #wipe i:nth-child(3) { background: var(--ice); } #wipe i:nth-child(5) { background: var(--sun); }
#wipe i:nth-child(2) { transition-delay: .05s; } #wipe i:nth-child(3) { transition-delay: .1s; }
#wipe i:nth-child(4) { transition-delay: .15s; } #wipe i:nth-child(5) { transition-delay: .2s; }
#wipe.open i { transform: scaleY(0); }
#wipe.closing i { transform-origin: bottom; }

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px;
  mix-blend-mode: difference;
  color: #fff;
}
.mark { font-family: var(--mark); font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.top nav { display: flex; gap: 34px; }
.top nav a { position: relative; opacity: .8; transition: opacity .3s; }
.top nav a:hover, .top nav a.active { opacity: 1; }
.top nav a.active::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: #fff; }
.sound { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; padding: 0; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 2px; height: 3px; background: currentColor; }
.sound.on .bars i { animation: eq 1s ease-in-out infinite; }
.sound.on .bars i:nth-child(2) { animation-delay: -.3s; } .sound.on .bars i:nth-child(3) { animation-delay: -.6s; } .sound.on .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.right { display: flex; align-items: center; gap: 26px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 0; }
@media (max-width: 760px) {
  .top { padding: 18px 18px; }
  .top nav { display: none; }
  .menu-btn { display: block; }
  .sound .slabel { display: none; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: #000;
  display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 18px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu-open .mobile-menu { clip-path: inset(0); }
.mobile-menu a { font-size: 13vw; }
.mobile-menu a:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--white); }

/* ---------- Shared page shell ---------- */
main { position: relative; z-index: 2; }
.page-head { min-height: 64vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 32px 50px; }
.page-head .num { color: var(--dim); margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: clamp(3rem, 12.5vw, 14rem); mix-blend-mode: difference; color: #fff; }
@media (max-width: 600px) { .page-head { padding: 120px 18px 30px; min-height: 48vh; } }

/* ---------- Home ---------- */
.hero {
  height: 100vh; height: 100svh; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 16px;
}
.wordmark {
  position: relative;
  margin: 0;
  font-family: var(--mark);
  font-weight: 800;
  font-size: clamp(1.4rem, 7.6vw, 8.4rem);
  line-height: .9;
  letter-spacing: -.035em;
  white-space: nowrap;
  color: #fff;
}
.wordmark .letters, .wordmark .ghost { display: flex; }
.wordmark .letters { position: relative; z-index: 2; }
.wordmark .letters span { display: inline-block; transform: translateY(105%) scaleY(1.6); opacity: 0; transition: transform 1.1s var(--out), opacity .8s ease; }
.ready .wordmark .letters span { transform: none; opacity: 1; }
.wordmark .ghost { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease 1s; mix-blend-mode: screen; }
.ready .wordmark .ghost { opacity: .85; }
.wordmark .ghost.r { color: var(--hot); transform: translate(var(--gx, 0px), var(--gy, 0px)); }
.wordmark .ghost.c { color: var(--ice); transform: translate(calc(var(--gx, 0px) * -1), calc(var(--gy, 0px) * -1)); }
.wordmark.glitch .letters { animation: glitch .35s steps(2) 1; }
@keyframes glitch {
  0% { clip-path: inset(10% 0 60% 0); transform: translateX(-8px); }
  25% { clip-path: inset(55% 0 12% 0); transform: translateX(10px); }
  50% { clip-path: inset(30% 0 40% 0); transform: translateX(-4px); }
  75% { clip-path: inset(0 0 80% 0); transform: translateX(6px); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}
.hero-sub {
  margin: 28px 0 0;
  font-size: clamp(11px, 1.1vw, 14px);
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s ease .8s, transform 1s var(--out) .8s;
}
.ready .hero-sub { opacity: 1; transform: none; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; transition: opacity 1s ease 1.4s;
}
.ready .scroll-hint { opacity: .8; }
.scroll-hint i { width: 2px; height: 46px; background: currentColor; transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.index { padding: 12vh 0 14vh; }
.index-row {
  position: relative;
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px;
  padding: 26px 32px;
  border-top: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
  isolation: isolate;
  background: rgba(0,0,0,.35);
}
.index-row:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.index-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.index-row:hover::before { transform: scaleY(1); }
.index-row:hover { color: #000; }
.index-row .n { color: var(--dim); transition: color .3s; }
.index-row:hover .n, .index-row:hover .d { color: #000; }
.index-row .t { font-size: clamp(2.6rem, 8.6vw, 8.6rem); transition: transform .6s var(--out); }
.index-row:hover .t { transform: translateX(24px); }
.index-row .d { color: var(--dim); max-width: 260px; text-align: right; transition: color .3s; }
@media (max-width: 760px) {
  .index-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 18px; }
  .index-row .d { text-align: left; }
}

/* Ticker */
.ticker { position: relative; z-index: 2; overflow: hidden; white-space: nowrap; padding: 18px 0; background: var(--white); color: #000; }
.ticker.alt { background: #000; color: var(--white); border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.ticker-track { display: inline-flex; animation: tick 30s linear infinite; }
.ticker.alt .ticker-track { animation-direction: reverse; }
.ticker-track span { font-size: clamp(1.4rem, 3.4vw, 3rem); padding-right: 44px; display: inline-flex; align-items: center; }
.ticker-track span::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: 44px; background: var(--grad); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }
.skew { transition: transform .5s var(--out); will-change: transform; }

/* ---------- Manifesto ---------- */
.motto { padding: 4vh 32px 18vh; display: flex; flex-direction: column; gap: 10vh; }
.motto p { margin: 0; }
.motto-a { font-size: clamp(3rem, 11vw, 12rem); }
.motto-b { font-size: clamp(1.6rem, 4.4vw, 4.6rem); line-height: 1; align-self: flex-end; text-align: right; max-width: 1200px; }
.reveal-words .w { display: inline-block; opacity: .07; transform: translateY(.15em); transition: opacity .5s ease, transform .6s var(--out); }
.reveal-words .w.lit { opacity: 1; transform: none; }
.reveal-words .w.hot { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); margin: 0 32px; background: rgba(0,0,0,.45); }
.tenet { padding: 44px 30px 60px 0; }
.tenet:first-child { padding-left: 0; }
.tenet + .tenet { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.2); }
.tenet .n { color: var(--dim); }
.tenet h3 { margin: 20px 0 16px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.tenet p { margin: 0; color: var(--dim); font-size: 1.05rem; line-height: 1.5; max-width: 340px; }
@media (max-width: 860px) {
  .tenets { grid-template-columns: 1fr; margin: 0 18px; }
  .tenet, .tenet + .tenet { padding: 36px 0; border-left: 0; }
  .tenet + .tenet { border-top: 1px solid rgba(255,255,255,.2); }
  .motto { padding: 4vh 18px 14vh; }
}
.statement { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 0 32px; text-align: center; }
.statement p { margin: 0; font-size: clamp(2rem, 6vw, 6.4rem); mix-blend-mode: difference; color: #fff; }
.statement .sm { display: block; margin-top: 28px; color: var(--dim); mix-blend-mode: normal; }

/* ---------- Reels ---------- */
.reels { position: relative; height: 440vh; }
.reels-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.reel-track { display: flex; align-items: center; gap: 4vw; padding: 0 32px; will-change: transform; }
.reel { flex: 0 0 auto; width: min(32vw, 440px, calc((100vh - 260px) * .8)); }
.reel-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #050505; clip-path: inset(0); transition: clip-path .8s var(--ease); }
.reel:hover .reel-media { clip-path: inset(4%); }
.reel-media canvas, .reel-media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 1.4s var(--out); }
.reel:hover .reel-media canvas, .reel:hover .reel-media video { transform: scale(1); }
.reel[data-tone="1"] canvas { filter: hue-rotate(140deg) saturate(1.6) contrast(1.15); }
.reel[data-tone="2"] canvas { filter: hue-rotate(270deg) saturate(2.2) contrast(1.35); }
.reel[data-tone="3"] canvas { filter: grayscale(1) contrast(1.9) brightness(1.1); }
.reel-cap { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; gap: 12px; }
.reel-cap h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.reel-cap .n { color: var(--dim); }
.reel-sub { margin: 8px 0 0; color: var(--dim); font-size: .95rem; }
.reel-progress { position: absolute; left: 32px; right: 32px; bottom: 40px; height: 2px; background: rgba(255,255,255,.15); }
.reel-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .reels { height: auto; padding-bottom: 80px; }
  .reels-pin { position: static; height: auto; overflow: visible; }
  .reel-track { flex-direction: column; gap: 60px; padding: 10px 18px 0; transform: none !important; }
  .reel { width: 100%; }
  .reel-progress { display: none; }
}
/* Full-screen reel viewer */
.viewer {
  position: fixed; inset: 0; z-index: 120; background: #000;
  display: flex; align-items: center; justify-content: center;
  clip-path: circle(0% at var(--vx, 50%) var(--vy, 50%));
  transition: clip-path .9s var(--ease);
  pointer-events: none;
}
.viewer.open { clip-path: circle(150% at var(--vx, 50%) var(--vy, 50%)); pointer-events: auto; }
.viewer canvas, .viewer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer .v-title { position: relative; z-index: 1; text-align: center; mix-blend-mode: difference; color: #fff; padding: 0 16px; }
.viewer .v-title h2 { margin: 0; font-size: clamp(3rem, 14vw, 15rem); }
.viewer .v-title p { margin: 22px 0 0; }
.viewer .v-close { position: absolute; top: 24px; right: 32px; z-index: 2; background: none; border: 0; color: #fff; mix-blend-mode: difference; }

/* ---------- Advise ---------- */
.advise { padding: 0 32px 16vh; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.advise-copy p { margin: 0 0 22px; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.15; font-weight: 800; font-stretch: 112%; text-transform: uppercase; }
.advise-copy p.dimmed { color: var(--dim); }
.advise-copy .label { color: var(--dim); display: block; margin-top: 40px; }
.advise-panel { background: rgba(0,0,0,.82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 50px 46px 44px; border: 1px solid rgba(255,255,255,.14); }
@media (max-width: 860px) { .advise { grid-template-columns: 1fr; padding: 0 18px 12vh; } .advise-panel { padding: 36px 22px; } }
.f { position: relative; margin-bottom: 30px; }
.f input {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.25);
  color: var(--white); font-family: var(--sans); font-weight: 700; font-stretch: 110%; font-size: 1.35rem;
  padding: 26px 0 10px; outline: none; border-radius: 0;
}
.f input:focus { border-image: var(--grad) 1; }
.f label { position: absolute; left: 0; top: 30px; color: var(--dim); pointer-events: none; transition: top .35s var(--out), font-size .35s var(--out), color .35s; }
.f small { letter-spacing: .1em; }
.f input:focus + label, .f input:not(:placeholder-shown) + label { top: 0; font-size: 9.5px; color: var(--white); }
.send {
  position: relative; overflow: hidden; width: 100%;
  margin-top: 10px; background: var(--white); color: #000; border: 0; padding: 24px 30px;
  font-size: 13px;
}
.send span { position: relative; z-index: 1; }
.send::before { content: ""; position: absolute; inset: 0; background: var(--grad); transform: translateX(-101%); transition: transform .6s var(--ease); }
.send:hover::before { transform: none; }
.send[disabled] { opacity: .5; pointer-events: none; }
.form-msg { min-height: 22px; margin: 22px 0 0; color: var(--dim); font-weight: 700; }
.form-msg.ok { color: var(--white); }

/* ---------- Footer ---------- */
.next-page {
  position: relative; z-index: 2; display: block;
  padding: 12vh 32px; text-align: center;
  background: #000; border-top: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
}
.next-page .label { color: var(--dim); }
.next-page .t { display: block; margin-top: 18px; font-size: clamp(3rem, 11vw, 11rem); transition: letter-spacing .7s var(--out); }
.next-page:hover .t { letter-spacing: .04em; }
.next-page:hover .t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 32px; background: #000; color: var(--dim);
  font-size: 10px;
}
@media (max-width: 600px) { .foot { padding: 22px 18px; } .next-page { padding: 9vh 18px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .wordmark .letters span, .hero-sub { opacity: 1; transform: none; }
  .reveal-words .w { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .page-head h1 { font-size: 10.8vw; } }

/* Form success takeover */
.advised-flash {
  position: fixed; inset: 0; z-index: 180;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--grad); color: #000;
  animation: flashIn .7s var(--ease) both;
  transition: clip-path 1s var(--ease);
  clip-path: inset(0);
}
.advised-flash.out { clip-path: inset(0 0 100% 0); }
.advised-flash span { font-size: clamp(3rem, 12vw, 13rem); }
@keyframes flashIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.hero-sub, .wordmark { text-shadow: 0 0 40px rgba(0,0,0,.55); } .hero-sub { background: rgba(0,0,0,.55); padding: 8px 14px; }
.hero { position: relative; }

/* ---------- Be Advised: one-question-at-a-time consultation ---------- */
.consult {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 92px 32px 40px;
}
.c-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.c-kicker { color: var(--dim); }
.c-aside { color: var(--dim); text-align: right; }
.c-progress { display: flex; gap: 6px; }
.c-progress i { width: 64px; height: 3px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.c-progress i::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.c-progress i.on::after { transform: scaleX(1); }

.c-form { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; max-width: 62%; }
.c-steps-wrap { position: relative; }
.c-step {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-40%);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), transform .8s var(--out), visibility 0s .8s;
}
.c-step.is-active { position: relative; top: auto; transform: none; opacity: 1; visibility: visible; transition: opacity .6s var(--ease) .15s, transform .9s var(--out) .15s, visibility 0s; }
.c-step.is-gone { transform: translateY(-140%); }
.c-num { color: var(--dim); display: block; margin-bottom: 22px; }
.c-q { display: block; font-size: clamp(2.4rem, 6.4vw, 7rem); margin-bottom: 34px; }
.c-q .ch { display: inline-block; transform: translateY(70%) skewY(8deg); opacity: 0; transition: transform .8s var(--out), opacity .5s ease; }
.c-step.is-active .c-q .ch { transform: none; opacity: 1; }
.c-q .outline .ch { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.c-in {
  width: 100%;
  background: transparent; border: 0; border-bottom: 3px solid rgba(255,255,255,.22);
  color: var(--white);
  font-family: var(--sans); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.2vw, 3.2rem); letter-spacing: -.01em;
  padding: 10px 0 16px; outline: none; border-radius: 0;
  caret-color: var(--ice);
}
.c-in::placeholder { color: rgba(255,255,255,.2); }
.c-in:focus { border-image: var(--grad) 1; }
.c-step.shake { animation: shake .45s steps(6) 1; }
@keyframes shake { 0%,100% { translate: 0; } 20% { translate: -14px; } 40% { translate: 12px; } 60% { translate: -8px; } 80% { translate: 6px; } }

.c-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.c-chips label { position: relative; }
.c-chips input { position: absolute; opacity: 0; pointer-events: none; }
.c-chips span {
  display: inline-block;
  padding: 16px 26px;
  border: 2px solid rgba(255,255,255,.35);
  font-family: var(--sans); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--out);
}
.c-chips label:hover span { border-color: var(--white); transform: translateY(-3px); }
.c-chips input:checked + span { background: var(--white); color: #000; border-color: var(--white); }
.c-chips input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 3px; }

.c-nav { display: flex; align-items: center; gap: 22px; margin-top: 48px; }
.c-back { background: none; border: 0; color: var(--dim); padding: 0; visibility: hidden; }
.c-back.show { visibility: visible; }
.c-back:hover { color: var(--white); }
.c-next {
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--white); color: #000; border: 0;
  padding: 22px 34px; font-size: 13px;
  position: relative; overflow: hidden;
}
.c-next span, .c-next b { position: relative; z-index: 1; }
.c-next b { font-size: 18px; transition: transform .4s var(--out); }
.c-next:hover b { transform: translateX(8px); }
.c-next::before { content: ""; position: absolute; inset: 0; background: var(--grad); transform: translateX(-101%); transition: transform .6s var(--ease); }
.c-next:hover::before { transform: none; }
.c-submit { display: none; width: auto; margin: 0; padding: 22px 40px; }
.c-form.last .c-next { display: none; }
.c-form.last .c-submit { display: inline-block; }
.c-hint { color: var(--dim); margin-top: 18px; }
.consult .form-msg { margin-top: 18px; min-height: 18px; color: var(--hot); }
@media (max-width: 860px) {
  .consult { padding: 84px 18px 34px; }
  .c-top { grid-template-columns: 1fr; gap: 14px; }
  .c-aside { display: none; }
  .c-progress i { flex: 1; width: auto; }
  .c-form { max-width: none; }
  .c-hint { display: none; }
}
.c-q .wd { display: inline-block; white-space: nowrap; }
.c-q { font-size: clamp(2.2rem, 5.6vw, 6.2rem); }
.c-back { display: none; visibility: visible; }
.c-back.show { display: inline-block; }
.c-q, .c-in { text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.void { height: 240vh; }

/* ---------- Afterimage (Inson's pick from /lab/): on hover, tinted ghost copies drift down and fade ---------- */
main { z-index: auto; }
.index-row::before { display: none; }
.index-row:hover { color: inherit; }
.index-row:hover .n, .index-row:hover .d { color: var(--dim); }
.next-page:hover .t { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--white); letter-spacing: .04em; }
.index-row .t, .next-page .t, .top nav a, .mark, .mobile-menu a, .om-t, .obj-title {
  text-shadow: 0 0 0 rgba(255,43,214,0), 0 0 0 rgba(0,240,255,0), 0 0 0 rgba(255,230,0,0);
  transition: text-shadow .9s var(--out), transform .6s var(--out), letter-spacing .7s var(--out);
}
.index-row:hover .t, .next-page:hover .t, .top nav a:hover, .mark:hover, .mobile-menu a:hover, .om-row:hover .om-t, .obj-title:hover {
  text-shadow: 0 .14em 2px rgba(255,43,214,.45), 0 .28em 5px rgba(0,240,255,.28), 0 .42em 9px rgba(255,230,0,.14);
}
.c-next span, .c-next b, .c-submit span { transition: text-shadow .9s var(--out); }
.c-next:hover span, .c-next:hover b, .c-submit:hover span {
  text-shadow: 0 3px 1px rgba(255,43,214,.55), 0 6px 2px rgba(0,240,255,.35), 0 9px 3px rgba(255,230,0,.2);
}
.c-next:hover::before, .c-submit:hover::before { transform: translateX(-101%); }

/* Mobile: three-line menu icon (desktop keeps the word nav) */
.menu-btn { width: 30px; height: 22px; position: relative; }
.menu-btn i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .45s var(--out), opacity .3s, top .45s var(--out); }
.menu-btn i:nth-child(1) { top: 2px; }
.menu-btn i:nth-child(2) { top: 10px; }
.menu-btn i:nth-child(3) { top: 18px; }
.menu-open .menu-btn i:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Beta badge beside the logo */
.brand { display: flex; align-items: center; gap: 10px; }
.beta-tag {
  font-family: var(--sans); font-weight: 800; font-stretch: 112%;
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase;
  padding: 4px 7px 4px 8px; border: 1px solid currentColor; line-height: 1;
}
@media (max-width: 860px) { .top nav { gap: 22px; } }
@media (max-width: 1000px) and (min-width: 761px) { .top nav { gap: 20px; } .top nav a { font-size: 10px; letter-spacing: .2em; } }

/* ---------- Omnimathic (shared bits) ---------- */
.om-img.pop { background:
  radial-gradient(circle at 30% 35%, #ffe600 0 14%, transparent 30%),
  radial-gradient(circle at 62% 40%, #ff2bd6 0 16%, transparent 34%),
  radial-gradient(circle at 48% 70%, #ff5a36 0 12%, transparent 30%),
  linear-gradient(135deg, #00c2c7, #7de3ff); }
.om-beta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--sans); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: .06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.9);
  pointer-events: none;
}
.om-credits { padding: 0 32px 8vh; }
.om-credits summary { cursor: pointer; color: var(--dim); }
.om-credits ul { list-style: none; padding: 0; margin: 18px 0; color: var(--dim); line-height: 2; font-size: 9.5px; }
.om-credits a { text-decoration: underline; }
.om-credits p { color: var(--dim); font-size: 9.5px; }
.om-img.pop, .obj-media img, .om-float-in { filter: blur(18px) saturate(1.4) brightness(.85); }

/* phone sizing (menu words, page titles) */
.mobile-menu a { font-size: 9.6vw; }
@media (max-width: 600px) { .page-head h1 { font-size: 9.6vw; } }

/* ---------- Omnimathic index: a quiet numbered list, blurred preview follows the cursor ---------- */
.om-lede { color: var(--dim); margin-top: 22px; }
.om-list { padding: 2vh 32px 10vh; }
.om-row {
  display: grid; grid-template-columns: 60px 200px 1fr auto 40px; align-items: baseline; gap: 20px;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,.14);
  transition: padding .5s var(--out), opacity .4s;
}
.om-row:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.om-n, .om-c { color: var(--dim); }
.om-t { font-weight: 700; font-stretch: 110%; font-size: clamp(1.05rem, 1.6vw, 1.45rem); }
.om-p { font-size: clamp(1.4rem, 2.6vw, 2.4rem); text-align: right; }
.om-go { color: var(--dim); text-align: right; transition: transform .5s var(--out), color .3s; }
.om-list:hover .om-row { opacity: .4; }
.om-list .om-row:hover { opacity: 1; padding-left: 14px; }
.om-row:hover .om-go { transform: translateX(6px); color: var(--white); }
.om-float {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 3;
  pointer-events: none; opacity: 0; transition: opacity .35s ease;
  overflow: hidden;
}
.om-float.on { opacity: 1; }
.om-float-in { position: absolute; inset: -12%; background-size: cover; background-position: center; }
.om-float .om-beta { font-size: 1.8rem; filter: none; z-index: 1; }
@media (max-width: 860px) {
  .om-list { padding: 2vh 18px 8vh; }
  .om-row { grid-template-columns: 34px 1fr auto; gap: 6px 12px; padding: 20px 0; }
  .om-c { grid-column: 2; grid-row: 1; }
  .om-t { grid-column: 2; grid-row: 2; }
  .om-p { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 1.3rem; }
  .om-go { display: none; }
  .om-float { display: none; }
}

/* ---------- Omnimathic record pages ---------- */
.obj { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.obj-media { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #050505; }
.obj-media img, .obj-media .om-img { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; }
.obj-body { padding: 120px 6vw 80px 5vw; max-width: 760px; }
.obj-back { color: var(--dim); display: inline-block; margin-bottom: 44px; }
.obj-back:hover { color: var(--white); }
.obj-cat { display: block; color: var(--dim); margin-bottom: 18px; }
.obj-title { margin: 0; font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: .95; }
.obj-price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 30px 0 34px; }
.obj-price .block { font-size: clamp(3rem, 6vw, 6rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.obj-approx { color: var(--dim); }
.obj-lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.6; color: rgba(247,243,238,.86); margin: 0 0 40px; max-width: 600px; }
.obj-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 0 40px; border-top: 1px solid rgba(255,255,255,.14); }
.obj-facts div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.obj-facts dt { color: var(--dim); margin-bottom: 6px; }
.obj-facts dd { margin: 0; font-weight: 700; font-stretch: 110%; }
.obj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.obj-stat { padding: 20px 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); }
.obj-stat .block { display: block; font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-bottom: 10px; }
.obj-stat .label { color: var(--dim); font-size: 9.5px; line-height: 1.5; display: block; }
.obj-time { list-style: none; margin: 0 0 40px; padding: 0 0 0 22px; border-left: 1px solid rgba(255,255,255,.2); }
.obj-time li { position: relative; padding: 0 0 22px; opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s var(--out); }
.obj-time li.in { opacity: 1; transform: none; }
.obj-time li::before { content: ""; position: absolute; left: -27px; top: 3px; width: 9px; height: 9px; background: var(--grad); transform: rotate(45deg); }
.obj-time .label { color: var(--dim); }
.obj-time p { margin: 6px 0 0; font-size: 1rem; line-height: 1.5; }
.obj-note { color: var(--dim); line-height: 1.8; font-size: 9.5px; max-width: 560px; }
.obj-note a { text-decoration: underline; }
.obj-nav { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.obj-nav a { color: var(--dim); } .obj-nav a:hover { color: var(--white); }
@media (max-width: 860px) {
  .obj { grid-template-columns: 1fr; }
  .obj-media { position: relative; height: 52vh; }
  .obj-body { padding: 36px 18px 60px; }
  .obj-back { margin-bottom: 26px; }
  .obj-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- About: just text ---------- */
.about-text { max-width: 760px; padding: 0 32px 16vh; margin-left: max(32px, calc((100vw - 1180px) / 2 + 220px)); }
.about-text p { font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.55; font-weight: 600; font-stretch: 108%; margin: 0 0 1.3em; color: rgba(247,243,238,.9); }
.about-text p:first-child { font-weight: 800; font-stretch: 118%; color: var(--white); }
.about-text .about-end { margin-top: 2.4em; color: var(--dim); font-weight: 600; }
@media (max-width: 860px) { .about-text { margin-left: 0; padding: 0 18px 12vh; } }

/* Omnimathic placeholder: just BETA */
.beta-only { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; }
.beta-word {
  margin: 0; font-size: clamp(5rem, 24vw, 26rem);
  color: transparent; -webkit-text-stroke: 2px var(--white);
  text-shadow: 0 .06em 3px rgba(255,43,214,.35), 0 .12em 8px rgba(0,240,255,.22), 0 .18em 14px rgba(255,230,0,.12);
  animation: betaBreath 5s ease-in-out infinite;
}
@keyframes betaBreath { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }

/* About: invitation link + the circle */
.about-cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 18px;
  padding: 18px 26px; background: var(--white); color: #000;
}
.about-cta b { font-size: 16px; transition: transform .4s var(--out); }
.about-cta:hover b { transform: translateX(6px); }
.about-net { position: relative; height: 78vh; min-height: 480px; margin: 0 32px 10vh; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.about-net .net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.net-hint { position: absolute; left: 0; bottom: 16px; color: var(--dim); pointer-events: none; }
@media (max-width: 860px) { .about-net { margin: 0 18px 8vh; height: 70vh; } }

/* About: text on the left, chrome blob floats on the right; shade only behind the text */
.shade-left #stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 62%); }
.about-text { margin-left: 0; padding-left: 32px; max-width: 640px; }
@media (max-width: 860px) {
  .shade-left #stage::after { background: rgba(0,0,0,.55); }
  .about-text { padding-left: 18px; }
}

/* Reels: coming soon on a white field from the title down */
.reels-soon { background: #f7f3ee; color: #000; }
.reels-soon .reel-cap h3 { color: #000; }
.reels-soon .reel-cap .n, .reels-soon .reel-sub { color: rgba(0,0,0,.5); }
.reels-soon .reel-media canvas { filter: blur(14px) saturate(1.5) !important; transform: scale(1.15); }
.reels-soon .reel:hover .reel-media { clip-path: inset(0); }
.reels-soon .reel-progress { background: rgba(0,0,0,.12); }
.soon-stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  white-space: nowrap; pointer-events: none;
  font-family: var(--sans); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.95);
}
.reels-soon .reel[data-tone="1"] canvas { filter: blur(14px) hue-rotate(140deg) saturate(1.6) contrast(1.15) !important; }
.reels-soon .reel[data-tone="2"] canvas { filter: blur(14px) hue-rotate(270deg) saturate(2.2) contrast(1.35) !important; }
.reels-soon .reel[data-tone="3"] canvas { filter: blur(14px) grayscale(1) contrast(1.9) brightness(1.1) !important; }

/* ---------- Footer links ---------- */
.foot-links { display: inline-flex; gap: 22px; }
.foot-links a, .cookie-reopen { color: var(--white); opacity: .75; transition: opacity .3s; }
.foot-links a:hover, .cookie-reopen:hover { opacity: 1; }
.cookie-reopen { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* ---------- Cookie notice ---------- */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 130;
  width: min(380px, calc(100vw - 32px));
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 22px 22px 20px;
  background: rgba(8, 8, 8, .86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid transparent;
  border-image: var(--grad) 1;
  transform: translateY(24px); opacity: 0;
  transition: transform .6s var(--out), opacity .5s ease;
}
.consent.in { transform: none; opacity: 1; }
.consent[hidden] { display: none; }
.consent-orb {
  width: 56px; height: 56px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--hot), var(--ice), var(--sun), var(--hot));
  filter: blur(.5px) saturate(1.3);
  box-shadow: 0 0 26px rgba(255,43,214,.35), inset 0 0 14px rgba(0,0,0,.6);
  animation: orb 6s linear infinite;
  position: relative;
}
.consent-orb::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #080808; box-shadow: inset 0 0 10px rgba(255,255,255,.12); }
@keyframes orb { to { transform: rotate(360deg); } }
.consent-title { margin: 2px 0 10px; font-size: 1.35rem; }
.consent-text { margin: 0 0 16px; font-size: .92rem; line-height: 1.5; color: rgba(247,243,238,.8); font-weight: 500; }
.consent-actions { display: flex; align-items: center; gap: 18px; }
.consent-ok {
  background: var(--white); color: #000; border: 0; padding: 12px 20px; font-size: 10.5px;
  position: relative; overflow: hidden;
}
.consent-ok::before { content: ""; position: absolute; inset: 0; background: var(--grad); transform: translateX(-101%); transition: transform .5s var(--ease); }
.consent-ok:hover::before { transform: none; }
.consent-ok { isolation: isolate; } .consent-ok::before { z-index: -1; }
.consent-more { color: var(--dim); font-size: 10px; } .consent-more:hover { color: var(--white); }
@media (max-width: 600px) {
  .consent { left: 16px; right: 16px; bottom: 16px; width: auto; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
  .consent-orb { width: 40px; height: 40px; } .consent-orb::after { inset: 10px; }
}

/* ---------- Privacy page ---------- */
.legal { max-width: 760px; padding: 0 32px 16vh; }
.legal-lede { font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.45; font-weight: 700; font-stretch: 112%; margin: 0 0 14px; }
.legal-date { color: var(--dim); margin: 0 0 48px; }
.legal h2 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); margin: 44px 0 14px; letter-spacing: 0; }
.legal p { font-size: 1.02rem; line-height: 1.7; color: rgba(247,243,238,.84); margin: 0 0 14px; }
.legal strong { color: var(--white); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .legal { padding: 0 18px 12vh; } }

/* Mobile: smaller slogan under the wordmark */
@media (max-width: 600px) {
  .hero-sub { font-size: 8.5px; letter-spacing: .16em; padding: 6px 10px; margin-top: 18px; line-height: 1.6; max-width: 300px; }
}

/* Mobile: keep long words (MANIFESTIVE, OMNIMATHIC) inside the screen */
@media (max-width: 600px) {
  .next-page .t { font-size: 8.4vw; }
  .next-page:hover .t { letter-spacing: -.02em; }
  .index-row .t { font-size: 8.4vw; }
  .page-head h1 { font-size: 8.6vw; }
}

/* Reels hold still on hover (no tilt, no zoom, no inset) */
.reel:hover .reel-media { clip-path: inset(0); }
.reel .reel-media canvas, .reel .reel-media video { transition: none; }
.reel:hover .reel-media canvas, .reel:hover .reel-media video { transform: scale(1.08); }
.reels-soon .reel:hover .reel-media canvas { transform: scale(1.15); }

/* "You will be advised" fades away instead of wiping off */
.advised-flash { transition: opacity 1.4s ease; }
.advised-flash.out { clip-path: inset(0); opacity: 0; }
