/* Orbit for Canvas: website styles. v3 tokens are "Night Orbit" (see :root; was GitHub Dimmed per ../DESIGN.md, Schibsted Grotesk,
   squircle corners, layered depth, one load-in). No inline styles anywhere: the CSP in netlify.toml blocks them. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* v3 "Night Orbit": the logo's night sky; gold only for the install button and grade highlights */
  --ground: #05070e; --bg: #070a14; --s1: #10152a; --s2: #161d36; --s3: #1e2744;
  --line: rgba(139,157,255,.16); --line-2: rgba(139,157,255,.3);
  --fg: #eef1fb; --text: #b4bcd6; --muted: #8a93b2;
  --accent: #8b9dff; --accent-ink: #0a0d16; --link: #aab6ff; --gold: #f2b632;
  --h-assign: #8b9dff; --h-quiz: #b89cff; --h-post: #39c5cf; --h-grade: #57ab5a; --h-soon: #e0823d; --h-bad: #ff6b70;
  --r-lg: 22px; --r: 16px; --r-sm: 11px;
  --raise-1: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.35), 0 8px 24px -14px rgba(0,0,0,.65);
  --raise-2: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 6px rgba(0,0,0,.35), 0 18px 44px -20px rgba(0,0,0,.75);
  --raise-3: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.4), 0 40px 90px -30px rgba(0,0,0,.9);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body.home { background: transparent; }
