/* Nexus Revamped - site styles. No frameworks, no build step. */

/* ---------- tokens ---------- */
:root {
  --bg:        #07090c;
  --bg-soft:   #0d1117;
  --bg-card:   #11161e;
  --line:      #1e2733;
  --text:      #e7edf5;
  --muted:     #93a2b5;
  --accent:    #00e676;   /* nexus green  */
  --accent-2:  #008aff;   /* nexus blue   */
  --accent-3:  #ff3d3d;   /* nexus red    */
  --accent-4:  #ffd600;   /* nexus yellow */
  --sale:      #ffb400;
  --radius:    14px;
  --maxw:      1120px;
  --shadow:    0 18px 50px rgba(0,0,0,.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
code { font-family: var(--mono); font-size: .9em; background: #0b1016; padding: .15em .4em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--accent); color: #04120a;
  padding: 10px 16px; border-radius: 8px; z-index: 200; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(7,9,12,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links a.sale-link { color: var(--sale); display: none; }
/* anything tagged .sale-item only exists while there is a sale on */
.sale-item { display: none; }
html[data-sale-state="live"] .sale-item,
html[data-sale-state="soon"] .sale-item { display: list-item; }
html[data-sale-state="live"] .nav-links a.sale-link,
html[data-sale-state="soon"] .nav-links a.sale-link { display: block; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 7px 11px; font-size: 1rem; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; width: 100%; border-top: 1px solid var(--line); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, filter .12s ease;
  background: var(--accent); color: #04120a; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sale { background: var(--sale); color: #241700; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.play-badge { height: 58px; width: auto; }
.play-badge:hover { filter: brightness(1.1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 12%, rgba(7,9,12,.05) 0%, rgba(7,9,12,.62) 62%, rgba(7,9,12,.95) 100%),
    /* the last stop is the page background, so the wallpaper fades out into the
       next section instead of stopping on a hard edge */
    linear-gradient(to bottom, rgba(7,9,12,.55), rgba(7,9,12,0) 28%,
                    rgba(7,9,12,0) 62%, rgba(7,9,12,.72) 88%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0; text-align: center; }
.hero h1 { margin-bottom: .25em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--text); min-height: 1.6em;
  font-weight: 500; margin-bottom: 1.2em;
}
.cursor { color: var(--accent); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { max-width: 620px; margin: 0 auto 2em; color: #c6d2e0; }
kbd {
  font-family: var(--mono); font-size: .8em; background: #161d27; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; color: var(--text);
}
@media (max-width: 700px) {
  .hero::after { background:
    radial-gradient(120% 80% at 50% 12%, rgba(7,9,12,.3) 0%, rgba(7,9,12,.75) 60%, rgba(7,9,12,.96) 100%); }
}
.stat-row { display: flex; gap: 38px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.stat b { display: block; font-size: 1.7rem; color: var(--accent); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 52px 0; }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }
.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- cards / features ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #2c3a4b; transform: translateY(-2px); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 16px; font-size: 1.25rem; background: rgba(0,230,118,.12); color: var(--accent);
}
.card:nth-child(4n+2) .ico { background: rgba(0,138,255,.12); color: var(--accent-2); }
.card:nth-child(4n+3) .ico { background: rgba(255,61,61,.12); color: var(--accent-3); }
.card:nth-child(4n+4) .ico { background: rgba(255,214,0,.12); color: var(--accent-4); }

.badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.pill {
  border: 1px solid var(--line); background: var(--bg-card); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: .84rem;
}
.pill-live { color: var(--accent); border-color: rgba(0,230,118,.35); }

/* ---------- device frame ---------- */
.devices { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; }
.device {
  --dw: 260px;
  width: var(--dw); flex: 0 0 auto;
}
.device-frame {
  position: relative; width: 100%; aspect-ratio: 9 / 19.5;
  background: linear-gradient(145deg, #2a3240, #10141b 60%);
  border-radius: calc(var(--dw) / 9);
  padding: 9px; box-shadow: var(--shadow), 0 0 0 1px #39445400;
}
.device-frame::before { /* side button */
  content: ""; position: absolute; right: -2px; top: 22%; width: 3px; height: 9%;
  background: #39455a; border-radius: 2px;
}
.device-frame::after { /* volume rocker */
  content: ""; position: absolute; left: -2px; top: 17%; width: 3px; height: 14%;
  background: #39455a; border-radius: 2px;
}
.device-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: #000;
  border-radius: calc(var(--dw) / 11);
}
.device-screen canvas, .device-screen img { width: 100%; height: 100%; object-fit: cover; }
/* drag the screen to pan the wallpaper; pan-y keeps the page scrollable */
.device-screen canvas { touch-action: pan-y; cursor: grab; }
.device-screen canvas:active { cursor: grabbing; }
.device-punch {
  position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%);
  width: 7.5%; aspect-ratio: 1; background: #05070a; border-radius: 50%; z-index: 3;
}
.device-caption { text-align: center; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.device-caption b { display: block; color: var(--text); font-size: 1rem; }

/* homescreen dressing so a wallpaper shot reads as a phone */
.home-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.8); font-size: calc(var(--dw) / 26); }
.home-status { display: flex; justify-content: space-between; padding: 4.5% 7% 0; font-size: .72em; opacity: .95; }
.home-clock { text-align: center; margin-top: 9%; line-height: 1; }
.home-clock b { display: block; font-size: 3.1em; font-weight: 300; letter-spacing: -.02em; }
.home-clock span { font-size: .95em; opacity: .9; }
.home-icon { aspect-ratio: 1; border-radius: 30%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10); }
.home-dock { margin: auto 9% 7%; padding: 4% 5%; border-radius: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9%; }
.home-dock .home-icon { background: rgba(255,255,255,.14); }

/* ---------- phone wall ---------- */
.phone-wall {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2.4vw, 26px);
  padding: clamp(20px, 4vw, 42px) clamp(8px, 2vw, 16px); border-radius: var(--radius);
  background: linear-gradient(135deg, #0b1118, #141c26);
  border: 1px solid var(--line);
}
/* the phones scale with the viewport rather than wrapping into a tall stack */
.phone-wall .device { --dw: clamp(86px, 24vw, 200px); }
.phone-wall .device:nth-child(2) { --dw: clamp(100px, 27vw, 230px); }
.phone-wall .device { transition: transform .3s ease; }
.phone-wall .device:first-child { transform: rotate(-6deg) translateY(10px); }
.phone-wall .device:last-child  { transform: rotate(6deg) translateY(10px); }
.phone-wall .device:hover, .phone-wall .device:focus-within { transform: none; z-index: 2; }
@media (max-width: 720px) {
  /* at this size the fan just makes the screens smaller - stand them up */
  .phone-wall .device:first-child, .phone-wall .device:last-child { transform: none; }
  .phone-wall .device-caption { font-size: .76rem; margin-top: 9px; }
  .phone-wall .device-caption b { font-size: .82rem; }
}

/* ---------- theme gallery ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.theme-tile {
  margin: 0;
  position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #000; aspect-ratio: 9 / 16; cursor: pointer; padding: 0;
}
.theme-tile canvas, .theme-tile img { width: 100%; height: 100%; object-fit: cover; }
.theme-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; font-size: .82rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent); text-align: left; color: #fff;
}
.theme-tile:hover, .theme-tile:focus-visible { border-color: var(--accent); }

/* ---------- sale ---------- */
.sale-banner {
  background: linear-gradient(90deg, #2a1c00, #4a3200 50%, #2a1c00);
  border-bottom: 1px solid #6b4a00; color: #ffdf8a; font-size: .95rem;
  position: relative;
  /* every state is in the markup; sale.js sets <html data-sale-state> in the
     <head>, so the right one - and only the right one - is in the first paint */
  display: none;
}
html[data-sale-state="live"]:not([data-sale-dismissed]) .sale-banner[data-sale-only],
html[data-sale-state="soon"]:not([data-sale-dismissed]) .sale-banner[data-sale-soon] {
  display: block;
}
.sale-banner .wrap { display: flex; gap: 14px; align-items: center; justify-content: center;
  padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap; text-align: center; }
.sale-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.sale-banner .sale-msg { max-width: 72ch; }
.sale-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #ffdf8a; font-size: 1.3rem; line-height: 1;
  padding: 4px 10px; cursor: pointer; opacity: .7; border-radius: 8px;
}
.sale-close:hover { opacity: 1; background: rgba(255,255,255,.08); }
.sale-banner .wrap { padding-right: 44px; }
@media (max-width: 560px) { .sale-close { top: 6px; transform: none; } }
.sale-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sale);
  animation: pulse 1.6s ease-in-out infinite; flex: 0 0 auto; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.price-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-align: center;
}
.price-card.featured { border-color: var(--sale); box-shadow: 0 0 0 1px var(--sale), var(--shadow); position: relative; }
.price-card .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--sale); color: #241700; font-size: .76rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.price { font-size: 2.6rem; font-weight: 700; line-height: 1.1; margin: 10px 0 2px; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; margin-right: 10px; font-weight: 400; }
.price-note { color: var(--muted); font-size: .86rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.ticks li { padding: 7px 0 7px 28px; position: relative; color: #cfd9e5; font-size: .95rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.ticks li.no { color: var(--muted); }
.ticks li.no::before { content: "–"; color: #5a6878; }

.countdown { display: flex; gap: 12px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.countdown div {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px; min-width: 82px;
}
.countdown b { display: block; font-size: 1.9rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }

.currency-pick {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  justify-content: center; margin-bottom: 26px;
}
.currency-field {
  display: inline-flex; align-items: center; gap: 10px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px;
}
.currency-field:focus-within { border-color: var(--sale); }
.currency-flag { font-size: 1.2rem; line-height: 1.4; }
.currency-select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0;
  color: var(--text); font: inherit; font-size: .95rem; padding: 7px 30px 7px 0;
  cursor: pointer; max-width: 62vw; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%238c9bb0' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 11px;
}
.currency-select:focus-visible { outline: 2px solid var(--sale); outline-offset: 3px; border-radius: 6px; }
/* native dropdowns inherit the page colours badly on some platforms */
.currency-select option { background: #121820; color: #e7edf4; }
.currency-other { font-size: .88rem; padding: 10px 18px; }

/* ---------- faq ---------- */
details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card);
  padding: 16px 20px; margin-bottom: 12px;
}
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--muted); font-size: .96rem; }

