/* No Limit Turf Design System — shared tokens & components
   Extracted from nolimitturf.com (real CSS tokens, real photography, real PNG logo), 2026-05-11.
   Stack: WordPress · custom theme `wp-content/themes/nolimit/` · Lato single-family · Splide carousel.
   Brand: No Limit Turf — Phoenix Valley synthetic-turf supplier + installation broker.
          Direct-from-manufacturer cut-to-deliver model · 9 named product lines · flat-fee Valley delivery.
   Audience: three tracks — Homeowners (B2C residential) · Contractors (B2B trade) · Commercial.
   Voice: "Elevate Your Landscape" · "NO LIMIT TO THE POSSIBILITIES" · "Cut Out the Middle Man, Skip
          the Markup" · "PICTURE PERFECT, YEAR ROUND" · "Say goodbye to / Say hello to".
   Signature visual moves: ghost-button → filled-on-hover (3px grass border, single transition),
                           ALL-CAPS H2/H3 baked into the type scale, Lato Light 300 body in
                           sage #606c61 (NOT gray), 112px H1 Lato Black, before/after slider with
                           the canonical "Say goodbye to / Say hello to" caption pattern. */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,300;1,400;1,700&display=swap');

:root {
  /* ----------------------------------------------------------------
     🌙 DARK MODE — locked. This standalone product page ships ONLY in
     the "Night Game" palette: dark olive-greens, brighter grass for
     CTAs, lightning chartreuse for accents. Light bodies + white-ish
     ink on dark grounds.

     Forked from the central No Limit Turf design system on 2026-05-11.
     The original light theme is preserved in design-systems-v1/no-limit-turf
     for reference. This file's :root has been REPLACED with the dark
     palette so there's no JS toggle, no FOUC, no "wrong default":
     the page is dark from the first paint.

     Original light-mode tokens are preserved in comments below as
     a paper trail.
  ---------------------------------------------------------------- */

  /* PRIMARY — Grass green, the CTA color (brighter on dark) */
  --brand: #7ac42a;             /* DARK: lifted from #5aa501 for legibility on dark grounds */
  --brand-deep: #5aa501;        /* DARK: the original brand grass, now used as the deep variant */
  --brand-soft: #9ee04e;
  --brand-deeper: #3a6c01;
  --brand-pale: #1f2e10;        /* DARK: was #e7f5d5 (pale green surface) → dark olive surface */
  --brand-tint: #141a0e;

  /* ACCENT — Lightning chartreuse stays the same; reads great on dark */
  --lightning: #dceb38;
  --lightning-soft: #ebf28f;
  --lightning-deep: #b8c526;

  /* SAGE — body text color. Lighter on dark for legibility */
  --sage: #8a948b;              /* DARK: was #606c61, now the mid-gray-green body tone */
  --sage-soft: #a8b1a9;
  --sage-deep: #5d655e;

  /* INK — flipped: "ink" is now LIGHT (white-ish), used on dark grounds */
  --ink-pure: #ffffff;
  --ink-deep: #ffffff;          /* DARK: pure white — the "deepest" emphasis */
  --ink: #f5f7f3;               /* DARK: near-white for headings */
  --ink-soft: #d8dcd6;
  --ink-mid: #a8b1a9;
  --ink-quiet: #6d7570;

  /* BACKGROUNDS — dark greens */
  --bg: #0f1310;                /* DARK: was #ffffff → page bg */
  --bg-pure: #0f1310;
  --bg-soft: #161b17;
  --bg-warm: #1c2218;           /* DARK: was warm-cream → dark olive surface */
  --bg-pale: #14181a;
  --bg-sage: #1f2520;
  --bg-dark: #050505;           /* DARK: even darker for hero scrims + footer ground */
  --surface-gray: #1a1f1c;

  /* BORDER + RULE */
  --border: #252b27;
  --border-mid: #3a4239;
  --border-soft: #1f2520;
  --rule: #ffffff;

  /* CANONICAL GRADIENTS — same hues, the lighter end reads on dark too */
  --grad-turf: linear-gradient(135deg, #5aa501 0%, #7ac42a 40%, #dceb38 100%);
  --grad-turf-h: linear-gradient(90deg, #5aa501 0%, #7ac42a 50%, #dceb38 100%);
  --grad-hero-scrim: linear-gradient(180deg, rgba(5,5,5,0) 30%, rgba(5,5,5,0.55) 70%, rgba(5,5,5,0.85) 100%);
  --grad-field-fade: linear-gradient(180deg, #0f1310 0%, #161b17 100%);

  /* TYPE — Lato single-family system. Loaded weights: 100/300/400/700/900 (with italics). */
  --font-display: 'Lato', system-ui, -apple-system, sans-serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Live type-scale (verbatim from defaults.css), promoted to fluid clamp */
  --text-display: clamp(2.75rem, 4.5vw + 1rem, 7rem);     /* H1 — 112px desktop max */
  --text-h1: clamp(2.5rem, 3.5vw + 1rem, 5rem);
  --text-h2: clamp(1.875rem, 1.5vw + 1rem, 2.5rem);       /* 40px desktop, 30px mobile */
  --text-h3: clamp(1.5rem, 1.2vw + 0.875rem, 2.5rem);
  --text-h4: clamp(1.25rem, 0.6vw + 0.875rem, 2rem);
  --text-h5: 1.6875rem;                                   /* 27px */
  --text-h6: 1.3125rem;                                   /* 21px */
  --text-body-lg: 1.3125rem;                              /* 21px — live body */
  --text-body: 1rem;
  --text-meta: 0.875rem;
  --text-eyebrow: 0.75rem;

  /* RADIUS — live theme uses 4px/5px/8px/50px/50%/100% */
  --radius-xs: 4px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;            /* derived for cards in this kit */
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* SHADOWS — heavier on dark to register against the dark surfaces */
  --shadow-card: 0 1px 2px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
  --shadow-card-hover: 0 12px 32px rgba(122,196,42,0.20), 0 4px 12px rgba(0,0,0,0.45);
  --shadow-cta: 0 4px 12px rgba(122,196,42,0.30);
  --shadow-cta-hover: 0 8px 22px rgba(122,196,42,0.42);
  --shadow-sticky: 0 1px 0 rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.35);

  /* MOTION */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-base: 300ms;              /* live theme baseline */
  --t-slow: 480ms;

  /* SPACING */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
}

/* =============================================================== RESET =============================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--sage);            /* signature: body text is sage, not gray */
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;              /* DARK MODE: bumped 300 → 400 for paragraph legibility on dark.
                                    .lede + display elements still keep their lighter 300 weight
                                    via explicit overrides — the brand "light" feel is preserved
                                    in those short copy moments. */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

/* =============================================================== TYPOGRAPHY =============================================================== */

.display, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  color: var(--sage);            /* live: h1-h6 get var(--text-color) which IS sage */
  margin: 0;
  line-height: 1.05;
}
.display {
  font-size: var(--text-display);
  font-weight: 900;              /* live: H1 900 */
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h1 {
  font-size: var(--text-h1);
  font-weight: 900;
  letter-spacing: -0.015em;
}
.h2 {
  font-size: var(--text-h2);
  font-weight: 900;
  text-transform: uppercase;     /* live: baked in */
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.h3 {
  font-size: var(--text-h3);
  font-weight: 400;              /* live: h3 lighter than h2 */
  text-transform: uppercase;     /* live: baked in */
  letter-spacing: 0.012em;
  line-height: 1.15;
}
.h4 {
  font-size: var(--text-h4);
  font-weight: 700;
  line-height: 1.2;
}
.h5 {
  font-size: var(--text-h5);
  font-weight: 700;
  line-height: 1.25;
}
.h6 {
  font-size: var(--text-h6);
  font-weight: 700;
  line-height: 1.3;
}

/* Body presets */
.lede {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);  /* live: 21px Light */
  font-weight: 300;
  line-height: 1.55;
  color: var(--sage);
  max-width: 60ch;
  margin: 0;
}
.lede-lg {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--sage);
  max-width: 56ch;
}
.body-copy { font-size: var(--text-body-lg); font-weight: 300; color: var(--sage); }
.body-copy-2 { font-size: var(--text-body); font-weight: 300; color: var(--sage); }
.meta { font-size: var(--text-meta); color: var(--ink-mid); }
.muted { color: var(--ink-mid); }
.maxw-prose { max-width: 60ch; margin-inline: auto; }
.text-center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin: 0;
}
.eyebrow.muted { color: var(--sage); }
.eyebrow.lightning { color: var(--lightning-deep); }
.eyebrow.with-bar::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--brand);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
}

