/* =========================================================================
   Virelli Projectors - virelliprojectors.com
   Hand-written. The font block below is regenerated by build-site.py.
   Bump ASSET_VERSION in content/site.py after editing this file.

   Tokens from the approved design reference (virelli-design-reference/):
     paper #F4F5F3 / alt #E8E9E6, ink #14191C, muted #4E5A60 (6.9:1 on paper),
     dim #5C686F (5.5:1), accent teal-navy #1E4B5A (9.6:1 on paper),
     night #101418 with mint #B8E3DA from the logo (12.9:1 on night).
   Square corners everywhere except the badge artwork itself.
   ========================================================================= */

/* FONTS:BEGIN (generated by build-site.py - SIL OFL 1.1) */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300 700;font-display:swap;src:url('/assets/fonts/space-grotesk-var-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300 700;font-display:swap;src:url('/assets/fonts/space-grotesk-var-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* FONTS:END */

:root {
  --bg: #F4F5F3;
  --alt: #E8E9E6;
  --card: #FBFBFA;
  --ink: #14191C;
  --muted: #4E5A60;
  --dim: #5C686F;
  --line: #D5D8D6;
  --num: #C1C6C4;
  --accent: #1E4B5A;
  --accent-2: #173C48;
  --on-accent: #F6F7F5;
  --night: #101418;
  --night-2: #182026;
  --night-text: #B9C3C7;
  --mint: #B8E3DA;
  --error: #A8322A;
  --sans: 'Space Grotesk', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: 64px;
  --maxw: 1312px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
address { font-style: normal; }

.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--dim); margin-top: 28px; }

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; font-weight: 700; margin-bottom: 36px; max-width: 760px; }
.h3 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.lede { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 580px; margin-top: 22px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--num); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--on-accent); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--accent); }
.btn-outline-light { color: var(--on-accent); border-color: rgba(246, 247, 245, .45); }
.btn-outline-light:hover { border-color: var(--on-accent); color: #fff; }
.btn-block { width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.link-arrow { display: inline-block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; margin-top: 12px; }

/* ------------------------------------------------------- utility + header */
.utility { background: var(--alt); border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.utility-in { display: flex; justify-content: space-between; gap: 24px; padding-top: 9px; padding-bottom: 9px; }
.u-right { display: flex; gap: 28px; }
.u-mobile { display: none; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 245, 243, .95); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; flex: 0 0 auto; }
.brand .logo { width: 150px; height: auto; }
.main-nav { display: flex; gap: 30px; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; }
.main-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a[aria-current="page"], .main-nav a:hover { border-bottom-color: var(--accent); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; }
.bag-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--num); padding: 8px 12px; }
.bag-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--accent); color: var(--on-accent); font-size: 11px; }
.nav-toggle { display: none; width: 42px; height: 38px; border: 1px solid var(--num); background: transparent; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--ink); content: ""; }
.nav-toggle .bars { top: 18px; }
.nav-toggle .bars::before { top: -6px; left: 0; }
.nav-toggle .bars::after { top: 6px; left: 0; }
.mobile-nav { display: none; }

