/* ==========================================================================
   Toother Dental Supplies — site styles
   1 Tokens  2 Base  3 Layout  4 Buttons & small parts  5 Header  6 Ticker
   7 Heroes  8 Cards & sections  9 Quote builder & forms  10 Footer  11 Motion
   ========================================================================== */

/* 1 Tokens ---------------------------------------------------------------- */
:root {
  --paper: #f8f7f3;
  --paper-2: #f0eee8;
  --card: #ffffff;
  --ink: #0a1f3d;
  --ink-2: #33455d;
  --muted: #66758a;
  --line: rgba(10, 31, 61, 0.12);
  --line-2: rgba(10, 31, 61, 0.22);
  --brand: #004088;
  --brand-hover: #06326a;
  --on-brand: #ffffff;
  --link: #004088;
  --accent: #2f9be0;
  --accent-ink: #0b6fb5;
  --tint: #eaf3fb;
  --studio: #b6b6b6;
  --navy-900: #071b38;
  --navy-950: #051428;
  --ok: #1b7a53;
  --danger: #b3261e;
  --shadow-1: 0 1px 2px rgba(7, 27, 56, 0.05), 0 10px 28px -14px rgba(7, 27, 56, 0.2);
  --shadow-2: 0 2px 4px rgba(7, 27, 56, 0.06), 0 28px 56px -24px rgba(7, 27, 56, 0.32);
  --r: 14px;
  --r-sm: 10px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 78px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #071426;
  --paper-2: #0a1b33;
  --card: #0d2140;
  --ink: #eef3f9;
  --ink-2: #c3cfde;
  --muted: #8fa1b8;
  --line: rgba(226, 236, 248, 0.13);
  --line-2: rgba(226, 236, 248, 0.26);
  --brand: #eaf2fb;
  --brand-hover: #ffffff;
  --on-brand: #071b38;
  --link: #8ccbf5;
  --accent: #56b4f0;
  --accent-ink: #8ccbf5;
  --tint: #102a4d;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.3), 0 28px 56px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* Always-dark bands (stats, call to action, footer) */
.on-dark {
  --ink: #f2f6fb;
  --ink-2: #c6d2e1;
  --muted: #93a5bc;
  --line: rgba(226, 236, 248, 0.14);
  --line-2: rgba(226, 236, 248, 0.28);
  --link: #a9d8f8;
  --accent: #56b4f0;
  --accent-ink: #8ccbf5;
  --card: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  background: var(--navy-900);
}

/* 2 Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 350;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 em, h2 em, .display em { font-style: italic; font-weight: 330; color: var(--accent-ink); }
p { text-wrap: pretty; }
small { font-size: 0.86em; }
strong { font-weight: 600; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i * { vector-effect: non-scaling-stroke; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brand); color: var(--on-brand); border-radius: 8px; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 3 Layout ---------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 780px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.stack { margin-top: 1.4em; }
.stack > * + * { margin-top: 1.1em; }
.split { display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.eyebrow { font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.rule { display: block; width: 100%; max-width: 420px; height: 1px; margin: 28px auto; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--accent) 50%, var(--line-2) 80%, transparent); }

.shead { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; margin-bottom: clamp(32px, 4vw, 56px); }
.shead__text { max-width: 720px; }
.shead__title { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.shead__lede { margin-top: 18px; font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.shead--center { justify-content: center; text-align: center; }
.shead--center .shead__lede { margin-inline: auto; }

.prose { color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink); margin-top: 2.2em; }
.prose h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-top: 1.8em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 1.4em; }
.prose ul > li + li { margin-top: 0.5em; }
.prose ul > li::before { content: ""; position: absolute; left: 0.2em; top: 0.72em; width: 0.5em; height: 1px; background: var(--accent); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose ol > li + li { margin-top: 0.5em; }
.prose strong { color: var(--ink); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); }

/* 4 Buttons & small parts -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: 600 0.94rem/1.1 var(--sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn .i { width: 1.1em; height: 1.1em; transition: transform 0.2s; }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); box-shadow: var(--shadow-1); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); }
.btn--quiet { min-height: 42px; padding: 9px 14px; border-color: var(--line-2); color: var(--ink); background: transparent; font-size: 0.88rem; }
.btn--quiet:hover { border-color: var(--brand); color: var(--link); }
.btn--light { background: #fff; color: #071b38; }
.btn--light:hover { background: #eaf3fb; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--text { min-height: 0; padding: 4px 0; border: 0; background: none; color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; font-weight: 500; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--block { width: 100%; }

.add .add__on { display: none; }
.add .add__off, .add .add__on { align-items: center; gap: 8px; }
.add .add__off { display: inline-flex; }
.add[aria-pressed="true"] { border-color: transparent; background: var(--tint); color: var(--accent-ink); }
.add[aria-pressed="true"] .add__on { display: inline-flex; }
.add[aria-pressed="true"] .add__off { display: none; }

.alink { display: inline-flex; align-items: center; gap: 10px; font: 600 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); text-decoration: none; padding-block: 8px; border-bottom: 1px solid var(--line-2); transition: border-color 0.2s, gap 0.2s; }
.alink:hover { border-color: var(--accent); gap: 14px; }
.alink .i { width: 1.2em; height: 1.2em; }

.iconbtn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); text-decoration: none; transition: border-color 0.18s, background-color 0.18s; }
.iconbtn:hover { border-color: var(--ink); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 0.7rem/20px var(--sans); text-align: center; }

.tag { display: inline-block; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #0a1f3d; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.06em; }

.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.checks .i { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--tint); color: var(--accent-ink); }

.notice { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--card); color: var(--ink-2); font-size: 0.98rem; }
.notice__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--accent-ink); }
.notice__title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.notice p + p { margin-top: 0.6em; }

.statements { display: grid; gap: 6px; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: 600 0.78rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--card); }

.table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table th, .table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { width: 42%; padding-right: 20px; font-weight: 500; color: var(--muted); }
.table td { color: var(--ink); font-weight: 500; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }

.panel { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-1); }
.panel__title { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* 5 Header ---------------------------------------------------------------- */
.utility { background: var(--navy-950); color: #c6d2e1; font-size: 0.78rem; }
.utility__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.utility__note { display: flex; align-items: center; gap: 8px; min-width: 0; }
.utility__note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility__note .i { color: #56b4f0; }
.utility__links { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.utility__links a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; }
.utility__links a:hover { text-decoration: underline; }
.utility .i { width: 1.05em; height: 1.05em; }

.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow 0.25s; }
.header.is-stuck { box-shadow: 0 10px 30px -18px rgba(7, 27, 56, 0.35); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand__logo { width: auto; height: 46px; }
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: block; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav__link { position: relative; display: inline-block; padding: 10px 0; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__pair { display: inline-flex; align-items: center; gap: 2px; }
.nav__caret { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.nav__caret .i { width: 14px; height: 14px; transition: transform 0.2s; }
.nav__has-menu { position: relative; }
.nav__has-menu.is-open .nav__caret .i { transform: rotate(180deg); }
.nav__extra { display: none; }

.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: 400px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__has-menu.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1000px) {
  .nav__has-menu:hover .mega, .nav__has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.mega__item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color 0.15s; }
.mega__item:hover { background: var(--tint); }
.mega__icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--link); background: var(--paper); }
.mega__icon .i { width: 26px; height: 26px; stroke-width: 1.3; }
.mega__text strong { display: block; font-size: 0.95rem; font-weight: 600; }
.mega__text small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.mega__all { display: flex; align-items: center; justify-content: space-between; margin: 8px 4px 2px; padding: 12px 10px 8px; border-top: 1px solid var(--line); font: 600 0.74rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); text-decoration: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

.brandline { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 3px; }
.brandline span:nth-child(1) { background: #004088; }
.brandline span:nth-child(2) { background: #2f9be0; }
.brandline span:nth-child(3) { background: #9fb3c8; }

@media (max-width: 999px) {
  /* A backdrop filter would trap the full-screen menu inside the header box. */
  .header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .header__cta { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav { position: fixed; inset: 0; top: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 60px) var(--gutter) 40px; background: var(--paper); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .header { background: var(--paper); }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 20px 0; font-size: 0.9rem; }
  .nav__link::after { display: none; }
  .nav__pair { display: flex; justify-content: space-between; }
  .nav__pair .nav__link { flex: 1; }
  .nav__caret { width: 44px; height: 44px; margin-top: 8px; border: 1px solid var(--line); }
  .mega { position: static; width: auto; padding: 0 0 14px; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__has-menu.is-open .mega { display: block; transform: none; }
  .nav__extra { display: grid; gap: 12px; margin-top: 28px; }
}
@media (max-width: 640px) {
  .utility__note { display: none; }
  .utility__in { justify-content: center; }
  .brand__logo { height: 38px; }
  :root { --header-h: 66px; }
  .header__in { gap: 12px; }
  .header__actions { margin-left: auto; gap: 8px; }
}
@media (min-width: 1000px) { .nav { display: block; } }

/* 6 Ticker ---------------------------------------------------------------- */
.ticker { display: flex; align-items: stretch; background: var(--navy-900); color: #dfe8f3; font-size: 0.84rem; overflow: hidden; }
.ticker__label { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 var(--gutter); background: #004088; color: #fff; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd0ff; animation: pulse 2s ease-in-out infinite; }
.ticker__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker__track li { flex: none; display: flex; align-items: center; }
.ticker__track li::after { content: ""; width: 1px; height: 14px; margin-inline: 28px; background: rgba(255, 255, 255, 0.28); }
.ticker__track a { display: block; padding: 11px 0; color: inherit; text-decoration: none; white-space: nowrap; }
.ticker__track a:hover { color: #fff; text-decoration: underline; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__pause { flex: none; display: grid; place-items: center; width: 44px; border: 0; border-left: 1px solid rgba(255, 255, 255, 0.14); background: none; color: #c6d2e1; }
.ticker__pause:hover { color: #fff; }
.ticker__pause .i { width: 16px; height: 16px; }
.ticker__iplay { display: none; }
.ticker.is-paused .ticker__ipause { display: none; }
.ticker.is-paused .ticker__iplay { display: block; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* 7 Heroes ---------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); background: radial-gradient(1100px 560px at 88% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%), var(--paper); overflow: hidden; }
.hero__in { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1000px) { .hero__in { grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); } }
.hero__title { font-size: clamp(2.7rem, 6.3vw, 5.3rem); line-height: 1.02; letter-spacing: -0.028em; font-weight: 330; }
.hero__lede { margin-top: 26px; max-width: 34em; font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.hero__facts div { padding: 18px 18px 0 0; }
.hero__facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero__facts dt { font: 600 0.66rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero__facts dd { margin-top: 6px; font-size: 0.95rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
@media (max-width: 560px) { .hero__facts { grid-template-columns: 1fr; } .hero__facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; } }

.stage { position: relative; }
.stage__frame { position: relative; aspect-ratio: 4 / 3.25; border-radius: 22px; overflow: hidden; background: var(--studio); box-shadow: var(--shadow-2); isolation: isolate; }
.stage__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; }
.stage__slide.is-active { opacity: 1; visibility: visible; }
.stage__slide picture, .stage__slide img { width: 100%; height: 100%; }
.stage__slide img { object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.stage__slide.is-active img { transform: scale(1); }
.stage__slide--studio::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 55% at 30% 18%, rgba(255, 255, 255, 0.3), transparent 70%), linear-gradient(180deg, transparent 62%, rgba(7, 27, 56, 0.16)); }
.stage__slide--blue { display: grid; place-items: center; background: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 32px, linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 100%, radial-gradient(80% 70% at 30% 20%, #0f4a8f, #071b38 75%); color: #dcebf8; }
.stage__art { width: 78%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.stage__art * { vector-effect: non-scaling-stroke; }
.stage__art .dim { stroke: #56b4f0; stroke-width: 1; stroke-dasharray: 3 5; }
.stage__art text { fill: #a9d8f8; stroke: none; font: 600 9px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.stage__cap { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: grid; gap: 4px; padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.94); color: #0a1f3d; box-shadow: 0 10px 30px -16px rgba(7, 27, 56, 0.5); max-width: calc(100% - 36px); }
.stage__cap strong { font: 500 1.25rem/1.1 var(--serif); letter-spacing: -0.01em; }
.stage__cap span { font-size: 0.82rem; color: #33455d; }
.stage__chip { position: absolute; top: 18px; right: 18px; z-index: 2; }
.stage__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stage__tab { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 0.84rem/1 var(--sans); overflow: hidden; transition: border-color 0.2s, color 0.2s; }
.stage__tab b { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.1em; color: var(--accent-ink); }
.stage__tab[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.stage__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.stage__tab[aria-selected="true"]::after { animation: tabfill var(--slide-ms, 6500ms) linear forwards; }
.stage.is-paused .stage__tab::after, .no-js .stage__tab::after { animation: none; transform: scaleX(1); }
@keyframes tabfill { to { transform: scaleX(1); } }

.phero { padding-block: clamp(44px, 7vw, 96px) clamp(36px, 5vw, 64px); text-align: center; background: radial-gradient(900px 420px at 50% -20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%), var(--paper); }
.phero__title { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 320; letter-spacing: -0.03em; max-width: 16ch; margin-inline: auto; }
.phero__lede { max-width: 46ch; margin-inline: auto; font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-2); }
.crumbs { margin-bottom: 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font: 500 0.74rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--link); }

/* 8 Cards & sections ------------------------------------------------------- */
.scard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 42px 26px 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); text-align: center; text-decoration: none; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s; }
.scard::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #004088, #2f9be0); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.scard:hover::before { transform: scaleX(1); }
.scard__no { position: absolute; top: 16px; left: 18px; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.14em; color: var(--muted); }
.scard__icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 50%; background: linear-gradient(160deg, var(--paper), var(--card)); color: var(--link); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); transition: background-color 0.3s, color 0.3s; }
.scard__icon .i { width: 42px; height: 42px; stroke-width: 1.3; }
.scard:hover .scard__icon { background: var(--tint); }
.scard__name { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.scard__blurb { margin-top: 12px; font-size: 0.93rem; line-height: 1.55; color: var(--muted); }
.scard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--link); }
.scard__go .i { width: 1.2em; height: 1.2em; transition: transform 0.25s; }
.scard:hover .scard__go .i { transform: translateX(4px); }
.scard__body { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; }
/* Category cards with a photograph on top. */
.scard--photo { padding: 0; }
.scard__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--studio); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.scard--photo:hover .scard__media img { transform: scale(1.06); }
.scard--photo .scard__no { top: 12px; left: 12px; z-index: 1; padding: 6px 9px; border-radius: 999px; background: rgba(7, 20, 38, 0.68); color: #fff; }
.scard--photo .scard__body { padding: 22px 22px 26px; }

.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; scroll-margin-top: calc(var(--header-h) + 24px); }
.pcard:hover { box-shadow: var(--shadow-1); }
.pcard:target { box-shadow: 0 0 0 2px var(--accent), var(--shadow-1); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pcard__media--studio { background: var(--studio); }
.pcard__media--photo { background: #fff; }
.pcard__media--studio img, .pcard__media--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pcard:hover .pcard__media--studio img, .pcard:hover .pcard__media--photo img { transform: scale(1.035); }
/* Stock photos carry this tag: they show the kind of product, not the exact model. */
.phototag { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 5px 9px; border-radius: 999px; background: rgba(7, 20, 38, 0.68); color: #fff; font: 600 0.6rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; }
/* Enlarge button on product pictures; opens the picture viewer. */
.zoom { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(7, 20, 38, 0.66); color: #fff; opacity: 0; transform: scale(0.9); transition: opacity 0.25s, transform 0.25s, background-color 0.25s; }
.zoom .i { width: 17px; height: 17px; stroke-width: 2; }
.pcard:hover .zoom, .fitem:hover .zoom, .zoom:focus-visible { opacity: 1; transform: none; }
.zoom:hover { background: #004088; }
@media (hover: none) { .zoom { opacity: 1; transform: none; } }
.photonote { margin-top: 22px; max-width: 80ch; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.photonote a { white-space: nowrap; }
.credits { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.credits th, .credits td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.credits thead th { font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.credits tbody th { font-weight: 600; color: var(--ink); }
.pcard__media--art { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(var(--line) 1px, transparent 1px) 0 -1px / 100% 28px, linear-gradient(90deg, var(--line) 1px, transparent 1px) -1px 0 / 28px 100%, var(--tint); color: var(--link); }
.pcard__media--art .i { width: 88px; height: 88px; stroke-width: 1.25; padding: 14px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.pcard__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 0.68rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pcard__artg { padding: 4px 8px; border-radius: 4px; background: var(--tint); color: var(--accent-ink); letter-spacing: 0.08em; }
.pcard__name { margin-top: 10px; font-size: 1.45rem; font-weight: 400; }
.pcard__name a { color: var(--ink); text-decoration: none; }
.pcard__name a:hover { color: var(--link); }
.pcard__blurb { margin-top: 8px; font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; }
.pcard__foot { margin-top: auto; padding-top: 18px; }

.feature { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 24px); }
.feature + .feature { margin-top: clamp(20px, 3vw, 32px); }
.feature__media { position: relative; background: var(--studio); min-height: 260px; }
.feature__media picture, .feature__media img { width: 100%; height: 100%; }
.feature__media img { object-fit: cover; aspect-ratio: 4 / 3; }
.feature__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 55% at 30% 18%, rgba(255, 255, 255, 0.28), transparent 70%); }
.feature__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feature__name { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-top: 12px; }
.feature__blurb { margin-top: 12px; color: var(--ink-2); }
.feature .checks { margin-top: 22px; }
.feature__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.feature__meta b { color: var(--ink); font-weight: 600; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); }
  .feature--flip .feature__media { order: 2; }
}

.gcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.gcard__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--studio); }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gcard:hover .gcard__media img { transform: scale(1.05); }
.gcard__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 24px; }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.gcard__meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.gcard__title { margin-top: 18px; font-size: 1.42rem; font-weight: 400; line-height: 1.2; }
.gcard__title a { color: var(--ink); text-decoration: none; }
.gcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.gcard__sum { margin-top: 12px; font-size: 0.95rem; color: var(--ink-2); }
.gcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; font-size: 0.8rem; color: var(--muted); }
.gcard__go { display: inline-flex; align-items: center; gap: 8px; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }

.letter { position: relative; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-1); }
.letter::before { content: "“"; position: absolute; top: 6px; right: 28px; font: 300 7rem/1 var(--serif); color: var(--tint); }
.letter p { position: relative; color: var(--ink-2); }
.letter p + p { margin-top: 1.1em; }
.letter p:first-of-type { font: 350 clamp(1.25rem, 2vw, 1.55rem) / 1.4 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.letter__sign { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.letter__sign img { width: 44px; height: 44px; border-radius: 10px; }
.letter__sign b { display: block; font-weight: 600; color: var(--ink); }
.letter__sign span { font-size: 0.86rem; color: var(--muted); }

.principles { display: grid; gap: 0; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle__no { grid-row: span 2; font: 300 2.1rem/1 var(--serif); color: var(--accent-ink); }
.principle h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.principle p { color: var(--ink-2); font-size: 0.98rem; }

.stats { background: radial-gradient(900px 400px at 15% 0%, rgba(47, 155, 224, 0.22), transparent 60%), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 36px, var(--navy-900); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font: 300 clamp(2.4rem, 4.6vw, 3.9rem) / 1 var(--serif); letter-spacing: -0.03em; color: #fff; }
.stat__num small { font: 500 0.36em/1 var(--sans); letter-spacing: 0.02em; margin-left: 4px; color: #a9d8f8; }
.stat__label { margin-top: 14px; font: 600 0.7rem/1.5 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .stat { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; } .stat:first-child { border-top: 0; } }

.steps { counter-reset: step; display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { position: relative; padding: 30px 24px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 20px; font: 300 2.3rem/1 var(--serif); color: var(--accent-ink); }
.step h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.step p { margin-top: 8px; font-size: 0.95rem; color: var(--ink-2); }

.chain { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.chain__node { position: relative; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.chain__node small { display: block; font: 600 0.66rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.chain__node b { display: block; font-weight: 600; line-height: 1.3; }
.chain__node p { margin-top: 8px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.chain__node--you { background: var(--tint); border-color: transparent; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 400 clamp(1.1rem, 1.7vw, 1.3rem) / 1.3 var(--serif); letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--link); transition: transform 0.25s, background-color 0.25s; }
.faq__mark .i { width: 16px; height: 16px; }
.faq__item[open] .faq__mark { transform: rotate(45deg); background: var(--tint); }
.faq__a { padding: 0 56px 26px 0; color: var(--ink-2); max-width: 70ch; }
.faq__a p + p { margin-top: 0.8em; }

.visit__grid { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 960px) { .visit__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.visit__cta { margin-top: 28px; }
.visit__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.visit__cols > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.visit__cols > div:first-child { border-left: 0; }
.visit__cols dt { display: flex; align-items: center; gap: 8px; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.visit__cols dt .i { color: var(--accent-ink); }
.visit__cols dd { display: grid; gap: 4px; font-size: 0.96rem; font-weight: 500; }
.visit__cols dd small { color: var(--muted); font-weight: 400; }
.visit__cols dd a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.visit__cols dd a:hover { color: var(--link); text-decoration: underline; }
.hours { display: flex; justify-content: space-between; gap: 12px; font-weight: 400; color: var(--ink-2); font-size: 0.92rem; }
.hours span:last-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
@media (max-width: 720px) { .visit__cols > div { border-left: 0; border-top: 1px solid var(--line); } .visit__cols > div:first-child { border-top: 0; } }

.cta { background: radial-gradient(800px 380px at 90% 110%, rgba(47, 155, 224, 0.28), transparent 60%), var(--navy-900); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; padding-block: clamp(56px, 7vw, 92px); }
.cta__title { font-size: clamp(2rem, 4vw, 3.3rem); color: #fff; }
.cta__text { margin-top: 16px; max-width: 52ch; color: var(--ink-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 0.86rem/1 var(--sans); transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.search { position: relative; flex: 1 1 240px; max-width: 340px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 46px; padding: 10px 14px 10px 42px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.filters__none { padding: 40px 0; text-align: center; color: var(--muted); }

.article { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 110px); }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.article .prose { font-size: 1.09rem; }
.article .prose > p:first-child { font: 350 clamp(1.3rem, 2vw, 1.55rem) / 1.45 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.article__note { margin-top: 44px; }
.keyline { margin: 2em 0; padding: 6px 0 6px 22px; border-left: 2px solid var(--accent); font: 350 1.3rem/1.45 var(--serif); color: var(--ink); }

.e404 { min-height: 56vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.e404__code { font: 300 clamp(5rem, 16vw, 11rem) / 0.9 var(--serif); letter-spacing: -0.04em; color: var(--tint); -webkit-text-stroke: 1px var(--line-2); }

/* 9 Quote builder & forms -------------------------------------------------- */
.field { display: grid; gap: 7px; }
.field > span, .field > legend, .label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--danger); }
.field__err { display: none; font-size: 0.82rem; font-weight: 500; color: var(--danger); }
.field.is-bad .field__err { display: block; }
.fields { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.fields .span { grid-column: 1 / -1; }
.tick { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.94rem; color: var(--ink-2); }
.tick input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.tick.is-bad span { color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qb { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 1000px) { .qb { grid-template-columns: minmax(0, 1fr) 340px; } }
.qb__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; counter-reset: qs; }
.qb__step { counter-increment: qs; padding-top: 14px; border-top: 3px solid var(--line); font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: border-color 0.3s, color 0.3s; }
.qb__step::before { content: "0" counter(qs) "  "; color: var(--accent-ink); }
.qb__step.is-on { border-color: var(--accent); color: var(--ink); }
.qb__step.is-done { border-color: var(--brand); }
.qb__panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.qb__panel > p { color: var(--ink-2); margin-bottom: 24px; }
.qb__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.qb__msg { margin-top: 16px; font-size: 0.92rem; font-weight: 500; color: var(--danger); }
.qb__msg:empty { display: none; }
.qb__wait { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }

.qlist { display: grid; gap: 12px; }
.qrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.qrow__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--tint); color: var(--link); overflow: hidden; }
.qrow__icon .i { width: 32px; height: 32px; stroke-width: 1.3; }
.qrow__icon img { width: 100%; height: 100%; object-fit: cover; }
.qrow__name { font-weight: 600; line-height: 1.3; }
.qrow__meta { font-size: 0.82rem; color: var(--muted); }
.qrow__ctl { display: flex; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--tint); }
.qty .i { width: 14px; height: 14px; }
.qty input { width: 44px; height: 38px; padding: 0; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qrow__del { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.qrow__del:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.qrow__note { grid-column: 2 / -1; }
.qrow__note input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 8px; background: transparent; font-size: 0.9rem; }
.qrow__note input:focus { outline: none; border-style: solid; border-color: var(--accent); }
@media (max-width: 560px) { .qrow { grid-template-columns: 44px minmax(0, 1fr); } .qrow__icon { width: 44px; height: 44px; } .qrow__ctl { grid-column: 1 / -1; justify-content: space-between; } .qrow__note { grid-column: 1 / -1; } }
.qempty { padding: 34px 24px; border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--muted); }
.qadd { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.qadd > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 600; }
.qadd > summary::-webkit-details-marker { display: none; }
.qadd[open] > summary .i { transform: rotate(180deg); }
.qadd__body { padding: 0 18px 18px; }
.qadd__group + .qadd__group { margin-top: 16px; }
.qadd__group h3 { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.qadd__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 0.86rem; }
.qchip .i { width: 14px; height: 14px; }
.qchip:hover { border-color: var(--brand); color: var(--link); }
.qchip[aria-pressed="true"] { background: var(--tint); border-color: transparent; color: var(--accent-ink); }

.qside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.qside .panel { box-shadow: none; }
.qside__list { display: grid; gap: 14px; font-size: 0.92rem; color: var(--ink-2); }
.qside__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.qside__list .i { color: var(--accent-ink); margin-top: 2px; }

.qsum { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.qsum > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.qsum > div:first-child { border-top: 0; }
.qsum dt { color: var(--muted); }
.qsum dd { font-weight: 500; overflow-wrap: anywhere; }
.qsum ul { display: grid; gap: 6px; }
@media (max-width: 560px) { .qsum > div { grid-template-columns: 1fr; gap: 2px; } }

.done { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-align: center; }
.done__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.done__icon .i { width: 34px; height: 34px; }
.done h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.done p { margin-top: 12px; color: var(--ink-2); }
.done__ref { display: inline-block; margin-top: 18px; padding: 10px 16px; border-radius: 8px; background: var(--tint); font: 600 0.95rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; color: var(--ink); }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.fallback { text-align: left; }
.fallback pre { max-height: 220px; margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); overflow: auto; font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

.toasts { position: fixed; z-index: 80; left: 50%; bottom: 24px; display: grid; gap: 10px; transform: translateX(-50%); width: min(92vw, 440px); pointer-events: none; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 12px; background: #071b38; color: #fff; font-size: 0.92rem; box-shadow: var(--shadow-2); pointer-events: auto; animation: toast-in 0.3s ease both; }
.toast a { color: #a9d8f8; font-weight: 600; white-space: nowrap; }
.toast.is-out { animation: toast-out 0.3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* 10 Footer --------------------------------------------------------------- */
.footer { background: var(--navy-950); font-size: 0.94rem; }
.footer__top { display: grid; gap: 40px clamp(24px, 4vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer__brand { grid-column: span 1; max-width: 320px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; } }
.footer__brand img { width: auto; height: 54px; }
.footer__brand p { margin-top: 20px; color: var(--muted); line-height: 1.6; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); transition: color 0.2s, border-color 0.2s; }
.footer__social a:hover { color: #fff; border-color: #fff; }
.footer__col h2 { font: 600 0.7rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: var(--ink-2); text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--ink-2); }
.footer__contact .i { margin-top: 3px; color: var(--accent); }
.footer__contact a { overflow-wrap: anywhere; }
.footer__reg { padding-block: 22px; border-top: 1px solid var(--line); }
.footer__reg p { max-width: 96ch; font-size: 0.8rem; line-height: 1.6; color: var(--muted); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 30px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.footer__base ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__base a { color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.footer__base a:hover { color: #fff; }

/* 11 Motion --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .ticker__view { overflow-x: auto; }
  .ticker__pause { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .utility, .header, .ticker, .footer, .cta, .toasts, .qside { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Toother — cinematic layer: dark chapters, 3D stage, scroll-driven pieces.
   Appended to site.css by the build.
   ========================================================================== */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root { --gold: #c8a35a; --gold-soft: rgba(200, 163, 90, 0.5); }

/* Cross-page transitions (browsers without support simply navigate). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s ease both; }
::view-transition-new(root) { animation: vt-in 0.42s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 2px; background: linear-gradient(90deg, #2f9be0, var(--gold)); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }

/* ---- Cinema: forced-dark pages and bands -------------------------------- */
.cinema, .cine {
  --paper: #050d1a;
  --paper-2: #07142a;
  --card: #0a1c38;
  --ink: #f1f5fa;
  --ink-2: #c2cedd;
  --muted: #8a9bb3;
  --line: rgba(226, 236, 248, 0.12);
  --line-2: rgba(226, 236, 248, 0.24);
  --brand: #eef4fb;
  --brand-hover: #ffffff;
  --on-brand: #071b38;
  --link: #9bd2f7;
  --accent: #56b4f0;
  --accent-ink: #9bd2f7;
  --tint: #0e2a4f;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.3), 0 34px 70px -28px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
  color: var(--ink);
  background: var(--paper);
}
.cinema .brand__logo--light { display: none; }
.cinema .brand__logo--dark { display: block; }
.cinema .theme-sun, .cinema [data-theme-toggle] { display: none; }
.cinema .eyebrow, .cine .eyebrow { color: var(--gold); }
.cinema .section--alt { background: var(--paper-2); }
.cinema .rule { background: linear-gradient(90deg, transparent, var(--gold-soft) 30%, var(--gold) 50%, var(--gold-soft) 70%, transparent); max-width: 120px; }
.cinema h1 em, .cinema h2 em, .cine h1 em, .cine h2 em { color: var(--gold); }

.ghost { position: absolute; z-index: 0; left: 50%; top: 50%; translate: -50% -50%; font: 300 clamp(6rem, 24vw, 22rem) / 0.8 var(--serif); letter-spacing: -0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(226, 236, 248, 0.07); pointer-events: none; -webkit-user-select: none; user-select: none; }
.ghost--left { left: -2vw; translate: 0 -50%; }

[data-spotlight] { position: relative; }
[data-spotlight]::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(86, 180, 240, 0.13), transparent 60%); transition: opacity 0.4s; }
[data-spotlight].is-lit::after { opacity: 1; }
[data-spotlight] > :not(.ghost):not(.draw) { position: relative; z-index: 1; }

/* ---- Home: cinematic hero with the 3D stage ------------------------------ */
.cine-hero { position: relative; display: grid; align-items: center; min-height: min(100svh - 154px, 820px); padding-block: clamp(32px, 4vw, 52px) clamp(28px, 3.4vw, 44px); overflow: hidden; background: radial-gradient(900px 620px at 76% 42%, rgba(47, 155, 224, 0.2), transparent 62%), radial-gradient(700px 500px at 8% 110%, rgba(200, 163, 90, 0.1), transparent 60%), linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 100% 44px, linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 44px 100%, #050d1a; }
.cine-hero__in { position: relative; z-index: 2; display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (min-width: 1000px) { .cine-hero__in { grid-template-columns: minmax(0, 12fr) minmax(0, 11fr); } }
.cine-hero__title { font-size: clamp(2.8rem, 6vw, 5.1rem); line-height: 1; letter-spacing: -0.03em; font-weight: 320; }
.cine-hero__lede { margin-top: 26px; max-width: 33em; font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); }
.cine-hero .hero__actions { margin-top: 34px; }
.cine-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font: 500 0.78rem/1.4 var(--sans); letter-spacing: 0.06em; color: var(--muted); }
.cine-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.cine-hero__meta .i { color: var(--gold); }

.scene { position: relative; aspect-ratio: 1 / 1; width: min(100%, 540px, 54svh); margin-inline: auto; }
.scene::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(86, 180, 240, 0.34), rgba(86, 180, 240, 0) 68%); filter: blur(30px); }
.scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s ease; cursor: grab; touch-action: pan-y; }
.scene.is-live canvas { opacity: 1; }
.scene.is-live .scene__fallback { opacity: 0; }
.scene canvas:active { cursor: grabbing; }
.scene__fallback { position: absolute; inset: 14%; width: 72%; height: 72%; fill: none; stroke: #dcebf8; stroke-width: 0.5; stroke-linejoin: round; transition: opacity 0.8s; filter: drop-shadow(0 0 22px rgba(86, 180, 240, 0.7)); }
.scene__hint { position: absolute; left: 50%; bottom: 2%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; font: 500 0.68rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 0.8s 1.4s; white-space: nowrap; }
.scene.is-live .scene__hint { opacity: 1; }
@media (max-width: 999px) { .scene { width: min(78%, 400px); order: -1; } }

.chapters { position: relative; z-index: 2; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: clamp(28px, 3.6vw, 44px); }
.chapter { position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 22px 22px; border: 1px solid rgba(226, 236, 248, 0.14); border-radius: 4px; background: rgba(6, 16, 32, 0.58); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); text-align: center; text-decoration: none; transition: border-color 0.3s, background-color 0.3s, transform 0.3s; }
.chapter:hover { border-color: var(--gold-soft); background: rgba(10, 28, 56, 0.7); transform: translateY(-4px); }
.chapter__no { font: 400 1.25rem/1 var(--serif); color: var(--gold); letter-spacing: 0.08em; }
.chapter__name { font: 380 clamp(1.3rem, 2vw, 1.6rem) / 1.15 var(--serif); letter-spacing: -0.01em; }
.chapter__sub { font-size: 0.84rem; color: var(--muted); }
.chapter__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: 600 0.64rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.chapter__go .i { width: 1.3em; height: 1.3em; transition: transform 0.25s; }
.chapter:hover .chapter__go .i { transform: translateX(4px); }
/* Photograph behind each chapter card, kept dim so the words stay readable. */
.chapter { overflow: hidden; isolation: isolate; }
.chapter__bg { position: absolute; inset: 0; z-index: -1; }
.chapter__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.58; filter: saturate(0.9); transform: scale(1.04); transition: opacity 0.5s, transform 0.9s ease; }
.chapter__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 32, 0.34), rgba(6, 16, 32, 0.86)); }
.chapter:hover .chapter__bg img { opacity: 0.8; transform: scale(1.1); }

/* ---- Picture reel (home) -------------------------------------------------- */
.reel { --reel-pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); position: relative; padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 72px); overflow: hidden; background: radial-gradient(900px 500px at 12% 0%, rgba(47, 155, 224, 0.14), transparent 60%), var(--paper); color: var(--ink); }
.reel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.reel .shead__title em { font-style: italic; color: var(--gold); }
.reel__ctl { display: flex; gap: 10px; flex: none; }
.reel__btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); transition: border-color 0.25s, color 0.25s, opacity 0.25s; }
.reel__btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.reel__btn:disabled { opacity: 0.32; cursor: default; }
.reel__btn .i { width: 20px; height: 20px; }
.i--flip { transform: scaleX(-1); }
.reel__track { display: flex; gap: 18px; margin-top: 30px; padding: 6px var(--reel-pad) 24px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--reel-pad); scrollbar-width: none; cursor: grab; }
.reel__track::-webkit-scrollbar { display: none; }
.reel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; -webkit-user-select: none; user-select: none; }
.reel__track:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.reel__item { flex: 0 0 clamp(230px, 24vw, 330px); scroll-snap-align: start; color: inherit; text-decoration: none; }
.reel__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #0a1c38; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.reel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.reel__item:hover .reel__media img, .reel__item:focus-visible .reel__media img { transform: scale(1.06); }
.reel__kind { display: block; margin-top: 14px; font: 600 0.64rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.reel__name { display: block; margin-top: 6px; font: 380 1.22rem/1.2 var(--serif); letter-spacing: -0.01em; }
@media (max-width: 560px) { .reel__ctl { display: none; } .reel__item { flex-basis: 72vw; } }

/* ---- Picture viewer --------------------------------------------------------- */
.lightbox { width: min(94vw, 1080px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 10px; background: #071426; color: #e9eef6; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.lightbox::backdrop { background: rgba(3, 9, 20, 0.84); }
.lightbox__in { position: relative; }
.lightbox__fig { margin: 0; }
.lightbox__img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #0a1c38; }
.lightbox__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 14px 20px 16px; font-size: 0.9rem; line-height: 1.4; }
.lightbox__cap strong { font: 400 1.18rem/1.2 var(--serif); color: #fff; }
.lightbox__cap span { color: #9fb0c6; }
.lightbox__x, .lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(7, 20, 38, 0.72); color: #fff; transition: background-color 0.2s, color 0.2s; }
.lightbox__x .i, .lightbox__nav .i { width: 20px; height: 20px; }
.lightbox__x { top: 12px; right: 12px; }
.lightbox__nav { top: calc(50% - 50px); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__x:hover, .lightbox__nav:hover { background: var(--gold); color: #071426; }
.lightbox__nav[hidden] { display: none; }

.curtain { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: #050d1a; pointer-events: none; }
.js .curtain { display: grid; animation: curtain 1.1s 0.35s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
.js .curtain.is-gone { display: none; }
.curtain img { width: 180px; height: auto; animation: curtain-logo 1.1s ease both; }
@keyframes curtain { to { opacity: 0; visibility: hidden; } }
@keyframes curtain-logo { from { opacity: 0; transform: scale(0.94); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---- Chapter pages -------------------------------------------------------- */
.chero { position: relative; padding-block: clamp(56px, 9vw, 130px) clamp(40px, 6vw, 84px); text-align: center; overflow: hidden; background: radial-gradient(900px 480px at 50% -10%, rgba(47, 155, 224, 0.2), transparent 64%), var(--paper); }
.chero__in { position: relative; z-index: 2; }
.chero__title { font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 310; letter-spacing: -0.03em; max-width: 15ch; margin-inline: auto; }
.chero__lede { max-width: 54ch; margin-inline: auto; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); }
.chero__lede + .chero__lede { margin-top: 1em; }
.chero .crumbs { margin-bottom: 30px; }
.chero__art { position: absolute; z-index: 1; right: -4%; bottom: -12%; width: min(46vw, 560px); height: auto; fill: none; stroke: rgba(155, 210, 247, 0.15); stroke-width: 0.16; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.chero__art--left { right: auto; left: -5%; }

.counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px clamp(32px, 7vw, 96px); margin-top: clamp(36px, 5vw, 60px); }
.count { display: grid; gap: 10px; justify-items: center; }
.count b { font: 300 clamp(2.2rem, 4.4vw, 3.5rem) / 1 var(--serif); letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.count b.count__text { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.5; }
.count span { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); max-width: 22ch; text-align: center; }

.rail { position: fixed; z-index: 30; right: clamp(14px, 2vw, 34px); top: 50%; translate: 0 -50%; display: none; }
@media (min-width: 1240px) { .js .rail { display: block; } }
.rail ol { position: relative; display: grid; gap: 18px; padding-right: 20px; }
.rail ol::before, .rail ol::after { content: ""; position: absolute; right: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.rail ol::after { background: var(--gold); transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform 0.2s linear; }
.rail a { position: relative; display: block; min-height: 12px; font: 500 0.66rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-align: right; text-decoration: none; color: var(--muted); transition: color 0.25s; }
.rail__label { display: inline-block; padding: 5px 9px; background: rgba(5, 13, 26, 0.9); border: 1px solid var(--line); white-space: nowrap; opacity: 0; translate: 6px 0; transition: opacity 0.25s, translate 0.25s; pointer-events: none; }
.rail:hover .rail__label, .rail a:focus-visible .rail__label { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (min-width: 1580px) { .rail__label { opacity: 0.6; translate: 0 0; background: none; border-color: transparent; pointer-events: auto; } .rail a.is-current .rail__label { opacity: 1; } }
.rail a::after { content: ""; position: absolute; right: -20px; top: 50%; z-index: 1; width: 9px; height: 9px; translate: 0 -50%; border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s; }
.rail a:hover, .rail a.is-current { color: var(--ink); }
.rail a.is-current::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 163, 90, 0.2); }

.show { position: relative; display: grid; gap: clamp(32px, 6vw, 90px); align-items: center; padding-block: clamp(56px, 8vw, 120px); scroll-margin-top: calc(var(--header-h) + 10px); }
@media (min-width: 960px) { .show { grid-template-columns: minmax(0, 12fr) minmax(0, 10fr); } .show--flip .show__media { order: 2; } }
.show + .show { border-top: 1px solid var(--line); }
.show__no { font: 500 0.72rem/1 var(--sans); letter-spacing: 0.2em; color: var(--muted); }
.show__no b { color: var(--gold); font-weight: 600; }
.show__badge { display: inline-block; margin-top: 18px; padding: 8px 12px; border: 1px solid var(--gold-soft); border-radius: 2px; font: 600 0.64rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.show__title { margin-top: 18px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 330; }
.show__sub { margin-top: 10px; color: var(--muted); }
.show__quote { margin-top: 22px; font: italic 350 clamp(1.15rem, 1.8vw, 1.4rem) / 1.4 var(--serif); color: var(--gold); }
.show__text { margin-top: 18px; color: var(--ink-2); }
.show__box { margin-top: 26px; padding: 20px 22px; border: 1px solid var(--line); border-left: 2px solid var(--gold); background: rgba(255, 255, 255, 0.025); }
.show__box h4 { font: 600 0.66rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.show__box p, .show__box li { font-size: 0.95rem; color: var(--ink-2); }
.show__box li + li { margin-top: 6px; }
.show__box li { position: relative; padding-left: 16px; }
.show__box li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 1px; background: var(--gold); }
.show__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.frame { position: relative; perspective: 1400px; }
.frame::before, .frame::after { content: ""; position: absolute; z-index: 0; border: 1px solid var(--gold-soft); pointer-events: none; transition: transform 0.6s ease; }
.frame::before { inset: -16px 22px 22px -16px; transform: rotate(-1.6deg); }
.frame::after { inset: 26px -18px -18px 30px; transform: rotate(1.1deg); opacity: 0.6; }
.frame:hover::before { transform: rotate(-2.4deg) translate(-4px, -4px); }
.frame:hover::after { transform: rotate(1.8deg) translate(4px, 4px); }
.frame__inner { position: relative; z-index: 1; overflow: hidden; background: var(--studio); box-shadow: var(--shadow-2); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 0.25s ease-out; will-change: transform; }
.frame__inner img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.frame__inner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.3), transparent 60%); mix-blend-mode: soft-light; }
.frame__tag { position: absolute; z-index: 3; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; background: rgba(5, 13, 26, 0.86); border: 1px solid var(--gold-soft); color: #f1f5fa; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.frame__tag .i { color: var(--gold); width: 1.1em; height: 1.1em; }

.hotspot { position: absolute; z-index: 4; display: none; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; background: none; }
.js .hotspot { display: block; }
.hotspot__dot { position: absolute; inset: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(5, 13, 26, 0.5), 0 2px 10px rgba(5, 13, 26, 0.5); transition: transform 0.2s, background-color 0.2s; }
.hotspot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.9); animation: ping 2.4s ease-out infinite; }
.hotspot:hover .hotspot__dot, .hotspot[aria-expanded="true"] .hotspot__dot { transform: scale(1.25); background: var(--gold); }
.hotspot__label { position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 6px; padding: 9px 13px; background: rgba(5, 13, 26, 0.94); border: 1px solid var(--gold-soft); color: #f1f5fa; font: 500 0.78rem/1.3 var(--sans); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s, translate 0.2s, visibility 0.2s; pointer-events: none; }
.hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label, .hotspot[aria-expanded="true"] .hotspot__label { opacity: 1; visibility: visible; translate: -50% 0; }
.hotspot--flip .hotspot__label { left: auto; right: -6px; translate: 0 6px; }
.hotspot--flip:hover .hotspot__label, .hotspot--flip:focus-visible .hotspot__label, .hotspot--flip[aria-expanded="true"] .hotspot__label { translate: 0 0; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }

/* 3D tilt for cards (pointer devices) */
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out, box-shadow 0.3s, border-color 0.3s; will-change: transform; }
.scard[data-tilt]:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }

.cinema .pcard, .cinema .gcard, .cinema .step, .cinema .panel, .cinema .chain__node, .cinema .qrow { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); }
.cinema .pcard__media--art { background: linear-gradient(var(--line) 1px, transparent 1px) 0 -1px / 100% 28px, linear-gradient(90deg, var(--line) 1px, transparent 1px) -1px 0 / 28px 100%, #07162c; color: #9bd2f7; }
.cinema .pcard__media--art .i { background: #0a1c38; }
.cinema .statements { border-color: var(--gold-soft); background: transparent; }
.cinema .notice { border-left-color: var(--gold); background: rgba(255, 255, 255, 0.03); }
.cinema .notice__icon, .cinema .checks .i { background: rgba(200, 163, 90, 0.14); color: var(--gold); }
.cinema .faq__mark { color: var(--gold); }
.cinema .chain__node small { color: var(--gold); }
.cinema .chain__node--you { background: rgba(200, 163, 90, 0.1); border-color: var(--gold-soft); }

/* Self-drawing line art */
.js .draw path, .js .draw rect, .js .draw circle, .js .draw ellipse { transition: stroke-dashoffset 2.6s cubic-bezier(0.3, 0.6, 0.2, 1); }

/* ---- Tooth chart ---------------------------------------------------------- */
.chart { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .chart { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); } }
.chart__board { position: relative; padding: clamp(14px, 2.4vw, 30px); border: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 50%, rgba(86, 180, 240, 0.1), transparent 70%), rgba(255, 255, 255, 0.02); }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__svg text { font: 600 9px var(--sans); fill: var(--muted); text-anchor: middle; dominant-baseline: central; pointer-events: none; -webkit-user-select: none; user-select: none; }
.chart__svg .axis { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 5; }
.chart__svg .lab { font-size: 8px; letter-spacing: 0.18em; fill: var(--gold); }
.tooth { cursor: pointer; outline: none; }
.tooth__shape { fill: rgba(241, 245, 250, 0.06); stroke: rgba(226, 236, 248, 0.55); stroke-width: 1.2; transition: fill 0.18s, stroke 0.18s, transform 0.18s; transform-box: fill-box; transform-origin: center; }
.tooth:hover .tooth__shape { fill: rgba(86, 180, 240, 0.28); stroke: #9bd2f7; }
.tooth:focus-visible .tooth__shape { stroke: #fff; stroke-width: 2.4; }
.tooth[aria-checked="true"] .tooth__shape { fill: var(--gold); stroke: #f3dfb2; transform: scale(1.12); }
.tooth[aria-checked="true"] text { fill: #1a1405; }
.chart__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chart__side h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.chart__side > p { margin-top: 12px; color: var(--ink-2); }
.chart__picked { min-height: 58px; margin-top: 22px; padding: 16px 18px; border: 1px dashed var(--line-2); font-size: 0.95rem; color: var(--ink-2); }
.chart__picked b { color: var(--gold); font-weight: 600; }
.chart__form { display: grid; gap: 16px; margin-top: 20px; }
.chart__form .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }

/* ---- Workflow (laboratory) ------------------------------------------------ */
.flow { position: relative; display: grid; gap: 0; }
.flow::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold), var(--line-2)); }
.flow__stage { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 clamp(18px, 3vw, 40px); padding-block: clamp(26px, 4vw, 44px); scroll-margin-top: calc(var(--header-h) + 10px); }
.flow__no { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--gold-soft); border-radius: 50%; background: var(--paper); font: 400 1.3rem/1 var(--serif); color: var(--gold); }
.flow__head h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.flow__head p { margin-top: 8px; max-width: 60ch; color: var(--ink-2); }
.flow__items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 22px; }
.fitem { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); scroll-margin-top: calc(var(--header-h) + 24px); }
.fitem:target { border-color: var(--gold); }
.fitem__icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 50%; color: #9bd2f7; }
.fitem__icon .i { width: 36px; height: 36px; stroke-width: 1.25; }
.fitem h4 { font: 600 1rem/1.3 var(--sans); }
.fitem p { margin-top: 4px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.fitem .add { margin-top: 12px; min-height: 36px; padding: 6px 12px; font-size: 0.8rem; }
/* Flow items with a photograph: picture on the left, text on the right. */
.flow__items:has(.fitem--photo) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.fitem--photo { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 0; padding: 0; align-items: stretch; overflow: hidden; }
.fitem__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0a1c38; }
.fitem__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.fitem--photo:hover .fitem__media img { transform: scale(1.04); }
.fitem--photo .fitem__body { align-self: center; padding: 16px 18px; }
@media (max-width: 480px) { .fitem--photo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .flow::before { left: 21px; } .flow__stage { grid-template-columns: 44px minmax(0, 1fr); } .flow__no { width: 44px; height: 44px; font-size: 1.05rem; } }

/* Cinematic band used on light pages (home featured units) */
.band { position: relative; overflow: hidden; }
.band .ghost { top: 14%; }

@media (prefers-reduced-motion: reduce) {
  .js .curtain { display: none; }
  .hotspot::before { animation: none; opacity: 0; }
  [data-tilt], .frame__inner { transform: none !important; }
  .chapter__bg img, .reel__media img, .scard__media img, .gcard__media img { transition: none; transform: none; }
}
