/* The marketing site (site/src/synchrotron/site.clj). The look is the logo's and the studio
   video's: a near-black ground, the ring and its blue-white beam, a grid running to the horizon. */
@font-face { font-family: "Orbitron"; font-weight: 700; font-display: swap; src: url("fonts/orbitron-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 800; font-display: swap; src: url("fonts/orbitron-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 400; font-display: swap; src: url("fonts/exo-2-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 500; font-display: swap; src: url("fonts/exo-2-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 600; font-display: swap; src: url("fonts/exo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #04070d;
  --raised: #0a111c;
  --line: #16283a;
  --ink: #eafbff;
  --dim: #9db4c4;
  --faint: #5d7688;
  --ring: #d9f8ff;
  --glow: #6fe3ff;
  --beam: #f7fdff;        /* white-hot: the fill of the one main action */
  --beam-deep: #6cb4ff;   /* the beam's blue: its tip, its glow */
  --disp: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  --text: "Exo 2", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--glow); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; padding: 8px 12px; background: var(--raised); }

/* ---------- the top ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter); background: rgba(4, 7, 13, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 40, 58, .7);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 15px var(--disp); letter-spacing: .14em; text-transform: uppercase; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }

/* the one thing to do: white-hot, like the beam, with its blue glow */
.ask {
  display: inline-block; padding: 11px 20px; border-radius: 8px; background: var(--beam); color: var(--ground);
  font: 600 15px var(--text); text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(108, 180, 255, .45), 0 0 28px rgba(77, 159, 255, .32);
}
.ask:hover { background: #fff; }
.top .ask { padding: 8px 16px; font-size: 14px; }
button.ask { border: 0; cursor: pointer; }
button.ask:disabled { opacity: .6; cursor: default; }

/* the waitlist: an address and the button, and a line that answers in place */
.join { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 460px; }
.join input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised);
  color: var(--ink); font: 400 16px var(--text);
}
.join input[type="email"]::placeholder { color: var(--faint); }
.join input[type="email"]:focus-visible { outline-offset: 0; border-color: var(--glow); }
.join .said { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--glow); }
.join.done input[type="email"], .join.done button { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the hero ---------- */
.hero {
  position: relative; overflow: hidden; display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  /* how deep the grid's floor is, under everything the hero says */
  --floor: clamp(130px, 17vw, 230px);
  padding: clamp(56px, 9vw, 112px) var(--gutter) calc(var(--floor) + clamp(36px, 5vw, 64px));
}
.pitch, .hero .video { position: relative; z-index: 1; }
.pitch { max-width: 560px; justify-self: end; }
.eyebrow, .kind { font: 400 12.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--glow); }
h1 {
  margin-top: 18px; font: 800 clamp(34px, 4.6vw, 58px)/1.08 var(--disp); letter-spacing: .01em; text-wrap: balance;
  text-shadow: 0 0 34px rgba(111, 227, 255, .28);
}
.lede { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--dim); max-width: 46ch; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 32px; }
.acts .join { flex: 1 1 100%; }
.more { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 2px; }
.more:hover { border-color: var(--glow); }

.video { max-width: 640px; }
.video .play, .video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid rgba(111, 227, 255, .35); border-radius: 10px;
  background: #000; overflow: hidden; box-shadow: 0 0 0 1px rgba(4, 7, 13, .9), 0 0 60px rgba(111, 227, 255, .14), 0 30px 80px rgba(0, 0, 0, .6);
}
.video .play { position: relative; cursor: pointer; }
.video .play img { width: 100%; height: 100%; object-fit: cover; }
.video .go {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 72px; height: 72px;
  border-radius: 50%; background: rgba(4, 7, 13, .72); color: var(--beam); border: 1px solid rgba(108, 180, 255, .7);
  box-shadow: 0 0 30px rgba(77, 159, 255, .45); transition: scale .15s ease;
}
.video .go svg { margin-left: 3px; }
.video .play:hover .go { scale: 1.08; }
.video figcaption { margin-top: 12px; font-size: 14px; color: var(--faint); }
.video figcaption strong { color: var(--dim); font-weight: 500; }
.video figcaption a { color: var(--dim); }
.video figcaption a:hover { color: var(--ink); }