/* ---------- prose (legal + story pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2em; }
.prose > h2:first-child, .prose > h1:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; color: #cfd9e5; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.5em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic;
}
/* opening paragraph of a story page */
.prose .lede {
  font-size: 1.24rem; line-height: 1.55; color: #e2ebf5; font-weight: 500;
  letter-spacing: -.01em; margin-bottom: 1.4em; padding-bottom: 1.2em;
  border-bottom: 1px solid var(--line);
}

/* period screenshots: real phone pixels, so they are shown small and sharp
   rather than blown up to fill the column */
.shot-row {
  margin: 2.2em 0; padding: 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(0, 240px)); justify-content: center;
}
.shot-row img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #000;
}
.shot-row figcaption {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  font-size: .88rem; line-height: 1.55; max-width: 560px; margin: 2px auto 0;
}
.shot-row.one { grid-template-columns: 1fr; }
.shot-row.one img { max-width: 230px; margin: 0 auto; }

/* archive photos: real photographs, so they get to break out of the 760px prose
   column a little. .small keeps the squarer ones from dominating the page. */
.prose .photo {
  padding: 0; margin: 2.6em 0;
  width: min(100%, 880px);
  margin-left: 50%; transform: translateX(-50%);
}
.prose .photo.medium { width: min(100%, 560px); }
.prose .photo.small { width: min(100%, 430px); }
.prose .photo img {
  width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #000;
}
.prose .photo figcaption {
  text-align: center; color: var(--muted); font-size: .88rem; line-height: 1.55;
  max-width: 620px; margin: 12px auto 0;
}

