/* The public teaser for symphonylabs.dev (approved 2026-10-27, option 2 of
   docs/design/2026-10-26-teaser/mockups/v2/cycle.html). One screen: a hint
   of what's coming, the assistant's orb trying on names on a line of light,
   one question, and a way to hear first. Nothing about what it does. */

@font-face { font-family: 'Inter'; src: url('fonts/inter-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('fonts/literata-variable.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('fonts/literata-italic-variable.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --page: #05080F; --surface: #0F1828;
  --ink-strong: #E8EEF7; --ink: #AAB7CB; --ink-muted: #7F8DA3;
  --edge-2: rgba(148, 163, 184, .18);
  --accent: #34D399; --accent-rgb: 52, 211, 153; --accent-ink: #04261A; --glow: rgba(52, 211, 153, .32);
  --orb-core: radial-gradient(circle at 35% 28%, #24365A 0%, #13203A 45%, #0B1428 100%);
  --orb-core-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -.08em .18em rgba(0, 0, 0, .45);
  --orb-ring: 2px solid rgba(52, 211, 153, .6);
  --orb-ring-glow: 0 0 .15em rgba(52, 211, 153, .35), inset 0 0 .11em rgba(52, 211, 153, .2);
  --orb-glyph: #34D399;
  --orb: clamp(96px, min(10vw, 15vh), 210px);
  --font-serif: 'Literata', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --page: #F1F3F6; --surface: #FFFFFF;
    --ink-strong: #0B1220; --ink: #2F3A4C; --ink-muted: #586377;
    --edge-2: rgba(15, 23, 42, .14);
    --accent: #047857; --accent-rgb: 4, 120, 87; --accent-ink: #FFFFFF; --glow: rgba(13, 148, 136, .35);
    --orb-core: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 42%), linear-gradient(150deg, #3BD9A3 0%, #10A59B 48%, #0B6C88 100%);
    --orb-core-shadow: 0 .13em .28em -.06em rgba(11, 108, 136, .55), inset 0 -.08em .18em rgba(3, 50, 70, .35), inset 0 2px 0 rgba(255, 255, 255, .35);
    --orb-ring: 1.5px solid rgba(16, 165, 155, .22);
    --orb-ring-glow: none;
    --orb-glyph: #FFFFFF;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* The page clips what runs past its edges (the line of light), so nothing
   scrolls sideways; it still grows and scrolls when content is taller. */
.page { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100svh; overflow: clip; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: clamp(16px, 3vh, 30px) clamp(20px, 4vw, 56px); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-strong); font: 500 clamp(17px, min(1vw, 1.8vh), 22px)/1 var(--font-serif); text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
footer { color: var(--ink-muted); font-size: clamp(12.5px, min(.7vw, 1.25vh), 15px); flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--ink-strong); }

main.center { display: grid; grid-template-rows: 1fr auto auto auto 1fr; justify-items: center; gap: clamp(20px, 3.4vh, 44px); text-align: center; }

.kicker { grid-row: 2; margin: 0; color: var(--ink); font: 500 clamp(13px, min(.95vw, 1.7vh), 19px)/1.2 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 340px) { .kicker { letter-spacing: .12em; } }

/* The assistant: an orb on a line of light, trying on names. */
.presence { grid-row: 3; position: relative; display: grid; justify-items: center; margin-top: clamp(14px, 3vh, 52px); }
.orb { position: relative; z-index: 1; width: var(--orb); height: var(--orb); font-size: var(--orb); }
.orb-halo { position: absolute; inset: -.6em; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 72%); animation: breathe 6s ease-in-out infinite; }
.orb-ring { position: absolute; inset: -.075em; border: var(--orb-ring); border-radius: 50%; box-shadow: var(--orb-ring-glow); animation: listen 6s ease-out infinite; }
.orb-core { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--orb-core); box-shadow: var(--orb-core-shadow); overflow: hidden; }
.orb-core b { color: var(--orb-glyph); font: 250 .44em/1 var(--font-sans); letter-spacing: -0.02em; }
@keyframes breathe { 0%, 100% { opacity: .5; transform: scale(.95); } 50% { opacity: .95; transform: scale(1.06); } }
/* One ripple a breath: it leaves the ring as the halo is fullest and takes
   2.4 s, the site's listening pulse. */
@keyframes listen { 0%, 50% { box-shadow: var(--orb-ring-glow), 0 0 0 0 var(--glow); } 90%, 100% { box-shadow: var(--orb-ring-glow), 0 0 0 .2em transparent; } }

.tried { position: relative; z-index: 1; min-height: 1.3em; margin: clamp(26px, 4vh, 56px) 0 0; color: var(--ink-strong); font: italic 400 clamp(24px, min(2vw, 3.6vh), 44px)/1.3 var(--font-serif); }

/* A name every few seconds: the old one eases out, the new one eases in. */
.orb-core b, .tried { transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1), transform 1.2s cubic-bezier(.4, 0, .2, 1), filter 1.2s cubic-bezier(.4, 0, .2, 1); }
.presence.swap .orb-core b, .presence.swap .tried { opacity: 0; transform: scale(.95); filter: blur(2px); transition-duration: .9s; }
/* Taking a name someone is typing: the same motion, a quicker way out. */
.presence.swap.quick .orb-core b, .presence.swap.quick .tried { transition-duration: .3s; }

/* The line of light, level with the orb's centre, fading before it reaches
   the orb and toward both edges of the window. */
