:root {
  --ink: #0d0d0d; --paper: #ffffff; --clay: #a9442b;
  /* Black neumorphism: one surface colour, raised with a dark + faint light shadow, inputs pressed in. */
  --neu: #161616; --neu-dark: #080808; --neu-light: #242424;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- home: one screen ---------- */
.home, .home body { height: 100%; overflow: hidden; }
.stage { position: fixed; inset: 0; overflow: hidden; background: var(--ink) url(/media/film-desktop.jpg?v=1) center / cover no-repeat; }
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Safari shows native controls (and a play button in Low Power Mode) on decorative video. */
.film::-webkit-media-controls, .film::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.mark { position: absolute; z-index: 3; left: 50%; top: max(5%, env(safe-area-inset-top) + 12px); transform: translateX(-50%); width: clamp(30px, min(2.8vw, 5vh), 64px); height: auto; }

.center { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0 6%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: inherit; font-weight: inherit; }
/* Low optical size keeps Bodoni's hairlines sturdy at display sizes. */
.cta {
  display: grid; color: var(--paper); text-decoration: none; cursor: pointer;
  font: italic 800 clamp(40px, min(7.1vw, 12.6vh), 200px) / 1.02 'Bodoni Moda', serif;
  letter-spacing: -.005em; font-optical-sizing: none; font-variation-settings: 'opsz' 11;
  -webkit-tap-highlight-color: transparent;
  /* Greyscale smoothing: subpixel text over moving footage fringes orange/blue on Windows. */
  will-change: transform;
}
.cta:focus { outline: none; }
.cta:focus-visible { outline: 1px solid rgba(255, 255, 255, .6); outline-offset: .2em; }
.cta .ink { grid-area: 1 / 1; }
/* 2px centred stroke = fill grows 1px past the glyph edge, hiding the white anti-aliased rim. */
.cta .fill { color: var(--clay); -webkit-text-stroke: 2px var(--clay); paint-order: stroke fill; pointer-events: none; }
.cta .ph { display: none; }

/* Portrait screens get the vertical film and the words on three lines. */
@media (max-aspect-ratio: 1/1) {
  .stage { background-image: url(/media/film-phone.jpg?v=1); }
  .mark { top: max(4%, env(safe-area-inset-top) + 12px); width: clamp(30px, min(13vw, 6vh), 64px); }
  .cta { font-size: min(20vw, 9vh); }
  .cta .ph { display: inline; }
  .cta .dk { display: none; }
}

/* ---------- sign-up form (pop-up and /join) ---------- */
.su { text-align: center; }
.su-logo { display: block; width: 56px; height: 56px; margin: 0 auto 18px; padding: 13px; border-radius: 50%; background: var(--neu); box-shadow: 6px 6px 12px var(--neu-dark), -5px -5px 10px var(--neu-light); }
.su-title { margin: 0; color: var(--paper); font: italic 800 30px / 1.05 'Bodoni Moda', serif; font-optical-sizing: none; font-variation-settings: 'opsz' 11; }
.su .lede { margin: 12px 0 26px; color: #b9b9b9; font: 400 11px / 1.6 'Space Mono', monospace; letter-spacing: .04em; }
/* Labels stay for screen readers; the words show inside the pills as placeholders. */
.su label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.su input { display: block; width: 100%; margin: 0 0 16px; background: var(--neu); border: 1px solid transparent; border-radius: 999px; color: var(--paper); font: 400 13px / 1 'Space Mono', monospace; padding: 13px 18px; outline: none; box-shadow: inset 5px 5px 10px var(--neu-dark), inset -5px -5px 10px var(--neu-light); transition: border-color .2s ease; }
.su input::placeholder { color: #8d8d8d; letter-spacing: .06em; opacity: 1; }
.su input:focus { border-color: rgba(169, 68, 43, .6); }
.su .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.su .go { display: block; width: 100%; margin-top: 6px; background: var(--clay); color: var(--paper); border: 0; border-radius: 999px; padding: 15px; font: 400 11px / 1 'Space Mono', monospace; letter-spacing: .25em; text-transform: uppercase; cursor: pointer; box-shadow: 6px 6px 14px rgba(0, 0, 0, .6), -4px -4px 10px rgba(255, 255, 255, .04), inset 1px 1px 0 rgba(255, 255, 255, .18); transition: box-shadow .15s ease, transform .15s ease; }
.su .go:active { transform: scale(.98); box-shadow: inset 4px 4px 8px rgba(0, 0, 0, .35), inset -2px -2px 6px rgba(255, 255, 255, .08); }
.su .go:disabled { cursor: progress; }
.su .go:focus-visible { outline: 1px solid rgba(255, 255, 255, .6); outline-offset: 3px; }
.su small { display: block; margin-top: 14px; color: #6f6f6f; font: 400 9px / 1.6 'Space Mono', monospace; letter-spacing: .03em; }
.su small a { color: inherit; }
.su .msg:empty { display: none; }
.su .msg, .su .err { color: #d3826e; font-size: 10px; }
.su .err { display: none; }
.su .err:target { display: block; }
.su .done { display: none; padding: 30px 0 10px; }
.su .done .su-title { font-size: 34px; outline: none; }
.su .done p { margin: 12px 0 0; color: #b9b9b9; font: 400 11px / 1.6 'Space Mono', monospace; }
.su.joined .intro, .su.joined form { display: none; }
.su.joined .done { display: block; }
/* No-script fallback: the form posts and comes back to /join#joined. */
.su:has(.done:target) .intro, .su:has(.done:target) form { display: none; }
.su .done:target { display: block; }

/* ---------- desktop: pop-up ---------- */
.backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-out); }
.modal { position: fixed; left: 50%; top: 50%; z-index: 11; width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 34px 34px 26px; background: var(--neu); border-radius: 16px; box-shadow: 18px 18px 38px rgba(0, 0, 0, .7), -10px -10px 28px rgba(255, 255, 255, .035), inset 1px 1px 0 rgba(255, 255, 255, .05); opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.96); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.modal .su-title { white-space: nowrap; font-size: 27px; }
.is-open .backdrop { opacity: 1; pointer-events: auto; }
.is-open .modal { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--neu); color: #8d8d8d; font: 300 17px / 1 system-ui, sans-serif; cursor: pointer; box-shadow: 4px 4px 8px var(--neu-dark), -3px -3px 7px var(--neu-light); }
.x:hover { color: var(--paper); }
.x:active { box-shadow: inset 3px 3px 6px var(--neu-dark), inset -3px -3px 6px var(--neu-light); }

/* ---------- phone: /join page (and /privacy) ---------- */
.surface { background: var(--neu); }
.page { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: max(76px, env(safe-area-inset-top) + 60px) 22px max(28px, env(safe-area-inset-bottom) + 20px); }
.page .su { width: 100%; max-width: 400px; animation: rise .3s var(--ease-out) both; }
.page .su-title { font-size: clamp(34px, 11vw, 46px); }
.page .su .lede { font-size: 12px; }
/* 16px stops iOS Safari zooming in on focus. */
.page .su input { font-size: 16px; padding: 15px 20px; }
.page .su .go { padding: 17px; font-size: 12px; }
.page .su small { font-size: 10px; }
.back { position: absolute; top: max(16px, env(safe-area-inset-top) + 8px); left: 14px; padding: 10px 8px; color: #8d8d8d; font: 400 11px / 1 'Space Mono', monospace; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; }
.back:hover { color: var(--paper); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.prose { width: 100%; max-width: 560px; color: #b9b9b9; font: 400 12px / 1.8 'Space Mono', monospace; letter-spacing: .02em; animation: rise .3s var(--ease-out) both; }
.prose h1 { margin: 0 0 24px; color: var(--paper); font: italic 800 clamp(34px, 9vw, 46px) / 1.05 'Bodoni Moda', serif; font-optical-sizing: none; font-variation-settings: 'opsz' 11; letter-spacing: 0; }
.prose h2 { margin: 26px 0 6px; color: var(--paper); font: 400 11px / 1.4 'Space Mono', monospace; letter-spacing: .2em; text-transform: uppercase; }
.prose p { margin: 0 0 10px; }
.prose a { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .cta .fill { clip-path: none !important; opacity: 0; transition: opacity .2s ease; }
  .cta:hover .fill, .cta:focus-visible .fill { opacity: 1; }
  .modal, .is-open .modal { transform: translate(-50%, -50%); }
  .page .su, .prose { animation-name: fade; }
  @keyframes fade { from { opacity: 0; } }
}