.color-brand { color: var(--brand); }
.color-lightning { color: var(--lightning-deep); }
.color-sage { color: var(--sage); }
.color-ink { color: var(--ink); }

/* Wordmark pattern — the No Limit Turf wordmark in body text */
.wordmark { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.005em; text-transform: uppercase; }
.wordmark .no { color: var(--ink); }
.wordmark .limit { color: var(--brand); }
.wordmark .turf { color: var(--ink); }
.wordmark.on-dark .no, .wordmark.on-dark .turf { color: #ffffff; }

/* =============================================================== FIELD STRIPE (signature horizontal rule) =============================================================== */

.field-stripe {
  display: block;
  height: 4px;
  width: 60px;
  background: var(--brand);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.field-stripe.lg { height: 6px; width: 96px; }
.field-stripe.grad { background: var(--grad-turf-h); }
.field-stripe.lightning { background: var(--lightning); }
.field-stripe.center { margin-inline: auto; }
.field-stripe.full { width: 100%; height: 4px; border-radius: 0; }

.gloss-rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.hr { border: 0; height: 1px; background: var(--border); margin: 0; }
.hr-thick { border: 0; height: 2px; background: var(--ink); margin: 0; }
.hr-grass { border: 0; height: 4px; background: var(--brand); border-radius: 2px; margin: 0; }
.hr-lightning { border: 0; height: 4px; background: var(--lightning); border-radius: 2px; margin: 0; }

/* =============================================================== LAYOUT =============================================================== */

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.container.narrow { max-width: 960px; }
.container.wide { max-width: 1440px; }

.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section.tight { padding-block: clamp(2rem, 4vw, 4rem); }
.section.bg-soft { background: var(--bg-soft); }
.section.bg-warm { background: var(--bg-warm); }
.section.bg-sage { background: var(--bg-sage); color: #ffffff; }
.section.bg-sage .h1, .section.bg-sage .h2, .section.bg-sage .h3, .section.bg-sage .display { color: #ffffff; }
.section.bg-sage .lede, .section.bg-sage .body-copy { color: rgba(255,255,255,0.85); }
.section.bg-sage .eyebrow { color: var(--lightning); }
.section.bg-dark { background: var(--bg-dark); color: #ffffff; }
.section.bg-dark .h1, .section.bg-dark .h2, .section.bg-dark .h3, .section.bg-dark .h4, .section.bg-dark .display { color: #ffffff; }
.section.bg-dark .lede, .section.bg-dark .body-copy { color: rgba(255,255,255,0.78); }
.section.bg-dark .eyebrow { color: var(--lightning); }
.section.bg-dark a:hover { color: var(--lightning); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 64ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .field-stripe.center { margin-bottom: 1.25rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, 1fr); } }

.row-2col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.row-2col.reverse { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 880px) { .row-2col, .row-2col.reverse { grid-template-columns: 1fr; } }

.mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); }
.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; }
.mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); }
.spacer { height: var(--space-2xl); } .spacer-lg { height: var(--space-4xl); }

