/* ==========================================================================
   VENTURE HOME — shared design tokens + components
   Extracted from venturehome.com (captured 2026-07-21, live DOM + raw source).
   Consumer-premium whole-home solar: warm paper ground, deep plant-ink,
   Venture green CTAs, sunlight-gold accent. Type-led editorial heroes.
   Reference faces: Bagoss Standard (display) / Neue Haas Grotesk (body) —
   substituted with Bricolage Grotesque / Hanken Grotesk (see brand-spec.md).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* COLOR — brand. Core greens extracted verbatim; -deep/-soft/-pale derived. */
  --brand: #2fbf71;            /* Venture green — primary CTA */
  --brand-deep: #1e9d59;       /* hover / pressed */
  --brand-soft: rgba(47, 191, 113, .28);  /* focus glow / chip ring */
  --brand-pale: #e7f7ee;       /* palest green surface tint */
  --brand-bright: #73ffc6;     /* logo mint — on-dark accents only */

  /* COLOR — sunlight accent (sparing: stats, star ratings) */
  --accent-warm: #f4b52a;
  --accent-warm-deep: #cf9312;

  /* COLOR — ink */
  --ink-deep: #16130f;         /* near-black plant ink — headlines, dark bands */
  --ink: #231f20;              /* body */
  --ink-soft: rgba(35, 31, 32, .72);
  --ink-muted: rgba(35, 31, 32, .55);
  --ink-quiet: rgba(35, 31, 32, .38);

  /* COLOR — grounds */
  --bg: #ffffff;
  --bg-pure: #ffffff;
  --bg-warm: #f6f4ee;          /* warm paper band */
  --bg-soft: #f9f8f4;          /* soft panel ground */
  --bg-dark: #16130f;          /* inverted section */
  --bg-deepest: #0e0c09;       /* footer ground */

  /* COLOR — on-dark text */
  --text-on-dark: #f5f3ee;
  --text-on-dark-muted: rgba(245, 243, 238, .68);

  /* COLOR — rules */
  --border: #e7e4db;
  --border-mid: #d5d1c5;

  /* TYPE — Bagoss Standard → Bricolage Grotesque; Neue Haas → Hanken Grotesk */
  --font-display: 'Bricolage Grotesque', 'Bagoss Standard', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', 'neue-haas-grotesk-text', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* TYPE — fluid scale */
  --text-display: clamp(2.5rem, 5.4vw + 1rem, 4.4rem);
  --text-h1: clamp(2.1rem, 3.6vw + .9rem, 3.3rem);
  --text-h2: clamp(1.6rem, 2.2vw + .7rem, 2.3rem);
  --text-h3: clamp(1.2rem, 1vw + .8rem, 1.45rem);
  --text-body-lg: clamp(1.06rem, .4vw + .95rem, 1.2rem);
  --text-body: 1rem;
  --text-meta: .875rem;

  /* LAYOUT */
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: 32px;
  --section: 104px;

  /* RADII — pill CTAs are a brand signature */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* SHADOW */
  --shadow-card: 0 1px 2px rgba(22, 19, 15, .05), 0 10px 30px -12px rgba(22, 19, 15, .16);
  --shadow-card-hover: 0 2px 4px rgba(22, 19, 15, .06), 0 22px 44px -16px rgba(22, 19, 15, .24);
  --shadow-cta: 0 8px 24px -8px rgba(47, 191, 113, .55);

  /* GRADIENT */
  --grad-scrim: linear-gradient(180deg, rgba(22,19,15,.18) 0%, rgba(22,19,15,.62) 100%);
  --grad-dusk-hero: linear-gradient(160deg, #16130f 0%, #23301f 55%, #2fbf71 160%);

  /* MOTION */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 150ms;
  --t-base: 280ms;
}

/* ==== base ============================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-deep); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-deep); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; }
.display { font-size: var(--text-display); font-weight: 700; text-wrap: balance; }
h1, .h1 { font-size: var(--text-h1); font-weight: 700; }
h2, .h2 { font-size: var(--text-h2); font-weight: 650; }
h3, .h3 { font-size: var(--text-h3); font-weight: 600; }

.lede { font-size: var(--text-body-lg); color: var(--ink-soft); max-width: 62ch; margin: 0 0 1.2em; }

.mt-md { margin-top: 1rem; }
.mt-48 { margin-top: 48px; }

/* ==== buttons =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--ink-deep); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-dark { background: var(--ink-deep); color: var(--text-on-dark); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink-deep); border-color: var(--border-mid); }
.btn-ghost:hover { border-color: var(--ink-deep); }
.btn-ghost.on-dark { color: var(--text-on-dark); border-color: rgba(245,243,238,.4); }
.btn-ghost.on-dark:hover { border-color: var(--brand-bright); color: var(--brand-bright); }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* ==== announcement + nav =============================================== */
.announcement-bar {
  background: var(--ink-deep); color: var(--text-on-dark);
  font-size: .85rem; text-align: center; padding: 9px var(--gutter);
}
.announcement-bar strong { color: var(--brand-bright); font-weight: 600; }

