/* CTW Herald's site. Deep navy with one line of light, cyan through blue to violet, after
   the CTW Herald identity. Blue is Preview, red is Live and gold is Next, here as in the app,
   and those three mean nothing else. The typefaces (Manrope for headings, Inter for reading)
   are served from this site: no page here asks any other website for anything. */

@font-face { font-family: 'Inter Variable'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'); }

:root {
  --s-bg: #050a16;
  --s-bg-2: #081022;
  --s-panel: #0c162c;
  --s-panel-2: #111e3a;
  --s-line: rgba(132, 168, 255, 0.14);
  --s-line-2: rgba(132, 168, 255, 0.28);
  --s-text: #eef3ff;
  --s-muted: #a3b4d3;
  --s-dim: #7385a8;
  --s-cyan: #7fe3f3;
  --s-glow: #2fd6ee;
  --s-blue: #3d83f7;
  --s-violet: #8a5cf6;
  --s-grad: linear-gradient(115deg, #2fd6ee 0%, #3d83f7 52%, #8a5cf6 100%);
  --s-preview: #3fa2ff;
  --s-live: #ff4b44;
  --s-gold: #ffc857;
  --s-ivory: #f3eee5;
  --s-body: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --s-head: 'Manrope Variable', 'Inter Variable', system-ui, sans-serif;
  color-scheme: dark;
}

/* The tour and the guide were written as pages of their own; here they wear the site's typefaces. */
:root[data-theme='dark'] {
  --font-body: var(--s-body);
  --font-head: var(--s-head);
  --bg: var(--s-bg);
}

html { scroll-behavior: smooth; }
/* Something marked hidden stays hidden, whatever else styles it (the tour's full-size viewer). */
[hidden] { display: none !important; }
body.site {
  margin: 0;
  background: var(--s-bg);
  color: var(--s-text);
  font: 400 1.0625rem/1.6 var(--s-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.borrowed { background: var(--s-bg); }
.site *, .site-top *, .site-foot * { box-sizing: border-box; }
::selection { background: rgba(61, 131, 247, 0.45); }

/* ---------- the bar along the top (every page) ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px max(18px, env(safe-area-inset-right, 0px)) 10px max(18px, env(safe-area-inset-left, 0px));
  background: rgba(5, 10, 22, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--s-line);
  font: 500 0.95rem/1.2 var(--s-body);
}
.site-top .home { display: flex; align-items: center; gap: 10px; color: var(--s-text); text-decoration: none; margin-right: auto; }
.site-top .home img { width: 38px; height: 38px; object-fit: contain; }
/* Herald's wordmark, as plain letters until its own logo files are in. */
.site-top .home b { font: 800 1.08rem/1 var(--s-head); letter-spacing: 0.1em; }
.site-top .home b small { font: 700 0.62rem/1 var(--s-head); letter-spacing: 0.32em; color: var(--s-muted); margin-right: 0.7em; vertical-align: 0.12em; }
.site-top .links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 4px; }
.site-top .links a { padding: 8px 12px; border-radius: 9px; color: var(--s-muted); text-decoration: none; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.site-top .links a:hover, .site-top .links a[aria-current='page'] { color: var(--s-text); background: rgba(132, 168, 255, 0.1); }
.site-top .links a.get { color: #04101f; background: var(--s-grad); font-weight: 700; box-shadow: 0 6px 22px rgba(61, 131, 247, 0.35); }
.site-top .links a.get:hover { filter: brightness(1.08); color: #04101f; }
.site-top a:focus-visible, .site-foot a:focus-visible, .site a:focus-visible, .site button:focus-visible { outline: 3px solid var(--s-glow); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 760px) {
  .site-top { flex-wrap: wrap; gap: 6px; }
  .site-top .links { width: 100%; justify-content: flex-start; margin-left: -8px; }
  .site-top .links a { padding: 6px 8px; font-size: 0.9rem; }
}

/* ---------- the foot of every page ---------- */
.site-foot {
  position: relative;
  margin-top: 88px;
  padding: 40px max(18px, env(safe-area-inset-right, 0px)) 48px max(18px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--s-line);
  background: #030712;
  color: var(--s-muted);
  font: 400 0.92rem/1.5 var(--s-body);
}
.site-foot::before { content: ''; position: absolute; inset: -1px 0 auto 0; height: 1px; background: var(--s-grad); opacity: 0.55; }
.site-foot .inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between; }
.site-foot .who { display: flex; align-items: center; gap: 14px; max-width: 52ch; }
.site-foot .who img { width: 46px; height: 39px; object-fit: contain; flex: none; }
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a { color: var(--s-cyan); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
/* TK Software's credit, as its brand sheet asks: the supplied ivory logo on a dark ground, 120 px wide
   (never under 100), in proportion, with clear space around it, and nothing added to it. */
.site-foot .maker { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-decoration: none; }
.site-foot .maker span { font: 400 0.68rem/1 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243, 238, 229, 0.62); }
.site-foot .maker img { display: block; width: 120px; height: auto; margin: 8px; }
.site-foot .maker:hover { text-decoration: none; }

/* ---------- shared pieces ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); }
.narrow { max-width: 780px; }
.site h1, .site h2, .site h3 { font-family: var(--s-head); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
.site h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; }
.site h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -0.01em; }
.site p { margin: 0; }
.site a { color: var(--s-cyan); }
.eyebrow { font: 700 0.76rem/1 var(--s-body); letter-spacing: 0.26em; text-transform: uppercase; color: var(--s-glow); }
.lede { color: var(--s-muted); font-size: 1.16rem; max-width: 62ch; }
.band { padding: 88px 0 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grad { background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--s-line-2); background: rgba(132, 168, 255, 0.08); color: var(--s-text) !important; font: 600 1.02rem/1 var(--s-body); text-decoration: none; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.2s, filter 0.2s; }
.btn:hover { border-color: rgba(132, 168, 255, 0.55); background: rgba(132, 168, 255, 0.15); }
.btn:active { transform: translateY(1px); }
.btn.primary { border: 0; background: var(--s-grad); color: #04101f !important; font-weight: 700; box-shadow: 0 10px 34px rgba(61, 131, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 14px 44px rgba(61, 131, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn small { font-weight: 500; opacity: 0.75; }
.btn[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }

.frame { display: block; border: 1px solid var(--s-line-2); border-radius: 16px; overflow: hidden; background: #05080f; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(47, 214, 238, 0.05); line-height: 0; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.frame img { display: block; width: 100%; height: auto; }
a.frame:hover { transform: translateY(-3px); border-color: rgba(61, 131, 247, 0.6); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(61, 131, 247, 0.18); }
.clear-ground { background: conic-gradient(#141d33 25%, #1b2743 0 50%, #141d33 0 75%, #1b2743 0) 0 0 / 28px 28px; }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.three figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.three figcaption b { display: block; font: 700 1.05rem/1.3 var(--s-head); }
.three figcaption span { color: var(--s-muted); font-size: 0.98rem; }

.rule { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 14px 18px; border: 1px solid var(--s-line); border-radius: 14px; background: rgba(12, 22, 44, 0.7); font-size: 1rem; }
.rule b.pv { color: var(--s-preview); }
.rule b.lv { color: var(--s-live); }
.rule b.nx { color: var(--s-gold); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--s-line); border-radius: 18px; background: linear-gradient(180deg, rgba(17, 30, 58, 0.72), rgba(12, 22, 44, 0.72)); transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(61, 131, 247, 0.5); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4); }
.card p { color: var(--s-muted); font-size: 0.98rem; }
.card .k { font: 700 0.72rem/1 var(--s-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--s-glow); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; align-items: center; }
.app { display: flex; gap: 16px; align-items: flex-start; }
.app img.icon { width: 76px; height: 76px; border-radius: 18px; flex: none; border: 1px solid var(--s-line-2); }
.app p { color: var(--s-muted); }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.dl { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--s-line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(17, 30, 58, 0.72), rgba(12, 22, 44, 0.72)); }
.dl p { color: var(--s-muted); font-size: 0.96rem; }
.dl .btn { justify-content: center; }
.steps { margin: 0; padding-left: 1.3em; color: var(--s-muted); display: flex; flex-direction: column; gap: 8px; }
.steps b { color: var(--s-text); }
.note { padding: 14px 18px; border-left: 4px solid var(--s-glow); border-radius: 0 12px 12px 0; background: rgba(12, 22, 44, 0.8); color: var(--s-text); }
.note.gold { border-left-color: var(--s-gold); }

.prose { display: flex; flex-direction: column; gap: 16px; padding: 56px 0 0; }
.prose h1 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 800; }
.prose h2 { font-size: 1.35rem; margin-top: 14px; }
.prose p, .prose li { color: #c6d2e8; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose b { color: var(--s-text); }
.prose .updated { color: var(--s-muted); font-size: 0.95rem; }
kbd { font: 600 0.85em ui-monospace, Menlo, Consolas, monospace; padding: 2px 6px; border: 1px solid var(--s-line-2); border-radius: 6px; background: var(--s-panel-2); }
.church { display: inline-flex; align-items: center; gap: 12px; font: 600 0.8rem/1.2 var(--s-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--s-cyan); }
.church img { width: 44px; height: 37px; object-fit: contain; }

/* The tour and the guide keep their own layout; give them room under the bar. */
body.borrowed { margin: 0; padding-top: 0; }
body.borrowed > .page { padding-top: 28px; }

/* ---------- the home page ---------- */
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky::before {
  content: '';
  position: absolute;
  inset: -20% -10% 0 -10%;
  background:
    radial-gradient(60% 46% at 18% 8%, rgba(47, 214, 238, 0.2), transparent 70%),
    radial-gradient(56% 50% at 88% 12%, rgba(138, 92, 246, 0.24), transparent 68%),
    radial-gradient(50% 40% at 52% 58%, rgba(61, 131, 247, 0.16), transparent 70%);
}
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(132, 168, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(132, 168, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 0%, transparent 78%);
}
.hero { position: relative; isolation: isolate; padding: clamp(44px, 7vw, 92px) 0 0; }
.hero .copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; max-width: 940px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero .lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 60ch; }
.hero .buttons { justify-content: center; }
.hero .hint { color: var(--s-dim); font-size: 0.92rem; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; align-items: center; }

/* The playable model: three screens and a Stream Deck. */
.console {
  position: relative;
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding: clamp(14px, 2vw, 26px);
  border-radius: 28px;
  border: 1px solid var(--s-line-2);
  background: linear-gradient(180deg, rgba(17, 30, 58, 0.82), rgba(7, 13, 28, 0.9));
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.6), 0 0 120px rgba(61, 131, 247, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}
.console::before { content: ''; position: absolute; inset: -1px 12% auto 12%; height: 2px; border-radius: 2px; background: var(--s-grad); }
.screens { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(10px, 1.4vw, 18px); }
.screen-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.screen-box.main { grid-row: 1 / span 2; }
.cap { display: flex; align-items: center; gap: 8px; font: 600 0.74rem/1.2 var(--s-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--s-dim); }
.cap i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-live); box-shadow: 0 0 10px var(--s-live); flex: none; }
.is-rehearsal .cap i { background: var(--s-dim); box-shadow: none; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(132, 168, 255, 0.22); container-type: inline-size; background: #000; }
.screen-box.main .screen { flex: 1; aspect-ratio: auto; min-height: 220px; }
.words span { display: block; }

.aud { background: radial-gradient(120% 90% at 50% 110%, #1b3a7a 0%, #0b1a3d 45%, #050b1c 100%); display: grid; place-items: center; text-align: center; transition: filter 0.35s; }
.aud::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 55% at 22% 0%, rgba(47, 214, 238, 0.22), transparent 70%), radial-gradient(40% 55% at 80% 0%, rgba(138, 92, 246, 0.26), transparent 70%); }
.aud .words { position: relative; font: 700 4.5cqw/1.25 var(--s-head); letter-spacing: -0.01em; padding: 0 6cqw; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.aud.is-black { filter: brightness(0); }

.stg { background: #02040a; padding: 4cqw 4.4cqw; display: flex; flex-direction: column; gap: 1.8cqw; }
.stg .row { display: flex; align-items: center; justify-content: space-between; font: 700 3.6cqw/1 var(--s-head); }
.stg .clock { font-size: 5.6cqw; letter-spacing: -0.02em; }
.stg .chip { font: 700 2.6cqw/1 var(--s-body); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--s-live); padding: 1.2cqw 2.2cqw; border-radius: 99px; }
.is-rehearsal .stg .chip { background: #33405f; }
.stg .now { font: 700 4.3cqw/1.22 var(--s-head); }
.stg .next { font: 500 2.9cqw/1.3 var(--s-body); color: #8fa0c4; }
.stg .next::before { content: 'NEXT'; display: block; font: 700 2.1cqw/1 var(--s-body); letter-spacing: 0.2em; color: var(--s-gold); margin-bottom: 0.8cqw; }
.stg .private { margin-top: auto; font: 500 2.5cqw/1.35 var(--s-body); color: #d9ccff; border: 1px solid rgba(138, 92, 246, 0.5); background: rgba(138, 92, 246, 0.12); border-radius: 2cqw; padding: 1.8cqw 2.4cqw; }
.stg .private::before { content: 'PRIVATE · '; font-weight: 700; letter-spacing: 0.14em; font-size: 2cqw; color: #b79cff; }

.str { background: radial-gradient(60% 80% at 30% 40%, #5a3b2a 0%, transparent 60%), radial-gradient(50% 70% at 75% 30%, #2a3f6a 0%, transparent 62%), radial-gradient(34% 40% at 52% 62%, #7a5a3c 0%, transparent 64%), #0d0f17; }
.str::before { content: ''; position: absolute; inset: 0; background: radial-gradient(18% 30% at 50% 44%, rgba(255, 220, 180, 0.5), transparent 70%), radial-gradient(10% 16% at 50% 30%, rgba(255, 226, 196, 0.75), transparent 72%); filter: blur(1.5cqw); }
.str .onair { position: absolute; top: 3.4cqw; left: 3.4cqw; display: flex; align-items: center; gap: 1.6cqw; font: 700 2.6cqw/1 var(--s-body); letter-spacing: 0.14em; color: #fff; background: rgba(0, 0, 0, 0.5); padding: 1.3cqw 2.2cqw; border-radius: 99px; }
.str .onair i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--s-live); }
.is-rehearsal .str .onair i { background: #6b7896; }
.str .bar { position: absolute; left: 4cqw; right: 4cqw; bottom: 5cqw; padding: 2.6cqw 3.4cqw; border-radius: 2.2cqw; background: rgba(5, 10, 22, 0.82); border-left: 1cqw solid var(--s-glow); backdrop-filter: blur(6px); font: 600 3.9cqw/1.28 var(--s-head); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; }
.str .bar.is-hidden { transform: translateY(160%); opacity: 0; }

.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: clamp(12px, 1.6vw, 20px); }
.status div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(5, 10, 22, 0.55); border: 1px solid var(--s-line); font-size: 0.95rem; min-width: 0; }
.status b { font: 700 0.7rem/1 var(--s-body); letter-spacing: 0.18em; padding: 5px 8px; border-radius: 6px; color: #fff; flex: none; }
.status .live b { background: var(--s-live); }
.status .next b { background: var(--s-gold); color: #241a02; }
.status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.deck { margin-top: clamp(12px, 1.6vw, 20px); padding: clamp(10px, 1.4vw, 18px); border-radius: 20px; background: linear-gradient(180deg, #0a0d14, #05070c); border: 1px solid rgba(255, 255, 255, 0.06); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(7px, 1.1vw, 14px); }
.deck-key { position: relative; aspect-ratio: 1.7 / 1; min-width: 0; border-radius: 14px; border: 1px solid rgba(127, 227, 243, 0.26); background: linear-gradient(180deg, #0d2030, #071320); color: #cfeff5; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 4px; font: 700 clamp(0.58rem, 1.02vw, 0.78rem)/1 var(--s-body); letter-spacing: 0.1em; text-transform: uppercase; transition: transform 0.08s, box-shadow 0.2s, filter 0.2s, background 0.2s, border-color 0.2s; -webkit-tap-highlight-color: transparent; }
.deck-key svg { width: clamp(18px, 2.4vw, 28px); height: clamp(18px, 2.4vw, 28px); }
.deck-key b { font: inherit; }
.deck-key:hover:not(:disabled) { filter: brightness(1.2); box-shadow: 0 0 26px rgba(47, 214, 238, 0.22); }
.deck-key:active:not(:disabled) { transform: scale(0.955); }
.deck-key.pressed { animation: keypress 0.22s; }
.deck-key:disabled { opacity: 0.38; cursor: default; }
.deck-key.gold { border-color: rgba(255, 200, 87, 0.75); background: linear-gradient(180deg, #3a2c0b, #1f1705); color: var(--s-gold); }
.deck-key.num { font: 800 clamp(1.1rem, 2.6vw, 1.9rem)/1 var(--s-head); letter-spacing: 0; }
.deck-key.num small { font: 700 clamp(0.5rem, 0.9vw, 0.66rem)/1 var(--s-body); letter-spacing: 0.1em; opacity: 0.8; }
.deck-key[aria-current='true'] { border-color: var(--s-live); background: linear-gradient(180deg, #3a1210, #1c0908); color: #ff8f8a; box-shadow: 0 0 22px rgba(255, 75, 68, 0.3); }
/* A switch that is on is lit plainly: gold is kept for Next. */
.deck-key.toggle[aria-pressed='true'] { border-color: #fff; background: linear-gradient(180deg, #f1f5ff, #c9d5ee); color: #0a1224; box-shadow: 0 0 26px rgba(255, 255, 255, 0.25); }
.deck-key.air[aria-pressed='true'] { border-color: #ff8f8a; background: linear-gradient(180deg, #f2554e, #c7302a); color: #fff; box-shadow: 0 0 30px rgba(255, 75, 68, 0.45); }
.deck-key.air[aria-pressed='false'] { border-color: #5b6a8c; background: linear-gradient(180deg, #1a2338, #101727); color: #b9c6e4; }
@keyframes keypress { 0% { transform: scale(0.93); } 100% { transform: scale(1); } }
.console .small-print { margin-top: 14px; text-align: center; color: var(--s-dim); font-size: 0.86rem; }

@media (max-width: 760px) {
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-box.main { grid-row: auto; grid-column: 1 / -1; }
  .screen-box.main .screen { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .deck-key { aspect-ratio: auto; height: 54px; border-radius: 11px; gap: 4px; letter-spacing: 0.04em; }
  .deck-key b { font-size: 0.56rem; }
  .deck-key.num small { display: none; }
  .deck-key .long { display: none; }
}

/* Sections of the home page. */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.pillar { padding: 24px; border-radius: 20px; border: 1px solid var(--s-line); background: linear-gradient(180deg, rgba(17, 30, 58, 0.7), rgba(12, 22, 44, 0.6)); display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s; }
.pillar:hover { transform: translateY(-3px); border-color: rgba(61, 131, 247, 0.5); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4); }
.pillar .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #04101f; background: var(--s-grad); box-shadow: 0 8px 26px rgba(61, 131, 247, 0.35); }
.pillar .ico svg { width: 24px; height: 24px; }
.pillar p { color: var(--s-muted); font-size: 0.98rem; }
.week { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.day { position: relative; padding: 22px; border-radius: 20px; border: 1px solid var(--s-line); background: rgba(12, 22, 44, 0.65); display: flex; flex-direction: column; gap: 8px; }
.day .when { font: 700 0.72rem/1 var(--s-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--s-glow); }
.day p { color: var(--s-muted); font-size: 0.98rem; }
.day.sunday { border-color: rgba(255, 200, 87, 0.5); background: linear-gradient(180deg, rgba(58, 44, 11, 0.5), rgba(12, 22, 44, 0.65)); }
.day.sunday .when { color: var(--s-gold); }
.shot-stack { position: relative; padding-bottom: 9%; }
.shot-stack .frame + .frame { position: absolute; width: 56%; right: -2%; bottom: 0; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); }
.callout { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px); border-radius: 28px; border: 1px solid var(--s-line-2); background: radial-gradient(70% 120% at 0% 0%, rgba(47, 214, 238, 0.16), transparent 62%), radial-gradient(70% 120% at 100% 100%, rgba(138, 92, 246, 0.22), transparent 62%), #0b152b; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.callout h2 { max-width: 20ch; }
.callout p { color: var(--s-muted); max-width: 52ch; }

/* Sections rise into place as they are reached (only when the page's script is running). */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .rise.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .site *, .site-top * { transition: none !important; animation: none !important; }
}
