/* Product pages (Meshmerize): the club look. Brand tokens first; everything else uses them.
   The shop itself (home, brand sheet) is css/shop.css. Product pages carry the shop mark in the nav and footer. */
@font-face { font-family: "Unbounded"; src: url("../assets/fonts/Unbounded-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../assets/fonts/Unbounded-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../assets/fonts/MartianMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #08080a;      /* the room: near-black */
  --ink-2: #131317;    /* panels */
  --ink-3: #1e1e24;    /* lines, hover */
  --paper: #f4f4f0;    /* type */
  --dim: #9a9aa3;      /* secondary type */
  --acid: #d7ff1f;     /* signal colour: buttons, the bar, highlights */
  --hot: #ff2e88;      /* RGB split, left */
  --ice: #22e5ff;      /* RGB split, right */
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Archivo", "Helvetica Neue", sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.signup :focus-visible { outline-color: var(--ink); }

/* film grain over everything */
body::after { content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .07;
  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)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--dim); }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: .92; letter-spacing: -.02em; margin: 0; text-transform: uppercase; }
h1 { font-size: clamp(48px, 11vw, 176px); }
h2 { font-size: clamp(36px, 6.4vw, 96px); }
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.05; }
.rgb { text-shadow: -.035em 0 0 var(--hot), .035em 0 0 var(--ice); }
.rgb-hover { transition: text-shadow .15s; }
.rgb-hover:hover { text-shadow: -.05em 0 0 var(--hot), .05em 0 0 var(--ice); }
.lead { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; max-width: 34ch; }
.kicker { display: inline-flex; gap: .6em; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--acid); }
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--acid); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  /* the same left/right edges as .wrap, so the logo and the Buy button line up with the page content at every width */
  padding: 14px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: linear-gradient(var(--ink), rgba(8,8,10,0)); }