/* ------------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-text { padding: 76px 56px 64px max(var(--gutter), calc((100vw - var(--maxw)) / 2)); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-text .h1 { max-width: 640px; }
.trust { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-top: 22px; }
.hero-fig { margin: 0; background: var(--night); position: relative; min-width: 0; }
.hero-fig picture, .hero-fig img { width: 100%; height: 100%; }
.hero-fig img { object-fit: cover; object-position: 60% 50%; }
.hero-fig figcaption { position: absolute; left: 20px; bottom: 16px; font-size: 10px; letter-spacing: 0.06em; color: rgba(184, 227, 218, .75); }

.badge-strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 40px 0 0; max-width: 620px; }
.badge-strip li { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 6px 6px 10px; min-width: 0; }
.badge-strip img { width: 100%; height: auto; }
.badge-strip span { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; text-align: center; }

/* ---------------------------------------------------------------- metrics */
.metrics { background: var(--night); color: var(--on-accent); }
.metrics-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { padding: 30px 16px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .09); min-width: 0; }
.metric:last-child { border-right: 0; }
.m-val { font-size: clamp(20px, 2.2vw, 28px); color: var(--mint); margin: 0; font-weight: 600; letter-spacing: 0.01em; }
.m-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #E6ECEE; margin: 8px 0 2px; }
.m-sub { font-size: 12px; color: #97A4A9; margin: 0; }

/* --------------------------------------------------------------- sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section.tight { padding: 48px 0 80px; border-bottom: 0; }
.section.alt { background: var(--alt); }
.page-head { padding: 56px 0 40px; border-bottom: 0; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.head-row .h2 { margin-bottom: 36px; }
.head-row .link-arrow { margin-bottom: 44px; }

.night { background: var(--night); color: var(--on-accent); border-bottom-color: var(--night); }
.night .eyebrow { color: var(--mint); }
.night .h2 { color: #fff; }
.night p { color: var(--night-text); }
.night .note { color: #8E9CA1; }

/* product spotlight */
.spot-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.spot-img { background: linear-gradient(135deg, var(--alt) 0%, var(--bg) 50%, var(--alt) 100%); border: 1px solid var(--line); padding: 36px; }
.spot-text > p { color: var(--muted); max-width: 520px; }
.keyfacts { list-style: none; padding: 0; margin: 26px 0 24px; border-bottom: 1px solid var(--line); }
.keyfacts li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.keyfacts li span:first-child { color: var(--muted); }
.keyfacts li span:last-child { text-align: right; }
.price-block { margin: 6px 0 0; }
.price { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.price.big { font-size: 32px; }

/* capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cap { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.cap-img { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px; }
.cap-img img { width: 100%; max-width: 260px; margin: 0 auto; }
.cap h3 { font-size: 18px; padding: 22px 22px 0; }
.cap p { font-size: 14px; line-height: 1.7; color: var(--muted); padding: 10px 22px 0; }
.cap .cap-fact { margin-top: auto; padding: 16px 22px 20px; font-size: 10.5px; letter-spacing: 0.04em; color: var(--accent); line-height: 1.6; }

/* why list */
.why-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.why-row { display: grid; grid-template-columns: 90px 280px minmax(0, 1fr); gap: 40px; padding: 30px 0; border-top: 1px solid var(--line); align-items: baseline; }
.why-n { font-size: 30px; font-weight: 700; color: var(--num); }
.why-row h3 { font-size: 18px; }
.why-row p { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 700px; }

/* scenes */
.scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.scene { margin: 0; min-width: 0; }
.scene img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.scene figcaption { padding-top: 18px; }
.scene h3 { font-size: 19px; color: #fff; margin-bottom: 6px; }
.scene p { font-size: 14.5px; line-height: 1.7; }

/* split layout (placement, connections) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.split-text > p { color: var(--muted); max-width: 540px; }
.split-fig { min-width: 0; }
.diagram { width: 100%; height: auto; }
.facts { margin: 26px 0 16px; border-bottom: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.inputs { margin: 24px 0 0; }
.inputs > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.inputs dt { color: var(--accent); font-weight: 600; font-size: 13px; }
.inputs dd { margin: 0; color: var(--muted); }

/* reviews */
.stars { display: inline-flex; gap: 2px; fill: var(--accent); }
.stars .off { opacity: .28; }
.review-sum { display: flex; align-items: center; gap: 22px; margin: -8px 0 40px; }
.rs-val { font-size: 46px; font-weight: 600; color: var(--accent); margin: 0; line-height: 1; }
.review-sum p { margin: 6px 0 0; color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { margin: 0; padding: 26px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.review figcaption { margin-top: auto; font-size: 11px; letter-spacing: 0.04em; color: var(--dim); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.qa-icon { flex: 0 0 14px; height: 14px; position: relative; margin-top: 5px; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--accent); transition: transform .2s; }
.qa-icon::after { transform: rotate(90deg); }
.qa[open] .qa-icon::after { transform: rotate(0deg); }
.qa-a { padding: 0 40px 24px 0; }
.qa-a p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.qa-a a { color: var(--accent); }

/* the Virelli standard + protocols */
.standard { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; margin-bottom: 64px; }
.standard .h2 { margin-bottom: 0; }
.standard-text p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.proto-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.proto { padding: 28px 28px 0 0; min-width: 0; }
.proto + .proto { padding-left: 28px; border-left: 1px solid var(--line); }
.proto-n { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.proto h3 { font-size: 16px; margin-bottom: 8px; }
.proto p { font-size: 14px; line-height: 1.7; color: var(--muted); }

/* CTA strip */
.cta-strip { background: var(--accent); color: var(--on-accent); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-strip .h3 { color: #fff; max-width: 620px; font-size: 26px; }
.cta-strip .btn-row { margin-top: 0; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: var(--night-text); padding: 72px 0 32px; font-size: 14px; }
.f-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 64px; }
.f-brand .logo { width: 180px; margin-bottom: 20px; }
.f-brand p { max-width: 340px; line-height: 1.7; }
.f-address { margin-top: 18px; line-height: 1.7; color: #9AA7AC; }
.f-address a, .f-cols a { color: var(--night-text); text-decoration: none; }
.f-address a:hover, .f-cols a:hover { color: var(--mint); }
.f-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.f-col { display: flex; flex-direction: column; gap: 11px; }
.f-title { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin: 0 0 4px; }
.f-bottom { text-transform: uppercase; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 10.5px; letter-spacing: 0.06em; color: #8E9CA1; }

/* ---------------------------------------------------------------- drawer */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(16, 20, 24, .45); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); padding: 26px; overflow-y: auto; box-shadow: -12px 0 40px rgba(0, 0, 0, .15); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-head .eyebrow { margin: 0; }
.drawer-x { background: none; border: 1px solid var(--num); width: 36px; height: 36px; font-size: 22px; line-height: 1; cursor: pointer; }
.drawer-lines { margin-bottom: 8px; }

/* ------------------------------------------------------------ breadcrumbs */
.crumbs { padding-top: 22px; font-size: 11px; letter-spacing: 0.05em; color: var(--dim); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--num); }
.crumbs a { text-decoration: none; }

/* ----------------------------------------------------------- product page */
.pd-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; padding-top: 28px; padding-bottom: 72px; align-items: start; }
.gallery { position: sticky; top: 96px; min-width: 0; }
.g-stage { background: linear-gradient(135deg, var(--alt) 0%, var(--bg) 50%, var(--alt) 100%); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px; overflow: hidden; }
.g-main { width: 100%; height: 100%; display: grid; place-items: center; }
.g-main[hidden] { display: none; }
.g-main picture { width: 100%; height: 100%; }
.g-main img { width: 100%; height: 100%; object-fit: contain; }
.g-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.g-thumb { border: 1px solid var(--line); background: var(--alt); padding: 6px; cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; min-width: 0; overflow: hidden; }
.g-thumb picture, .g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-thumb[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.buybox { min-width: 0; }
.pd-title { font-size: clamp(30px, 3.4vw, 44px); }
.buybox .lede { font-size: 16px; }
.pd-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
.pd-badges img { width: 100%; background: #fff; border: 1px solid var(--line); }
.buy-row { display: flex; gap: 12px; margin-top: 22px; }
.grow { flex: 1; }
.qty { display: inline-flex; border: 1px solid var(--num); background: #fff; }
.qty button { width: 42px; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--ink); }
.qty input { width: 46px; border: 0; text-align: center; font-family: var(--mono); font-size: 14px; background: transparent; color: var(--ink); }
.assure { list-style: none; padding: 0; margin: 24px 0 0; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); display: grid; gap: 8px; }
.assure li::before { content: ""; display: inline-block; width: 10px; height: 1.5px; background: var(--accent); vertical-align: middle; margin-right: 10px; }

.brief { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.brief-list { margin: 0; border-bottom: 1px solid var(--line); }
.brief-row { padding: 18px 0; border-top: 1px solid var(--line); }
.brief-row dt { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.brief-row dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.spec-group { min-width: 0; }
.spec-group h3 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 11px 0; border-top: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec th { width: 42%; font-weight: 400; color: var(--muted); padding-right: 16px; }

.plate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plate { margin: 0; min-width: 0; }
.plate picture, .plate img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.plate img { border: 1px solid var(--line); }
.plate figcaption { font-size: 11px; letter-spacing: 0.04em; color: var(--dim); padding-top: 10px; }

.buybar { display: none; }

/* ------------------------------------------------------------- collection */
.coll-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; border: 1px solid var(--line); background: var(--card); padding: 40px; }
.coll-img { display: block; background: linear-gradient(135deg, var(--alt), var(--bg)); padding: 28px; }
.coll-text .h2 { margin-bottom: 14px; }
.coll-text .h2 a { text-decoration: none; }
.coll-text > p { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }
.compare tbody th { font-weight: 400; color: var(--muted); width: 38%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- guide */
.guide-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.guide-img img { width: 100%; }
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 40px; padding-bottom: 80px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc ol { padding-left: 18px; margin: 0; font-size: 12px; line-height: 1.6; display: grid; gap: 10px; color: var(--muted); }
.toc a { text-decoration: none; }
.guide-body { min-width: 0; max-width: 780px; }
.step { padding: 36px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.step .h3 { margin-bottom: 16px; }
.step p { color: var(--muted); line-height: 1.8; }
.step strong { color: var(--ink); }
.step-fig { margin: 28px 0 0; padding: 24px; background: var(--alt); border: 1px solid var(--line); }

/* ----------------------------------------------------------- cart + forms */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.summary { background: var(--alt); border: 1px solid var(--line); padding: 28px; }
.summary .eyebrow { margin-bottom: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.summary-row > span:last-child { text-align: right; }
.summary-row.total { font-weight: 700; font-size: 16px; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { width: 76px; height: 76px; object-fit: contain; background: var(--alt); }
.cart-line-model { font-weight: 700; text-decoration: none; }
.cart-line-name { font-size: 13px; color: var(--muted); }
.cart-line-price { font-family: var(--mono); font-size: 13px; text-align: right; max-width: 150px; }
.cart-line-remove { background: none; border: 0; padding: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); cursor: pointer; text-decoration: underline; }
.cart-line .qty button { width: 34px; height: 34px; }
.cart-empty { padding: 28px 0; color: var(--muted); }
.cart-lines.compact .qty { display: none; }

.form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.form legend { padding: 0; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.opt { font-weight: 400; color: var(--dim); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--num); background: #fff; color: var(--ink); border-radius: 0; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.err { color: var(--error); font-size: 12.5px; margin: 0; min-height: 0; }
.form-error { border: 1px solid var(--error); color: var(--error); background: #fff; padding: 14px 16px; margin-bottom: 24px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: -8px 0 28px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { background: var(--alt); border: 1px solid var(--line); padding: 30px; }
.contact-card address { line-height: 1.7; margin-bottom: 10px; }
.contact-card a { color: var(--accent); }
.contact-success { border: 1px solid var(--accent); padding: 32px; background: var(--card); }

/* ---------------------------------------------------------------- legal */
.legal section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal .h3 { font-size: 19px; margin-bottom: 12px; }
.legal p { color: var(--muted); line-height: 1.8; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-nav a { color: var(--accent); }

/* ============================================================ responsive */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .main-nav { gap: 20px; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proto:nth-child(3) { border-left: 0; padding-left: 0; }
  .proto { padding-bottom: 28px; }
  .why-row { grid-template-columns: 70px 220px minmax(0, 1fr); gap: 28px; }
  .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 72px; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
  .u-left, .u-right { display: none; }
  .u-mobile { display: block; }
  .brand .logo { width: 128px; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding: 48px var(--gutter) 40px; }
  .hero-fig { aspect-ratio: 16 / 15; }
  .metrics-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .09); }

  .section { padding: 72px 0; }
  .spot-in, .split, .faq-wrap, .standard, .brief, .pd-hero, .coll-card, .guide-head, .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split-rev .split-fig { order: 2; }
  .why-row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 20px; }
  .why-row p { grid-column: 2; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
  .f-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coll-card { padding: 24px; }

  .buybar { display: block; transform: translateY(110%); transition: transform .2s; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(244, 245, 243, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .06); }
  .buybar.is-on { transform: none; }
  .buybar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .bb-name { font-weight: 700; margin: 0; font-size: 15px; }
  .bb-price { margin: 0; font-size: 12px; color: var(--muted); }
  .buybar .btn { padding: 13px 20px; }
  main.has-buybar + .site-footer { padding-bottom: 100px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .h2 { margin-bottom: 26px; }
  .section { padding: 56px 0; }
  .badge-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, .09); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .09); }
  .metric:last-child { grid-column: 1 / -1; }
  .cap-grid, .review-grid, .proto-grid { grid-template-columns: minmax(0, 1fr); }
  .proto, .proto + .proto { padding-left: 0; border-left: 0; }
  .spot-img { padding: 16px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 auto; }
  .cta-in { padding-top: 40px; padding-bottom: 40px; }
  .inputs > div { grid-template-columns: 110px minmax(0, 1fr); }
  .pd-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-stage { padding: 12px; }
  .plate-grid { gap: 12px; }
  .f-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
