/* ARTwain, direction C: A's night sky and Big Dipper, B's two eyes, red/cyan 3D-glasses accents */

:root {
  --bg: #05070f;
  --bg-2: #0b1020;
  --ink: #eef1f8;
  --muted: #a7b0c6;
  --faint: #6f7a94;
  --line: rgba(159, 216, 255, 0.16);
  --ice: #9fd8ff;
  --star: #fffaf0;
  --red: #ff3347;
  --cyan: #22e4ff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* pointer / tilt, -1..1, set by main.js */
  --sx: 0;
  --sy: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); text-wrap: balance; }
h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--ice); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.narrow { max-width: 38rem; }
.narrow.center { margin-left: auto; margin-right: auto; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.big { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink); font-weight: 400; }

/* Wordmark: AR in red/cyan inside ART, "wain" in italic */
.wm { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: .02em; white-space: nowrap; }
.wm i, .wordmark i { font-style: italic; font-weight: 400; letter-spacing: 0; margin-left: .02em; }
.ar {
  background: linear-gradient(100deg, var(--red) 0 45%, var(--cyan) 55% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem var(--gutter);
  background: linear-gradient(to bottom, rgba(5, 7, 15, .9), rgba(5, 7, 15, 0));
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.8rem); }
.top nav a { text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.top nav a:hover { color: var(--ink); }
.top .nav-cta { color: var(--ink); border: 1px solid rgba(238, 241, 248, .35); border-radius: 99px; padding: .35rem .95rem; box-shadow: -2px 0 0 rgba(255, 51, 71, .7), 2px 0 0 rgba(34, 228, 255, .7); }
@media (max-width: 760px) { .top nav a:not(.nav-cta) { display: none; } }

/* ---------- Hero: one sky, two eyes ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding: 5rem var(--gutter) 4.2rem; overflow: hidden; isolation: isolate;
}
.eyes { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: 1fr 1fr; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.eye { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, rgba(30, 44, 90, .55), transparent 65%); }
.eye .dipper {
  position: absolute; top: 14%; width: 84%; left: 8%;
  transform: translate3d(calc(var(--sx) * var(--dir) * 12px), calc(var(--sy) * -6px), 0);
  animation: float 9s ease-in-out infinite;
}
.eye { --d-line-op: .7; }
.eye-l { --dir: -1; --d-stroke: var(--red); --d-fill: var(--red); --d-glow: rgba(255, 51, 71, .9); }
.eye-r { --dir: 1; --d-stroke: var(--cyan); --d-fill: var(--cyan); --d-glow: rgba(34, 228, 255, .9); }
@keyframes float { 50% { translate: 0 -10px; } }
.eyes::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 7, 15, 0) 40%, rgba(5, 7, 15, .82) 68%, var(--bg) 100%);
}
.eye-tag {
  position: absolute; top: 5.2rem; z-index: 1; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid currentColor;
  font: 700 .8rem/1 var(--sans);
}
.eye-l .eye-tag { left: var(--gutter); color: var(--red); }
.eye-r .eye-tag { right: var(--gutter); color: var(--cyan); }
.seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--red), var(--cyan) 60%, transparent); opacity: .65; }

/* Dipper (symbol, styled through <use> with inherited custom properties) */
.d-line {
  fill: none; stroke: var(--d-stroke, var(--ice)); stroke-width: 1.3; stroke-opacity: var(--d-line-op, .55);
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: var(--d-off, 1);
  animation: draw var(--d-dur, 6s) var(--ease) 1.2s forwards;
}
.d-star {
  fill: var(--d-fill, var(--star)); filter: drop-shadow(0 0 6px var(--d-glow, rgba(200, 230, 255, .9)));
  opacity: var(--d-op, 0);
  animation: starIn 1.6s var(--ease) calc(.4s + var(--i) * .6s) forwards;
}
.d-star.alcor { fill: var(--d-fill, var(--ice)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes starIn { to { opacity: 1; } }

.hero-copy { max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.hero-copy > * { opacity: 0; animation: rise 1.6s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .25s; }
.hero-copy > :nth-child(3) { animation-delay: .6s; }
.hero-copy > :nth-child(4) { animation-delay: .9s; }
.hero-copy > :nth-child(5) { animation-delay: 1.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.chip {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .6rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px; padding: .3rem .9rem; background: rgba(5, 7, 15, .55);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* The big wordmark: red and cyan copies, blended so the overlap reads white */
.wordmark {
  position: relative; display: inline-block; margin: 0 0 .1em;
  font-size: clamp(4rem, 12vw, 8.5rem); font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  isolation: isolate;
}
.wm-sizer { visibility: hidden; }
.wm-red, .wm-cyan { position: absolute; left: 0; top: 0; mix-blend-mode: screen; transition: transform .25s ease-out; }
.wm-red { color: var(--red); transform: translate3d(calc(-0.025em - var(--sx) * 6px), 0, 0); }
.wm-cyan { color: var(--cyan); transform: translate3d(calc(0.025em + var(--sx) * 6px), 0, 0); }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: .35em; }
.lede { max-width: 34rem; margin: 0 auto; color: var(--ink); opacity: .85; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.hero-caption { position: absolute; bottom: 1.1rem; left: 0; right: 0; margin: 0; font-size: .78rem; color: var(--faint); }

.btn {
  display: inline-block; text-decoration: none; padding: .85rem 1.6rem; border-radius: 99px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg); background: var(--ink);
  box-shadow: -3px 0 0 var(--red), 3px 0 0 var(--cyan);
  transition: box-shadow .25s ease, background .25s;
}
.btn:hover { background: #fff; box-shadow: -7px 0 0 var(--red), 7px 0 0 var(--cyan); }
.btn.ghost { background: rgba(5, 7, 15, .5); color: var(--ink); border: 1px solid rgba(238, 241, 248, .3); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); }

/* ---------- Sections ---------- */
.block { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.block + .block::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(70%, 640px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ice); }
.kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--star); box-shadow: -3px 0 0 rgba(255, 51, 71, .8), 3px 0 0 rgba(34, 228, 255, .8); }
.center .kicker { justify-content: center; }
.block p:not(.kicker):not(.big):not(.lead) { color: var(--muted); }
.link { color: var(--cyan); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(34, 228, 255, .4); padding-bottom: 2px; }
.link:hover { border-color: var(--cyan); }

/* Two halves with a seam, as in B */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 0; }
  .split > :first-child { padding-right: clamp(2rem, 5vw, 4.5rem); }
  .split > :last-child { padding-left: clamp(2rem, 5vw, 4.5rem); border-left: 1px solid var(--line); }
  .split.rev > :first-child { order: 2; padding: 0 0 0 clamp(2rem, 5vw, 4.5rem); border-left: 1px solid var(--line); }
  .split.rev > :last-child { order: 1; padding: 0 clamp(2rem, 5vw, 4.5rem) 0 0; border-left: 0; }
}

/* Steps joined like a constellation (A) */
.steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 2.5rem; position: relative; }
.steps li { position: relative; padding-left: 2.4rem; }
.steps .star { position: absolute; left: 0; top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--star); box-shadow: 0 0 12px rgba(159, 216, 255, .9); }
.steps::before { content: ""; position: absolute; left: 4px; top: 1rem; bottom: 1rem; width: 1px; background: linear-gradient(to bottom, var(--line), rgba(159, 216, 255, .35), var(--line)); }
.steps h3 { margin-bottom: .3em; }
.steps p { font-size: 1rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding: 2.2rem 0 0; }
  .steps .star { top: 0; }
  .steps::before { left: 4px; right: calc((100% - 6rem) / 4 - 5px); top: 4px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, rgba(255, 51, 71, .5), rgba(159, 216, 255, .4), rgba(34, 228, 255, .5)); }
}