.nav .brand img { height: 22px; width: auto; }
/* the Odds & Engines sign: the file carries its own glow, so it is drawn larger and pulled back into line */
.nav .brand.shop img { height: 40px; margin: -9px 0 -9px -8px; }
footer .shop { display: inline-block; padding: 0; }
footer .shop img { height: 52px; margin: -12px 0 -8px -10px; }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2.4vw, 32px); margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav ul a:not(.btn) { display: inline-block; padding: 14px 0; }
.nav a:not(.btn):hover { color: var(--acid); }
.nav .hide-sm { display: inline; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .7em; padding: 18px 28px; border: 2px solid var(--paper); font: 800 15px/1 var(--body); letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; color: var(--paper); background: transparent; cursor: pointer; position: relative; transition: transform .12s, background .12s, color .12s; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--hot), 6px 6px 0 var(--ice); }
.btn.primary { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.btn.soon { border-style: dashed; color: var(--dim); border-color: var(--ink-3); cursor: default; }
.btn.soon:hover { transform: none; box-shadow: none; }
.btn small { font: 500 11px var(--mono); opacity: .75; letter-spacing: .04em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero */
.hero { position: relative; background: var(--ink); min-height: 100svh; display: grid; align-items: end; padding: 120px 0 56px; overflow: hidden; isolation: isolate; }
.hero video.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
@media (max-width: 1180px) { .hero video.bg { object-position: center; } }
/* tall desktop windows: keep the hero near the video's shape so the model never crops off the right */
@media (min-width: 1181px) { .hero { min-height: min(100svh, 60vw); } .hero video.bg { object-position: center; } }
@media (min-width: 861px) and (max-width: 1180px) { .hero { min-height: min(100svh, 76vw); } }
/* phones: the model rides in the top half, clear of the copy at the bottom */
@media (max-width: 860px) {
  .hero video.bg { object-position: center; transform: translateY(-19%); animation: drift 16s ease-in-out infinite alternate;
    -webkit-mask-image: linear-gradient(#000 62%, transparent 81%); mask-image: linear-gradient(#000 62%, transparent 81%); }
  @keyframes drift { from { transform: translateY(-19%) scale(1); } to { transform: translateY(-17%) scale(1.07); } }
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--ink) 18%, rgba(8,8,10,0) 48%),
              linear-gradient(0deg, var(--ink) 0%, rgba(8,8,10,0) 18%),
              repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 2px, transparent 2px 4px); }
.hero h1 { margin: 18px 0 26px; }
.hero .meta { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero > .wrap { width: 100%; }      /* a grid item shrinks to its content: keep the copy on the page's left edge */
.hero .stagger { max-width: 880px; }
/* tablets: a narrower copy column so the headline stops short of the model on the right */
@media (max-width: 1180px) and (min-width: 861px) { .hero .stagger { max-width: 50vw; } .hero h1 { font-size: 9.6vw; } }

/* ticker */
.ticker { border-block: 2px solid var(--acid); background: var(--acid); color: var(--ink); overflow: hidden; white-space: nowrap; transform: rotate(-1.2deg); margin: 0 -2vw; }
.ticker > div { display: inline-block; padding: 14px 0; font: 900 clamp(16px, 2vw, 26px)/1 var(--display); text-transform: uppercase; animation: tick 28s linear infinite; }
.ticker span { margin: 0 .8em; }
.ticker span.star { color: var(--hot); }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
[id] { scroll-margin-top: 76px; }   /* nav links land with the section head clear of the fixed bar */
.sec-head > div:first-child, .signup .wrap { container-type: inline-size; }
.sec-head h2 { font-size: min(clamp(36px, 6.4vw, 96px), 11.4cqi); }
.signup h2 { font-size: min(clamp(36px, 6.4vw, 96px), 9.6cqi); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } .sec-head > p, .sec-head > div:last-child { max-width: 62ch; } }
.num { font: 500 12px var(--mono); color: var(--acid); letter-spacing: .1em; display: block; margin-bottom: 14px; }

/* product feature (home) */
.drop { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border: 2px solid var(--ink-3); background: var(--ink-2); text-decoration: none; }
.drop .media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.drop .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.drop:hover .media video { transform: scale(1.04); }
.drop .copy { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.drop .tag { position: absolute; top: 16px; left: 16px; background: var(--hot); color: var(--ink); padding: 8px 12px; font: 900 12px var(--display); text-transform: uppercase; transform: rotate(-3deg); }
@media (max-width: 860px) { .drop { grid-template-columns: 1fr; } }

/* bring your own models */
.byo { display: grid; grid-template-columns: 1.35fr 1fr; border: 2px solid var(--ink-3); background: var(--ink-2); }
.byo .media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.byo .media video { width: 100%; height: 100%; object-fit: cover; }
.byo .copy { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: var(--dim); }
.steps li b { color: var(--paper); font-weight: 600; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center;
  font: 900 16px var(--display); color: var(--ink); background: var(--acid); }
.byo .formats .chip { color: var(--paper); border-color: rgba(244,244,240,.22); }
.byo .credit { margin: 0; font-size: 12px; line-height: 1.5; color: var(--dim); }
@media (max-width: 960px) { .byo { grid-template-columns: 1fr; } }

/* cards */
.grid { display: grid; gap: 2px; background: var(--ink-3); border: 2px solid var(--ink-3); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 620px) { .grid.c3 > :last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 620px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card { background: var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card .media { margin: -26px -26px 6px; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.card .media video, .card .media img { width: 100%; height: 100%; object-fit: cover; }
.card p { margin: 0; color: var(--dim); }
@media (min-width: 621px) { #features .card h3 { min-height: 2.1em; } }
.card.soon { background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--ink-2) 18px 36px); }
.badge { align-self: flex-start; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; padding: 5px 8px; color: var(--acid); }

/* model library wall */
.wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; background: var(--ink-3); border: 2px solid var(--ink-3); }
@media (max-width: 960px) { .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 620px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wall .yours { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(16px, 2.4vw, 32px);
  background: var(--ink-2, #121216); color: var(--paper, #f2f2ee); text-decoration: none; outline: 2px dashed var(--acid); outline-offset: -10px; }
.wall .yours b { font: 900 clamp(18px, 2vw, 28px)/1 var(--display); text-transform: uppercase; }
.wall .yours span { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acid); }
.wall .yours:hover { background: var(--acid); color: var(--ink); } .wall .yours:hover span { color: var(--ink); }
@media (max-width: 620px) { .wall .yours { flex-direction: column; align-items: flex-start; } }
.wall figure { margin: 0; background: #000; position: relative; aspect-ratio: 1; overflow: hidden; }
.wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; }
.wall figcaption { position: absolute; inset: auto 0 0 0; padding: 18px 8px 7px; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.75)); opacity: 0; transition: opacity .2s; }
@media (hover: none) { .wall figcaption { opacity: 1; } }
.wall figure:hover img { transform: scale(1.12); filter: drop-shadow(-4px 0 0 var(--hot)) drop-shadow(4px 0 0 var(--ice)); }
.wall figure:hover figcaption { opacity: 1; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--ink-3); padding: 9px 13px; font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }


/* specs */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; border-top: 2px solid var(--paper); }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } }
.specs div { padding: 22px 0; border-bottom: 1px solid var(--ink-3); padding-right: 24px; }
.specs dt { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.specs dd { margin: 0; font-weight: 600; font-size: 19px; }

/* pricing */
.price { display: grid; grid-template-columns: 1.1fr 1fr; border: 2px solid var(--acid); background: var(--ink-2); }
.price > div { padding: clamp(26px, 4vw, 56px); }
.price .amount { font: 900 clamp(64px, 10vw, 140px)/.85 var(--display); color: var(--acid); }
.price .was { font: 500 14px var(--mono); color: var(--dim); text-decoration: line-through; margin-left: 10px; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.price li { padding-left: 28px; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--acid); border-bottom: 3px solid var(--acid); transform: rotate(-45deg) translateY(-4px); }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* faq */
details { border-bottom: 1px solid var(--ink-3); }
summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--body); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 18px; font: 900 28px var(--display); color: var(--acid); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 24px; color: var(--dim); max-width: 70ch; }

