/* Two themes, one set of names. Light is the day site; dark is Rift's night: black sky, stars, gray clouds, dark shells. */
:root {
  --bg: #efe8d8;
  --fg: #0d0c0a;
  --soft: rgba(13, 12, 10, 0.66);
  --dim: rgba(13, 12, 10, 0.45);
  --faint: rgba(13, 12, 10, 0.32);
  --line: rgba(13, 12, 10, 0.1);
  --shell: rgba(255, 254, 251, 0.9);
  --shell-rim: rgba(13, 12, 10, 0.07);
  --shell-shadow: 0 1px 2px rgba(40, 28, 10, 0.06), 0 10px 28px -10px rgba(40, 28, 10, 0.16);
  --well: #fff;
  --well-rim: rgba(13, 12, 10, 0.05);
  --card: #fbf8f1;
  --card-rim: rgba(13, 12, 10, 0.08);
  --glass: rgba(252, 250, 245, 0.66);
  --glass-rim: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 1px 2px rgba(40, 28, 10, 0.05), 0 10px 30px -12px rgba(40, 28, 10, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --sel: #0d0c0a;
  --sel-fg: #efe8d8;
  --tag-bg: #f3e6d2;
  --tag-fg: #9a5a22;
  --foot: linear-gradient(180deg, #171410 0%, #0d0c0a 100%);
  --foot-rim: rgba(214, 160, 98, 0.12);
  --sky: linear-gradient(180deg, #efe8d8 0%, #efe8d8 22%, #f1e6d0 42%, #f0dbbb 58%, #ecd2ab 72%, #efe8d8 100%);
  --cream: #efe8d8;
  --amber: 214, 160, 98;
  --bronze: #a8682f;
  --hot: #c4562b;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --out: cubic-bezier(0.76, 0, 0.24, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --fg: #f1ede4;
  --soft: rgba(241, 237, 228, 0.7);
  --dim: rgba(241, 237, 228, 0.46);
  --faint: rgba(241, 237, 228, 0.3);
  --line: rgba(255, 255, 255, 0.09);
  --shell: rgba(30, 30, 34, 0.94);
  --shell-rim: rgba(255, 255, 255, 0.09);
  --shell-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -10px rgba(0, 0, 0, 0.7);
  --well: #121214;
  --well-rim: rgba(255, 255, 255, 0.06);
  --card: #141416;
  --card-rim: rgba(255, 255, 255, 0.08);
  --glass: rgba(24, 24, 28, 0.62);
  --glass-rim: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --sel: #f1ede4;
  --sel-fg: #0b0b0c;
  --tag-bg: rgba(214, 160, 98, 0.14);
  --tag-fg: #e3b47c;
  --foot: linear-gradient(180deg, #1a1a1d 0%, #111113 100%);
  --foot-rim: rgba(255, 255, 255, 0.08);
  --sky: linear-gradient(180deg, #0b0b0c 0%, #0b0b0c 45%, #121214 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--sans);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--soft); }

/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: #0d0c0a; color: var(--cream);
  clip-path: inset(0 0 0 0);
}
.js .splash { display: flex; }
.no-splash .splash { display: none; }
.splash-word { margin: 0; display: flex; font: 400 clamp(4rem, 12vw, 9rem)/1 var(--serif); letter-spacing: -0.03em; overflow: hidden; padding-bottom: 0.08em; }
.splash-word span { display: inline-block; transform: translateY(110%); animation: rise-in 0.7s var(--ease) forwards; }
.splash-word span:nth-child(2) { animation-delay: 0.06s; }
.splash-word span:nth-child(3) { animation-delay: 0.12s; }
.splash-word span:nth-child(4) { animation-delay: 0.18s; }
.splash-word span:nth-child(5) { animation-delay: 0.24s; }
.splash-line { width: min(240px, 50vw); height: 1px; background: rgba(239, 232, 216, 0.14); overflow: hidden; }
.splash-line i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--cream), rgb(var(--amber))); animation: grow 0.95s 0.15s var(--out) forwards; box-shadow: 0 0 12px rgb(var(--amber)); }
.splash-count { position: absolute; right: 28px; bottom: 22px; margin: 0; font: 500 0.82rem/1 var(--sans); font-variant-numeric: tabular-nums; color: rgba(239, 232, 216, 0.45); letter-spacing: 0.04em; }
.splash.out { animation: wipe 0.75s var(--out) forwards; }
.splash.out > * { animation: fade-up 0.4s var(--ease) forwards; }
@keyframes rise-in { to { transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes wipe { to { clip-path: inset(0 0 100% 0); } }
@keyframes fade-up { to { opacity: 0; transform: translateY(-24px); } }

/* ---------- nav: plain header at the top, glass pill once scrolled ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; pointer-events: none; }
.nav-in {
  pointer-events: auto;
  margin: 0 auto;
  max-width: 1200px;
  height: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: max-width 0.6s var(--out), background 0.4s, border-color 0.4s, box-shadow 0.4s, padding 0.6s var(--out);
}
.nav.scrolled .nav-in {
  max-width: 720px;
  padding: 0 8px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--glass-rim);
  box-shadow: var(--glass-shadow);
}
.logo { font: 400 1.75rem/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; }
.nav .logo { justify-self: start; transition: margin-left 0.6s var(--out); }
.nav.scrolled .logo { margin-left: 14px; }
.nav-links { display: flex; gap: 28px; font-size: 0.9rem; font-weight: 500; }
.nav-links a { position: relative; text-decoration: none; color: var(--soft); transition: color 0.2s; }
.nav-links a.soon { cursor: default; }
.nav-links a.soon:hover { color: var(--soft); }
.nav-links a.soon::after { display: none; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--bronze); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.theme {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.theme:hover { color: var(--fg); background: var(--glass); border-color: var(--glass-rim); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .moon-i { display: none; }
:root[data-theme="dark"] .theme .sun-i { display: none; }
:root[data-theme="dark"] .theme .moon-i { display: block; }

/* ---------- buttons: hover and press change the inside only, nothing moves ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 500 0.95rem/1 var(--sans);
  padding: 16px 24px; border-radius: 999px;
  transition: background 0.2s, box-shadow 0.25s, color 0.2s;
}
/* the ink button is the footer card's material: the same warm black and the same rim */
.btn-ink { background: var(--foot); color: var(--cream); border: 1px solid var(--foot-rim); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: filter 0.25s, box-shadow 0.25s; }
.btn-ink:hover { filter: brightness(1.35); }
.btn-ink:active { filter: brightness(0.95); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45); }
.btn-glow {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #84491b 0%, #95592a 45%, #b8783f 100%);
  border: 1px solid #6a3a13;
  text-shadow: 0 1px 1px rgba(60, 28, 4, 0.35);
  box-shadow: 0 0 0 3px rgba(196, 138, 82, 0.14), 0 6px 18px -4px rgba(150, 82, 26, 0.5);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s;
}
.btn-glow::before, .btn-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.btn-glow::before {
  background: linear-gradient(180deg, #84491b 0%, #95592a 45%, #b8783f 100%);
  box-shadow: inset 0 -4px 10px rgba(255, 210, 150, 0.5), inset 0 0 0 1px rgba(255, 205, 150, 0.32), inset 0 3px 6px rgba(50, 22, 2, 0.3);
}
.btn-glow::after {
  opacity: 0;
  background: linear-gradient(180deg, #91541f 0%, #a8682f 45%, #cf905a 100%);
  box-shadow: inset 0 -6px 14px rgba(255, 224, 175, 0.75), inset 0 0 0 1px rgba(255, 220, 170, 0.5), inset 0 3px 6px rgba(50, 22, 2, 0.22);
}
.btn-glow:hover::after { opacity: 1; }
.btn-glow:hover { border-color: #7a4516; box-shadow: 0 0 0 3px rgba(214, 160, 98, 0.24), 0 8px 24px -4px rgba(190, 112, 40, 0.65); }
.btn-glow:active::after { opacity: 0; }
.btn-glow:active::before { background: linear-gradient(180deg, #74400f 0%, #8a5124 60%, #a46a35 100%); box-shadow: inset 0 3px 8px rgba(40, 18, 0, 0.5), inset 0 -2px 6px rgba(255, 210, 150, 0.25); }
.btn-glow:active { box-shadow: 0 0 0 3px rgba(196, 138, 82, 0.14); }
.btn-glow:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(214, 160, 98, 0.5); }
.btn-glow:disabled { opacity: 0.7; cursor: default; }
.btn-line { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--fg); }
.btn-small { padding: 10px 17px; font-size: 0.9rem; }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--soft); text-decoration: underline; text-underline-offset: 4px; }
.text-btn:hover { color: var(--fg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(700px, 100svh);
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px;
  overflow: hidden;
  isolation: isolate;
}
.sky { position: absolute; inset: 0; z-index: -1; background: var(--sky); transition: background 0.4s; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.moon { position: absolute; top: 12%; right: 14%; width: 74px; height: 74px; display: none; border-radius: 50%; box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.55), 0 0 60px 4px rgba(255, 255, 255, 0.05); }
.moon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #0b0b0d; transform: translate(5px, -2px); }
:root[data-theme="dark"] .stars, :root[data-theme="dark"] .moon { display: block; }
:root[data-theme="dark"] .layer { filter: blur(7px); opacity: 0.9; }
.bloom {
  position: absolute; left: 50%; top: 66%;
  width: 1100px; height: 520px;
  transform: translate(calc(-50% + var(--gx, 0px)), -50%);
  background: radial-gradient(closest-side, rgba(255, 246, 228, 0.95), rgba(255, 228, 186, 0.45) 45%, rgba(255, 220, 170, 0) 80%);
  transition: transform 1.2s var(--ease);
  pointer-events: none;
}
:root[data-theme="dark"] .bloom { display: none; }
.depth { position: absolute; inset: 0; transition: transform 1s var(--ease); will-change: transform; }
.d-back { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -6px), 0); }
.d-front { transform: translate3d(calc(var(--px, 0) * -34px), calc(var(--py, 0) * -12px), 0); }
.clouds {
  position: absolute; left: -12%; right: -12%; bottom: 0; height: 62%;
  /* the whole bank thins out toward the page instead of stopping on the hero's edge */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.85) 55%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.22) 85%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.85) 55%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.22) 85%, transparent 100%);
}
.layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; animation: drift 80s ease-in-out infinite alternate; }
.layer.cl-front { animation-duration: 60s; animation-direction: alternate-reverse; }
/* eased stops (a smoothstep, not a straight ramp) so the eye finds no line where the sky becomes the page */
.fade { position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 6%, transparent) 15%, color-mix(in srgb, var(--bg) 22%, transparent) 30%, color-mix(in srgb, var(--bg) 50%, transparent) 50%, color-mix(in srgb, var(--bg) 80%, transparent) 70%, color-mix(in srgb, var(--bg) 96%, transparent) 86%, var(--bg) 100%); }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

