/* Illumin8 Studios product site: one stylesheet for every product page (Tachyon now, Spectra later).
   Brand values match brand.py: deep navy, cyan-to-violet light, Tachyon Sans for headings and numbers only. */

@font-face { font-family: "Tachyon Sans"; src: url("fonts/TachyonSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tachyon Sans"; src: url("fonts/TachyonSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0a0b1d;
  --navy-card: #0e1229;
  --navy-edge: #232a4d;
  --paper: #eef4ff;
  --text: #c9d4f0;
  --dim: #8fa3d9;
  --cyan: #12e2ff;
  --violet: #8b5cf6;
  --spectrum: linear-gradient(90deg, #12e2ff 0%, #2fcfff 45%, #5f8cff 75%, #8b5cf6 100%);
  --ok: #3ee08f; --warn: #ffb547; --bad: #ff5a6e;
  --display: "Tachyon Sans", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--text);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
}
body::before {   /* the faint grid and the corner glows from the campaign art */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 100% 0%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(50vw 50vh at 0% 100%, rgba(18, 226, 255, .08), transparent 70%),
    linear-gradient(rgba(143, 163, 217, .045) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(143, 163, 217, .045) 1px, transparent 1px) 0 0 / 60px 60px;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy-card); padding: 8px 14px; }

/* ---------------- type */
h1, h2, h3, .display { font-family: var(--display); color: var(--paper); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(42px, 7.2vw, 88px); text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.8vw, 58px); text-transform: uppercase; }
h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.g { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--display); color: var(--cyan); text-transform: uppercase; letter-spacing: .28em; font-size: 14px; margin: 0 0 18px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #dbe4fb; max-width: 40em; margin: 22px 0 0; }
.mono { font-family: var(--display); letter-spacing: .08em; }
p { margin: 0 0 1em; }

/* ---------------- header: the product switcher lives here so a new product is one more link */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 29, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35, 42, 77, .7);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.products { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--navy-edge); border-radius: 999px; }
.products a {
  font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.products a:hover { color: var(--paper); text-decoration: none; }
.products a[aria-current="page"] { color: var(--navy); background: var(--spectrum); }
.products .soon { font-size: 10px; opacity: .75; margin-left: 6px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); font-size: 15px; }
.nav a:hover { color: var(--paper); text-decoration: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--navy-edge); color: var(--paper); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }

/* ---------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; font-weight: 700;
  padding: 15px 24px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--spectrum); color: var(--navy); box-shadow: 0 8px 30px -10px rgba(18, 226, 255, .6); }
.btn-primary:hover { box-shadow: 0 12px 36px -10px rgba(139, 92, 246, .7); }
.btn-ghost { border-color: var(--navy-edge); color: var(--paper); background: rgba(14, 18, 41, .6); }
.btn-ghost:hover { border-color: var(--cyan); }
.nav .btn { padding: 10px 16px; font-size: 12px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------------- sections */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.rule { border: 0; border-top: 1px solid var(--navy-edge); margin: 0; }
.card {
  background: linear-gradient(180deg, rgba(20, 26, 58, .7), rgba(14, 18, 41, .85));
  border: 1px solid var(--navy-edge); border-radius: var(--radius); padding: 28px;
}

/* hero */
.hero { padding-top: clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-mark { position: relative; }
.hero-mark img { width: 100%; filter: drop-shadow(0 0 60px rgba(18, 226, 255, .25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }

/* proof numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 0; }
.stat { padding: 26px 24px; }
.stat .n { font-family: var(--display); font-size: clamp(36px, 4.4vw, 54px); font-weight: 700; line-height: 1; }
.stat .l { color: var(--dim); font-size: 15px; margin-top: 10px; }

/* the problem */
.problem .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chaos { display: flex; flex-wrap: wrap; gap: 10px; }
.chaos span { border: 1px dashed var(--navy-edge); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--dim); background: rgba(14, 18, 41, .6); }
.chaos span:nth-child(3n) { transform: rotate(-2deg); }
.chaos span:nth-child(4n) { transform: rotate(1.5deg); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(18, 226, 255, .5); transform: translateY(-2px); }
.feature .num { font-family: var(--display); font-size: 13px; color: var(--cyan); letter-spacing: .18em; }
.feature p { margin: 0; font-size: 15px; color: var(--text); }

/* spotlights */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spot + .spot { margin-top: clamp(72px, 9vw, 120px); }
.spot.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); font-family: var(--display); }

