/* SRX Manufacturing public site, draft one (Nov 1, 2026).
   Design system v1.0: Geist / Geist Mono, navy only on the one main action or highlight,
   light by default, tabular numbers, literal titles. Layout concept: the home page follows
   one day on a Lubbock patio, noon to night; every other page uses the same quiet frame. */

:root {
  --navy: #0B1F3F;          /* the one main action or highlight */
  --navy-mid: #3D5A87;      /* links, chart 2 */
  --steel: #7891B6;         /* chart 3 */
  --mist: #B4C3DA;          /* light accent */
  --grey: #8E8E93;          /* large text, rules, series only */
  --rule: #D1D1D6;
  --surface: #F5F5F7;
  --bg: #FFFFFF;
  --fg: #000000;
  --fg-2: #636366;          /* secondary text, AA on white */
  --on-navy: #FFFFFF;
  --action-bg: var(--navy);
  --action-fg: #FFFFFF;
  --night: #000000;
  --night-2: #1C1C1E;
  --ok: #2F6B45; --ok-tint: #E7F1EA;
  --warn: #8A5B12; --warn-tint: #FBF1DE;
  --bad: #A63A32; --bad-tint: #F9E6E4;
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px;
  --t-xs: 0.8125rem; --t-sm: 0.9375rem; --t-md: 1.0625rem; --t-lg: 1.375rem; --t-xl: clamp(1.75rem, 3.2vw, 2.5rem); --t-2xl: clamp(2.25rem, 5vw, 4rem); --t-3xl: clamp(2.75rem, 7vw, 6rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-mid: #B4C3DA; --steel: #7891B6; --mist: #3D5A87; --grey: #8E8E93;
    --rule: #2C2C2E; --surface: #1C1C1E; --bg: #0B0B0C; --fg: #F5F5F7; --fg-2: #A1A1A6;
    --action-bg: #F5F5F7; --action-fg: #0B1F3F; --night: #000000; --night-2: #1C1C1E;
    --ok-tint: #17291E; --warn-tint: #2B2112; --bad-tint: #2E1614; --ok: #8CC7A0; --warn: #E2B66C; --bad: #E79A92;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy-mid: #B4C3DA; --steel: #7891B6; --mist: #3D5A87; --grey: #8E8E93;
  --rule: #2C2C2E; --surface: #1C1C1E; --bg: #0B0B0C; --fg: #F5F5F7; --fg-2: #A1A1A6;
  --action-bg: #F5F5F7; --action-fg: #0B1F3F; --night: #000000; --night-2: #1C1C1E;
  --ok-tint: #17291E; --warn-tint: #2B2112; --bad-tint: #2E1614; --ok: #8CC7A0; --warn: #E2B66C; --bad: #E79A92;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: var(--t-md); line-height: 1.55;
  font-feature-settings: "ss01" 1; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy-mid); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy-mid); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