/* one line that deserves its own breath */
.prose .pull {
  margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--accent);
  font-size: 1.3rem; line-height: 1.4; font-weight: 700; letter-spacing: -.02em;
  color: var(--text);
}

/* then and now: a 2010 screenshot next to the live renderer */
.thennow {
  margin: 2.4em 0; padding: 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(0, 230px)); justify-content: center;
}
.thennow img, .thennow canvas {
  display: block; width: 100%; aspect-ratio: 360 / 600; height: auto;
  border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000;
}
.thennow canvas { cursor: grab; touch-action: pan-y; }
.thennow b {
  display: block; text-align: center; margin-top: 10px; color: var(--muted);
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.thennow figcaption {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  font-size: .88rem; line-height: 1.55; max-width: 560px; margin: 6px auto 0;
}

/* end of an article: the download button, with the sale strip above it while
   there is a sale on (the strip is data-sale-only, so site.js removes it) */
.story-cta {
  margin: 2.8em 0 1.2em; padding: 26px 24px 28px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.story-cta h3 { margin: 0 0 6px; font-size: 1.3rem; }
.story-cta p { margin: 0 0 18px; font-size: .95rem; }
.story-cta .play-badge { margin: 0 auto; }
.story-cta-sale {
  display: flex; gap: 11px; align-items: flex-start; justify-content: flex-start;
  margin: -4px 0 20px; padding: 11px 16px; border-radius: 10px;
  background: rgba(255,180,0,.1); border: 1px solid rgba(255,180,0,.42);
  color: #ffe2a3; font-size: .93rem; line-height: 1.45; text-align: left;
}
.story-cta-sale b { color: var(--sale); }
.story-cta-sale a { color: var(--sale); font-weight: 600; text-decoration: underline; }
.story-cta-sale .dot {
  width: 8px; height: 8px; margin-top: .45em; border-radius: 50%;
  background: var(--sale); flex: none; box-shadow: 0 0 0 4px rgba(255,180,0,.16);
}
.story-cta-sale .was { text-decoration: line-through; opacity: .7; }

/* the short version, at the end of the story */
.prose .timeline { list-style: none; padding: 0; margin: 2em 0; }
.prose .timeline li {
  position: relative; padding: 0 0 14px 22px; margin: 0;
  border-left: 1px solid var(--line); color: #cfd9e5; font-size: .96rem;
}
.prose .timeline li::before {
  content: ""; position: absolute; left: -4px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.prose .timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.prose .timeline b { display: block; color: var(--text); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; }
/* Same live wallpaper as the home-page hero, just a shallow strip of it. Pages
   without a <canvas> inside still get the padding. */
.page-head {
  position: relative; overflow: hidden; padding: 84px 0 44px;
}
.page-head-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(7,9,12,.3) 0%, rgba(7,9,12,.72) 55%, rgba(7,9,12,.94) 100%),
    /* no rule under the header: it just fades into the page */
    linear-gradient(to bottom, rgba(7,9,12,.6), rgba(7,9,12,.1) 40%,
                    rgba(7,9,12,.8) 86%, var(--bg) 100%);
}
.page-head .wrap { position: relative; z-index: 2; max-width: 760px; }
.page-head h1 { text-shadow: 0 4px 24px rgba(0,0,0,.65); }
/* The tagline is the one line that sells the page, so it is not allowed to look
   like body copy: accent rule, larger type, its own breathing room. */
.page-head p {
  margin: 20px 0 0; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  max-width: 60ch;
  font-size: clamp(1.06rem, 2.4vw, 1.24rem); line-height: 1.5; font-weight: 500;
  color: #dbe5f1; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
/* a date or other small print where a tagline would normally go */
.page-head p.page-meta {
  padding-left: 0; border-left: 0; max-width: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-shadow: none;
}
/* the first section after a header does not need the full 80px on top */
.page-head + section { padding-top: 46px; }
@media (max-width: 700px) { .page-head { padding: 64px 0 26px; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 60px; background: var(--bg-soft); }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #c3cedb; font-size: .94rem; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .86rem; display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- misc ---------- */
.note {
  border-left: 3px solid var(--accent-2); background: rgba(0,138,255,.07);
  padding: 14px 18px; border-radius: 0 10px 10px 0; color: #cfd9e5; font-size: .95rem;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 34px; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