/* Play */
.narrow-head { max-width: 46rem; }
.sbs { margin: 3rem 0 0; }
.sbs-frame { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.sbs-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(238, 241, 248, .35); }
.sbs-tag { position: absolute; top: .7rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(5, 7, 15, .75); padding: .2rem .6rem; border-radius: 99px; }
.sbs-tag.l { left: .7rem; color: var(--red); }
.sbs-tag.r { left: calc(50% + .7rem); color: var(--cyan); }
figcaption { margin-top: .9rem; font-size: .92rem; color: var(--faint); }
.anaglyph-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.anaglyph { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.h3-big { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

/* Art, under wraps: two dark eyes with the Dipper */
.veil { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; aspect-ratio: 32 / 11; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.veil-eye { border-radius: 8px; background: radial-gradient(ellipse at 50% 40%, #121a36, #05070f 75%); display: grid; place-items: center; overflow: hidden; }
.veil .dipper { width: 80%; --d-off: 0; --d-op: 1; --d-dur: 0s; opacity: .7; }
.veil-eye:first-child .dipper { --d-stroke: var(--red); --d-fill: var(--red); --d-glow: rgba(255, 51, 71, .8); transform: translateX(-4px); }
.veil-eye:last-child .dipper { --d-stroke: var(--cyan); --d-fill: var(--cyan); --d-glow: rgba(34, 228, 255, .8); transform: translateX(4px); }
.veil-label { position: absolute; left: 50%; bottom: -0.8rem; transform: translateX(-50%); background: var(--bg); padding: 0 .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Glasses */
.brands { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; grid-template-columns: 1fr 1fr; }
.brands li { background: var(--bg); padding: 1.8rem 1.5rem; }
.brands strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; letter-spacing: .06em; }
.brands span { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.brands .first strong { text-shadow: -2px 0 0 rgba(255, 51, 71, .75), 2px 0 0 rgba(34, 228, 255, .75); }
.brands .first span { color: var(--cyan); }
@media (min-width: 900px) { .brands { grid-template-columns: repeat(4, 1fr); } }
.platforms { margin-top: 2rem; text-align: center; font-size: .95rem; }
.platforms strong { color: var(--ink); }
.platforms p { margin-bottom: .4em; }

/* Name */
.name { background: radial-gradient(ellipse at 50% 0%, rgba(34, 228, 255, .05), transparent 60%); }
.name-logo { width: clamp(96px, 14vw, 140px); margin: 0 auto 1.2rem; }
.meanings { margin: 3rem 0 0; display: grid; gap: 2rem; }
.meanings div { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.meanings dt { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; margin-bottom: .3rem; }
.meanings dd { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .meanings { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Contact: the address seen double */
.contact { background: radial-gradient(ellipse at 50% 100%, #101a38, transparent 70%); }
.mail {
  position: relative; display: inline-block; margin-top: 1.4rem; text-decoration: none; isolation: isolate;
  font: 600 clamp(1.7rem, 6.4vw, 4.6rem)/1.1 var(--serif); overflow-wrap: anywhere;
}
.mail-main { position: relative; color: transparent; }
.mail-red, .mail-cyan { position: absolute; inset: 0; mix-blend-mode: screen; transition: transform .25s ease-out; }
.mail-red { color: var(--red); transform: translateX(calc(-0.02em - var(--sx) * 4px)); }
.mail-cyan { color: var(--cyan); transform: translateX(calc(0.02em + var(--sx) * 4px)); }
.mail:hover .mail-red, .mail:focus-visible .mail-red, .mail:hover .mail-cyan, .mail:focus-visible .mail-cyan { transform: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2.2rem 0; font-size: .88rem; color: var(--faint); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .wm { color: var(--ink); font-size: 1.35rem; }

/* Slow reveals (only with JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2), .js .brands .reveal:nth-child(2), .js .meanings .reveal:nth-child(2), .js .split > .reveal:nth-child(2) { transition-delay: .2s; }
.js .steps .reveal:nth-child(3), .js .brands .reveal:nth-child(3), .js .meanings .reveal:nth-child(3) { transition-delay: .4s; }
.js .steps .reveal:nth-child(4), .js .brands .reveal:nth-child(4) { transition-delay: .6s; }

/* Phones: keep the two eyes side by side, like a stereo card */
@media (max-width: 760px) {
  .hero { padding-bottom: 3.6rem; }
  .eye .dipper { top: 20%; width: 92%; left: 4%; }
  .eye-tag { top: 4.4rem; }
  .eyes::after { background: linear-gradient(to bottom, rgba(5, 7, 15, 0) 30%, rgba(5, 7, 15, .85) 52%, var(--bg) 100%); }
  .veil { aspect-ratio: 16 / 7; }
}

/* Reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy > * { opacity: 1; }
  .d-star { --d-op: 1; }
  .d-line { --d-off: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