.hero-in { position: relative; width: 100%; max-width: 980px; margin-top: clamp(150px, 26vh, 260px); display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 {
  margin: 0 0 40px;
  font: 400 clamp(2.4rem, 4.8vw, 4.3rem)/1.02 var(--serif);
  letter-spacing: -0.025em;
  max-width: 19ch;
}
h1 em { font-style: italic; color: var(--dim); }

/* the search bar: one glass pill, the same material as the header pill; the fields sit straight in it */
.bar, .toggles, .ticket {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
}
.bar {
  width: min(840px, 100%);
  display: flex; align-items: stretch; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  text-align: left;
  transition: border-color 0.2s;
}
.bar:focus-within { border-color: rgba(176, 112, 52, 0.45); }
.bar-go { padding: 0 24px; min-height: 54px; }
.bar-go svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.seg { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 24px; min-width: 0; }
.seg-site { flex: 1.4; cursor: text; }
.seg-goal { flex: 1; }
.seg-k { font-size: 0.78rem; font-weight: 500; color: var(--dim); }
.seg input { border: 0; outline: none; background: transparent; padding: 0; font: 500 1rem/1.3 var(--sans); color: var(--fg); width: 100%; }
.seg input::placeholder { color: var(--faint); font-weight: 400; }
.seg-v { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-v.empty { color: var(--faint); font-weight: 400; }
.seg-div { align-self: center; width: 1px; height: 32px; background: var(--line); }
.bar.shake { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* toggles, one strip like Rift's filter row */
.toggles {
  display: flex; align-items: center;
  gap: 2px;
  margin-top: 14px; padding: 4px;
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.toggles::-webkit-scrollbar { display: none; }
.toggles button {
  position: relative;
  flex: none;
  padding: 8px 15px;
  font-size: 0.9rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--soft);
  background: transparent; border: 0; border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.toggles button + button::after { content: ""; position: absolute; left: -2px; top: 30%; bottom: 30%; width: 1px; background: var(--line); }
.toggles button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; opacity: 0.8; }
.toggles button:hover { color: var(--fg); background: var(--glass-rim); }
.toggles button.sel { color: var(--sel-fg); background: var(--sel); }
.toggles button.sel::after, .toggles button.sel + button::after { opacity: 0; }

/* ticket at the bottom of the hero */
.ticket {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 16px;
  color: var(--fg);
  border-radius: 999px; cursor: pointer;
  font-size: 0.9rem; font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.ticket:hover { border-color: rgba(176, 112, 52, 0.35); }
.live { width: 7px; height: 7px; border-radius: 50%; background: #5fbf72; }
.ticket-sep { width: 1px; height: 16px; background: var(--line); }
.ticket-tag { font-size: 0.8rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); }
.ticket-arr { color: var(--dim); font-size: 1.2rem; line-height: 1; }

section { position: relative; scroll-margin-top: 90px; }
h2 { margin: 0 0 40px; font: 400 clamp(2.2rem, 4.4vw, 3.6rem)/1.02 var(--serif); letter-spacing: -0.02em; }

/* ---------- start ---------- */
.start { padding: clamp(60px, 9vw, 110px) 0 clamp(80px, 11vw, 140px); text-align: center; }
.start h2 { margin-bottom: 18px; }
.start p { max-width: 46ch; margin: 0 auto 32px; color: var(--soft); font-size: 1.05rem; }

/* testimonials */
.testimonials { padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 8vw, 100px); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote { background: var(--card); border: 1px solid var(--card-rim); border-radius: 20px; padding: 28px; margin: 0; }
.quote blockquote { margin: 0 0 1.2rem; font: 400 1.5rem/1.25 var(--serif); }
.quote figcaption { font-size: 0.88rem; color: var(--soft); }
.quote figcaption strong { display: block; color: var(--fg); font-weight: 500; }

/* ---------- footer card ---------- */
.footer { padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.foot-card {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px;
  padding: 52px 56px 36px;
  background: var(--foot);
  color: var(--cream);
  border-radius: 28px;
  border: 1px solid var(--foot-rim);
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foot-logo { font-size: 2.6rem; color: var(--cream); }
.foot-mail { color: rgba(239, 232, 216, 0.7); text-decoration: none; font-size: 0.95rem; border-bottom: 1px solid rgba(239, 232, 216, 0.15); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.foot-mail:hover { color: #e3b47c; border-color: #e3b47c; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-k { margin: 0 0 4px; color: rgba(239, 232, 216, 0.45); font-size: 0.85rem; font-weight: 500; }
.foot-cols a, .foot-cols button, .foot-cols span { color: var(--cream); text-decoration: none; background: none; border: 0; padding: 0; font-size: 0.95rem; transition: color 0.2s; }
.foot-cols a, .foot-cols button { cursor: pointer; }
.foot-cols a:hover, .foot-cols button:hover { color: #e3b47c; }
.foot-c { grid-column: 1 / -1; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(239, 232, 216, 0.08); color: rgba(239, 232, 216, 0.45); font-size: 0.85rem; }

/* ---------- sheet (the audit questions): the same shell as the pills, fields as pills too ---------- */
.sheet-bg {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bg-in 0.3s ease;
}
.sheet {
  position: relative;
  width: min(440px, 100%);
  padding: 18px 24px 26px;
  background: var(--card);
  border: 1px solid var(--glass-rim);
  border-radius: 28px;
  box-shadow: var(--glass-shadow), 0 30px 70px -40px rgba(0, 0, 0, 0.6);
  animation: sheet-in 0.45s var(--ease);
}
@keyframes bg-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
/* one row: back, the progress line, close */
.sheet-head { display: flex; align-items: center; gap: 14px; height: 34px; margin-bottom: 22px; }
.sheet-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sheet-bar i { display: block; height: 100%; width: 33%; background: var(--bronze); transition: width 0.5s var(--ease); }
.sheet-back, .sheet-x {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 34px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--soft); cursor: pointer; font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sheet-back { padding: 0 14px 0 8px; }
.sheet-x { width: 34px; }
.sheet-back svg, .sheet-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-back:hover, .sheet-x:hover { color: var(--fg); border-color: var(--fg); }
.q { border: 0; margin: 0; padding: 0; min-width: 0; animation: q-in 0.4s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(8px); } }
.q legend, .q .legend { padding: 0; margin: 0 0 18px; font: 400 1.8rem/1.05 var(--serif); letter-spacing: -0.02em; color: var(--fg); }
.sheet .in {
  display: block; width: 100%;
  margin-bottom: 8px;
  padding: 14px 20px;
  font: 400 1rem/1.2 var(--sans); color: var(--fg);
  background: var(--well);
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sheet .in::placeholder { color: var(--faint); }
.sheet .in:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(var(--amber), 0.16); }
.sheet .in.bad { border-color: var(--hot); }
.q-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }
.q-row .btn { padding: 14px 28px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts button {
  text-align: left; padding: 13px 18px;
  background: var(--well); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: 0.95rem; font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.opts button:hover { border-color: var(--fg); }
.opts button.sel { background: var(--sel); color: var(--sel-fg); border-color: var(--sel); }
.hp { position: absolute; left: -9999px; }
.err { color: var(--hot); font-size: 0.9rem; margin: 4px 0 8px; }
.btn.wide { width: 100%; margin-top: 8px; }
.tick svg { width: 56px; height: 56px; margin-bottom: 16px; }
.tick circle { fill: none; stroke: var(--bronze); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s var(--ease) forwards; }
.tick path { fill: none; stroke: var(--bronze); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.45s 0.5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- motion on load and scroll ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.js .up { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .ticket.up { transform: translateX(-50%) translateY(14px); }
.js .ready .split .w > span { transform: none; }
.js .ready .up { opacity: 1; transform: none; }
.js .ready .ticket.up { transform: translateX(-50%); }
.js .ready .bar { transition-delay: 0.35s; }
.js .ready .toggles { transition-delay: 0.45s; }
.js .ready .ticket { transition-delay: 0.6s; }
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.seen { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in { grid-template-columns: auto 1fr; }
  .nav.scrolled .nav-in { max-width: 100%; }
  .hero-in { margin-top: clamp(120px, 20vh, 180px); }
  h1 { margin-bottom: 28px; }
  .bar { flex-direction: column; align-items: stretch; border-radius: 28px; padding: 6px; }
  .seg { padding: 10px 14px; }
  .seg-div { align-self: stretch; width: auto; height: 1px; margin: 0 14px; }
  .bar-go { margin-top: 6px; }
  .toggles { justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .foot-card { grid-template-columns: minmax(0, 1fr); padding: 36px 26px 26px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket { bottom: 24px; }
  .ticket-tag { display: none; }
  .clouds { height: 44%; left: -40%; right: -40%; }
  .moon { top: 13%; right: 9%; width: 54px; height: 54px; }
  /* on a phone the quiz is a bottom sheet: it stays above the keyboard and the thumb */
  .sheet-bg { place-items: end center; padding: 0; }
  .sheet { width: 100%; max-height: 92svh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); animation: sheet-up 0.45s var(--ease); }
  .opts { grid-template-columns: 1fr; }
  .q-row .btn { flex: 1; }
  @keyframes sheet-up { from { opacity: 0; transform: translateY(40px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer { animation: none; }
  .depth, .bloom { transition: none; transform: none; }
  .js .split .w > span, .js .up, .js .rv { opacity: 1; transform: none; transition: none; }
  .js .ticket.up { transform: translateX(-50%); }
  .q, .sheet, .sheet-bg { animation: none; }
}

/* 2026-11-03: the services links (search pages) and the note for visitors who came from one of our emails */
.services .svc-links a { display: inline-block; margin: 4px 16px 4px 0; color: var(--fg); text-decoration-color: rgba(var(--amber), 0.6); text-underline-offset: 3px; }
.services .svc-k { text-align: center; margin: 18px auto 2px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.from-email { max-width: 560px; margin: 0 auto 18px; padding: 10px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-rim); color: var(--soft); font-size: 0.95rem; }