.num, table { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.muted { color: var(--fg-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }

/* frame */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 9vw, 120px); }
.band.tight { padding-block: clamp(40px, 6vw, 72px); }
.band.surface { background: var(--surface); }
.band.night { background: var(--night); color: #F5F5F7; }
.band.night .muted { color: #A1A1A6; }
.band.night a { color: #B4C3DA; }
.stack { display: grid; gap: var(--s-16); }
.stack.lg { gap: var(--s-32); }
.row { display: flex; gap: var(--s-16); flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-24); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-24); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* type */
.stamp { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); display: inline-flex; gap: 10px; align-items: center; }
.stamp::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.band.night .stamp { color: #A1A1A6; }
.display { font-size: var(--t-3xl); font-weight: 680; letter-spacing: -0.04em; line-height: 0.98; }
.h1 { font-size: var(--t-2xl); font-weight: 650; letter-spacing: -0.035em; }
.h2 { font-size: var(--t-xl); font-weight: 640; }
.h3 { font-size: var(--t-lg); font-weight: 620; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--fg-2); max-width: 40em; }
.band.night .lede { color: #C7C7CC; }
.measure { max-width: 38em; }
.caption { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.03em; color: var(--fg-2); }

/* buttons: every button names its action */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 0.9875rem/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid var(--rule); background: var(--bg); color: var(--fg); transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { border-color: var(--grey); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--action-bg); color: var(--action-fg); border-color: var(--action-bg); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.quiet { background: transparent; border-color: transparent; color: inherit; padding: 0 8px; }
.btn.on-photo { background: rgba(255,255,255,.92); color: #000; border-color: transparent; }
.band.night .btn { background: transparent; color: #F5F5F7; border-color: #3A3A3C; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s-24); min-height: 68px; }
.brand { display: inline-flex; align-items: center; padding: 6px 4px; }
.brand img { height: 40px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; } :root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 10px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--surface); }
.nav .btn.primary { margin-left: 8px; min-height: 42px; color: var(--action-fg); }
.menu-btn { display: none; margin-left: auto; }
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.0625rem; }
  .nav .btn.primary { margin: 8px 0 0; }
  .menu-btn { display: inline-flex; }
}
.draft-flag { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-tint); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* hero scene: the shade lowers as the visitor scrolls */
.scene-track { position: relative; height: 260vh; }
.scene { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); height: calc(100svh - 68px - env(safe-area-inset-top, 0px)); min-height: 520px; overflow: hidden; background: #c9d3dc; }
.scene .photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 52%, rgba(0,0,0,.62) 100%); }
.scene .warm { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(200deg, rgba(255,170,90,.0), rgba(255,140,60,.28)); opacity: 0; mix-blend-mode: soft-light; transition: opacity .2s linear; }
.scene .copy { position: absolute; left: 0; right: 0; bottom: 64px; color: #fff; }
.scene .copy .display { color: #fff; max-width: 14em; font-size: clamp(2.25rem, 5.2vw, 4.75rem); text-shadow: 0 1px 24px rgba(0,0,0,.3); }
.scene .copy .lede { color: rgba(255,255,255,.92); margin-top: 16px; max-width: 34em; text-shadow: 0 1px 16px rgba(0,0,0,.35); }
.scene .copy .row { margin-top: 24px; }
.scene .clock { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 20px; color: #fff; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: .05em; display: flex; gap: 14px; align-items: center; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.scene .clock b { font-weight: 600; font-size: 1.25rem; letter-spacing: 0; }
.scene .beats { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 40px; width: min(320px, 80vw); }
.beat { background: rgba(255,255,255,.94); color: #000; border-radius: var(--r-md); padding: 14px 16px; font-size: 0.9375rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: opacity .3s ease, transform .3s ease; }
.beat + .beat { margin-top: 8px; }
.beat .k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: #636366; display: block; margin-bottom: 2px; }
.beat.dim { opacity: .0; transform: translateY(6px); }
.label-real { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 12px; font-family: var(--mono); font-size: 0.6875rem; color: rgba(255,255,255,.85); letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.label-real { top: auto; bottom: 20px; }
@media (max-width: 720px) {
  .scene { background: #000; }
  .scene .photo { top: 0; bottom: auto; height: 56.25vw; }
  .label-real { top: calc(56.25vw - 26px); bottom: auto; }
  .scene .warm { bottom: auto; height: 56.25vw; }
  .scene .veil { background: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) calc(56.25vw - 40px), #000 56.25vw); }
  .scene .copy { bottom: auto; top: calc(56.25vw + 20px); }
  .scene .copy .display { font-size: clamp(2rem, 9vw, 2.75rem); }
  .scene .beats { top: auto; bottom: 56px; }
  .scene .beats { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: auto; }
  .scene .beat:not(.cur) { display: none; }
  .scene .copy .lede { font-size: 1rem; }
  .scene .clock span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scene-track { height: auto; } .scene { position: relative; top: 0; } }

/* remote: a working copy of the hand-held remote */
.remote { width: 200px; border-radius: 34px; padding: 22px 18px 26px; background: linear-gradient(180deg, #F7F7F8, #E6E6EA); border: 1px solid #D1D1D6; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), inset 0 1px 0 #fff; color: #000; display: grid; gap: 12px; justify-items: center; }
.remote .led { width: 8px; height: 8px; border-radius: 50%; background: #3A3A3C; transition: background .1s; }
.remote .led.on { background: #6FCF97; box-shadow: 0 0 10px #6FCF97; }
.remote .ch { font-family: var(--mono); font-size: 0.75rem; display: flex; gap: 8px; align-items: center; }
.remote .ch button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #C7C7CC; background: #fff; cursor: pointer; font: 600 0.75rem var(--mono); color: #000; }
.remote .ch output { min-width: 3.4em; text-align: center; }
.remote .keys { display: grid; gap: 10px; width: 100%; }
.remote .key { height: 58px; border-radius: 18px; border: 1px solid #C7C7CC; background: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.875rem var(--font); color: #000; cursor: pointer; box-shadow: 0 2px 0 #C7C7CC; }
.remote .key:active, .remote .key.pressed { transform: translateY(2px); box-shadow: 0 0 0 #C7C7CC; }
.remote .key svg { width: 20px; height: 20px; }
.remote .stop { height: 44px; }
.remote .brandmark { width: 28px; opacity: .8; margin-top: 4px; }

/* cards and chips */
.card { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s-24); }
.band.surface .card { border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; padding: 5px 10px; border-radius: 999px; background: var(--surface); color: var(--fg); border: 1px solid var(--rule); }
.chip.ok { background: var(--ok-tint); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-tint); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-tint); color: var(--bad); border-color: transparent; }
.soon { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); border: 1px dashed var(--grey); border-radius: 999px; padding: 3px 9px; }

/* photo frames */
.photo-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; color: #fff; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-32 { aspect-ratio: 3 / 2; } .ratio-34 { aspect-ratio: 3 / 4; } .ratio-169 { aspect-ratio: 16 / 9; } .ratio-11 { aspect-ratio: 1; }
[class*="ratio-"] { max-width: 100%; }

/* timeline of the day (home) */
.daybar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.daybar a { padding: 14px 4px 0; text-decoration: none; color: var(--fg-2); font-family: var(--mono); font-size: 0.75rem; letter-spacing: .04em; border-top: 2px solid transparent; margin-top: -1px; }
.daybar a b { display: block; color: var(--fg); font-family: var(--font); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; margin-top: 2px; }
.daybar a:hover { border-top-color: var(--fg); }
@media (max-width: 720px) { .daybar { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; } }
.daybar.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .daybar.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sun tool */
.sun-tool { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .sun-tool { grid-template-columns: minmax(0, 1fr); } }
.sun-canvas { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: var(--surface); }
.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: 600 0.875rem var(--font); color: var(--fg-2); padding: 10px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.readout { border-left: 2px solid var(--fg); padding-left: 16px; }
.readout .big { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--navy-mid); }

/* configurator */
.config { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .config { grid-template-columns: minmax(0, 1fr); } }
.config .stage { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #c9d3dc; }
.config .stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.swatch { display: grid; gap: 6px; justify-items: center; background: none; border: 0; padding: 0; cursor: pointer; font: 500 0.75rem/1.2 var(--font); color: var(--fg-2); text-align: center; }
.swatch i { width: 100%; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--rule); box-shadow: inset 0 0 0 3px var(--bg); display: block; background-size: cover; }
.swatch[aria-pressed="true"] i { outline: 2px solid var(--fg); outline-offset: 2px; }
.swatch[aria-pressed="true"] { color: var(--fg); }
.frame-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.frame-swatches .swatch { width: 72px; }
.frame-swatches .swatch i { border-radius: 50%; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.9375rem; }
.spec dt { color: var(--fg-2); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }

/* process (made in Lubbock) */
.process { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.process li { list-style: none; padding: 18px 14px 0 0; border-top: 2px solid var(--fg); margin-top: -1px; }
.process li .code { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .05em; color: var(--fg-2); }
.process li h3 { font-size: 1.0625rem; margin: 6px 0 6px; letter-spacing: -0.01em; }
.process li p { font-size: 0.9375rem; color: var(--fg-2); }
.process svg { width: 26px; height: 26px; margin-bottom: 10px; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }
ol.process { margin: 0; padding: 0; }

/* tracker */
.tracker { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.tracker .s { height: 8px; border-radius: 4px; background: var(--rule); }
.tracker .s.done { background: var(--fg); }
.tracker .s.now { background: linear-gradient(90deg, var(--fg) 50%, var(--rule) 50%); }
.tracker-labels { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; font-family: var(--mono); font-size: 0.625rem; letter-spacing: .03em; color: var(--fg-2); margin-top: 8px; }
@media (max-width: 640px) { .tracker-labels span:nth-child(even) { visibility: hidden; } }

/* gallery */
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; }
.masonry img { width: 100%; height: auto; border-radius: var(--r-md); }
.masonry figcaption { margin-top: 6px; }

/* forms */
form .field { display: grid; gap: 6px; }
label { font-weight: 550; font-size: 0.9375rem; }
.hint { font-size: 0.8125rem; color: var(--fg-2); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--rule); background: var(--bg); color: var(--fg); font: 400 1rem var(--font);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy-mid); outline-offset: 0; border-color: transparent; }
[aria-invalid="true"] { border-color: var(--bad) !important; outline-color: var(--bad); }
.field-error { color: var(--bad); font-size: 0.875rem; margin-top: 2px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 650; font-size: 1.0625rem; margin-bottom: 4px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--rule); border-radius: var(--r-md); cursor: pointer; }
.choice input { margin-top: 3px; accent-color: var(--navy-mid); width: 18px; height: 18px; }
.choice:has(input:checked) { border-color: var(--fg); }
.notice { border-radius: var(--r-md); padding: 14px 16px; font-size: 0.9375rem; }
.notice.warn { background: var(--warn-tint); color: var(--warn); }
.notice.ok { background: var(--ok-tint); color: var(--ok); }
.notice.bad { background: var(--bad-tint); color: var(--bad); }
.notice.info { background: var(--surface); color: var(--fg); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th { text-align: left; font-weight: 600; color: var(--fg-2); font-size: 0.8125rem; letter-spacing: .02em; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.n, th.n { text-align: right; }
tfoot td { font-weight: 650; border-bottom: 0; }

/* product cards (shop) */
.product { display: grid; gap: 12px; align-content: start; }
.product .art { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.product .art svg { width: 62%; height: 62%; }
.product .price { font-variant-numeric: tabular-nums; font-weight: 600; }

/* faq */
details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--fg-2); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--fg-2); max-width: 46em; }

/* footer */
.site-foot { background: var(--night); color: #C7C7CC; padding-block: 64px 40px; font-size: 0.9375rem; }
.site-foot a { color: #F5F5F7; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-foot h4 { color: #F5F5F7; font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot .contact { font-family: var(--mono); font-size: 0.8125rem; color: #F5F5F7; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2C2C2E; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-foot .origin { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: #A1A1A6; margin-top: 12px; }
.site-foot img { width: 44px; }
@media (max-width: 900px) { .site-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/* draft review aids (removed at launch) */
.draftbar { background: var(--warn-tint); color: var(--warn); font-size: 0.8125rem; }
.draftbar .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 40px; padding-block: 4px; }
.draftbar .muted { color: var(--warn); opacity: .85; }
.draftbar .btn { min-height: 32px; font-size: 0.8125rem; color: var(--warn); text-decoration: underline; }
body.show-claims [data-claim] { outline: 2px dashed var(--warn); outline-offset: 3px; position: relative; }
body.show-claims [data-claim]::after { content: attr(data-claim); position: absolute; left: 0; top: 100%; margin-top: 6px; z-index: 5; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: .02em; text-transform: none; color: #000; background: #FBF1DE; border: 1px solid #8A5B12; border-radius: 6px; padding: 4px 6px; white-space: normal; max-width: 280px; width: max-content; text-shadow: none; }

/* utility */
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }
.kicker-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pre { opacity: .001; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .reveal.pre { opacity: 1; transform: none; } }

/* ---------- design studio (srx-studio.js) ---------- */
.row.between { justify-content: space-between; }
.studio { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.studio-main, .studio-side { min-width: 0; }
.studio-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.studio-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 864; }
.studio-edit { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.studio-edit .q { fill: rgba(255,255,255,.12); stroke: #fff; stroke-width: 2; cursor: move; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.8)); }
.studio-edit .q.on { fill: rgba(255,255,255,.2); stroke-width: 3; }
.studio-edit .hit { fill: transparent; cursor: grab; }
.studio-edit .dot { fill: #fff; stroke: #000; stroke-width: 2; pointer-events: none; }
.studio-edit .tag { pointer-events: none; }
.studio-edit .tag rect { fill: rgba(0,0,0,.62); }
.studio-edit .tag text { fill: #fff; font: 600 12px var(--mono); }
.studio-loupe { position: absolute; width: 128px; height: 128px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 24px rgba(0,0,0,.45); pointer-events: none; background: #000; }
.studio-chip { position: absolute; left: 12px; top: 12px; font: 600 0.6875rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #000; background: rgba(255,255,255,.88); border-radius: 999px; padding: 5px 10px; pointer-events: none; }
.studio-compare { position: absolute; right: 12px; bottom: 12px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(0,0,0,.62); color: #fff; font: 600 0.8125rem var(--font); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.studio-compare.on { background: rgba(0,0,0,.88); }
.studio-compare:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.studio-homes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.studio-home { display: grid; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: 500 0.8125rem/1.25 var(--font); color: var(--fg-2); min-width: 0; }
.studio-home img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); display: block; }
.studio-home[aria-pressed="true"] img { outline: 2px solid var(--fg); outline-offset: 2px; }
.studio-home[aria-pressed="true"] { color: var(--fg); }
.studio-home:focus-visible img { outline: 2px solid var(--steel); outline-offset: 2px; }
.studio-tabs { justify-self: start; }
.studio-tabs button { min-height: 44px; padding: 0 18px; }
.studio-tabs button[aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.studio-guide-art { width: 100%; max-width: 440px; height: auto; display: block; }
.studio-tips { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; color: var(--fg-2); }
.studio-step { margin: 0; color: var(--fg-2); }
.studio-step b { color: var(--fg); }
.studio-file { position: relative; overflow: hidden; }
.studio-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.studio-remote { width: 100%; justify-items: stretch; border-radius: 22px; padding: 14px 16px 16px; gap: 10px; }
.studio-remote .ch { justify-content: center; }
.studio-remote .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-remote .key { height: 52px; }
.studio-ch-name { text-align: center; margin: -4px 0 0; color: #636366; }
.studio-attach { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; }
.studio-attach img { width: 100%; border-radius: 8px; display: block; }
@media (max-width: 860px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-stage-wrap { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 6; background: var(--bg); padding-block: 6px; }
  .studio .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .studio .swatch { font-size: 0.6875rem; }
  .studio-attach { grid-template-columns: 96px minmax(0, 1fr); }
  .studio-compare { min-height: 32px; padding: 0 10px; font-size: 0.6875rem; right: 8px; bottom: 8px; }
  .studio-chip { left: 8px; top: 8px; font-size: 0.625rem; padding: 4px 8px; }
}
.studio [hidden] { display: none !important; }
.studio-drop { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 16px; text-align: center; background: rgba(0,0,0,.55); color: #fff; }
.studio-drop .row { justify-content: center; }
.studio-drop-title { margin: 0; font: 600 clamp(1.125rem, 2.2vw, 1.5rem)/1.2 var(--font); color: #fff; }
.studio-drop-note { margin: 0; font-size: 0.8125rem; color: rgba(255,255,255,.85); }
.studio-stage.drag .studio-drop { background: rgba(0,0,0,.72); outline: 2px dashed #fff; outline-offset: -10px; }
@media (min-width: 721px) {
  .scene .copy { bottom: 52px; }
  .scene .copy .stamp { display: none; }
  .scene .copy .display { font-size: clamp(2.25rem, 4.2vw, 4rem); margin-top: 0; }
  .scene .copy .lede { margin-top: 10px; }
}
.grid-2.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); }
.grid-2.wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
@media (max-width: 860px) { .grid-2.wide-left, .grid-2.wide-right { grid-template-columns: minmax(0, 1fr); } }
.studio-illus { margin: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; font-size: 0.875rem; color: var(--fg-2); }
@media (max-width: 860px) {
  /* a portrait photo would otherwise pin most of a phone screen: cap it and letterbox */
  .studio-canvas { max-height: 45svh; }
  .studio-stage { background: #000; }
}
.daybar.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
