@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/newsreader-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/manrope-latin-variable.woff2") format("woff2"); }
* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #202735;
  --glass-pearl: 250 247 242;
  /* A contrast floor, not a decorative opacity: keep the readability test passing. */
  --glass-min-opacity: .70;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: #dce9f0; font-synthesis: none;
}
body { margin: 0; overflow: hidden; height: 100svh; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid #405b78; outline-offset: 5px; }
#scene, #fallback, #atmosphere { position: fixed; inset: 0; width: 100%; height: 100%; }
#scene { overflow: hidden; }
#fallback { object-fit: cover; transition: opacity 1s; }
#atmosphere { display: block; opacity: 0; transition: opacity 1.4s; }
body.ready #atmosphere { opacity: 1; }
.interface { z-index: 2; transition: opacity .45s ease, transform .6s ease; }
.masthead { position: fixed; top: 35px; left: 42px; right: 42px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 25px; font-weight: 650; letter-spacing: -.055em; line-height: 1.1; }
.wordmark svg { width: 27px; height: 25px; }
.study-label { font-size: 10px; font-weight: 550; letter-spacing: .13em; text-transform: uppercase; display: flex; gap: 15px; opacity: .72; }
.review-controls { position: fixed; bottom: 83px; left: 50%; transform: translateX(-50%); text-align: center; width: max-content; max-width: calc(100vw - 32px); }
.scene-caption { margin-bottom: 24px; color: #344354; text-shadow: 0 1px 16px rgba(255,255,255,.7); }
.caption-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; opacity: .7; }
.scene-caption h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.045em; font-weight: 400; line-height: 1.1; margin: 9px 0 9px; }
.scene-caption p { font-size: 12px; letter-spacing: .01em; margin: 0; opacity: .78; }
.scene-picker { display: flex; gap: 5px; padding: 7px; border-radius: 18px; border: 1px solid rgba(255,255,255,.65); background: rgba(249,250,252,.37); box-shadow: 0 8px 40px rgba(45,53,78,.07), inset 0 1px 0 rgba(255,255,255,.45); backdrop-filter: blur(24px) saturate(1.1); -webkit-backdrop-filter: blur(24px) saturate(1.1); }
.scene-option { display: flex; align-items: center; gap: 12px; width: 177px; padding: 8px; color: #485366; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; transition: background .25s, box-shadow .25s; }
.scene-option:hover { background: rgba(255,255,255,.32); }
.scene-option.is-active { background: rgba(255,255,255,.71); border-color: rgba(255,255,255,.76); box-shadow: 0 2px 7px rgba(57,63,88,.06); }
.scene-option img { width: 58px; height: 43px; border-radius: 7px; object-fit: cover; }
.scene-option span { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.scene-option small { font-size: 9px; letter-spacing: .09em; font-weight: 400; opacity: .55; }
.scene-picker { width: max-content; margin: 0 auto; }
.motion-picker { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 15px auto 0; padding: 4px; border-radius: 22px; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(15px); }
.motion-picker button { padding: 7px 13px; color: #3b4b5e; background: transparent; border: 0; border-radius: 18px; font-size: 10px; transition: background .2s; }
.motion-picker button[aria-pressed="true"] { background: rgba(255,255,255,.8); }
.motion-picker button:hover { background: rgba(255,255,255,.48); }
.motion-label { align-self: center; padding: 0 12px; color: #3b4b5e; font-size: 10px; border-right: 1px solid rgba(60,75,94,.16); margin-right: 5px; }
.scene-caption { margin-bottom: 19px; }
.tuning-row { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 17px auto 0; height: 27px; color: #3e4b5e; }
.text-button { border: 0; background: none; color: inherit; padding: 6px 0; font-size: 10px; display: flex; align-items: center; gap: 7px; opacity: .76; }
.text-button:hover, .text-button[aria-pressed="true"] { opacity: 1; }
#clean[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
#motion-icon { width: 10px; }
.divider { height: 10px; width: 1px; background: currentColor; opacity: .16; }
.pulse-control { display: flex; align-items: center; gap: 10px; font-size: 10px; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 75px; height: 2px; border-radius: 4px; background: rgba(54,69,90,.24); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 8px; height: 8px; border-radius: 50%; background: #536477; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: none; border-radius: 50%; background: #536477; }
output { font-variant-numeric: tabular-nums; font-size: 9px; opacity: .6; width: 18px; text-align: left; }
.footer { position: fixed; bottom: 29px; left: 42px; right: 87px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .04em; opacity: .66; }
.footer i { font-style: normal; margin: 0 10px; }
.hide-button { z-index: 4; position: fixed; right: 35px; bottom: 19px; display: grid; place-items: center; width: 34px; height: 34px; background: rgba(255,255,255,.16); color: #4c5b6e; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: opacity .3s, background .3s; }
.hide-button svg { width: 17px; height: 17px; }
.hide-button:hover { background: rgba(255,255,255,.5); }
body[data-scene="afterglow"] .scene-caption,
body[data-scene="blue-hour"] .scene-caption { color: #fff8f3; text-shadow: 0 1px 20px rgba(48,38,69,.18); }
body[data-scene="afterglow"] .tuning-row,
body[data-scene="blue-hour"] .tuning-row,
body[data-scene="afterglow"] .footer,
body[data-scene="blue-hour"] .footer,
body[data-scene="afterglow"] .hide-button,
body[data-scene="blue-hour"] .hide-button { color: #fff9f5; }
body[data-scene="blue-hour"] .masthead { color: #f6efff; }
body[data-scene="afterglow"] input[type="range"], body[data-scene="blue-hour"] input[type="range"] { background: #ffffff55; }
body[data-scene="afterglow"] input[type="range"]::-webkit-slider-thumb, body[data-scene="blue-hour"] input[type="range"]::-webkit-slider-thumb { background: #fff8f3; }
body.ui-hidden .interface { opacity: 0; pointer-events: none; visibility: hidden; }
body.ui-hidden .hide-button { opacity: .2; }
body.ui-hidden .hide-button:hover, body.ui-hidden .hide-button:focus-visible { opacity: 1; }
#load-error { z-index: 5; position: fixed; top: 80px; left: 50%; transform: translateX(-50%); font-size: 13px; background: #fff9; padding: 12px 20px; border-radius: 10px; }
.masthead { justify-content: flex-end; }
.study-label { display: none; }
.product-intro { position: fixed; z-index: 1; inset: 0; display: grid; place-items: center; padding: 28px; pointer-events: none; }
.product-glass {
  --edge-proximity: 0; --cursor-angle: 45deg;
  --intro-offset: -9vh;
  --light-x: 30%; --light-y: 15%;
  position: relative; isolation: isolate; max-width: 100%;
  padding: 25px 36px 23px; border-radius: 28px;
  transform: translateY(max(var(--intro-offset), calc(-50svh + 50% + 80px)));
  background: linear-gradient(135deg, rgb(var(--glass-pearl) / .82), rgb(var(--glass-pearl) / var(--glass-min-opacity)) 60%, rgb(var(--glass-pearl) / .76));
  -webkit-backdrop-filter: blur(20px) saturate(1.16) brightness(1.04);
  backdrop-filter: blur(20px) saturate(1.16) brightness(1.04);
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: 0 16px 56px rgba(45,37,58,.09), 0 2px 8px rgba(63,52,74,.04), inset 0 1px 1px rgba(255,255,255,.88), inset 0 -1px 1px rgba(255,255,255,.34);
}
.glass-frost, .glass-sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.glass-frost { display: none; }
body.glass-lens-ready .product-glass { background: rgb(var(--glass-pearl) / .12); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.glass-lens-ready .glass-frost {
  display: block;
  background: linear-gradient(135deg, rgb(var(--glass-pearl) / .82), rgb(var(--glass-pearl) / var(--glass-min-opacity)) 60%, rgb(var(--glass-pearl) / .76));
  /* The clear bevel is outside the text's 24–36px padding. */
  mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent), linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-composite: intersect;
}
.glass-sheen { background: radial-gradient(ellipse 46% 110% at var(--light-x) var(--light-y), rgba(255,255,255,.32), transparent 72%); opacity: .58; }
/* Reflections stay at the edges; the reading surface never distorts the glyphs. */
.product-glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(255,255,255,.95), rgba(255,255,255,.08) 32%, rgba(205,224,255,.56) 68%, rgba(255,235,218,.9));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.product-glass::after { content: ""; position: absolute; inset: 3px; border-radius: 24px; border-top: 1px solid rgba(255,255,255,.26); border-bottom: 1px solid rgba(255,255,255,.16); }
/* React Bits Border Glow, adapted to a light, translucent reading surface.
   Copyright 2026 David Haz. See /assets/licenses/React-Bits-LICENSE.md. */
.border-glow-mesh, .border-glow-light {
  position: absolute; pointer-events: none; border-radius: inherit;
  opacity: clamp(0, calc((var(--edge-proximity) - 25) / 75), 1);
  transition: opacity .3s ease-out;
  mask-image: conic-gradient(from var(--cursor-angle) at center, #000 3%, transparent 16%, transparent 84%, #000 97%);
}
.border-glow-mesh { inset: -1px; }
.border-glow-mesh::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: radial-gradient(at 80% 55%, #fff1d9, transparent 50%), radial-gradient(at 69% 34%, #c5e4ff, transparent 50%), radial-gradient(at 8% 6%, #ffd0ba, transparent 50%), radial-gradient(at 41% 38%, #fff1d9, transparent 50%), radial-gradient(at 86% 85%, #c5e4ff, transparent 50%), radial-gradient(at 82% 18%, #ffd0ba, transparent 50%), radial-gradient(at 51% 4%, #c5e4ff, transparent 50%), #fff1d9;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.border-glow-light { inset: -30px; }
.border-glow-light::before {
  content: ""; position: absolute; inset: 30px; border-radius: inherit;
  box-shadow: inset 0 0 0 1px #fff4e3, inset 0 0 3px rgba(255,234,211,.65), 0 0 2px rgba(255,243,222,.9), 0 0 7px rgba(255,229,203,.65), 0 0 18px rgba(255,216,184,.36), 0 0 32px rgba(192,218,255,.28);
}
.product-intro h1 {
  position: relative; z-index: 1; margin: 0;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(1.625rem, 2.65vw, 2.6875rem); font-weight: 450;
  font-optical-sizing: auto; line-height: 1.18; letter-spacing: -.018em;
  text-align: center; text-wrap: balance; color: var(--ink); text-shadow: none;
}
body:not(.studio) .review-controls, body:not(.studio) .footer, body:not(.studio) #hide-ui { display: none; }
#wave-state { font-size: 9px; opacity: .55; min-width: 37px; }
body:not(.studio) #load-error { display: none; }
body.studio .product-glass { --intro-offset: -12vh; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .product-glass { background: rgb(var(--glass-pearl) / .94); }
}
@media (prefers-contrast: more) {
  .product-glass { background: linear-gradient(135deg, rgb(var(--glass-pearl) / .88), rgb(var(--glass-pearl) / .78) 60%, rgb(var(--glass-pearl) / .84)); border-color: rgba(255,255,255,.9); }
  body.glass-lens-ready .glass-frost { background: linear-gradient(135deg, rgb(var(--glass-pearl) / .88), rgb(var(--glass-pearl) / .78) 60%, rgb(var(--glass-pearl) / .84)); }
}
@media (prefers-reduced-transparency: reduce) {
  .product-glass, body.glass-lens-ready .product-glass { background: rgb(var(--glass-pearl)); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.glass-lens-ready .glass-frost, .glass-sheen { display: none; }
}
@media (forced-colors: active) {
  .product-glass, body.glass-lens-ready .product-glass { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .product-glass::before, .product-glass::after, .border-glow-mesh, .border-glow-light, body.glass-lens-ready .glass-frost, .glass-frost, .glass-sheen { display: none; }
  .product-intro h1, .wordmark { color: CanvasText; }
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .border-glow-mesh, .border-glow-light { display: none; }
}
@media (max-width: 620px) {
  .masthead { left: 22px; right: 22px; top: 23px; }
  .wordmark { font-size: 22px; }
  .product-intro { padding: 20px; }
  .product-glass { padding: 22px 24px 20px; border-radius: 25px; }
  .product-glass::after { border-radius: 21px; }
  .product-intro h1 { max-width: 20ch; line-height: 1.22; }
  .study-label { font-size: 8px; gap: 8px; }
  .review-controls { width: calc(100vw - 28px); bottom: 70px; }
  .scene-caption { margin-bottom: 21px; }
  .scene-picker { gap: 3px; padding: 5px; border-radius: 15px; }
  .scene-option { width: auto; flex: 1; padding: 6px; gap: 7px; border-radius: 10px; }
  .scene-option img { width: 32px; height: 37px; border-radius: 5px; }
  .scene-option span { font-size: 10px; gap: 4px; }
  .scene-option small { font-size: 8px; }
  .tuning-row { gap: 12px; flex-wrap: wrap; height: auto; max-width: 360px; }
  .tuning-row .divider { display: none; }
  .scene-picker { width: 100%; }
  .scene-option img { width: 48px; }
  input[type="range"] { width: 52px; }
  .footer { left: 22px; bottom: 27px; }
  .footer span:last-child { display: none; }
  .hide-button { right: 21px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