/* =============================================================== BUTTONS — the canonical ghost-then-filled pattern =============================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;     /* live: btn-primary is uppercase */
  letter-spacing: 0.04em;
  border-radius: var(--radius-xs);
  border: 3px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease-in-out;  /* live: exact transition */
  white-space: nowrap;
}
.btn-sm { padding: 7px 18px; font-size: 0.8rem; border-width: 2px; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* Ghost-by-default → filled-on-hover (THE canonical CTA, verbatim from live theme) */
.btn-primary,
.btn-accent {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.btn-primary:hover,
.btn-accent:hover {
  background: var(--brand);
  color: #ffffff;
}

/* Filled-by-default variant (for primary hero CTAs that need shouting) */
.btn-accent-filled {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-cta);
}
.btn-accent-filled:hover { background: var(--brand-deep); border-color: var(--brand-deep); box-shadow: var(--shadow-cta-hover); transform: translateY(-1px); }

/* Lightning variant — chartreuse callout for dark grounds */
.btn-lightning {
  background: var(--lightning);
  border-color: var(--lightning);
  color: var(--ink-deep);
  font-weight: 700;
}
.btn-lightning:hover { background: var(--lightning-deep); border-color: var(--lightning-deep); color: var(--ink-deep); }

/* Dark / ghost / outline-light / text — adjusted for dark mode */
.btn-dark { background: var(--bg-dark); color: var(--ink); border-color: var(--bg-dark); } /* DARK FIX: was var(--ink-deep) which is now #fff */
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-mid); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light { background: transparent; color: var(--ink); border-color: rgba(255,255,255,0.30); } /* DARK FIX: color was #fff (still works since --ink is now near-white) — explicit for clarity */
.btn-outline-light:hover { background: var(--lightning); color: var(--bg-dark); border-color: var(--lightning); } /* DARK FIX: hover-text was --ink-deep (now white) → use --bg-dark for contrast on yellow */
.btn-text {
  background: transparent; border: 0; padding: 6px 0; color: var(--brand);
  border-bottom: 2px solid transparent;
  border-radius: 0; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; font-size: 0.85rem;
}
.btn-text:hover { border-bottom-color: var(--brand); }

