/* Stardrift Worlds: the site's one stylesheet. Colours and type from brand/stardrift.mjs (brand/README.md, Stardrift Worlds). */
@font-face { font-family: 'Orbitron'; font-weight: 600; font-display: swap; src: url('fonts/orbitron-latin-600-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: 'Lexend'; font-weight: 400; font-display: swap; src: url('fonts/lexend-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 600; font-display: swap; src: url('fonts/lexend-latin-600-normal.woff2') format('woff2'); }

:root {
  --deep: #1b1324; --night: #2a1d33; --plum: #4b3358; --dusk: #5e4d7d; --lavender: #746393;
  --mauve: #aa7a9f; --peach: #dab7a2; --cream: #f2eee6; --soft: #cfc6d6; --body: #e4dceb; --sun: #ffc35a;
  --line: rgba(242, 238, 230, 0.12);
  --display: 'Orbitron', system-ui, sans-serif; --text: 'Lexend', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--deep); color: var(--cream); font-family: var(--text); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--peach); }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 16px; background: var(--peach); color: var(--deep); border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* type */
.display { font-family: var(--display); font-weight: 800; letter-spacing: 0.03em; line-height: 1.04; margin: 0; }
.eyebrow { margin: 0; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.24em; color: var(--peach); }
h1.display { font-size: clamp(40px, 6.2vw, 86px); }
h2.display { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: 0.04em; }
.lead { font-size: 20px; color: var(--body); max-width: 540px; margin: 0; }
.muted { color: var(--soft); }

