/* Eclipse site v2 */
:root {
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --accent-dark: #4c7dff;
  --accent-light: #2d5fd8;
  --on-accent: #ffffff;
  --accent-soft-dark: rgba(76,125,255,0.16);
  --accent-soft-light: rgba(45,95,216,0.1);

  --bg: #0e0e10; --bg-2: #141417; --surface: #1a1a1f; --surface-2: #232329;
  --text: #f5f5f4; --text-2: #b4b4bb; --muted: #83838b;
  --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.15);
  --accent: var(--accent-dark);
  --accent-soft: var(--accent-soft-dark);
  --nav-bg: rgba(14,14,16,0.82);
  --shadow: 0 30px 80px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
  --danger: #ff6b6b; --ok: #3ecf8e; --warn: #f5b043;
  --frame: #26262c;
  color-scheme: dark;
}
:root[data-accent="ink"] { --accent-dark: #f5f5f4; --accent-light: #121214; --accent-soft-dark: rgba(255,255,255,0.1); --accent-soft-light: rgba(0,0,0,0.07); --on-accent: #0e0e10; }
:root[data-accent="ink"] .light, :root[data-accent="ink"] body.paper { --on-accent: #ffffff; }
:root[data-accent="ink"] .dark { --on-accent: #0e0e10; }
:root[data-accent="teal"] { --accent-dark: #4fd1c5; --accent-light: #0f8a7e; --accent-soft-dark: rgba(79,209,197,0.14); --accent-soft-light: rgba(15,138,126,0.1); }

.light, body.paper {
  --bg: #f6f5f1; --bg-2: #eeede8; --surface: #ffffff; --surface-2: #e8e7e1;
  --text: #121214; --text-2: #4d4d54; --muted: #7b7b83;
  --line: rgba(0,0,0,0.09); --line-2: rgba(0,0,0,0.16);
  --accent: var(--accent-light);
  --accent-soft: var(--accent-soft-light);
  --nav-bg: rgba(246,245,241,0.86);
  --shadow: 0 24px 60px rgba(20,20,30,0.18), 0 2px 6px rgba(20,20,30,0.08);
  --danger: #c93a3a; --ok: #1e9a60; --warn: #b7791f;
  --frame: #1c1c21;
  color-scheme: light;
}

.dark {
  --bg: #0e0e10; --bg-2: #141417; --surface: #1a1a1f; --surface-2: #232329;
  --text: #f5f5f4; --text-2: #b4b4bb; --muted: #83838b;
  --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.15);
  --accent: var(--accent-dark);
  --accent-soft: var(--accent-soft-dark);
  --shadow: 0 30px 80px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
  --danger: #ff6b6b; --ok: #3ecf8e; --warn: #f5b043;
  --frame: #26262c;
  color-scheme: dark;
  background: var(--bg); color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); letter-spacing: -0.035em; line-height: 0.98; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.02; }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
code, pre { font-family: var(--font-mono); }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container.narrow { max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 34em; }
.lede.big { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.sub { color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.85em; }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; white-space: nowrap; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { filter: brightness(0.92); }
.btn-quiet { color: var(--text-2); padding: 0 12px; }
.btn-quiet:hover { color: var(--text); background: var(--accent-soft); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-danger.fill { background: var(--danger); color: #fff; border-color: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); transition: background 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.nav.scrolled, body.paper .nav, body.solid-nav .nav { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
body.dark-nav .nav { --nav-bg: rgba(14,14,16,0.86); --text: #f5f5f4; --text-2: #b4b4bb; --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.15); --accent: var(--accent-dark); --accent-soft: var(--accent-soft-dark); --on-accent: #0e0e10; color: var(--text); color-scheme: dark; }
:root:not([data-accent="ink"]) body.dark-nav .nav { --on-accent: #ffffff; }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { white-space: nowrap; padding: 8px 14px; border-radius: 8px; font-size: 0.925rem; font-weight: 500; color: var(--text-2); transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nav-text { white-space: nowrap; padding: 8px 12px; font-size: 0.925rem; font-weight: 500; color: var(--text-2); border-radius: 8px; }
.nav-text:hover { color: var(--text); }
.nav-right .btn { margin: 0 6px; }
.nav-burger { display: none; height: 36px; padding: 0 12px; border-radius: 9px; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 500; color: var(--text); border: 1px solid var(--line-2); }

.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.8rem; overflow: hidden; flex: none; border: 1px solid var(--line-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px; border-radius: 999px; }
.avatar-btn:hover .avatar { border-color: var(--accent); }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); display: none; z-index: 60; }
.menu.open .menu-panel { display: block; }
.menu-panel .who { padding: 10px 12px 12px; display: grid; gap: 2px; }
.menu-panel .who strong { font-size: 0.925rem; }
.menu-panel .who span { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel .sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 0.9rem; color: var(--text-2); text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--accent-soft); color: var(--text); }

/* Scrolls: a fixed, full-height panel clips anything past the viewport and
   cannot be scrolled without this, so on a short phone the footer - which
   holds Sign out - was unreachable. overscroll-behavior keeps a flick at
   the end of the list from scrolling the page underneath. */
.sheet { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: none; flex-direction: column; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet.open { display: flex; }
/* Sticky so Close stays reachable once the panel scrolls. */
.sheet-head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); position: sticky; top: 0; z-index: 1; background: var(--bg); }
.sheet-links { display: grid; padding: 12px 0; }
.sheet-links a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheet-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.sheet-user { display: flex; align-items: center; gap: 12px; padding: 8px 0 12px; }
.sheet-user .avatar { width: 40px; height: 40px; }
.sheet-user div { display: grid; }
.sheet-user span { font-size: 0.85rem; color: var(--muted); }
body.sheet-open { overflow: hidden; }

/* Bands */
.band { position: relative; background: var(--bg); color: var(--text); padding: clamp(72px, 9vw, 128px) 0; }
.band.tight { padding: clamp(48px, 6vw, 80px) 0; }
.band + .band.light, .band.light + .band { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .copy h2 { margin-bottom: 20px; }
.split .copy .lede { margin-bottom: 28px; }
.points { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 0.975rem; line-height: 1.5; }
.points li strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }

/* Device frames */
.shot { position: relative; overflow: hidden; background: #0b0b0d; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot .ph { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #6b6b73; font-size: 0.8rem; font-weight: 500; background: repeating-linear-gradient(135deg, #131316 0 14px, #161619 14px 28px); }
.shot .ph code { font-size: 0.72rem; color: #8a8a92; }
.shot.missing img { display: none; }
.shot.missing .ph { display: flex; }
.frame-desktop { border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #0b0b0d; }
.frame-desktop .shot { border-radius: 13px; aspect-ratio: 16 / 9; }
.frame-phone { position: relative; border-radius: 40px; border: 7px solid var(--frame); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.08); background: #0b0b0d; }
.frame-phone::after { content: ""; position: absolute; top: 10px; left: 50%; width: 32%; height: 22px; transform: translateX(-50%); border-radius: 12px; background: var(--frame); z-index: 2; }
.frame-phone .shot { border-radius: 33px; aspect-ratio: 9 / 19.4; }
.frame-phone .shot .ph { font-size: 0.72rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 34px; }
.hero-plat { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 30px; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.hero-plat span { display: inline-flex; align-items: center; gap: 7px; }
.hero-art { position: relative; min-height: 560px; }
.hero-art .frame-desktop { position: absolute; left: 0; top: 50%; width: 150%; transform: translateY(-50%) perspective(2400px) rotateY(-7deg) rotateX(1.5deg); transform-origin: left center; }
.hero-art .frame-phone { position: absolute; left: -36px; bottom: 6%; width: clamp(180px, 15vw, 224px); transform: rotate(-3deg); z-index: 3; }

/* Feature grid (hairlines) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid > div { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-grid p { color: var(--text-2); font-size: 0.925rem; line-height: 1.55; }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: 16px; }

/* Cards / panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; background: var(--surface-2); color: var(--text-2); }
.chip.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.chip.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--ok); }
.dot.off { background: var(--muted); }
.dot.bad { background: var(--danger); }

/* Forms */
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.input, .select { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.light .input, body.paper .input, .light .select, body.paper .select { background: var(--surface); }
.input::placeholder { color: var(--muted); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[readonly] { color: var(--muted); background: var(--bg-2) !important; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { display: none; padding: 12px 14px; border-radius: 10px; font-size: 0.9rem; line-height: 1.45; border: 1px solid transparent; }
.notice.show { display: block; }
.notice.error { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.notice.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.notice.info { background: var(--accent-soft); color: var(--text); border-color: transparent; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.35); transition: transform 0.2s; }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }
.switch.busy { opacity: 0.5; pointer-events: none; }

/* Toast + modal */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: #1c1c21; color: #f5f5f4; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 16px 40px rgba(0,0,0,0.4); font-size: 0.9rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 90; max-width: min(92vw, 480px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255,107,107,0.5); }
.toast.ok { border-color: rgba(62,207,142,0.5); }
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); display: grid; gap: 14px; }
.modal.wide { max-width: 760px; max-height: calc(100vh - 40px); overflow: auto; }
.modal h3 { font-size: 1.25rem; }
.modal p { color: var(--text-2); font-size: 0.95rem; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* Footer */
.footer { background: #0e0e10; color: #f5f5f4; --text: #f5f5f4; --text-2: #b4b4bb; --muted: #83838b; --line: rgba(255,255,255,0.08); --bg: #0e0e10; padding: clamp(56px, 7vw, 96px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--text-2); font-size: 0.925rem; max-width: 26em; margin-top: 16px; }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 0.925rem; color: var(--text-2); }
.footer li a:hover { color: var(--text); }
.footer-mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 17vw, 15rem); line-height: 0.74; letter-spacing: -0.05em; color: #1b1b1f; margin: clamp(48px, 7vw, 96px) 0 0; height: 0.72em; overflow: hidden; user-select: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Preview bar (stripped when ported) */
.pv-bar { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; background: rgba(20,20,24,0.9); border: 1px solid rgba(255,255,255,0.12); color: #ddd; backdrop-filter: blur(10px); }
.pv-bar .pv-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; padding: 0 6px; }
.pv-bar button { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; font-size: 0.75rem; font-weight: 600; color: #bbb; display: inline-flex; align-items: center; }
.pv-bar button.on { border-color: rgba(255,255,255,0.3); color: #fff; }
.pv-bar .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 10px; font-size: 0.875rem; }
  .nav-text { padding: 8px 8px; font-size: 0.875rem; }
  .nav-right .btn { margin: 0 2px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; padding-bottom: 40px; }
  .hero-art .frame-desktop { position: relative; width: 100%; top: auto; transform: none; }
  .hero-art .frame-phone { left: auto; right: -8px; bottom: 0; width: 150px; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .nav-text, .nav-right .btn { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-burger { display: inline-flex; }
  .menu { display: none !important; }
}
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  h2 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .band { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
  .hero .btn-row .btn { width: 100%; }
  .hero-art .frame-phone { width: 120px; right: -4px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > div { padding: 22px 20px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .pv-bar { right: 10px; bottom: 10px; }
  .pv-bar .pv-label { display: none; }
  .modal { padding: 20px; }
}

/* Supporter frames and name styles (applied by site.js) */
.fr { position: relative; display: inline-flex; border-radius: 50%; padding: var(--fw, 0px); flex: none; }
.fr .avatar { position: relative; z-index: 1; border-color: var(--surface); }
.fr::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-sizing: border-box; }
.fr-ring::before, .fr-tenure::before { background: var(--fc); }
.fr-gradient::before, .fr-orbit::before { background: var(--fr-bg); }
.fr-glow { padding: 0; }
.fr-glow::before { inset: -1px; box-shadow: 0 0 14px 4px color-mix(in srgb, var(--fc) 75%, transparent); }
.fr-halo { padding: 0; }
.fr-halo::before { inset: -1px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--fc2), 0 0 0 5px var(--surface), 0 0 0 6px var(--fc); }
.fr-dashed { padding: calc(var(--fw) + 2px); }
.fr-dashed::before { border: var(--fw) dashed var(--fc); }
.fr-dotted { padding: calc(var(--fw) + 2px); }
.fr-dotted::before { border: var(--fw) dotted var(--fc); }
.fr.anim.fr-gradient::before, .fr.anim.fr-orbit::before, .fr.anim.fr-dashed::before, .fr.anim.fr-dotted::before { animation: fr-spin 6s linear infinite; }
.fr.anim.fr-glow::before { animation: fr-breathe 2.4s ease-in-out infinite; }
.fr-orbit::before { animation: fr-spin 3s linear infinite; }
@keyframes fr-spin { to { transform: rotate(360deg); } }
@keyframes fr-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.ns-solid { color: var(--ns0); }
.ns-gradient, .ns-shimmer { background: linear-gradient(90deg, var(--ns-stops)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ns-shimmer { background-size: 200% 100%; animation: ns-sweep 3s linear infinite; }
.ns-glow { color: var(--ns0); text-shadow: 0 0 8px var(--ns0), 0 0 20px color-mix(in srgb, var(--ns0) 55%, transparent); }
.ns-outline { color: transparent; -webkit-text-stroke: 1px var(--ns0); }
@keyframes ns-sweep { to { background-position: 200% 0; } }
.fr-corona { padding: calc(var(--fw) + 2px); }
.fr-corona::before { background: var(--fc2); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--fc) 90%, transparent); }
.fr.anim.fr-corona::before { animation: fr-corona 1.6s ease-in-out infinite; }
@keyframes fr-corona { 0%, 100% { box-shadow: 0 0 12px 3px color-mix(in srgb, var(--fc) 50%, transparent); } 50% { box-shadow: 0 0 12px 3px var(--fc); } }
.fr-space { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.fr-space.front { z-index: 2; }
.fr-orbit-svg, .fr-space .fr-orbit { transform-box: view-box; transform-origin: 50% 50%; }
.fr-space .fr-orbit.anim { animation: fr-spin 9s linear infinite; }
.fr-space .fr-twinkle { animation: fr-twinkle 2s ease-in-out infinite; }
@keyframes fr-twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fr::before, .fr-space * { animation: none !important; } }

/* Eclipse Audio profile editor (audio.js) */
.ea { display: grid; gap: 12px; }
.ea-sec { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.ea-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ea-title { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.ea-body { display: grid; gap: 14px; padding: 16px; }
.ea-slider, .ea-select { display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px; gap: 12px; align-items: center; font-size: 0.9rem; }
.ea-select { grid-template-columns: 150px minmax(0, 1fr); }
.ea-slider label, .ea-select label { color: var(--text-2); font-weight: 500; }
.ea-slider .val { text-align: right; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ea-select .select { height: 40px; }
.ea input[type=range] { width: 100%; accent-color: var(--accent); height: 24px; margin: 0; }
.ea-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ea-eqtop { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.ea-eqtop .select { width: auto; min-width: 190px; height: 38px; }
.ea-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ea-seg button { height: 32px; padding: 0 14px; border-radius: 8px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); background: transparent; border: 0; cursor: pointer; }
.ea-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.ea-curve { position: relative; }
.ea-canvas { display: block; width: 100%; height: 180px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); touch-action: none; }
.ea-readout { position: absolute; top: 8px; right: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); pointer-events: none; }
.ea-bands { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; }
.ea-bands.small { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ea-band { display: grid; justify-items: center; gap: 6px; }
.ea-band input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 24px; height: 140px; }
.ea-band label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.ea-band .val { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ea-hint { color: var(--muted); font-size: 0.85rem; }
.ea-bands .ea-hint { grid-column: 1 / -1; }
.ea-adv { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ea-advhead { display: flex; align-items: center; gap: 12px; font-size: 0.925rem; }
.ea-text { height: 140px; padding: 10px 14px; font-family: var(--font-mono); font-size: 0.8rem; resize: vertical; line-height: 1.5; }
.curve-card { display: block; width: 100%; aspect-ratio: 16 / 7; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 640px) {
  .ea-slider { grid-template-columns: 1fr 60px; }
  .ea-slider label { grid-column: 1 / -1; }
  .ea-select { grid-template-columns: 1fr; }
  .ea-bands { gap: 2px; }
  .ea-band input[type=range] { height: 110px; width: 18px; }
  .ea-band label, .ea-band .val { font-size: 0.6rem; }
}