.nav { background: var(--ink-deep); position: sticky; top: 0; z-index: 60; }
.nav > .container { display: flex; align-items: center; gap: 36px; min-height: 74px; }
.nav .brand-mark { display: flex; align-items: center; flex-shrink: 0; }
.nav .brand-mark img { height: 26px; width: auto; }
.nav .links { display: flex; gap: 26px; margin-right: auto; }
.nav .links a {
  color: var(--text-on-dark-muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color var(--t-fast) var(--ease);
}
.nav .links a:hover { color: var(--brand-bright); }
.nav .actions { display: flex; align-items: center; gap: 18px; }
.nav .actions .phone { color: var(--text-on-dark); text-decoration: none; font-weight: 600; font-size: .95rem; }

/* ==== sections ========================================================== */
.section { padding: var(--section) 0; }
.section.tight { padding: 64px 0; }
.section.bg-soft { background: var(--bg-soft); }
.section.bg-warm { background: var(--bg-warm); }
.section.on-dark { background: var(--bg-dark); }
.section.on-dark h1, .section.on-dark h2, .section.on-dark h3 { color: var(--text-on-dark); }
.section.on-dark .lede, .section.on-dark p { color: var(--text-on-dark-muted); }

/* hero — photo-led with scrim */
.hero-main { position: relative; min-height: 620px; display: flex; align-items: flex-end;
  background: var(--ink-deep); overflow: hidden; }
.hero-main .bg-image-abs { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; }
.hero-main::after { content: ""; position: absolute; inset: 0; background: var(--grad-scrim); z-index: 1; }
.hero-main .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 72px; }
.hero-main h1 { color: #fff; max-width: 18ch; }
.hero-main .lede { color: rgba(255,255,255,.88); }

/* hero — statement (type-only, signature) */
.hero-statement { background: var(--bg-warm); padding: 120px 0 96px; }
.hero-statement h1 { max-width: 20ch; }

/* trust strip */
.trust-strip { background: var(--ink-deep); color: var(--text-on-dark); padding: 18px 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; }
.trust-strip .item { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; }
.trust-strip .item::before { content: "✓"; color: var(--brand-bright); font-weight: 700; }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.stat-band .stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700; color: var(--ink-deep); letter-spacing: -.02em; }
.stat-band .stat .label { font-size: var(--text-meta); color: var(--ink-muted); margin-top: 2px; }
.section.on-dark .stat-band .stat .num { color: var(--text-on-dark); }
.section.on-dark .stat-band .stat .label { color: var(--text-on-dark-muted); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: var(--bg-pure); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.service-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.service-card .media { aspect-ratio: 16/10; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card .body h3 { margin: 0; }
.service-card .body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.service-card .go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--brand-deep); font-size: .92rem; }

.value-tile { background: var(--bg-warm); border-radius: var(--radius-lg); padding: 28px; }
.value-tile .k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-quiet); }
.value-tile h3 { margin: 10px 0 6px; }
.value-tile p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* image + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.split .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split.flip .media { order: 2; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: var(--radius-pill); background: var(--brand-pale); color: var(--brand-deep);
  font-weight: 600; font-size: .82rem; }
.chip.warm { background: #fdf3dc; color: var(--accent-warm-deep); }
.chip.dark { background: var(--ink-deep); color: var(--brand-bright); }

/* reviews */
.quote-card { background: var(--bg-pure); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 28px; box-shadow: var(--shadow-card); }
.quote-card .stars { color: var(--accent-warm); letter-spacing: 3px; font-size: .9rem; }
.quote-card blockquote { margin: 12px 0 14px; font-size: 1.02rem; color: var(--ink); }
.quote-card cite { font-style: normal; font-size: .88rem; color: var(--ink-muted); }

/* faq */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; color: var(--ink-deep); padding: 16px 0; list-style: none; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--brand-deep); font-size: 1.4rem; font-weight: 500; transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 68ch; }

/* cta band */
.cta-band { background: var(--grad-dusk-hero); border-radius: var(--radius-lg); padding: 56px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.82); margin: 6px 0 0; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  counter-reset: step; }
.steps .step { counter-increment: step; background: var(--bg-pure); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; position: relative; }
.steps .step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono);
  font-weight: 600; font-size: .8rem; color: var(--accent-warm-deep); letter-spacing: .1em; }
