/* Amoire (was Amoire, Gloam and Afterglow before that), brand v4: light and airy, a memory coming back to you, lit like an AI-age product.
   Will, 4 Nov 2026: references Trove, Popcorn, mymind (light screens, one soft gradient bloom at an edge, big ink
   serif headlines, white pills); "Light, like these"; type: Fraunces Soft Light, names in its italic (he rejected
   every script). Later the same day: "a glowing example of an ai age app ... super sleek and clean".
   Headlines and names: Fraunces (OFL). UI text: Geist (OFL, Vercel). The landing page adds landing.css.
   The guest camera screen stays dark: a viewfinder needs it. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-variable-italic.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #faf7f4;
  --paper-2: #f3eee9;
  --white: #ffffff;
  --ink: #1f1a22;
  --ink-2: #3b3340;
  --muted: #7d7480;
  --faint: #aaa2ab;
  --line: rgba(31, 26, 34, 0.08);
  --line-2: rgba(31, 26, 34, 0.14);
  --peach: #f7b48c;
  --rose: #ef8fb0;
  --lilac: #b6a4f2;
  --haze: #a9c3ec;
  --champagne: #b08a5a;
  /* The bloom (backgrounds) and a deeper version that stays legible as text on white. */
  --afterglow: linear-gradient(115deg, #f7c09d 0%, #f096b2 40%, #b9a6f3 75%, #a9c3ec 100%);
  --afterglow-text: linear-gradient(110deg, #d9784f 0%, #cf5f8c 45%, #7d66d6 100%);
  --shadow: 0 1px 2px rgba(31, 26, 34, 0.05), 0 12px 32px -14px rgba(31, 26, 34, 0.22);
  --shadow-lg: 0 2px 6px rgba(31, 26, 34, 0.04), 0 40px 90px -40px rgba(70, 40, 90, 0.35);
  --danger: #c64a4a;
  --script: "Fraunces", Georgia, serif;   /* names, dates, wordmark: Fraunces italic (see the rule at the end) */
  --serif: "Fraunces", Georgia, serif;    /* headlines: Fraunces Soft Light */
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lilac-ink: #7d66d6;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* A faded, grainy photo of the day under everything (placeholder from the demo footage, swap before launch). */
html { background: var(--paper) url("/img/bg-memory.jpg") center / cover no-repeat fixed; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow-x: hidden;
}

/* ---------- atmosphere: soft blooms bleeding in from the edges, a whisper of grain ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(30% 26% at 92% 6%, rgba(182, 164, 242, 0.55), transparent 70%),
    radial-gradient(26% 24% at 4% 2%, rgba(247, 192, 157, 0.45), transparent 70%),
    radial-gradient(34% 26% at 18% 98%, rgba(240, 150, 178, 0.42), transparent 70%),
    radial-gradient(30% 24% at 86% 96%, rgba(169, 195, 236, 0.45), transparent 70%);
  filter: blur(30px);
  animation: drift 48s var(--ease) infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -2%, 0) scale(1.04); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.02); }
}
/* A memory coming back: things arrive out of a blur. */
.rise { animation: rise 1.5s var(--ease) both; }
.rise.d1 { animation-delay: 0.12s; } .rise.d2 { animation-delay: 0.3s; } .rise.d3 { animation-delay: 0.5s; } .rise.d4 { animation-delay: 0.72s; }
@keyframes rise { from { opacity: 0; filter: blur(12px); transform: translateY(12px); } to { opacity: 1; filter: blur(0); transform: none; } }
.float { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) {
  body::before, .rise, .float { animation: none !important; }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(50px, 8vw, 96px); }
h2 { font-size: clamp(34px, 4.6vw, 50px); }
h3 { font-size: 28px; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em, .glow-em { font-style: italic; background: var(--afterglow-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 0.95; color: var(--ink); }
.names { font-size: clamp(64px, 15vw, 128px); }
.when { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); margin-top: 10px; }
.date-script { font-family: var(--script); font-size: 26px; color: var(--champagne); letter-spacing: 0.02em; margin-top: 6px; }
p { margin: 0; }
a { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: var(--gap, 16px); }

/* ---------- wordmark ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 10px 10px 10px 22px; gap: 16px; background: rgba(255, 255, 255, 0.72); border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.wordmark { font-family: var(--script); font-size: 34px; color: var(--ink); text-decoration: none; line-height: 1; display: inline-flex; align-items: center; gap: 10px; }
.orb { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fff6ee 0%, #f7c09d 30%, #f096b2 58%, #9c87e6 88%); box-shadow: 0 0 16px rgba(240, 150, 178, 0.6); flex: none; }

/* ---------- controls ---------- */
button, .button {
  font: 600 16px/1 var(--sans);
  border: 0;
  border-radius: 999px;
  padding: 17px 28px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(70, 40, 90, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(120, 70, 160, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
button:active, .button:active { transform: scale(0.98); }
button:disabled { opacity: 0.4; cursor: default; transform: none; }
button.quiet, .button.quiet { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
button.quiet:hover, .button.quiet:hover { box-shadow: 0 1px 2px rgba(31, 26, 34, 0.05), 0 16px 36px -14px rgba(120, 70, 160, 0.35); }
button.link { background: none; box-shadow: none; padding: 6px 0; min-height: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rose); }
button.link:hover { box-shadow: none; transform: none; }
button.wide { width: 100%; }
button.round { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; font-size: 20px; }

label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 7px; }
input, select {
  font: 17px/1.3 var(--sans);
  color: var(--ink);
  width: 100%;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--white);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input::placeholder { color: var(--faint); }
input:focus, select:focus { border-color: rgba(125, 102, 214, 0.55); box-shadow: 0 0 0 4px rgba(182, 164, 242, 0.22); }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

/* ---------- the floating lens (landing demo + guest camera) ---------- */
.lens-wrap { position: relative; aspect-ratio: 1; }
.lens-wrap .spill { position: absolute; left: 50%; top: 50%; width: 128%; height: 128%; transform: translate(-50%, -50%); border-radius: 50%; filter: blur(40px) saturate(1.5); opacity: 0.75; pointer-events: none; z-index: 0; -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 70%); mask-image: radial-gradient(circle, #000 42%, transparent 70%); }
.lens-wrap canvas.lens { position: relative; z-index: 1; width: 100%; height: 100%; display: block; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #3a2c36, #150f17 70%); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85), 0 40px 80px -30px rgba(70, 40, 90, 0.55); }
.lens-wrap.focusing canvas.lens { animation: focus 1.4s var(--ease) both; }
@keyframes focus { from { filter: blur(16px) brightness(1.2); opacity: 0.4; } to { filter: none; opacity: 1; } }

/* ---------- landing: see landing.css ---------- */

/* ---------- guest ---------- */
body.guest { overscroll-behavior: none; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; }
.welcome { padding: 56px 26px calc(28px + env(safe-area-inset-bottom)); justify-content: space-between; text-align: center;
  background: radial-gradient(80% 44% at 6% 104%, rgba(247, 180, 140, 0.8), transparent 70%), radial-gradient(75% 46% at 96% 100%, rgba(182, 164, 242, 0.8), transparent 70%), radial-gradient(95% 48% at 50% 112%, rgba(239, 143, 176, 0.72), transparent 72%), radial-gradient(80% 22% at 50% -6%, rgba(169, 195, 236, 0.35), transparent 70%); }
.welcome .names { font-size: clamp(72px, 21vw, 120px); }
.welcome .pitch { font-size: 18px; color: var(--ink-2); margin: 30px auto 0; max-width: 24em; }
.welcome .fine { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }
.welcome form { text-align: left; }
.film-ready { margin-top: 30px; }
.film-ready video { width: 100%; border-radius: 22px; background: #000; margin-top: 14px; box-shadow: var(--shadow-lg); }

/* The camera is a viewfinder: it stays dark, with its own light tokens. */
.cam {
  --ink: #f6eee4; --muted: #bcaebb; --faint: #807181; --line: rgba(246, 238, 228, 0.10); --line-2: rgba(246, 238, 228, 0.18);
  color: var(--ink);
  background: radial-gradient(80% 50% at 50% 40%, #241a28 0%, #0d0a12 70%);
  align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  user-select: none; -webkit-user-select: none;
}
/* Edge to edge: pinned to the visible screen (Chrome on iPhone measured 100dvh short and the light page showed below the
   camera, Will's iPhone test 5 Nov 2026); the page behind goes dark while the camera is open. Toast 30, sheet 20, player 40 stay above. */
.cam:not(.hidden) { position: fixed; inset: 0; min-height: 0; z-index: 10; overflow: hidden; }
html:has(#cam:not(.hidden)), html:has(#cam:not(.hidden)) body { background: #0d0a12; }
.cam-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--muted); min-height: 34px; position: relative; z-index: 2; }
.cam-top .left { font-family: var(--script); font-size: 30px; color: var(--ink); }
.sync { display: inline-flex; align-items: center; gap: 8px; }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: #a9c79a; box-shadow: 0 0 10px rgba(169, 199, 154, 0.7); }
.sync.waiting .dot { background: var(--peach); box-shadow: 0 0 10px rgba(247, 180, 140, 0.7); animation: pulse 1.2s infinite; }
.sync.blocked .dot { background: #f08a8a; }
@keyframes pulse { 50% { opacity: 0.3; } }
.viewfinder { position: relative; width: min(90vw, 60dvh, 560px); margin: 8px 0; }
.cam .lens-wrap canvas.lens { box-shadow: 0 0 0 1px rgba(255, 240, 230, 0.10), 0 40px 90px -30px rgba(0, 0, 0, 0.8); }
.viewfinder svg.ring { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); transform: rotate(-90deg); pointer-events: none; overflow: visible; z-index: 2; }
.ring circle { fill: none; stroke-width: 2.4; }
.ring .track { stroke: rgba(246, 238, 228, 0.08); opacity: 0; transition: opacity 0.3s; }
.recording .ring .track { opacity: 1; }
.ring .progress { stroke: url(#ring-grad); stroke-linecap: round; transition: stroke-dashoffset 0.1s linear; opacity: 0; filter: drop-shadow(0 0 4px rgba(240, 150, 178, 0.9)); }
.recording .ring .progress { opacity: 1; }
.viewfinder .rec-time { position: absolute; left: 50%; top: 7%; transform: translateX(-50%); font: 600 14px var(--sans); color: #fff; background: rgba(214, 84, 96, 0.85); padding: 4px 11px; border-radius: 99px; opacity: 0; transition: opacity 0.3s; z-index: 3; }
.recording .viewfinder .rec-time { opacity: 1; }
.cam-bottom { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; z-index: 2; }
.cam-bottom .side { justify-self: center; background: rgba(255, 245, 240, 0.08); color: var(--ink); width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 50%; font-size: 15px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.cam-bottom .side:hover { transform: none; }
.cam-bottom .side img { width: 100%; height: 100%; object-fit: cover; }
.rec { width: 86px; height: 86px; min-height: 0; padding: 0; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 3px rgba(246, 238, 228, 0.92), 0 0 40px -6px rgba(240, 150, 178, 0.5); position: relative; }
.rec:hover { transform: none; background: transparent; box-shadow: inset 0 0 0 3px #fff, 0 0 46px -4px rgba(240, 150, 178, 0.6); }
.rec::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--afterglow); transition: all 0.3s var(--ease); }
.recording .rec::after { inset: 27px; border-radius: 9px; background: linear-gradient(135deg, #f49a8c, #d9576b); }
.hint { font-size: 15px; color: var(--muted); text-align: center; min-height: 24px; margin-top: 12px; position: relative; z-index: 2; }

.toast { position: fixed; left: 50%; bottom: calc(132px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(255, 255, 255, 0.92); color: #1f1a22; box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 11px 18px; border-radius: 99px; font-size: 15px; font-weight: 600; opacity: 0; transition: opacity 0.4s; pointer-events: none; z-index: 30; white-space: nowrap; }
.toast.show { opacity: 1; }

.sheet { position: fixed; inset: 0; background: rgba(250, 247, 244, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: 20; overflow-y: auto; padding: calc(20px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom)); }
.sheet .close { position: sticky; top: 0; float: right; min-height: 0; padding: 11px 18px; }
.my-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; clear: both; }
.my-clip { text-align: center; font-size: 14px; color: var(--muted); }
.my-clip .thumb { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #e9e2dc center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 13px; cursor: pointer; box-shadow: var(--shadow); }
.player { position: fixed; inset: 0; background: rgba(13, 10, 18, 0.9); backdrop-filter: blur(20px); display: grid; place-items: center; z-index: 40; padding: 20px; }
.player video { max-width: min(92vw, 720px); max-height: 80dvh; border-radius: 16px; background: #000; }
.player .close { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; min-height: 0; padding: 11px 18px; background: #fff; color: #1f1a22; }

.message { padding: 60px 28px; justify-content: center; text-align: center; }
.message h1 { font-size: clamp(44px, 12vw, 76px); }
.message p { color: var(--ink-2); font-size: 18px; margin: 20px auto 0; max-width: 24em; }
.message button { margin-top: 32px; }

/* ---------- host ---------- */
.host-head { padding: 46px 0 28px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.host-head .names { font-size: clamp(64px, 10vw, 112px); }
.keep-link { background: rgba(255, 255, 255, 0.7); border-radius: 18px; padding: 15px 20px; font-size: 15px; margin-bottom: 22px; color: var(--ink-2); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.share { display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: center; }
@media (max-width: 480px) { .share { grid-template-columns: 1fr; } }
.share img { width: 168px; height: 168px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.copy-row { display: flex; gap: 8px; margin-top: 12px; }
.copy-row input { font-size: 14px; padding: 12px; }
.copy-row button { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 24px; }
.stats .n { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--ink); }
.stats .l { font-size: 14px; color: var(--muted); margin-top: 4px; }
.film-form { display: grid; gap: 14px; margin-top: 18px; }
.music-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.films { margin-top: 22px; display: grid; gap: 16px; }
.film { border-top: 1px solid var(--line); padding-top: 16px; }
.film video { width: 100%; border-radius: 18px; background: #000; margin: 10px 0; box-shadow: var(--shadow); }
.film .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.film .meta h3 { font-size: 26px; }
.bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--afterglow); width: 0; transition: width 0.8s var(--ease); }
.film-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.film-actions .button, .film-actions button { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.error { color: var(--danger); font-size: 15px; }
.clips-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 60px 0 18px; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin-bottom: 80px; }
.clip { background: rgba(255, 255, 255, 0.85); border-radius: 24px; padding: 12px; font-size: 14px; box-shadow: var(--shadow); transition: box-shadow 0.3s, transform 0.4s var(--ease); }
.clip:hover { box-shadow: 0 1px 2px rgba(31, 26, 34, 0.05), 0 22px 44px -18px rgba(120, 70, 160, 0.35); transform: translateY(-2px); }
.clip .thumb { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #e9e2dc center/cover no-repeat; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.clip.out .thumb { opacity: 0.3; filter: grayscale(0.6); }
.clip .who { font-weight: 600; margin-top: 10px; }
.clip .when { color: var(--muted); font-family: var(--sans); font-style: normal; font-size: 14px; margin: 0; }
.clip .actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.clip .actions a { font-size: 14px; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink); margin: 0; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: #7d66d6; padding: 0; box-shadow: none; }
.empty { text-align: center; padding: 54px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 24px; grid-column: 1 / -1; }

/* ---------- printed table cards ---------- */
body.light { color: var(--ink); background: #ece6e3; }
body.light::before, body.light::after { display: none; }

/* ---------- Fraunces (brand v3 type) ---------- */
h1, h2, h3, .head, .stats .n { font-weight: 300; font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -0.025em; }
h1 { font-size: clamp(46px, 7vw, 84px); }
.script, .wordmark, .cam-top .left, .yours a, .date-script {
  font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -0.02em;
}
.names { line-height: 1.02; }
.date-script { font-size: 22px; color: #8a6d4a; letter-spacing: 0; }
.wordmark { font-size: 30px; font-weight: 400; }
/* The Amoire wordmark (was Amoire, Gloam): lowercase italic, its o the lens, lit with the dusk (brand/name-logo_v1, chosen 4 Nov 2026). */
.wordmark .wm { display: inline-block; letter-spacing: -0.03em; }
.lens-o { display: inline-block; width: 0.47em; height: 0.47em; border-radius: 50%; vertical-align: 0.01em; margin: 0 0.04em 0 0.025em;
  background: linear-gradient(180deg, #b9a6f3 0%, #f096b2 52%, #f7c09d 78%, #fff1e2 100%); box-shadow: 0 0 0.2em rgba(240, 150, 178, 0.5); }
.cam .lens-o, .night .lens-o { box-shadow: 0 0 0.3em rgba(240, 150, 178, 0.7); }
.cam-top .left { font-size: 24px; }

/* ---------- the circle's halo and clear space (public/circle.json; never cropped) ---------- */
.lens-wrap .halo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0.9; animation: halo-spin 90s linear infinite; }
@keyframes halo-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lens-wrap .halo { animation: none; } }
.viewfinder { width: min(74vw, 54dvh, 500px); margin: 18px 0; }

/* The clean circle (Will, 4 Nov 2026): no ring, no glow, no shadow. Just the picture, whole. */
.lens-wrap canvas.lens, .cam .lens-wrap canvas.lens { box-shadow: none; }

/* ---------- brand v4: the glow, and the browser's own surfaces (4 Nov 2026) ---------- */
@property --glow-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes glow-turn { to { --glow-a: 360deg; } }
/* The afterglow ring, declared on the element that turns (a :root copy would freeze at 0deg). */
button.glow::before, button.glow::after, .button.glow::before, .button.glow::after, .glow-ring::before, .glow-ring::after {
  --glow-ring: conic-gradient(from var(--glow-a), #f7c09d, #f096b2, #b9a6f3, #a9c3ec, #f7c09d);
}

/* The glow button: ink, ringed by the afterglow colours turning slowly, with a soft bloom under it that wakes on
   hover. The one main action on a screen. */
button.glow, .button.glow {
  position: relative; isolation: isolate; background: transparent; color: #fff; font-weight: 500; letter-spacing: -0.005em;
  box-shadow: none; padding: 18px 30px; min-height: 58px; transition: transform 0.5s var(--ease);
}
button.glow::before, .button.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1.5px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--glow-ring) border-box;
  animation: glow-turn 7s linear infinite;
}
button.glow::after, .button.glow::after {
  content: ""; position: absolute; inset: 30% 10% -12% 10%; z-index: -2; border-radius: inherit;
  background: var(--glow-ring); filter: blur(18px); opacity: 0.5;
  transition: opacity 0.6s var(--ease), inset 0.6s var(--ease); animation: glow-turn 7s linear infinite;
}
button.glow:hover, .button.glow:hover { box-shadow: none; transform: none; }
button.glow:hover::after, .button.glow:hover::after { opacity: 0.95; inset: 14% 2% -26% 2%; }
button.glow:active::before, .button.glow:active::before { background: linear-gradient(#2c2530, #2c2530) padding-box, var(--glow-ring) border-box; }
button.glow:disabled { opacity: 1; }
button.glow:disabled::after { opacity: 0.25; }
.button.glow.small { min-height: 46px; padding: 12px 20px; font-size: 15px; }
.button.glow .arrow { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.button.glow:hover .arrow { transform: translateX(4px); }
/* Busy: the label shimmers while it works. */
button.glow.busy .go-label {
  background: linear-gradient(100deg, rgba(255,255,255,0.45) 20%, #fff 40%, #f7c09d 50%, #fff 60%, rgba(255,255,255,0.45) 80%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) {
  button.glow::before, button.glow::after, .button.glow::before, .button.glow::after, button.glow.busy .go-label { animation: none; }
}

::selection { background: rgba(240, 150, 178, 0.32); color: var(--ink); }
input, textarea { caret-color: var(--lilac-ink); }
:focus-visible { outline: 2px solid var(--lilac-ink); outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline: none; }
html { scrollbar-color: rgba(125, 102, 214, 0.35) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(125, 102, 214, 0.3); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
.cam ::selection { background: rgba(247, 192, 157, 0.4); color: #fff; }

/* ---------- commerce: booking page, test checkout, admin, terms and privacy (4 Nov 2026) ---------- */
.booked { min-height: calc(100dvh - 120px); display: grid; place-items: center; padding: 40px 0 80px; }
.booked-card { width: min(560px, 100%); padding: clamp(28px, 5vw, 48px); border-radius: 34px; background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 50px 100px -50px rgba(70, 40, 90, 0.45); }
.booked-card h1 { font-size: clamp(40px, 7vw, 64px); }
.booked-card h1.names { font-size: clamp(52px, 10vw, 84px); }
.booked-card > p { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin: 18px 0 0; }
.booked-card .booked-lead { color: var(--ink); }
.booked-card .button, .booked-card button { margin-top: 26px; }
.booked-card button + button { margin-top: 12px; }
.booked-card .booked-fine { font-size: 14px; color: var(--muted); }
.booked-card .bar { margin-top: 26px; }
.film-line { margin: 16px 0 0; font-size: 15px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check-line input { flex: none; width: 19px; height: 19px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: #1f1a22; }
#w-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.clip .flag, .flag { font-size: 13px; line-height: 1.4; color: var(--danger); margin-top: 6px; }
.film-line a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; }
.admin { padding-bottom: 80px; }
.admin > h1 { margin-top: 44px; font-size: clamp(44px, 6vw, 72px); }
.admin-status { margin: 12px 0 0; color: var(--ink-2); }
.admin-block { margin-top: 44px; padding: 28px; border-radius: 28px; background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow); }
.admin-block h2 { font-size: clamp(26px, 3vw, 34px); }
.admin-block > p { margin: 10px 0 0; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin td input.cap { width: 84px; min-height: 0; padding: 6px 10px; font-size: 14px; display: inline-block; }
.admin .status { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--paper-2); font-size: 13px; }
.admin .status.s-paid { background: rgba(120, 190, 140, 0.22); }
.admin .status.s-needs-review { background: rgba(230, 120, 110, 0.25); }
.admin-form { display: grid; grid-template-columns: 2fr 1fr 1.4fr auto; gap: 12px; margin-top: 18px; }
@media (max-width: 760px) { .admin-form { grid-template-columns: 1fr; } }
.legal article { max-width: 680px; margin: 0 auto; padding: 50px 0 90px; }
.legal h1 { font-size: clamp(46px, 7vw, 80px); }
.legal h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 40px; }
.legal p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 14px 0 0; }
.legal .legal-draft { color: var(--ink); background: rgba(255, 255, 255, 0.75); padding: 12px 16px; border-radius: 14px; font-size: 15px; }