.btn .arrow { display: inline-block; transition: transform var(--t-base) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* =============================================================== CARDS =============================================================== */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card:hover { border-color: var(--brand-soft); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

/* Audience tile — Homeowners / Contractors / Commercial (three equal tiles) */
.audience-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  position: relative;
  isolation: isolate;
}
.audience-tile::before {
  /* signature 4px lightning top-border */
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
  z-index: 2;
  transition: background var(--t-base) var(--ease);
}
.audience-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--brand); }
.audience-tile:hover::before { background: var(--lightning); }
.audience-tile .photo { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-gray); }
.audience-tile .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out-expo); }
.audience-tile:hover .photo img { transform: scale(1.05); }
.audience-tile .body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.audience-tile h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 900; margin: 0; color: var(--ink); text-transform: uppercase; letter-spacing: 0.01em; }
.audience-tile p { color: var(--sage); font-size: 0.95rem; line-height: 1.55; margin: 0; flex: 1; font-weight: 300; }
.audience-tile .more { font-size: 0.82rem; font-weight: 700; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.audience-tile:hover .more { color: var(--brand-deep); }

/* Product tile — paired close-up + in-situ for each of 9 SKUs */
.product-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.product-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--brand); }
.product-tile .photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  aspect-ratio: 16/9;
}
.product-tile .photo-stack .closeup,
.product-tile .photo-stack .scene {
  overflow: hidden;
  background: var(--surface-gray);
}
.product-tile .photo-stack img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out-expo); }
.product-tile:hover .photo-stack img { transform: scale(1.04); }
.product-tile .body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 6px; }
.product-tile .name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.product-tile .spec { font-size: 0.78rem; font-weight: 600; color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; }
.product-tile .meta { font-size: 0.82rem; color: var(--sage); font-weight: 300; }

/* Value-prop tile — Direct / Cut-to-Deliver / No Leftovers / Flat Delivery */
.value-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--lightning);  /* signature lightning top accent */
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.value-tile .icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: 4px; }
.value-tile h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; color: var(--ink); margin: 0; text-transform: uppercase; letter-spacing: 0.02em; }
.value-tile p { color: var(--sage); font-size: 0.92rem; line-height: 1.55; margin: 0; font-weight: 300; }

/* Generic tile, work-tile, case-card, bio-card, insight-card, pricing-tier */
.tile { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }

.bio-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; text-align: left; }
.bio-card .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-warm); margin-bottom: 1rem; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; }
.bio-card .name { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; color: var(--ink); margin: 0; text-transform: uppercase; }
.bio-card .role { font-size: 0.82rem; color: var(--sage); margin: 4px 0 12px; }

.case-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.case-card .photo { aspect-ratio: 4/3; overflow: hidden; }
.case-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.case-card .body { padding: 1.25rem; }

.insight-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }

.pricing-tier { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.75rem; display: flex; flex-direction: column; gap: 12px; }
.pricing-tier.featured { background: var(--bg-warm); border-color: var(--brand); box-shadow: var(--shadow-card-hover); position: relative; }
.pricing-tier.featured::before {
  content: 'MOST ORDERED';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--bg-dark); color: var(--lightning);   /* DARK FIX: was var(--ink) which is now white */
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em;
  padding: 4px 12px; border-radius: 999px;
}
.pricing-tier .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.pricing-tier .price small { font-size: 0.85rem; font-weight: 500; color: var(--sage); margin-left: 4px; }