.steps .step h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.steps .step p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* footer */
.footer { background: var(--bg-deepest); color: var(--text-on-dark-muted); padding: 72px 0 36px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer .brand-block img { height: 24px; margin-bottom: 16px; }
.footer h4 { color: var(--text-on-dark); font-size: .95rem; margin-bottom: 14px; }
.footer a { color: var(--text-on-dark-muted); text-decoration: none; display: block; padding: 4px 0; font-size: .92rem; }
.footer a:hover { color: var(--brand-bright); }
.footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(245,243,238,.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .82rem; }

/* system slider — extracted from wp-block-anchour-products-slider */
.system-slider { display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 82vw);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; }
.system-slider::-webkit-scrollbar { height: 8px; }
.system-slider::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 99px; }
.system-slide { scroll-snap-align: start; background: var(--bg-pure); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.system-slide .media { aspect-ratio: 16/10; overflow: hidden; }
.system-slide .media img { width: 100%; height: 100%; object-fit: cover; }
.system-slide .body { padding: 20px 22px 24px; }
.system-slide h3 { margin: 8px 0 6px; }
.system-slide p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* testimonial-feature — the site sets full reviews at display scale */
.testimonial-feature blockquote { font-family: var(--font-display); font-size: var(--text-h2);
  font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-deep);
  margin: 0 0 20px; max-width: 26ch; text-wrap: balance; }
.testimonial-feature .rtitle { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-deep); display: block; margin-bottom: 14px; }
.testimonial-feature cite { font-style: normal; font-size: .9rem; color: var(--ink-muted); }
.testimonial-feature .stars { color: var(--accent-warm); letter-spacing: 3px; margin-bottom: 10px; }

/* cross-sell banner */
.cross-sell { background: var(--brand-pale); border-radius: var(--radius-lg); padding: 44px 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.cross-sell h3 { font-size: var(--text-h3); max-width: 30ch; margin: 0 0 6px; }
.cross-sell p { margin: 0; color: var(--ink-soft); max-width: 52ch; }

/* review-card title line */
.quote-card .rtitle { font-family: var(--font-display); font-weight: 700; color: var(--ink-deep);
  margin: 10px 0 4px; font-size: 1rem; }

/* quote-form — site-wide "Talk to a solar expert" lead form */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.quote-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.quote-form .field.full { grid-column: 1 / -1; }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form input[type="tel"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-pure); color: var(--ink); font: inherit; font-size: .95rem; }
.quote-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.quote-form .consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start;
  font-size: .78rem; color: var(--ink-muted); }
.quote-form .consent input { margin-top: 2px; accent-color: var(--brand); }
.quote-form .submit { grid-column: 1 / -1; }

/* state-grid — "Solar incentives by state" card grid */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.state-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px;
  background: var(--bg-pure); display: flex; flex-direction: column; gap: 8px; }
.state-card h3 { margin: 0; font-size: 1.1rem; }
.state-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); flex: 1; }
.state-card a { font-weight: 600; font-size: .9rem; color: var(--brand-deep); text-decoration: none; }
.state-card a:hover { text-decoration: underline; }

/* plan-tiles — pricing page's four payment plans */
.plan-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.plan-tile { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px;
  background: var(--bg-pure); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.plan-tile h3 { margin: 0 0 8px; }
.plan-tile > p { margin: 0 0 16px; font-size: .92rem; color: var(--ink-soft); }
.plan-tile ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan-tile li { font-size: .88rem; color: var(--ink); padding-left: 22px; position: relative; }
.plan-tile li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-deep); font-weight: 700; }

/* resource-cards — image-on-top whole-card links */
.resource-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.resource-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-pure); text-decoration: none; color: inherit;
  box-shadow: var(--shadow-card); transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.resource-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.resource-card .media { aspect-ratio: 16/9; overflow: hidden; }
.resource-card .media img { width: 100%; height: 100%; object-fit: cover; }
.resource-card .body { padding: 22px 26px 26px; }
.resource-card h3 { margin: 0 0 6px; }
.resource-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* article-cards — "Solar Articles" index grid */
.article-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 28px; background: var(--bg-pure); text-decoration: none; color: inherit;
  transition: box-shadow var(--t-base) var(--ease); }
.article-card:hover { box-shadow: var(--shadow-card-hover); }
.article-card .cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-deep); }
.article-card h3 { margin: 10px 0 0; font-size: 1.15rem; line-height: 1.35; }

/* ==== DS doc chrome ===================================================== */
.ds-nav { background: var(--ink-deep); padding: 14px var(--gutter); display: flex;
  align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 70; }