body {
  margin: 0; font: 400 16px/1.6 "Schibsted Grotesk", system-ui, sans-serif; color: var(--text);
  background:
    radial-gradient(1100px 620px at 8% -10%, rgba(127, 140, 247, .18), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(184, 156, 255, .10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--fg); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code, kbd { font: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sq { border-radius: var(--r); corner-shape: squircle; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.brand small { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 12px;
  border-radius: var(--r-sm); corner-shape: squircle; transition: background .2s var(--ease), color .2s var(--ease); }
.nav a:hover { background: var(--s1); color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--s1); box-shadow: var(--raise-1); }

/* ---------- buttons ---------- */
/* Install link. TODO(Andrew): swap for Google's official "Available in the Chrome Web Store" badge image
   (developer.chrome.com/docs/webstore/branding), unmodified, once downloaded. This is a stand-in in the same spirit. */
.cws { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; text-decoration: none;
  background: #fff; color: #1f1f1f; border-radius: var(--r-sm); corner-shape: squircle; box-shadow: var(--raise-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); line-height: 1.15; }
.cws:hover { transform: translateY(-1px); box-shadow: var(--raise-2); }
.cws:active { transform: translateY(0); }
.cws svg, .cws img { width: 30px; height: 30px; flex: none; }
.cws span { display: flex; flex-direction: column; }
.cws small { font-size: 12px; color: #444; font-weight: 500; }
.cws b { font-size: 16px; font-weight: 700; }
.ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--fg); text-decoration: none; font-weight: 600;
  border-radius: var(--r-sm); corner-shape: squircle; transition: background .2s var(--ease); }
.ghost:hover { background: var(--s1); }
.ghost svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.ghost:hover svg { transform: translateY(2px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow-x: clip; padding: clamp(32px, 7vw, 88px) 0 0; }
.orbit-ring { position: absolute; z-index: 0; pointer-events: none; left: 50%; top: -40px; width: min(1500px, 140vw); transform: translateX(-50%); overflow: visible; }
.orbit-ring path { fill: none; stroke: var(--accent); stroke-opacity: .28; stroke-width: 1.2; }
.orbit-ring circle { fill: var(--accent); }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--h-grade); box-shadow: 0 0 0 3px rgba(87,171,90,.2); }
.hero h1 { font-size: clamp(48px, 9.4vw, 124px); font-weight: 800; letter-spacing: -.045em; line-height: .92; max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--text); max-width: 34em; margin: 28px 0 32px; }
.lede strong { color: var(--fg); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.fine code { color: var(--fg); }

.stage { margin-top: clamp(48px, 7vw, 80px); }
.frame { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); corner-shape: squircle; box-shadow: var(--raise-3); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--s2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.url { flex: 1; max-width: 360px; font-size: 13px; color: var(--muted); background: var(--bg); padding: 4px 12px; border-radius: 8px; corner-shape: squircle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shots { position: relative; aspect-ratio: 1600 / 1017; background: var(--bg); }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .35s var(--ease); }
.shots img.on { opacity: 1; }

.themes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; }
.themes-label { font-size: 14px; color: var(--muted); margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 inherit; font-family: inherit; color: var(--text);
  background: var(--s1); border: 1px solid var(--line); padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip:hover { background: var(--s2); color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, var(--s1)); }
.sw { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.sw-github { background: linear-gradient(135deg, #22272e 50%, #539bf5 50%); }
.sw-alpine { background: linear-gradient(135deg, #152331 50%, #7fb3d5 50%); }
.sw-tokyonight { background: linear-gradient(135deg, #1a1b26 50%, #7aa2f7 50%); }
.sw-cloud { background: linear-gradient(135deg, #e9edf3 50%, #2f6fe4 50%); }
.sw-dracula { background: linear-gradient(135deg, #282a36 50%, #bd93f9 50%); }
.sw-oceanpic { background: linear-gradient(135deg, #0c242d 50%, #3ec6d6 50%); }
.themes-more { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.section-h { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-h h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.035em; }
.section-h p { margin: 16px 0 0; font-size: 18px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 112px); }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 16px; }
.kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--h); }
.kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--h); }
.h-assign { --h: var(--h-assign); } .h-grade { --h: var(--h-grade); } .h-quiz { --h: #b195ea; } .h-soon { --h: var(--h-soon); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--h); border-bottom: 2px solid var(--h); transform: rotate(-45deg); }
.ticks strong { color: var(--fg); font-weight: 600; }

/* tinted showcase: the DESIGN.md tint recipe in the feature's own hue */
.tint { padding: clamp(16px, 3vw, 32px); border-radius: var(--r-lg); corner-shape: squircle;
  background: color-mix(in srgb, var(--h) 9%, var(--s1));
  border: 1px solid color-mix(in srgb, var(--h) 30%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 10%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--h) 45%, transparent), var(--raise-1); }
.tint img { width: 100%; border-radius: var(--r); corner-shape: squircle; box-shadow: var(--raise-2); margin: 0 auto; }
.tint .narrow { max-width: 340px; }
.tint .mid { max-width: 420px; }

.keys { display: grid; gap: 14px; }
.key-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--s1); border-radius: var(--r); corner-shape: squircle; box-shadow: var(--raise-1); }
.key-row span { color: var(--text); font-size: 15px; }
.key-row .kk { display: flex; gap: 6px; flex: none; min-width: 150px; }
kbd { display: inline-block; min-width: 34px; text-align: center; padding: 6px 10px; font-size: 14px; font-weight: 700; color: var(--fg);
  background: var(--s2); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 9px; corner-shape: squircle; }
p kbd, li kbd, dd kbd { padding: 1px 7px; font-size: 13px; border-bottom-width: 2px; min-width: 0; }

/* inset list (iOS Settings style) */
.inset { list-style: none; margin: 0; padding: 0; background: var(--s1); border-radius: var(--r-lg); corner-shape: squircle; box-shadow: var(--raise-2); }
.inset li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 24px; padding: 18px 24px; align-items: baseline; }
.inset li + li { border-top: 1px solid var(--line); }
.inset dt, .inset .q { color: var(--fg); font-weight: 600; }
.inset .a { color: var(--text); }
.inset .no { color: #6bc46d; font-weight: 700; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.privacy-grid .section-h { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--s1); border-radius: var(--r); corner-shape: squircle; box-shadow: var(--raise-1); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; color: var(--fg); font-weight: 600; font-size: 17px; border-radius: var(--r); corner-shape: squircle; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .ans { padding: 0 22px 20px; }
.faq .ans p:last-child, .faq .ans ul:last-child { margin-bottom: 0; }
.faq .ans ul { padding-left: 20px; margin: 0 0 1em; }
.faq .ans li + li { margin-top: 6px; }

/* closing call to action */
.closer { text-align: center; padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 64px); }
.closer h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -.045em; }
.closer p { margin: 16px auto 32px; max-width: 32em; font-size: 18px; }
.closer .cta { justify-content: center; }

/* ---------- inner pages ---------- */
.page { padding-top: clamp(32px, 6vw, 72px); }
.page-h { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.page-h h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.page-h p { font-size: clamp(17px, 2vw, 20px); margin: 20px 0 0; }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.03em; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; letter-spacing: -.01em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose code { color: var(--fg); background: var(--s1); padding: 1px 6px; border-radius: 6px; font-size: .94em; }
.meta { color: var(--muted); font-size: 14px; }
.note { padding: 18px 22px; margin: 24px 0; --h: var(--h-post); border-radius: var(--r); corner-shape: squircle;
  background: color-mix(in srgb, var(--h) 9%, var(--s1)); border: 1px solid color-mix(in srgb, var(--h) 30%, transparent); }
.note p:last-child { margin: 0; }
.todo { --h: var(--h-soon); }
.split { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 24px; display: grid; gap: 2px; font-size: 14px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; corner-shape: squircle; }
.toc a:hover { color: var(--fg); background: var(--s1); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; scroll-margin-top: 24px; }

.perm { margin: 0 0 1em; }
.perm li { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.perm code { background: var(--s2); }

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 9px; corner-shape: squircle; }
.steps li + li { margin-top: 14px; }

/* changelog: versions are a real sequence, so they get a timeline */
.log { max-width: 46rem; list-style: none; margin: 0; padding: 0; }
.release { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.release:first-child { border-top: 0; padding-top: 0; }
.ver { font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--fg); line-height: 1; }
.ver time { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.release h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.release ul { margin: 0; padding-left: 20px; list-style: disc; }
.release li + li { margin-top: 8px; }
.latest { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 700; vertical-align: middle; color: #6bc46d;
  padding: 2px 8px; border-radius: 999px; background: rgba(87,171,90,.14); border: 1px solid rgba(87,171,90,.4); letter-spacing: 0; }

.lost { min-height: 50vh; display: grid; align-content: center; }
.lost .big { font-size: clamp(96px, 20vw, 200px); font-weight: 900; letter-spacing: -.06em; line-height: .85; color: var(--s3); margin: 0 0 24px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(80px, 10vw, 128px); border-top: 1px solid var(--line); background: var(--ground); }
.foot .wrap { padding-top: 48px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot h2 { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }
.foot .blurb { max-width: 26em; margin: 12px 0 0; font-size: 15px; }
.legal { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- the one load-in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .13s; } .d3 { animation-delay: .21s; } .d4 { animation-delay: .29s; } .d5 { animation-delay: .45s; }
  .orbit-ring path { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 1.6s .2s var(--ease) forwards; }
  .orbit-ring circle { offset-path: path("M 40 330 A 710 210 0 0 1 1460 330 A 710 210 0 0 1 40 330"); offset-distance: 0%; animation: moon 2.2s .2s var(--ease) forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes moon { to { offset-distance: 38%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .orbit-ring circle { offset-path: path("M 40 330 A 710 210 0 0 1 1460 330 A 710 210 0 0 1 40 330"); offset-distance: 38%; }
}

/* ---------- widths ---------- */
@media (max-width: 900px) {
  .feature, .privacy-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-text { order: 0; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .top .wrap { gap: 12px; }
  .nav { margin-left: -12px; width: calc(100% + 12px); }
  .nav a { padding: 6px 10px; font-size: 14px; flex: none; }
  /* one row on phones: it scrolls sideways if it ever doesn't fit, instead of wrapping onto a second line */
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; }
  .inset li, .perm li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 18px; }
  .release { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .key-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .frame-bar { padding: 8px 10px; }
  .themes-label { width: 100%; }
  .shots { aspect-ratio: 1 / 1; }
}
.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; }
.prose .inset { padding: 0; margin: 0 0 1em; }
.prose .inset li + li { margin-top: 0; }
#credits { margin-top: 56px; }

/* =====================================================================================================
   v3 "Night Orbit" (2026-11-07): the site lives in the Orbit logo's night sky. Effects are CSS + site.js;
   site.js sets the scroll/pointer variables. Everything has a still fallback under reduced motion.
   ===================================================================================================== */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #0f1430 0%, #080b18 45%, #05070e 100%); }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; transform: translateZ(0); }
.a1 { width: 62vw; height: 42vw; left: -12vw; top: -14vw; background: radial-gradient(closest-side, rgba(127,140,247,.55), transparent); }
.a2 { width: 50vw; height: 36vw; right: -14vw; top: 18vh; background: radial-gradient(closest-side, rgba(184,156,255,.38), transparent); }
.a3 { width: 46vw; height: 30vw; left: 26vw; bottom: -18vw; background: radial-gradient(closest-side, rgba(61,139,242,.32), transparent); }
.rings { position: absolute; left: 50%; top: 38vh; width: 150vmax; height: 150vmax; transform: translate(-50%, -50%) rotate(-12deg) translateY(calc(var(--ry, 0) * 1px)); will-change: transform, rotate; }
.rings ellipse { fill: none; stroke: rgba(139,157,255,.12); stroke-width: 1.2; }
.rings .r2 { stroke: rgba(184,156,255,.10); } .rings .r3 { stroke: rgba(242,182,50,.08); }

.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }

/* ---------- hero ---------- */
.hero2 { position: relative; padding: clamp(40px, 8vw, 104px) 0 0; text-align: center; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg);
  background: rgba(139,157,255,.10); border: 1px solid rgba(139,157,255,.28); box-shadow: 0 0 30px -8px rgba(139,157,255,.6); margin: 0 0 28px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero2 h1 { font-size: clamp(56px, 11vw, 156px); font-weight: 900; letter-spacing: -.055em; line-height: .9; color: var(--fg); }
.hero2 h1 em { display: block; font-style: normal; color: #a9b3ff; white-space: nowrap; }
.js .hero2 h1 em .ch { color: transparent; background: linear-gradient(100deg, #c9b6ff 0%, #8b9dff 40%, #4f9bff 70%, #f2b632 100%) no-repeat;
  background-size: 900% 100%; background-position: calc((var(--i) - 7) * 12.5%) 0; -webkit-background-clip: text; background-clip: text; }
.letters .wd { display: inline-block; white-space: nowrap; }
.letters .ch { display: inline-block; }
.hero2 .lede { margin: 28px auto 34px; max-width: 34em; }
.hero2 .cta { justify-content: center; }
.get { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; text-decoration: none; line-height: 1.15;
  color: #1a1200; border-radius: 16px; corner-shape: squircle; overflow: hidden;
  background: linear-gradient(180deg, #ffd36e, #f2b632); box-shadow: 0 0 0 1px rgba(255,230,160,.6) inset, 0 14px 40px -12px rgba(242,182,50,.75);
  transform: translate(var(--mx, 0), var(--my, 0)); transition: box-shadow .3s var(--ease); }
.get:hover { box-shadow: 0 0 0 1px rgba(255,240,190,.8) inset, 0 18px 54px -10px rgba(242,182,50,.95); }
.get img { width: 28px; height: 28px; flex: none; }
.get span { display: flex; flex-direction: column; text-align: left; }
.get small { font-size: 12px; font-weight: 600; color: rgba(26,18,0,.7); }
.get b { font-size: 17px; font-weight: 800; }
.get::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); }

.deck { position: relative; z-index: 1; width: min(1180px, 92vw); margin: clamp(56px, 8vw, 96px) auto 0; perspective: 1600px; --p: 0; --tx: 0; --ty: 0; }
.deck-glow { position: absolute; left: 8%; right: 8%; top: 20%; bottom: -10%; border-radius: 50%; filter: blur(70px);
  background: radial-gradient(closest-side, rgba(127,140,247,.65), rgba(61,139,242,.25) 60%, transparent); }
.screen { position: relative; border-radius: 22px; corner-shape: squircle; overflow: hidden; transform-origin: 50% 0%;
  border: 1px solid rgba(139,157,255,.35); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 60px 120px -40px rgba(0,0,0,.9), 0 0 80px -20px rgba(139,157,255,.55);
  transform: rotateX(calc((1 - var(--p)) * 26deg + var(--ty) * 1deg)) rotateY(calc(var(--tx) * 1deg)) scale(calc(.88 + var(--p) * .12)); }
.screen img { width: 100%; }
/* panels peel off the dashboard as the hero scrolls away */
.peel { position: absolute; z-index: 2; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
  opacity: calc(var(--p) * 1.6 - .2); will-change: transform; }
.p-up { width: 22%; right: 2.4%; top: 21%; transform: translate(calc(var(--p) * 18%), calc(var(--p) * -28%)) rotate(calc(var(--p) * 4deg)) scale(calc(1 + var(--p) * .18)); }
.p-wk { width: 22%; right: 2.4%; top: 46%; transform: translate(calc(var(--p) * 34%), calc(var(--p) * 6%)) rotate(calc(var(--p) * -3deg)) scale(calc(1 + var(--p) * .22)); }
.p-ms { width: 22%; right: 2.4%; top: 77%; transform: translate(calc(var(--p) * 22%), calc(var(--p) * 30%)) rotate(calc(var(--p) * 3deg)) scale(calc(1 + var(--p) * .2)); }
.p-c1 { width: 22%; left: 7.6%; top: 25%; transform: translate(calc(var(--p) * -42%), calc(var(--p) * -18%)) rotate(calc(var(--p) * -6deg)) scale(calc(1 + var(--p) * .16)); }
.p-c3 { width: 22%; left: 52.8%; top: 25%; transform: translate(calc(var(--p) * 10%), calc(var(--p) * -62%)) rotate(calc(var(--p) * 5deg)) scale(calc(1 + var(--p) * .14)); }

/* ---------- themes: pinned ---------- */
.retheme { position: relative; height: 320vh; margin-top: clamp(80px, 10vw, 140px); --q: 0; }
.pin { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
.flood { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent); background: var(--flood, #0b1650); clip-path: circle(var(--fr, 0%) at 72% 50%); transition: background .6s var(--ease); opacity: .9; }
.flood::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 72% 50%, rgba(255,255,255,.10), transparent 60%), linear-gradient(90deg, rgba(5,7,14,.85), transparent 55%); }
.retheme-grid { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.retheme h2 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 900; letter-spacing: -.05em; line-height: .95; }
.retheme .count { color: var(--gold); }
.retheme .tname { display: inline-block; font-size: .42em; letter-spacing: -.02em; color: var(--accent); margin-top: 14px; }
.retheme-copy > p { margin: 20px 0 24px; max-width: 28em; font-size: 18px; }
.retheme-shot { position: relative; transform: perspective(1400px) rotateY(calc(-14deg + var(--q) * 10deg)) rotateX(4deg); }
.retheme .shots { border-radius: 18px; corner-shape: squircle; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 60px -20px rgba(139,157,255,.5); }
.retheme .shots img { transition: none; clip-path: circle(0% at 0% 50%); opacity: 1; }
.retheme .shots img.on { clip-path: circle(150% at 0% 50%); transition: clip-path .7s cubic-bezier(.65,0,.35,1); z-index: 1; }
.retheme .shots img.was { clip-path: circle(150% at 0% 50%); z-index: 0; }
.progress { height: 4px; margin-top: 18px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress i { display: block; height: 100%; width: calc(var(--q) * 100%); background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 28px; border-radius: 24px; corner-shape: squircle; background: rgba(16,21,42,.72);
  border: 1px solid rgba(139,157,255,.16); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 60px -40px rgba(0,0,0,.9); }
.tile h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.03em; margin: 10px 0 10px; }
.tile p { margin: 0; }
.tile .kind { --h: var(--accent); }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy2, 50%), rgba(139,157,255,.16), transparent 60%); }
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: rgba(139,157,255,.38); }
.t-next { grid-column: span 3; } .t-week { grid-column: span 3; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; }
.t-week .ring { grid-row: span 3; width: 132px; height: 132px; transform: rotate(-90deg); }
.t-week h3, .t-week .kind, .t-week .ring-n { grid-column: 1; }
.ring circle { fill: none; stroke-width: 12; } .ring .rt { stroke: rgba(255,255,255,.08); }
.ring .rf { stroke: #8b9dff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s cubic-bezier(.16,1,.3,1) .2s; }
.t-week.seen .ring .rf { stroke-dashoffset: 11; }
.ring-n b { font-size: 34px; color: var(--fg); }
.t-miss { grid-column: span 2; --h: #ff6b70; background: linear-gradient(160deg, rgba(122,16,34,.55), rgba(16,21,42,.72) 60%); border-color: rgba(255,107,112,.28); }
.t-miss .kind { --h: #ff6b70; }
.big-n { font-size: clamp(56px, 6vw, 84px); font-weight: 900; letter-spacing: -.05em; line-height: 1; color: #ff9aa2; margin: 6px 0 10px !important; }
.t-gpa { grid-column: span 4; background: linear-gradient(160deg, rgba(110,70,0,.45), rgba(16,21,42,.72) 60%); border-color: rgba(242,182,50,.28); }
.t-gpa .kind { --h: var(--gold); }
.need { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 18px; color: var(--text); }
.need b { font-size: clamp(56px, 6vw, 84px); font-weight: 900; letter-spacing: -.05em; color: #ffc94d; line-height: 1; }
.need b::after { content: "%"; }
.t-cards { grid-column: span 3; display: grid; place-items: center; min-height: 300px; padding: 0; background: radial-gradient(70% 70% at 50% 60%, rgba(61,139,242,.25), rgba(16,21,42,.72)); }
.t-cards img { position: absolute; width: 44%; border-radius: 14px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.85); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.t-cards img:nth-child(1) { transform: translate(-46%, 6%) rotate(-8deg); }
.t-cards img:nth-child(2) { transform: translate(0, -4%) rotate(0deg); z-index: 1; }
.t-cards img:nth-child(3) { transform: translate(46%, 6%) rotate(8deg); }
.t-cards:hover img:nth-child(1) { transform: translate(-62%, 10%) rotate(-14deg); }
.t-cards:hover img:nth-child(2) { transform: translate(0, -10%) rotate(0deg) scale(1.04); }
.t-cards:hover img:nth-child(3) { transform: translate(62%, 10%) rotate(14deg); }
.t-keys { grid-column: span 3; }
.keys2 { display: flex; gap: 10px; margin: 4px 0 16px; }
.keys2 kbd { font-size: 26px; padding: 12px 18px; min-width: 64px; border-radius: 14px; background: rgba(139,157,255,.12); border-color: rgba(139,157,255,.35); }
.cd { margin-top: 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; padding: 16px 20px; border-radius: 16px; background: rgba(139,157,255,.10); border: 1px solid rgba(139,157,255,.22); }
.cd b { font-size: clamp(30px, 3vw, 40px); font-weight: 900; letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- marquee ---------- */
.marquee { margin-top: clamp(72px, 9vw, 120px); overflow: hidden; border-block: 1px solid rgba(139,157,255,.14); padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; }
.marquee span { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; color: rgba(238,241,251,.18); white-space: nowrap; transition: color .3s var(--ease); }
.marquee span:hover { color: var(--fg); }

/* ---------- privacy orbit ---------- */
.privacy2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.privacy2 .inset { grid-column: 1 / -1; }
.orbitfacts { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
.orbitfacts .planet { width: 34%; filter: drop-shadow(0 0 40px rgba(127,140,247,.7)); }
.track-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(139,157,255,.3); }
.track-ring .f { position: absolute; left: 50%; top: 50%; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--fg);
  background: rgba(16,21,42,.9); border: 1px solid rgba(139,157,255,.35); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.f1 { --a: 0deg; } .f2 { --a: 90deg; } .f3 { --a: 180deg; } .f4 { --a: 270deg; }
.track-ring .f { transform: translate(-50%, -50%) rotate(calc(var(--a) + var(--spin, 0deg))) translateY(calc(-1 * min(42vw, 196px))) rotate(calc(-1 * (var(--a) + var(--spin, 0deg)))); }

/* ---------- closer ---------- */
.closer2 { position: relative; overflow: hidden; text-align: center; padding: clamp(120px, 16vw, 220px) 0 clamp(60px, 8vw, 100px); }
.closer2 h2 { position: relative; font-size: clamp(48px, 8vw, 112px); font-weight: 900; letter-spacing: -.055em; line-height: .95; }
.closer2 h2 em { font-style: normal; color: var(--gold); }
.closer2 p { position: relative; margin: 18px auto 32px; font-size: 18px; }
.closer2 .cta { position: relative; justify-content: center; }
.horizon { position: absolute; left: 50%; top: 100%; width: min(620px, 110vw); transform: translate(-50%, calc(-34% + (1 - var(--p, 0)) * 26%)); opacity: .42; filter: drop-shadow(0 0 70px rgba(127,140,247,.7)); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 62%); mask-image: linear-gradient(180deg, #000 30%, transparent 62%); }
.horizon img { width: 100%; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .9s cubic-bezier(.16,1,.3,1); }
.js .reveal.seen { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2) { transition-delay: .08s; } .js .bento .reveal:nth-child(3) { transition-delay: .16s; }
.js .bento .reveal:nth-child(4) { transition-delay: .08s; } .js .bento .reveal:nth-child(5) { transition-delay: .12s; } .js .bento .reveal:nth-child(6) { transition-delay: .2s; }

@media (prefers-reduced-motion: no-preference) {
  .js .letters .ch { opacity: 0; transform: translateY(.6em) rotate(6deg); filter: blur(8px); animation: chIn .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(.1s + var(--i) * .035s); }
  .js .in { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.16,1,.3,1) forwards; }
  .js .pill.in { animation-delay: 0s; } .js .lede.in { animation-delay: .55s; } .js .cta.in { animation-delay: .68s; } .js .fine.in { animation-delay: .8s; }
  .js .deck { animation: deckIn 1.4s cubic-bezier(.16,1,.3,1) .5s both; }
  .rings { animation: spin 160s linear infinite; }
  .get::after { animation: sheen 6s ease-in-out 2s infinite; }
  .marquee .track { animation: marq 42s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }
}
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes deckIn { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .deck { --p: .5 !important; }
  .peel { opacity: 1; }
  .retheme { height: auto; } .pin { position: relative; height: auto; padding: 80px 0; }
  .flood { clip-path: none; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .retheme-grid, .privacy2 { grid-template-columns: minmax(0, 1fr); }
  .retheme { height: 240vh; }
  .retheme-shot { transform: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; }
  .t-week { grid-template-columns: 1fr; } .t-week .ring { grid-row: auto; }
  .peel { display: none; }
}
@media (hover: none) { .get { transform: none; } }

/* performance: moving pieces get their own compositor layer, so their shadows are painted once, not every frame */
.screen, .peel, .retheme-shot, .retheme .shots img, .get, .deck-glow, #stars { will-change: transform; }
.js .letters .ch { will-change: transform, opacity, filter; }
.js .letters .ch.done { will-change: auto; }