/* =============================================================== HEROES =============================================================== */

.hero-photo {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo > .photo { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-photo > .photo::after { content: ''; position: absolute; inset: 0; background: var(--grad-hero-scrim); }
.hero-photo > .container { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(4rem, 8vw, 6rem); }
.hero-photo .display, .hero-photo .h1 { color: #ffffff; max-width: 18ch; }
.hero-photo .lede { color: rgba(255,255,255,0.88); max-width: 52ch; }
.hero-photo .eyebrow { color: var(--lightning); }
.hero-photo::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--grad-turf-h);
  z-index: 3;
}

.hero-centered {
  background: var(--bg-warm);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.hero-centered .display { max-width: 16ch; margin-inline: auto; }
.hero-centered .lede { margin-inline: auto; max-width: 52ch; }

.page-hero {
  background: var(--bg-dark);
  color: #ffffff;
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
  position: relative;
}
.page-hero .h1, .page-hero .display { color: #ffffff; }
.page-hero .lede { color: rgba(255,255,255,0.82); }
.page-hero .eyebrow { color: var(--lightning); }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad-turf-h); }

/* =============================================================== HEADER / NAV =============================================================== */

.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(15, 19, 16, 0.92);  /* DARK FIX: dark mode sticky nav — was rgba(255,255,255,0.97) */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sticky);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; padding-block: 0.85rem; gap: 1.5rem; }
.nav .brand-mark img { height: 44px; width: auto; }
.nav .links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); flex-wrap: wrap; }
.nav .links a { font-size: 0.95rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; transition: color var(--t-fast) var(--ease); }
.nav .links a:hover { color: var(--brand); }
.nav .actions { display: flex; gap: 12px; align-items: center; }
.nav .phone { font-size: 0.95rem; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }

/* Delivery strip — flat-fee callout band, dark with lightning border-top */
.delivery-strip {
  background: var(--bg-dark);
  color: #ffffff;
  border-top: 4px solid var(--lightning);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  padding: 12px 0;
  text-align: center;
}
.delivery-strip strong { color: var(--lightning); font-weight: 900; }
.delivery-strip em { font-style: normal; color: var(--brand-soft); font-weight: 700; }

/* =============================================================== CHIPS / BADGES =============================================================== */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--bg-warm);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 6px 14px;
}
.chip.lightning { background: var(--lightning); border-color: var(--lightning-deep); color: var(--ink-deep); }
.chip.dark { background: var(--bg-dark); color: var(--lightning); border-color: transparent; } /* DARK FIX: was var(--ink) (now white) */
.chip.outline { background: transparent; border-color: var(--border); color: var(--sage); font-weight: 600; }
.chip svg { width: 14px; height: 14px; }

.creds-strip {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

/* =============================================================== STATS / NUMBERS =============================================================== */

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--brand);
  line-height: 1;
}
.stat .num.grad {
  background: var(--grad-turf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { font-size: 0.85rem; color: var(--sage); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* =============================================================== TESTIMONIAL / PULLQUOTE =============================================================== */

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial .quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.testimonial .quote::before { content: '"'; color: var(--brand); font-size: 1.6rem; font-weight: 900; margin-right: 4px; line-height: 0; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .author .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-warm); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); font-weight: 900; }
.testimonial .author .name { font-weight: 700; font-size: 0.9rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.testimonial .author .role { font-size: 0.78rem; color: var(--sage); }

.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  border-left: 6px solid var(--brand);
  padding-left: 1.75rem;
  max-width: 24ch;
}

/* =============================================================== BEFORE / AFTER (signature pattern) =============================================================== */

.before-after {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-gray);
  border: 1px solid var(--border);
}
.before-after .img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.before-after .after { clip-path: inset(0 0 0 50%); }
.before-after .divider {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 4px;
  background: var(--lightning);
  z-index: 2;
}
.before-after .divider::before, .before-after .divider::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--lightning);
  border: 3px solid var(--ink);
}
.before-after .divider::before { top: 50%; transform: translate(-50%, -50%); }
.before-after .divider::after { display: none; }
.before-after .label {
  position: absolute; top: 16px;
  padding: 6px 14px;
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.14em;
  color: #ffffff; background: rgba(10,10,10,0.78);
  border-radius: 4px;
  text-transform: uppercase;
}
.before-after .label.left { left: 16px; }
.before-after .label.right { right: 16px; background: var(--brand); }
.before-after .caption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.before-after .caption .say-goodbye::before { content: 'Say goodbye to '; opacity: 0.6; font-weight: 300; }
.before-after .caption .say-hello::before { content: 'Say hello to '; opacity: 0.6; font-weight: 300; }