.ds-nav .lockup-text { margin: 0; color: var(--text-on-dark); font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; }
.ds-nav .lockup-text small { display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-bright); }
.ds-nav .tabs { display: flex; gap: 6px; }
.ds-nav .tab { color: var(--text-on-dark-muted); text-decoration: none; font-size: .88rem;
  font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill); }
.ds-nav .tab:hover { color: var(--text-on-dark); }
.ds-nav .tab.active { background: var(--brand); color: var(--ink-deep); }

.ds-hero { padding: 72px 0 48px; }
.ds-section { padding: 56px 0; border-top: 1px solid var(--border); }

/* ==== sections.html catalog chrome ===================================== */
.sx-header { background: var(--bg-warm); padding: 72px 0 48px; }
.sx-header .meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px; }
.sx-header .meta > div { font-size: .82rem; color: var(--ink-muted); }
.sx-header .meta strong { display: block; color: var(--ink-deep); font-size: .98rem; }

.sx-index { border-bottom: 1px solid var(--border); background: var(--bg-pure); }
.sx-index .grid { max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; }
.sx-index a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-soft);
  font-family: var(--font-mono); font-size: .78rem; }
.sx-index a:hover { background: var(--brand-pale); color: var(--brand-deep); }
.sx-index a .num { color: var(--ink-quiet); }
.sx-index a em.sig { font-style: normal; color: var(--accent-warm-deep); font-size: .68rem; }

.sx-pattern { border-bottom: 1px solid var(--border); }
.pattern-meta { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 18px;
  display: flex; gap: 28px; align-items: baseline; }
.pattern-meta .id { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-quiet);
  display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.pattern-meta .id .num { font-weight: 600; color: var(--accent-warm-deep); }
.pattern-meta .id .signature { background: var(--ink-deep); color: var(--brand-bright);
  font-size: .62rem; letter-spacing: .14em; padding: 3px 8px; border-radius: 4px; }
.pattern-meta .name { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink-deep); }
.pattern-meta .purpose { margin: 2px 0 0; font-size: .88rem; color: var(--ink-muted); }

.sx-demo { position: relative; border-top: 1px dashed var(--border-mid); }
.sx-demo .demo-label { position: absolute; top: 0; right: var(--gutter); transform: translateY(-50%);
  background: var(--bg-pure); border: 1px solid var(--border-mid); color: var(--ink-quiet);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--radius-pill); z-index: 5; }
.sx-demo.on-dark { background: var(--bg-dark); }

/* ==== pages gallery ==================================================== */
.pages-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.page-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-pure); box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease); display: flex; flex-direction: column; }
.page-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.page-card .preview { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-warm); position: relative; }
.page-card .preview iframe { width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0;
  border: 0; pointer-events: none; }
.page-card .preview::after { content: ""; position: absolute; inset: 0; }
.page-card .body { padding: 20px 24px 24px; }
.page-card .body h3 { margin: 0 0 6px; }
.page-card .body p { margin: 0 0 10px; font-size: .92rem; color: var(--ink-soft); }
.page-card .page-cta { font-weight: 700; color: var(--brand-deep); font-size: .9rem; }

/* ==== design-system.html chrome ======================================== */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-pure); }
.swatch .chip-color { height: 72px; }
.swatch .meta { padding: 10px 12px; }
.swatch .meta .t { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-deep); font-weight: 600; }
.swatch .meta .v { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-quiet); }

.type-spec { border-bottom: 1px solid var(--border); padding: 22px 0; display: grid;
  grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; }
.type-spec .spec { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-muted); line-height: 1.8; }

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.asset-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-pure); }
.asset-card .thumb { aspect-ratio: 16/10; background: var(--bg-warm); display: flex;
  align-items: center; justify-content: center; overflow: hidden; }
.asset-card .thumb.dark { background: var(--ink-deep); }
.asset-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-card .thumb img.contain { object-fit: contain; width: 70%; height: auto; }
.asset-card .meta { padding: 12px 14px; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-muted); }
.asset-card .meta strong { display: block; color: var(--ink-deep); font-size: .78rem; }

code.token { font-family: var(--font-mono); font-size: .8em; background: var(--bg-warm);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 7px; color: var(--brand-deep); }

/* ==== responsive ======================================================= */
@media (max-width: 768px) {
  .nav .actions { display: none; }
}
@media (max-width: 880px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
  .quote-form { grid-template-columns: 1fr; gap: 28px; }
  .resource-cards { grid-template-columns: 1fr; }
  .split.flip .media { order: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pages-gallery { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 28px; }
  .type-spec { grid-template-columns: 1fr; gap: 8px; }
  .hero-main { min-height: 520px; }
}