/* header */
.site-header { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand img { width: auto; height: 40px; display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; }
.site-nav a { color: var(--cream); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--peach); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-family: inherit; font-size: 17px; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--peach); color: var(--deep); }
.btn-primary:hover { background: var(--cream); color: var(--deep); }
.btn-ghost { border-color: rgba(242, 238, 230, 0.55); color: var(--cream); font-weight: 400; }
.btn-ghost:hover { background: rgba(242, 238, 230, 0.08); color: var(--cream); }
.btn-pill { min-height: 44px; padding: 0 20px; font-weight: 400; font-size: 16px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* the sky */
.sky { position: relative; overflow: hidden; padding-bottom: 230px;
  background: url('img/stars.svg') center top / cover no-repeat,
    linear-gradient(180deg, var(--deep) 0%, var(--night) 30%, var(--plum) 58%, #7d5a83 74%, var(--mauve) 84%, var(--peach) 100%); }
.sky::after { content: ''; position: absolute; left: 50%; bottom: 120px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(246, 220, 198, 0.55), rgba(218, 183, 162, 0)); pointer-events: none; }
.sky .land { position: absolute; left: 0; bottom: 0; width: 100%; height: 280px; z-index: 1; }
.hero { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: center; padding-top: 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.phones { position: relative; height: 560px; }
.phones img { position: absolute; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; border: 1px solid rgba(242, 238, 230, 0.3); box-shadow: 0 36px 70px rgba(10, 5, 18, 0.55); }
.phones .front { right: 30%; top: 20px; width: 262px; transform: rotate(-5deg); }
.phones .back { right: 2%; top: 64px; width: 220px; transform: rotate(7deg); }
.dashes { position: absolute; right: 6%; top: -6px; display: flex; flex-direction: column; gap: 14px; transform: rotate(45deg); transform-origin: top right; }
.dashes span { display: block; height: 18px; border-radius: 9px; background: rgba(242, 238, 230, 0.6); }
@media (max-width: 760px) {
  .phones { height: 440px; }
  .dashes { display: none; }
  .phones .front { width: 200px; right: 34%; }
  .phones .back { width: 170px; }
  .sky { padding-bottom: 180px; }
  .sky .land { height: 200px; }
}

/* sections */
.section { padding-top: 88px; padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head p { margin: 0; max-width: 420px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 24px; background: var(--night); border: 1px solid var(--line); color: var(--cream); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); border-color: rgba(218, 183, 162, 0.5); color: var(--cream); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-top svg { width: 40px; height: 40px; }
.card-label { font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; color: var(--soft); }
.card-title { font-size: 24px; font-weight: 600; }
.card-go { color: var(--peach); font-weight: 600; }

/* reels */
.reel { display: flex; flex-direction: column; gap: 16px; color: var(--cream); text-decoration: none; }
.reel-frame { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 16; background: radial-gradient(circle at 50% 40%, var(--plum), var(--deep) 70%); }
.reel-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.reel:hover .reel-frame img { transform: scale(1.03); }
.badge { position: absolute; padding: 4px 12px; border-radius: 999px; background: rgba(27, 19, 36, 0.82); font-size: 14px; }
.badge-new { left: 14px; top: 14px; font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; }
.badge-time { right: 14px; bottom: 14px; border-radius: 8px; }
.reel-title { font-size: 20px; font-weight: 600; line-height: 1.35; }
.reel-sub { color: var(--soft); font-size: 16px; }
.soon { border: 2px dashed rgba(218, 183, 162, 0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.soon img { width: 96px; height: 96px; opacity: 0.85; }
.soon strong { font-family: var(--display); font-weight: 800; letter-spacing: 0.1em; font-size: 18px; }

/* the stories panel */
.panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: center; padding: 40px; border-radius: 36px; background: linear-gradient(135deg, var(--night), var(--plum)); border: 1px solid var(--line); }
.panel-pic { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; }
.panel-pic img { width: 100%; height: 100%; object-fit: cover; }
.panel-copy { display: flex; flex-direction: column; gap: 22px; }
.panel-copy p { margin: 0; color: var(--body); }
@media (max-width: 600px) { .panel { padding: 22px; gap: 28px; } }

/* worlds page */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--night); border: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; color: var(--cream); font: inherit; font-size: 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--peach); color: var(--deep); font-weight: 600; }
.feature { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 36px; border-radius: 36px; background: linear-gradient(135deg, var(--night), #3a2747); border: 1px solid var(--line); }
.feature-pic { flex: 0 0 auto; width: min(340px, 100%); }
.feature-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.feature-copy h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; font-weight: 600; }
.chip { align-self: flex-start; padding: 6px 16px; border-radius: 10px; background: var(--sun); color: var(--deep); font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.16em; }
.planets { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.planets li { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; border-radius: 16px; background: rgba(27, 19, 36, 0.55); border: 1px solid var(--line); }
.planets b { font-family: var(--display); font-weight: 800; color: var(--peach); }
.watch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.picker button { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none; color: var(--cream); font: inherit; text-align: left; cursor: pointer; }
.picker button .reel-frame { outline: 3px solid transparent; outline-offset: 4px; transition: outline-color .15s ease; }
.picker button[aria-pressed="true"] .reel-frame { outline-color: var(--peach); }
[hidden] { display: none !important; }

/* about */
.about-hero { position: relative; border-radius: 36px; overflow: hidden; min-height: 500px; display: flex; align-items: flex-end; }
.about-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 19, 36, 0) 30%, rgba(27, 19, 36, 0.92) 100%); }
.about-hero div { position: relative; z-index: 1; padding: 48px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.prose { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.prose p { margin: 0; color: var(--body); }
.prose .big { font-size: 24px; line-height: 1.5; color: var(--cream); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps .n { font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--peach); }
.steps .t { font-size: 21px; font-weight: 600; }
.crew { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 28px; }
.crew img { width: 100%; max-width: 360px; align-self: center; border-radius: 20px; aspect-ratio: 1 / 1; object-fit: cover; image-rendering: pixelated; }
.crew strong { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.08em; }
.crew span { color: var(--body); font-size: 16px; }

/* contact form */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 56px; padding: 40px; border-radius: 32px; background: linear-gradient(135deg, var(--night), var(--plum)); border: 1px solid var(--line); }
.contact-intro { display: flex; flex-direction: column; gap: 14px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 15px; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(242, 238, 230, 0.3); background: rgba(27, 19, 36, 0.6); color: var(--cream); font: inherit; font-size: 16px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--peach); outline-offset: 1px; border-color: transparent; }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact-send button[disabled] { opacity: 0.6; cursor: wait; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .contact { padding: 22px; } .contact-form { grid-template-columns: 1fr; } }

/* legal */
.legal-top { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.legal { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 96px; font-size: 17px; line-height: 1.7; }
.toc { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: var(--night); font-size: 15px; }
.toc span { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; color: var(--soft); }
.legal article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.legal section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.legal h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.06em; }
.legal p { margin: 0; color: var(--body); }
.summary { padding: 28px 32px; border-radius: 24px; background: linear-gradient(135deg, var(--plum), var(--night)); display: flex; flex-direction: column; gap: 10px; }
.summary b { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.14em; color: var(--peach); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #150e1c; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; }
.site-footer small { flex-basis: 100%; color: #a99fb3; font-size: 14px; }