/* =============================================================== PROCESS / EXPERTISE / FAQ =============================================================== */

.process-steps { display: grid; gap: 1.5rem; }
.process-steps .step { display: grid; grid-template-columns: 60px 1fr; gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.process-steps .step:last-child { border-bottom: 0; }
.process-steps .step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.process-steps .step-num.lightning { background: var(--lightning); color: var(--ink); }
.process-steps .step-body h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.process-steps .step-body p { margin: 0; color: var(--sage); font-size: 0.95rem; font-weight: 300; }

.expertise-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.expertise-matrix .cell {
  background: var(--bg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 8px;
  transition: background var(--t-base) var(--ease);
}
.expertise-matrix .cell:hover { background: var(--bg-warm); }
.expertise-matrix .cell .icon { color: var(--brand); width: 28px; height: 28px; }
.expertise-matrix .cell .label { font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.expertise-matrix .cell .meta { font-size: 0.82rem; color: var(--sage); font-weight: 300; }
@media (max-width: 880px) { .expertise-matrix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .expertise-matrix { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq .item { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.faq .item h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; color: var(--ink); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.02em; }
.faq .item p { margin: 0; color: var(--sage); font-weight: 300; }

/* =============================================================== SERVICE CHECKLIST =============================================================== */

.service-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.service-checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; color: var(--sage); font-weight: 300; }
.service-checklist li::before {
  content: '';
  width: 18px; height: 18px;
  margin-top: 4px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center / contain no-repeat;
  border-radius: 2px;
}

/* =============================================================== CTA BAND =============================================================== */

.cta-band {
  background: var(--bg-dark);
  color: #ffffff;
  padding: clamp(3rem, 5vw, 5rem) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--grad-turf);
  opacity: 0.22;
  filter: blur(48px);
  z-index: -1;
}
.cta-band::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--grad-turf-h);
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band .display, .cta-band .h2 { color: #ffffff; max-width: 18ch; }
.cta-band .lede { color: rgba(255,255,255,0.85); }

/* =============================================================== FOOTER =============================================================== */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.78);
  padding: clamp(3rem, 5vw, 4rem) 0 1.5rem;
  position: relative;
  border-top: 4px solid var(--lightning);
}
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 900; color: #ffffff; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { font-size: 0.9rem; color: rgba(255,255,255,0.72); font-weight: 300; transition: color var(--t-fast) var(--ease); }
.footer ul a:hover { color: var(--lightning); }
.footer .brand-block img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer .brand-block p { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; max-width: 38ch; font-weight: 300; }
.footer .legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.55); }
@media (max-width: 880px) { .footer .container { grid-template-columns: 1fr 1fr; } .footer .brand-block { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer .container { grid-template-columns: 1fr; } }

/* =============================================================== COVERAGE / AVAILABILITY =============================================================== */

.coverage-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.coverage-zones .zone { background: var(--bg-warm); border: 1px solid var(--border-mid); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.82rem; font-weight: 700; color: var(--ink); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 720px) { .coverage-zones { grid-template-columns: repeat(2, 1fr); } }

.availability { display: grid; gap: 6px; font-size: 0.9rem; color: var(--sage); font-weight: 300; }
.availability .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.availability .row:last-child { border-bottom: 0; }
.availability .row .day { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.85rem; }
.availability .row .open { color: var(--brand); font-weight: 700; }

/* =============================================================== SOCIAL PROOF (deliberately spare; brand doesn't fake) =============================================================== */

.social-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: center; opacity: 0.7; }
.social-proof .logo { font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; color: var(--sage); text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 720px) { .social-proof { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================== BOOKING / PATHS =============================================================== */

.booking-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.booking-paths .path { padding: 1.5rem; background: var(--bg-warm); border: 1px solid var(--border-mid); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 12px; }
.booking-paths .path .icon { width: 48px; height: 48px; border-radius: 50%; background: #ffffff; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.booking-paths .path h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; margin: 0; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.booking-paths .path p { color: var(--sage); font-size: 0.92rem; margin: 0; font-weight: 300; }
@media (max-width: 880px) { .booking-paths { grid-template-columns: 1fr; } }

/* =============================================================== WORK TILE =============================================================== */

.work-tile { background: var(--bg); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.work-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.work-tile .photo { aspect-ratio: 4/3; overflow: hidden; }
.work-tile .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out-expo); }
.work-tile:hover .photo img { transform: scale(1.04); }
.work-tile .body { padding: 1.25rem; }
.work-tile .meta { display: inline-flex; gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

/* =============================================================== DESIGN-SYSTEM PAGE CHROME (.ds-*) =============================================================== */

.ds-nav {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sticky);
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.lockup-text { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--ink); margin: 0; letter-spacing: 0.02em; text-transform: uppercase; }
.lockup-text small { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; color: var(--sage); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.tabs { display: flex; gap: 4px; }
.tab { padding: 8px 14px; font-size: 0.85rem; font-weight: 700; color: var(--sage); border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.04em; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.tab:hover { background: var(--bg-warm); color: var(--ink); }
.tab.active { background: var(--ink); color: var(--lightning); }

.ds-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}
.ds-hero .display { max-width: 18ch; margin-bottom: 1.25rem; }
.ds-hero .lede { max-width: 62ch; }

.ds-section { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--border); }
.ds-section:last-child { border-bottom: 0; }
.ds-section .head { margin-bottom: 2rem; }

/* =============================================================== SWATCHES =============================================================== */

.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 880px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .swatch-grid { grid-template-columns: repeat(2, 1fr); } }
.swatch { border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; background: var(--bg); }
.swatch .chip-color { aspect-ratio: 1.4; }
.swatch .label { padding: 10px 12px 12px; }
.swatch .label .name { font-family: var(--font-display); font-weight: 900; font-size: 0.85rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.swatch .label .hex { font-family: var(--font-mono); font-size: 0.75rem; color: var(--sage); margin-top: 2px; }

/* =============================================================== TYPE SPEC =============================================================== */

.type-spec { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.type-spec .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--sage); }
.type-spec .meta strong { display: block; color: var(--ink); font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.type-spec .demo { color: var(--ink); }
.type-spec:last-child { border-bottom: 0; }

/* =============================================================== SECTIONS-PAGE CHROME (.sx-*) =============================================================== */

.sx-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-soft); }
.sx-index { background: #ffffff; border-right: 1px solid var(--border); padding: 1.5rem 1rem; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
.sx-index h4 { font-family: var(--font-display); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin: 1.25rem 0 0.5rem; }
.sx-index a { display: block; padding: 6px 8px; font-size: 0.85rem; color: var(--sage); border-radius: var(--radius-xs); margin-bottom: 2px; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.sx-index a:hover { background: var(--bg-warm); color: var(--brand); }
.sx-main { padding: 2rem clamp(1rem, 3vw, 2.5rem); }
.sx-header { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.sx-pattern { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 1.5rem; overflow: hidden; }
.sx-pattern .sx-header { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 0; padding: 1rem 1.25rem; }
.sx-pattern .sx-header h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; margin: 0; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.sx-pattern .sx-header .demo-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--sage); margin: 4px 0 0; }
.sx-body { padding: 0; }
.sx-demo { padding: 0; background: var(--bg); }

@media (max-width: 880px) { .sx-shell { grid-template-columns: 1fr; } .sx-index { position: relative; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); } }

/* =============================================================== PAGES GALLERY =============================================================== */

.pages-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pages-gallery .page-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.pages-gallery .page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--brand-soft); }
.pages-gallery .page-card .preview { aspect-ratio: 4/3; background: var(--surface-gray); display: flex; align-items: center; justify-content: center; color: var(--sage); font-family: var(--font-mono); font-size: 0.75rem; }
.pages-gallery .page-card .meta { padding: 1rem 1.25rem; }
.pages-gallery .page-card .meta h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 900; margin: 0 0 4px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; }
.pages-gallery .page-card .meta p { font-size: 0.82rem; color: var(--sage); margin: 0; font-weight: 300; }
@media (max-width: 720px) { .pages-gallery { grid-template-columns: 1fr; } }

/* =============================================================== SPARKLE / MISC =============================================================== */

.sparkle::before { content: '✦'; color: var(--brand); margin-right: 6px; }

/* =============================================================== MOTION REDUCE =============================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