.arc { position: absolute; z-index: 0; left: 50%; top: calc(var(--orb) / 2); width: 100vw; height: 30vh; translate: -50% 0; pointer-events: none; }
.arc-lines { position: absolute; inset: -120px 0 0;
  -webkit-mask-image: radial-gradient(circle at 50% 120px, transparent calc(var(--orb) / 2 + 18px), #000 calc(var(--orb) / 2 + 150px));
  mask-image: radial-gradient(circle at 50% 120px, transparent calc(var(--orb) / 2 + 18px), #000 calc(var(--orb) / 2 + 150px)); }
.arc svg { position: absolute; left: 0; top: 120px; width: 100%; height: calc(100% - 120px); overflow: visible; }
.arc stop { stop-color: var(--accent); }
.arc-line path { stroke-width: 1.5px; }
.arc-glow { filter: blur(10px); opacity: .9; }
.arc-glow path { stroke-width: 8px; }
.arc path { animation: draw 1.8s cubic-bezier(.3, .6, .2, 1) .2s backwards; }
@keyframes draw { from { stroke-dasharray: 0 1; } to { stroke-dasharray: 1 0; } }
/* A tall or square window keeps the line straight: curved there, the orb and
   the arc read as a head and shoulders. */
.arc .flat { display: none; }
@media (max-aspect-ratio: 1/1) {
  .arc .curve { display: none; }
  .arc .flat { display: inline; }
}

.ask { grid-row: 4; display: grid; justify-items: center; gap: clamp(16px, 2.4vh, 26px); width: min(56rem, 90vw); }
.question { margin: 0; color: var(--ink-strong); font: 420 clamp(30px, min(3.4vw, 6vh), 72px)/1.05 var(--font-serif); letter-spacing: -0.02em; }
.question em { color: var(--accent); font-style: italic; }

/* Hear first: a quiet button that opens into one field. */
.hear { display: grid; justify-items: center; gap: 10px; }
.hear-open { padding: 10px 18px; border: 1px solid var(--edge-2); border-radius: 999px; background: transparent; color: var(--ink-strong); font: 500 clamp(14.5px, min(.85vw, 1.5vh), 18px) var(--font-sans); cursor: pointer; transition: border-color .3s, background .3s; }
.hear-open:hover, .hear-open:focus-visible { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.hear form { display: none; gap: 6px; width: min(420px, 86vw); padding: 5px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: inset 0 0 0 1px var(--edge-2); }
.hear form:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.hear.open .hear-open { display: none; }
.hear.open form { display: flex; animation: rise .5s ease; }
.hear input[type="email"] { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-strong); font: 400 16px var(--font-sans); outline: none; }
.hear input::placeholder { color: var(--ink-muted); }
.hear button[type="submit"] { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 600 15px var(--font-sans); cursor: pointer; }
.hear button[type="submit"]:disabled { opacity: .6; cursor: default; }
.hear .note { display: none; margin: 0; color: var(--ink-muted); font-size: 13px; }
.hear.open .note { display: block; }
.hear .err { margin: 0; color: var(--ink-strong); font-size: 13.5px; }
.hear .err:empty, .hear.sent .err { display: none; }
.hear .done { display: none; margin: 0; color: var(--ink-strong); font: italic 400 19px var(--font-serif); }
.hear.sent form, .hear.sent .note { display: none; }
.hear.sent .done { display: block; animation: rise .5s ease; }
/* Name yours: one quiet field under Notify me. The orb takes the name, and
   Save image appears once there is one. Hidden until teaser.js runs. */
.yours { display: grid; justify-items: center; gap: 4px; margin-top: clamp(2px, 1vh, 10px); }
.yours[hidden] { visibility: hidden; }   /* its space is kept, so nothing moves when the script shows it */
.yours input { width: min(11em, 72vw); padding: 6px 4px 7px; border: 0; border-bottom: 1px solid var(--edge-2); border-radius: 0; background: transparent; color: var(--ink-strong); font: italic 400 clamp(18px, min(1.1vw, 2vh), 22px)/1.3 var(--font-serif); text-align: center; outline: none; transition: border-color .3s; }
.yours input::placeholder { color: var(--ink-muted); opacity: 1; }
.yours input:hover { border-bottom-color: color-mix(in srgb, var(--accent) 45%, var(--edge-2)); }
.yours input:focus { border-bottom-color: var(--accent); }
.save { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-muted); font: 500 14px/1 var(--font-sans); cursor: pointer; visibility: hidden; opacity: 0; transition: opacity .5s, color .3s, visibility 0s .5s; }
.save svg { width: 15px; height: 15px; color: var(--accent); }
.save:hover, .save:focus-visible { color: var(--ink-strong); }
.save:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 1px; }
.save:disabled { cursor: progress; }
.yours.ready .save { visibility: visible; opacity: 1; transition: opacity .5s, color .3s; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The privacy notice and the not-found page: the same frame, a readable column. */
.doc { align-self: start; width: min(40em, 100% - 40px); margin: clamp(24px, 5vh, 64px) auto; text-align: left; }
.doc .eyebrow { margin: 0; color: var(--ink-muted); font: 500 13px/1.2 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
.doc h1 { margin: 14px 0 0; color: var(--ink-strong); font: 420 clamp(36px, 4vw, 56px)/1.05 var(--font-serif); letter-spacing: -0.02em; }
.doc h1 em { color: var(--accent); font-style: italic; }
.doc h2 { margin: 2em 0 .4em; color: var(--ink-strong); font: 600 19px/1.3 var(--font-sans); }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 1.2em; }
.lost { align-self: center; display: grid; justify-items: center; gap: 18px; text-align: center; }
.lost h1 { margin: 0; color: var(--ink-strong); font: italic 400 clamp(30px, 3vw, 48px)/1.1 var(--font-serif); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