.touch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; }
.touch button {
  grid-column: span 2; min-height: 92px; text-align: left; padding: 16px; border-radius: 12px;
  font: 700 18px/1.2 var(--body); color: var(--paper); border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #0e1229);
  display: flex; align-items: flex-end; cursor: pointer; transition: background .15s;
}
.touch button.half { grid-column: span 1; }
.touch button:hover { background: color-mix(in srgb, var(--c) 26%, #0e1229); }
.touch button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 45%, #0e1229); box-shadow: 0 0 24px -6px var(--c); }

.devices { display: flex; flex-direction: column; gap: 10px; }
.dev { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 16px 20px; }
.dev b { color: var(--paper); font-size: 16px; }
.dev small { color: var(--dim); font-size: 14px; grid-column: 1; }
.tag { font-family: var(--display); font-size: 11px; letter-spacing: .16em; padding: 5px 10px; border-radius: 999px; grid-row: span 2; }
.tag.std { color: var(--ok); border: 1px solid rgba(62, 224, 143, .45); }
.tag.chk { color: var(--warn); border: 1px solid rgba(255, 181, 71, .45); }

.failover { padding: 24px; display: grid; gap: 14px; }
.node { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--navy-edge); background: rgba(10, 11, 29, .6); }
.node b { font-family: var(--display); color: var(--paper); letter-spacing: .08em; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.off { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dot.idle { background: var(--dim); box-shadow: none; }
.beat { height: 2px; background: var(--spectrum); border-radius: 2px; opacity: .7; position: relative; overflow: hidden; }
.beat::after { content: ""; position: absolute; top: -2px; left: 0; width: 14px; height: 6px; border-radius: 3px; background: #fff; animation: beat 1.6s linear infinite; }
@keyframes beat { from { left: -14px; } to { left: 100%; } }
.status-line { font-size: 14px; color: var(--dim); text-align: center; }

/* day in the life */
.day { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; }
.day::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: var(--spectrum); opacity: .55; }
.day li { padding: 0 14px 0 0; }
.day .t { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--paper); background: var(--navy); display: inline-block; padding: 8px 10px 8px 0; position: relative; }
.day .t::after { content: ""; position: absolute; right: -2px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.day li:nth-child(4) .t::after { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.day h3 { font-size: 15px; margin: 16px 0 8px; line-height: 1.25; }
.day p { font-size: 14px; color: var(--dim); margin: 0; }

/* licensing */
.licences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.licence h3 { margin-bottom: 8px; }
.licence p { color: var(--dim); font-size: 15px; margin: 0; }
.licence { display: flex; flex-direction: column; }
.licence .buy { margin-top: auto; padding-top: 22px; display: grid; gap: 12px; }
.licence .buy[hidden] { display: none; }
.licence .price { margin: 0; color: var(--dim); font-size: 14px; }
.licence .price b { font-family: var(--display); font-size: 24px; color: var(--paper); font-weight: 600; }
.buy-row { display: flex; gap: 10px; align-items: end; }
.buy-row .btn { flex: 1; justify-content: center; padding-left: 12px; padding-right: 12px; }
.qty { font-size: 12px; gap: 4px; }
.qty input { width: 76px; padding: 10px 10px; font-size: 15px; }
.buy-ask .btn { justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.licence .for { font-family: var(--display); font-size: 12px; color: var(--cyan); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; display: block; }

/* trial form */
.trial { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--dim); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--paper); background: rgba(10, 11, 29, .7);
  border: 1px solid var(--navy-edge); border-radius: 10px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18, 226, 255, .15); }
textarea { min-height: 96px; resize: vertical; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--navy-edge); border-radius: 10px; padding: 10px 14px; cursor: pointer; color: var(--text); }
.choice input { width: auto; accent-color: var(--cyan); }
.form-note { font-size: 13px; color: var(--dim); margin: 0; }
.form-done { display: none; }
form.sent .form-done { display: block; }

/* family band: where Spectra joins */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { display: flex; flex-direction: column; gap: 16px; min-height: 260px; position: relative; overflow: hidden; }
.product-card { padding-top: 64px; }   /* room for the COMING SOON badge above the logo, the same on every card */
.product-card img { height: 40px; width: auto; align-self: flex-start; }
.product-card p { margin: 0; }
.product-card .btn { align-self: flex-start; margin-top: auto; }
.badge { position: absolute; top: 22px; right: 22px; font-family: var(--display); font-size: 11px; letter-spacing: .2em; color: var(--violet); border: 1px solid rgba(139, 92, 246, .5); padding: 5px 10px; border-radius: 999px; }

/* footer */
.site-foot { border-top: 1px solid var(--navy-edge); padding: 44px 0 56px; font-size: 14px; color: var(--dim); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: var(--dim); }

/* reveal on scroll (only when JS has run, so nothing hides without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------- responsive */
@media (max-width: 1040px) {
  .features, .licences { grid-template-columns: repeat(2, 1fr); }
  .day { grid-template-columns: 1fr; gap: 26px; padding-left: 28px; }
  .day::before { left: 4px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, #12e2ff, #8b5cf6); }
  .day .t { padding: 0; background: none; }
  .day .t::after { right: auto; left: -29px; }
  .day h3 { margin-top: 4px; }
}
/* the header folds into the Menu button sooner than the page does: three products and the links need the room */
@media (max-width: 1100px) {
  .nav, .products { display: none; }
  .menu-btn { display: block; }
  .site-head.open .wrap { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 18px; }
  .site-head.open .products, .site-head.open .nav { display: flex; width: 100%; }
  .site-head.open .nav { flex-direction: column; align-items: flex-start; gap: 14px; margin: 0; }
  .site-head.open .products { order: 3; flex-wrap: wrap; border-radius: 18px; }
}
.nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .site-head.open .products { flex-wrap: nowrap; justify-content: space-between; }
  .site-head.open .products a { font-size: 11px; letter-spacing: .08em; padding: 7px 9px; }
  .site-head.open .products .soon { font-size: 8px; margin-left: 4px; }
}
@media (max-width: 880px) {
  .hero .wrap, .problem .wrap, .spot, .trial, .family { grid-template-columns: 1fr; gap: 36px; }
  .spot.flip > :first-child { order: 0; }
  .hero-mark { max-width: 240px; order: -1; margin-left: -12px; }
  .hero .wrap { gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .features, .licences, .row2 { grid-template-columns: 1fr; }
  .touch { grid-template-columns: repeat(2, 1fr); }
  .touch button { grid-column: span 2; min-height: 70px; font-size: 16px; }
  .touch button.half { grid-column: span 1; }
  .ctas .btn { width: 100%; }
  .eyebrow { letter-spacing: .2em; font-size: 12px; }
}

/* Spectra's teaser page: the mark above the "be first" heading */
.notify-mark { width: 260px; margin: 0 0 28px -14px; filter: drop-shadow(0 0 50px rgba(139, 92, 246, .3)); }

/* =====================================================================================================
   v2: real screens and motion
   ===================================================================================================== */

/* hero: copy centred, the app window below it, tilted back until you scroll */
.hero-v2 { padding-bottom: 40px; overflow: hidden; }
.hero-v2 .hero-copy { display: block; text-align: center; }
.hero-v2 .hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero-v2 .ctas { justify-content: center; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); margin-right: 6px; vertical-align: 2px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.shimmer { background-size: 200% 100%; animation: shimmer 6s linear infinite; background-image: linear-gradient(90deg, #12e2ff, #5f8cff, #8b5cf6, #2fcfff, #12e2ff); }
@keyframes shimmer { to { background-position: -200% 0; } }

.stage-wrap { margin-top: clamp(40px, 6vw, 72px); perspective: 1600px; }
.stage { position: relative; transform-origin: 50% 0; transform: rotateX(var(--tilt, 18deg)) scale(var(--scale, .94)); transition: transform .1s linear; will-change: transform; }
.stage::before { content: ""; position: absolute; inset: 8% 10% -6%; background: radial-gradient(closest-side, rgba(18, 226, 255, .28), rgba(139, 92, 246, .18) 55%, transparent); filter: blur(40px); z-index: -1; }

.window {
  display: block; margin: 0; padding: 0; width: 100%; text-align: left; font: inherit; color: inherit;
  border: 1px solid #2c3561; border-radius: 14px; overflow: hidden; background: #0c1026;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.window img { width: 100%; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #111634; border-bottom: 1px solid #232a4d; font-size: 12px; color: var(--dim); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3159; }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin: 0 auto; transform: translateX(-24px); }
button.window { cursor: zoom-in; transition: transform .3s, box-shadow .3s; }
button.window:hover { transform: translateY(-4px); box-shadow: 0 50px 120px -30px rgba(18, 226, 255, .25); }

.phone {
  position: absolute; right: -2%; bottom: -12%; width: 21%; margin: 0;
  border: 7px solid #1a1f3d; border-radius: 34px; overflow: hidden; background: #0c1026;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .85), 0 0 0 1px #343c6b;
  transform: translateY(var(--phone-y, 40px)); transition: transform .1s linear;
}

.toasts { position: absolute; left: -2%; bottom: 10%; display: grid; gap: 10px; width: min(330px, 40%); }
.toast {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 12px 14px; border-radius: 12px;
  background: rgba(14, 18, 41, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid #2c3561; color: var(--paper); font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateX(-20px); animation: toast 7.2s var(--d) infinite;
}
.toast span { color: var(--dim); font-weight: 400; font-size: 13px; width: 100%; padding-left: 22px; }
.toast b { width: 14px; text-align: center; }
.toast .ok { color: var(--ok); } .toast .live { color: var(--warn); } .toast .bad { color: var(--bad); }
@keyframes toast { 0% { opacity: 0; transform: translateX(-20px); } 6%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(-8px); } }

/* scrolling makers and protocols */
.marquee { overflow: hidden; border-block: 1px solid var(--navy-edge); background: rgba(14, 18, 41, .5); padding: 18px 0; margin: 40px 0 clamp(56px, 8vw, 96px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); text-transform: uppercase; letter-spacing: .18em; font-size: 15px; color: var(--dim); white-space: nowrap; }
.marquee span:nth-child(5n+1) { color: var(--paper); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* cards: a glow that follows the pointer */
.glow { position: relative; overflow: hidden; }
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(18, 226, 255, .14), transparent 60%);
}
.glow:hover::after { opacity: 1; }
.stat .l b { color: var(--paper); font-weight: 600; }

/* the problem: the mess drifts, then gives way to one Tachyon */
.chaos { position: relative; min-height: 300px; align-content: center; }
.chaos span { animation: drift 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); transition: opacity .6s, transform .6s, filter .6s; }
@keyframes drift { 50% { translate: 0 -6px; } }
.chaos .order { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; opacity: 0; transform: scale(.9); transition: opacity .8s .4s, transform .8s .4s; pointer-events: none; }
.chaos .order img { width: 220px; filter: drop-shadow(0 0 30px rgba(18, 226, 255, .4)); }
.chaos .order small { font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); font-size: 13px; }
.chaos.solved span { opacity: .07; filter: blur(2px); transform: scale(.92); }
.chaos.solved .order { opacity: 1; transform: none; }

/* the tour */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tour-tabs button {
  position: relative; overflow: hidden; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); background: rgba(14, 18, 41, .7); border: 1px solid var(--navy-edge); border-radius: 999px; padding: 12px 18px; cursor: pointer;
}
.tour-tabs button:hover { color: var(--paper); }
.tour-tabs button[aria-selected="true"] { color: var(--paper); border-color: rgba(18, 226, 255, .6); }
.tour-tabs button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--spectrum); }
.tour-tabs button[aria-selected="true"] i { animation: fill var(--tour-ms, 6000ms) linear forwards; }
.tour.paused .tour-tabs button i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.tour-body { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.tour-text h3 { font-size: 26px; margin-bottom: 14px; }
.tour-text p { color: var(--text); }
.tour-text > div { animation: fadeUp .5s ease; }
.tour-screen img { transition: opacity .35s ease; }
.tour-screen img.swap { opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.shot-card { box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .8); }

/* day in the life: progress set from scroll (--p 0..1) */
.day-clock { display: inline-block; margin-left: 10px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--navy-edge); color: var(--cyan); font-size: 18px; min-width: 6.5em; text-align: center; }
.day::after { content: ""; position: absolute; left: 0; top: 26px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--spectrum); box-shadow: 0 0 12px rgba(18, 226, 255, .7); }
.day::before { opacity: .18; }
.day li { opacity: .35; transition: opacity .5s; }
.day li.on { opacity: 1; }
.day li.on .t::after { animation: ping 1.4s ease-out 1; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18, 226, 255, .8); } 100% { box-shadow: 0 0 0 14px rgba(18, 226, 255, 0); } }

/* lightbox */
.lightbox { max-width: min(96vw, 1600px); width: 100%; padding: 0; border: 1px solid #2c3561; border-radius: 14px; background: #0c1026; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 6, 16, .85); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2c3561; background: rgba(14, 18, 41, .9); color: var(--paper); font-size: 16px; cursor: pointer; }

@media (max-width: 1040px) {
  .day::after { left: 4px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); }
}
@media (max-width: 880px) {
  .tour-body { grid-template-columns: 1fr; gap: 18px; }
  .tour-text { order: 2; }
  .tour-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tour-tabs button { flex-shrink: 0; }
  .phone { width: 28%; right: -1%; border-width: 5px; border-radius: 22px; }
  .toasts { display: none; }
  .window-bar { height: 24px; } .window-bar i { width: 8px; height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage { transform: none; } .phone { transform: none; }
  .toast { opacity: 1; transform: none; }
  .day li { opacity: 1; }
}
.hero-v2 .wrap { display: block; }
.chaos span:nth-child(odd) { --i: 1; } .chaos span:nth-child(3n) { --i: 2; } .chaos span:nth-child(4n) { --i: 3; }
.day .t { z-index: 1; }
.day::after { z-index: 0; }