/* signup */
.signup { background: var(--hot); color: var(--ink); overflow: hidden; }
.signup h2 { color: var(--ink); }
.signup form { display: flex; gap: 0; max-width: 620px; margin-top: 32px; border: 3px solid var(--ink); }
.signup input { flex: 1; min-width: 0; padding: 20px; border: 0; font: 600 18px var(--body); background: var(--paper); color: var(--ink); }
.signup button { border: 0; background: var(--ink); color: var(--acid); padding: 0 26px; font: 900 15px var(--display); text-transform: uppercase; cursor: pointer; }
.signup .note { margin-top: 12px; font: 500 12px var(--mono); }

/* footer */
footer { padding: 56px 0 40px; border-top: 2px solid var(--ink-3); }
footer .row { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: end; }
footer img { height: 40px; width: auto; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; display: inline-block; padding: 10px 0; }
footer a:hover { color: var(--acid); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .stagger > * { opacity: 0; transform: translateY(24px); animation: up .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .stagger > *:nth-child(2) { animation-delay: .12s; } .hero .stagger > *:nth-child(3) { animation-delay: .24s; } .hero .stagger > *:nth-child(4) { animation-delay: .36s; }
@keyframes up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .stagger > * { opacity: 1; transform: none; }
}

/* the plugin running in Resolume */
.ui-video { border: 2px solid var(--ink-3); overflow: hidden; background: #000; }
.ui-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- the way in and out through the set on the shop shelf (see src/garage/main.js, "portals") ---------- */
.from-tv .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, .3) 0 2px, transparent 2px 4px); animation: tv-lines 1.2s ease-out both; }
.from-tv .hero::before { animation: tv-fade 1.1s ease-out both; }
.from-tv .nav { animation: tv-fade .5s .6s both; }
/* arrived through the set: the logo doubles as "back to the shop" */
.from-tv .nav .brand { display: inline-flex; align-items: center; }   /* the words and the neon logo on one line, centred on each other */
.from-tv .nav .brand::before { content: "\2190  Back to"; margin-right: 14px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; flex: none; }
@media (max-width: 520px) { .from-tv .nav .brand::before { display: none; } }
.from-tv .hero .stagger > * { animation-delay: .6s; }
.from-tv .hero .stagger > *:nth-child(2) { animation-delay: .72s; } .from-tv .hero .stagger > *:nth-child(3) { animation-delay: .84s; } .from-tv .hero .stagger > *:nth-child(4) { animation-delay: .96s; }
@media (min-width: 861px) { .from-tv .hero video.bg { animation: tv-in 1.1s cubic-bezier(.2, .7, .2, 1) both; } }
@keyframes tv-in { from { transform: scale(1.16); filter: brightness(1.3); } }
@keyframes tv-lines { from { opacity: 1; } to { opacity: 0; } }
@keyframes tv-fade { from { opacity: 0; } }
/* leaving is the dive-in reversed: the copy and bar drop away first, then the picture zooms back toward the tube
   (scale up + brighten + scanlines, the reverse of tv-in) and the garage opens inside the set and pulls the camera
   out — so it reads as going back into the TV, not the page collapsing. */
.to-tv { background: #000; }
.to-tv .hero .stagger > *, .to-tv .nav { animation: tv-leave .22s cubic-bezier(.6, 0, .9, .4) both; }
@keyframes tv-leave { to { opacity: 0; transform: translateY(14px); } }
.to-tv .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, .3) 0 2px, transparent 2px 4px); animation: tv-lines-back .42s ease-in both; }
@keyframes tv-lines-back { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 861px) { .to-tv .hero video.bg { animation: tv-back .42s cubic-bezier(.4, 0, .85, .5) both; } }
@keyframes tv-back { to { transform: scale(1.16); filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