/* the grid running to the horizon, under the pitch and the video */
.grid {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: var(--floor);
  background:
    linear-gradient(to right, rgba(111, 227, 255, .5) 1px, transparent 1px) 50% 0 / 72px 100%,
    linear-gradient(to bottom, rgba(111, 227, 255, .5) 1px, transparent 1px) 0 0 / 100% 44px;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000, #000 45%, transparent);
          mask-image: linear-gradient(to bottom, #000, #000 45%, transparent);
  opacity: .45;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: var(--floor); height: 1px;
  background: linear-gradient(to right, transparent, rgba(111, 227, 255, .55) 30%, rgba(108, 180, 255, .8) 62%, transparent);
}

/* ---------- the sections ---------- */
main > section:not(.hero) { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--disp); letter-spacing: .04em; text-wrap: balance; }
h3 { font: 600 20px/1.3 var(--text); }
section p { color: var(--dim); }

.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.formats article { padding: 30px 30px 28px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.formats h3 { margin: 10px 0 12px; font-size: 24px; color: var(--ink); }
.formats .kind { color: var(--glow); }
.formats .price { margin: -4px 0 12px; font: 400 14px var(--mono); letter-spacing: .06em; color: var(--dim); }
.formats .price strong { color: var(--ink); font-weight: 400; font-size: 17px; }
.formats .video { margin-top: 24px; max-width: none; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid rgba(111, 227, 255, .35); border-radius: 10px; background: #000; }
.formats ul { margin-top: 20px; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.formats li { position: relative; padding-left: 22px; color: var(--ink); font-size: 16px; }
.formats li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; border-radius: 1px; background: var(--ring); }

/* work with us now: a band of its own, lit like the beam */
main > section#now { padding-top: 0; padding-bottom: 0; }
.now {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
  padding: clamp(28px, 4vw, 44px); border-radius: 14px; background: linear-gradient(120deg, var(--raised), #0c1a2b);
  border: 1px solid rgba(108, 180, 255, .45); box-shadow: 0 0 60px rgba(77, 159, 255, .12);
}
.now .words { flex: 1 1 420px; }
.now .words .kind { margin: 0 0 12px; }
.now .words p:not(.kind) { margin-top: 14px; max-width: 56ch; }
.now .act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.now .ask { padding: 14px 26px; font-size: 17px; }
.now .or { margin: 0; font-size: 14px; color: var(--faint); }
.now .or a { color: var(--dim); }

.steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.steps li { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
/* each step sits on the beam */
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 2px; background: linear-gradient(to right, var(--ring), #fff 45%, var(--beam-deep)); box-shadow: 0 0 12px rgba(77, 159, 255, .7); }
.steps .n { font: 400 12.5px var(--mono); letter-spacing: .16em; color: var(--faint); }
.steps .n::before { content: "0"; }
.steps h3 { margin: 8px 0 10px; color: var(--ink); }
.steps p { font-size: 16px; }

#yours { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
#yours .words p { margin-top: 18px; max-width: 48ch; }
#yours .words .kind { margin: 0 0 12px; }
#yours .join { margin-top: 26px; }
.shot img { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 50px rgba(111, 227, 255, .08); }

/* the channel: what to say on the left, three of its videos on the right */
#channel { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
#channel .words .kind { margin: 0 0 12px; }
#channel .words p { margin: 18px 0 26px; max-width: 40ch; }
#channel .words strong { color: var(--ink); font-weight: 500; }
.reel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.reel li:only-child { max-width: 520px; }
.reel a { display: block; color: var(--dim); text-decoration: none; font-size: 14px; }
.reel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; transition: border-color .15s ease; }
.reel a:hover { color: var(--ink); }
.reel a:hover img { border-color: rgba(111, 227, 255, .6); }

.faq { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.faq dt { margin-top: 28px; font: 600 18px/1.35 var(--text); color: var(--ink); }
.faq dd { margin-top: 8px; color: var(--dim); font-size: 16px; }

.close { text-align: center; }
.close p { margin: 14px auto 28px; max-width: 44ch; }
.close .join { margin: 0 auto; justify-content: center; }
.close .join .said { text-align: center; }
.draft { display: inline-block; margin-top: 36px; padding: 12px 16px; border: 1px dashed var(--glow); border-radius: 8px; color: var(--glow); font-size: 14px; text-align: left; }
.draft p { margin: 0; max-width: none; color: var(--glow); }
.draft ul { margin: 6px 0 0; padding-left: 18px; }
.draft code { font: 13px var(--mono); }

.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px var(--gutter);
  border-top: 1px solid var(--line); color: var(--faint); font-size: 14px;
}
.foot .brand { font-size: 13px; color: var(--dim); }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 940px) {
  .top nav { display: none; }
  .top .ask { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .pitch { justify-self: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #yours { grid-template-columns: minmax(0, 1fr); }
  #channel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .formats, .faq, .steps { grid-template-columns: minmax(0, 1fr); }
  .formats article { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .video .go { transition: none; } }
