/* ============================================================
   SPRPWR Design System — Wireframe Aesthetic
   Architectural drafting register · thin lines · pure white
   References: attio.com · vercel.com/home (light) · payloadcms.com

   Section variants import this file. Each variant is a self-contained
   HTML page using shadcn-aligned tokens. Override :root to skin per client.
   ============================================================ */

/* Inter with optical-size axis (display cut auto-applies at large sizes — Payload-grade)
   + JetBrains Mono for technical / drafting labels.
   Untitled Sans is the paid premium reference (Attio, Linear) — Inter Display is the
   free closest match. Per-client projects can self-host Untitled Sans by overriding --font-sans. */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── LIGHT MODE (default) ──────────────────────────────────── */
  --background: #FFFFFF;
  --foreground: #0A0A0B;
  --card: #FFFFFF;
  --card-foreground: #0A0A0B;
  --popover: #FFFFFF;
  --popover-foreground: #0A0A0B;
  --primary: #0A0A0B;
  --primary-foreground: #FFFFFF;
  --secondary: #71717A;
  --secondary-foreground: #FFFFFF;
  --accent: #FAFAFA;
  --accent-foreground: #0A0A0B;
  --muted: #FAFAFA;
  --muted-foreground: #71717A;
  --destructive: #B0271E;
  --destructive-foreground: #FFFFFF;
  --border: rgba(10, 10, 11, 0.08);
  --border-strong: rgba(10, 10, 11, 0.32);
  --input: rgba(10, 10, 11, 0.36);
  --ring: #0A0A0B;

  /* Auto-adapting tokens (pattern strokes, decorative tones) */
  --pattern-color: rgba(10, 10, 11, 0.13);
  --pattern-color-strong: rgba(10, 10, 11, 0.18);

  /* SPRPWR extensions */
  --brand: #0A0A0B;
  --brand-deep: #050507;       /* almost-black floor — never pure black */
  --surface-alt: #FAFAFA;
  --surface-dark: #0A0A0B;
  --paper: #FFFFFF;
}

/* ============================================================
   KIT OVERRIDES — fontpair-style token swaps
   Apply via <html class="kit-<id>"> — mode.js reads ?kit=<id>
   and adds the class. Each block overrides the SAME tokens that
   :root sets, just with kit-specific values. The whole library
   reskins instantly when the class flips.
   ============================================================ */

:root.kit-civic {
  --background: #FFFFFF;
  --foreground: #1B2A4A;
  --primary: #D9583C;
  --primary-foreground: #FFFFFF;
  --secondary: #1B2A4A;
  --secondary-foreground: #FFFFFF;
  --accent: #FAF8F5;
  --muted: #F5F5F4;
  --muted-foreground: #6B6B6B;
  --border: rgba(27, 42, 74, 0.10);
  --border-strong: rgba(27, 42, 74, 0.30);
  --pattern-color: rgba(27, 42, 74, 0.10);
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
}

:root.kit-editorial {
  --background: #FBF9F5;
  --foreground: #1A1A19;
  --primary: #3B5249;
  --primary-foreground: #FBF9F5;
  --secondary: #1A1A19;
  --secondary-foreground: #FBF9F5;
  --accent: #F0EBE0;
  --muted: #E8E2D1;
  --muted-foreground: #5A5A55;
  --border: rgba(26, 26, 25, 0.12);
  --border-strong: rgba(26, 26, 25, 0.28);
  --pattern-color: rgba(26, 26, 25, 0.10);
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 6px;
  --font-sans: 'Fraunces', Georgia, serif;
}

:root.kit-tech {
  --background: #FFFFFF;
  --foreground: #0A0A0B;
  --primary: #0A0A0B;
  --primary-foreground: #FFFFFF;
  --secondary: #71717A;
  --secondary-foreground: #FFFFFF;
  --accent: #FAFAFA;
  --muted: #F4F4F5;
  --muted-foreground: #71717A;
  --border: rgba(10, 10, 11, 0.08);
  --border-strong: rgba(10, 10, 11, 0.18);
  --pattern-color: rgba(10, 10, 11, 0.10);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;
}

:root.kit-hospitality {
  --background: #F8F4EB;
  --foreground: #22201A;
  --primary: #7A5742;
  --primary-foreground: #F8F4EB;
  --secondary: #22201A;
  --secondary-foreground: #F8F4EB;
  --accent: #EDE5D2;
  --muted: #DDD4BF;
  --muted-foreground: #6A6354;
  --border: rgba(34, 32, 26, 0.12);
  --border-strong: rgba(34, 32, 26, 0.28);
  --pattern-color: rgba(34, 32, 26, 0.10);
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --font-sans: 'Cormorant Garamond', Georgia, serif;
}

:root.kit-craft {
  --background: #0A0A0B;
  --foreground: #FAFAFA;
  --primary: #FAFAFA;
  --primary-foreground: #0A0A0B;
  --secondary: #FAFAFA;
  --secondary-foreground: #0A0A0B;
  --accent: #1F1F22;
  --muted: #131316;
  --muted-foreground: #A1A1AA;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.28);
  --pattern-color: rgba(255, 255, 255, 0.12);
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --font-sans: 'Fraunces', Georgia, serif;
}

:root.kit-modern-saas {
  --background: #FFFFFF;
  --foreground: #18181B;
  --primary: #3D5AFE;
  --primary-foreground: #FFFFFF;
  --secondary: #18181B;
  --secondary-foreground: #FFFFFF;
  --accent: #F4F4F5;
  --muted: #E4E4E7;
  --muted-foreground: #71717A;
  --border: rgba(24, 24, 27, 0.10);
  --border-strong: rgba(24, 24, 27, 0.22);
  --pattern-color: rgba(24, 24, 27, 0.10);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
}

:root.kit-news {
  --background: #FFFFFF;
  --foreground: #0A0A0B;
  --primary: #A03030;
  --primary-foreground: #FFFFFF;
  --secondary: #0A0A0B;
  --secondary-foreground: #FFFFFF;
  --accent: #F8F8F8;
  --muted: #EFEFEF;
  --muted-foreground: #6B6B6B;
  --border: rgba(10, 10, 11, 0.10);
  --border-strong: rgba(10, 10, 11, 0.22);
  --pattern-color: rgba(10, 10, 11, 0.10);
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --font-sans: 'Newsreader', Georgia, serif;
}

:root.kit-boutique-personal {
  --background: #FAF7F2;
  --foreground: #1F1F1A;
  --primary: #C4673A;
  --primary-foreground: #FAF7F2;
  --secondary: #1F1F1A;
  --secondary-foreground: #FAF7F2;
  --accent: #F0EAD9;
  --muted: #E5DDC5;
  --muted-foreground: #6B6354;
  --border: rgba(31, 31, 26, 0.12);
  --border-strong: rgba(31, 31, 26, 0.28);
  --pattern-color: rgba(31, 31, 26, 0.10);
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
}

:root.kit-modern-editorial {
  --background: #FAF8F4;
  --foreground: #1A1A1A;
  --primary: #5A6B47;
  --primary-foreground: #FAF8F4;
  --secondary: #1A1A1A;
  --secondary-foreground: #FAF8F4;
  --accent: #F0E6D2;
  --muted: #E8E2D4;
  --muted-foreground: #6F6B5C;
  --border: rgba(26, 26, 26, 0.10);
  --border-strong: rgba(26, 26, 26, 0.24);
  --pattern-color: rgba(26, 26, 26, 0.08);
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
  --font-display: 'Newsreader', Georgia, serif;
  --font-heading: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --tracking-display: -0.018em;
}

:root.kit-industrial {
  --background: #F4F2EE;
  --foreground: #1A1A1B;
  --primary: #C26A3F;
  --primary-foreground: #F4F2EE;
  --secondary: #1A1A1B;
  --secondary-foreground: #F4F2EE;
  --accent: #E5DFD3;
  --muted: #E0DACE;
  --muted-foreground: #5A5853;
  --border: rgba(26, 26, 27, 0.14);
  --border-strong: rgba(26, 26, 27, 0.32);
  --pattern-color: rgba(26, 26, 27, 0.10);
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --tracking-display: -0.04em;
  --fw-bold: 800;
}

:root.kit-soft-luxury {
  --background: #F8F2EC;
  --foreground: #2A2A28;
  --primary: #C29A8C;
  --primary-foreground: #F8F2EC;
  --secondary: #2A2A28;
  --secondary-foreground: #F8F2EC;
  --accent: #E8DFD3;
  --muted: #DCD3C5;
  --muted-foreground: #6B655C;
  --border: rgba(42, 42, 40, 0.10);
  --border-strong: rgba(42, 42, 40, 0.22);
  --pattern-color: rgba(42, 42, 40, 0.08);
  --radius: 999px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --font-display: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --font-heading: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --tracking-display: -0.012em;
  --fw-display: 500;
}

:root.kit-tech-mono {
  --background: #FAFAFA;
  --foreground: #0A0A0B;
  --primary: #00B388;
  --primary-foreground: #0A0A0B;
  --secondary: #0A0A0B;
  --secondary-foreground: #FAFAFA;
  --accent: #E5F8F2;
  --muted: #F0EFEC;
  --muted-foreground: #5C5C5E;
  --border: rgba(10, 10, 11, 0.10);
  --border-strong: rgba(10, 10, 11, 0.26);
  --pattern-color: rgba(10, 10, 11, 0.08);
  --radius: 6px;
  --radius-sm: 3px;
  --radius-lg: 10px;
  --font-display: 'JetBrains Mono', ui-monospace, monospace;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --tracking-display: -0.03em;
}

/* Kit fonts loaded on demand for the demo page */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Cormorant+Garamond:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   EMBELLISHMENT LAYER — Layer 04 Polish, opt-in via .embellish
   Wireframe = Layers 01-03 (foundation, elements, stylized)
   Embellishment toggle ON = Layer 04 branded flair per kit
   This is the SaaS upgrade gate: self-serve customers turn this on
   to get from "wireframe" to "branded site"
   ============================================================ */

/* Civic — bracket eyebrows, accent underline on key headings */
:root.embellish.kit-civic .eyebrow::before { content: '[ '; opacity: 0.55; }
:root.embellish.kit-civic .eyebrow::after  { content: ' ]'; opacity: 0.55; }

/* Editorial — italic-pull on h2 first-of-type, em-dash spacer eyebrows */
:root.embellish.kit-editorial .h-2 em,
:root.embellish.kit-editorial h2 em { font-style: italic; color: var(--primary); }
:root.embellish.kit-editorial .eyebrow::before { content: '— '; letter-spacing: 0; }

/* Tech — monospace inline accent for any <code> + accent underline */
:root.embellish.kit-tech code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--accent);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* Hospitality — letter-spaced uppercase eyebrows + serif numerals */
:root.embellish.kit-hospitality .eyebrow {
  letter-spacing: 0.32em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-transform: uppercase;
  font-weight: 500;
}

/* Craft — slash-divider eyebrows, oversized italic emphasis */
:root.embellish.kit-craft .eyebrow::before { content: '/ '; opacity: 0.6; }
:root.embellish.kit-craft .h-display em,
:root.embellish.kit-craft .h-display i { font-style: italic; opacity: 0.65; }

/* Modern SaaS — subtle gradient on primary CTA hover */
:root.embellish.kit-modern-saas .btn-primary:hover {
  background-image: linear-gradient(135deg, var(--primary), var(--primary) 40%, color-mix(in srgb, var(--primary) 70%, white) 100%);
}

/* News — drop-cap on first paragraph after hero */
:root.embellish.kit-news .body-lead:first-of-type::first-letter {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 3.5em;
  line-height: 0.85;
  font-weight: 600;
  float: left;
  margin: 0.05em 0.08em -0.1em 0;
  color: var(--foreground);
}

/* Boutique Personal — handwritten-feel accent (small caveat-style touches) */
:root.embellish.kit-boutique-personal .eyebrow {
  font-family: 'Caveat', 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary);
  font-weight: 600;
}

/* ── DARK MODE ─────────────────────────────────────────────────
   Apply via <html class="dark"> — set by inline script reading
   ?mode=dark query param, or toggled by the browser chrome. */
:root.dark {
  --background: #0A0A0B;
  --foreground: #FAFAFA;
  --card: #131316;
  --card-foreground: #FAFAFA;
  --popover: #131316;
  --popover-foreground: #FAFAFA;
  --primary: #FAFAFA;
  --primary-foreground: #0A0A0B;
  --secondary: #71717A;
  --secondary-foreground: #FAFAFA;
  --accent: #1F1F22;
  --accent-foreground: #FAFAFA;
  --muted: #131316;
  --muted-foreground: #A1A1AA;
  --destructive: #DC4438;
  --destructive-foreground: #FAFAFA;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.22);
  --input: rgba(255, 255, 255, 0.24);
  --ring: #FAFAFA;

  --pattern-color: rgba(255, 255, 255, 0.13);
  --pattern-color-strong: rgba(255, 255, 255, 0.20);

  --brand: #FAFAFA;
  --brand-deep: #FFFFFF;
  --surface-alt: #131316;
  --surface-dark: #FAFAFA;     /* inverts so .dark + .surface-dark still works */
  --paper: #0A0A0B;
}

:root {
  /* System fonts — wireframe library default. Clients override per-project.
     Sans: Inter w/ optical sizing (auto-display cut at large sizes).
     Mono: JetBrains Mono.
     Premium alternative: Untitled Sans (paid, Klim Type) — same register, requires license. */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Geist Mono', Menlo, Consolas, monospace;

  /* ── Type scale · v1.2 — 10 styles · 4 weights ────────────────── */
  /* Sizes (1.250 modular scale, 16px base = 1rem) */
  --fs-display: clamp(3rem, 5vw, 4.5rem);        /* 48–72px · hero only */
  --fs-h1: clamp(2.25rem, 4vw, 3rem);            /* 36–48px · page H1 */
  --fs-h2: clamp(1.875rem, 3vw, 2.25rem);        /* 30–36px · section heads */
  --fs-h3: 1.5rem;                                /* 24px · subheads */
  --fs-h4: 1.25rem;                               /* 20px · card heads */
  --fs-body-lead: 1.125rem;                       /* 18px · intro / lede */
  --fs-body: 1rem;                                /* 16px · default */
  --fs-body-sm: 0.875rem;                         /* 14px · captions, helper */
  --fs-ui: 0.875rem;                              /* 14px · nav, buttons, labels (matches shadcn text-sm) */
  --fs-eyebrow: 0.75rem;                          /* 12px · section labels (WCAG floor) */

  /* Line heights */
  --lh-display: 1.0;
  --lh-h1: 1.1;
  --lh-h2: 1.2;
  --lh-h3: 1.3;
  --lh-h4: 1.4;
  --lh-body-lead: 1.55;
  --lh-body: 1.6;
  --lh-body-sm: 1.55;
  --lh-ui: 1.4;
  --lh-eyebrow: 1.3;

  /* Letter-spacing — aggressive on display (matches Payload / Attio drafting register) */
  --tracking-display: -0.045em;
  --tracking-h1: -0.04em;
  --tracking-h2: -0.032em;
  --tracking-h3: -0.022em;
  --tracking-h4: -0.014em;
  --tracking-eyebrow: 0.18em;

  /* Weights — 4-tier, no 900 (felt chunky in drafting register) */
  --fw-body: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ── Spacing scale ─────────────────────────────────────────────── */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --container-max: 1240px;

  /* ── Radius — wireframe base is square. Per-client tokens.css overrides. ──── */
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --radius-pill: 999px;     /* pills stay pill-shaped */

  /* ── Motion · WIREFRAME-LAYER ONLY: hover + state transitions ────
     Load animations, scroll-driven, intersection observers, keyframe
     sequences belong in Layer 05 (Animation) — NOT in the wireframe
     library. These tokens exist solely for hover and interactive
     state feedback. Honor prefers-reduced-motion at all times. */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 250ms;

  /* ── Shadows · drafting register prefers lines over depth ──────── */
  --shadow-sm: 0 1px 0 rgba(10, 10, 11, 0.04);
  --shadow-md: 0 1px 0 rgba(10, 10, 11, 0.04), 0 8px 24px -12px rgba(10, 10, 11, 0.08);
  --shadow-lg: 0 1px 0 rgba(10, 10, 11, 0.04), 0 24px 48px -16px rgba(10, 10, 11, 0.12);
}

/* ── Reset + base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  font-optical-sizing: auto;        /* Inter Display cut auto-applies at large sizes */
}

h1, h2, h3, h4, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Atoms ─────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.h-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
  color: var(--foreground);
}

.h-1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-h1);
  text-wrap: balance;
  color: var(--foreground);
}

.h-2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-h2);
  text-wrap: balance;
  color: var(--foreground);
}

.h-3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-h3);
  color: var(--foreground);
}

.h-4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-h4);
  color: var(--foreground);
}

/* Register modifiers — pin a heading to a specific reference register */
.font-refined  { font-weight: var(--fw-medium); }     /* 500 — Payload-style magazine-tech */
.font-strong   { font-weight: var(--fw-bold); }       /* 700 — Attio-style confident */

.body-lead {
  font-size: var(--fs-body-lead);
  line-height: var(--lh-body-lead);
  font-weight: var(--fw-body);
  color: var(--muted-foreground);
}

.body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
  color: var(--foreground);
}

.body-sm {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  font-weight: var(--fw-body);
  color: var(--muted-foreground);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* ============================================================
   BUTTONS — standardized 3-state pattern across all variants:
   default → hover (lift + shadow + variant cue) → active (press)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 12px 20px;
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

/* ── DEFAULT shadow on every button ─────────────────────────── */
.btn {
  box-shadow: var(--shadow-sm);
}

/* ── HOVER — universal lift + shadow elevation ─────────────── */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── ACTIVE — universal press feedback ─────────────────────── */
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
  transition-duration: 100ms;
}

/* ── DISABLED ──────────────────────────────────────────────── */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── VARIANTS — color/bg cues on top of the universal lift ── */

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  filter: brightness(0.92);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border-strong);
  box-shadow: none;             /* ghost-style — no shadow at rest */
}
.btn-secondary:hover {
  border-color: var(--foreground);
  background: var(--accent);
  box-shadow: var(--shadow-sm); /* shadow appears on hover for secondary */
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Arrow embellishment — animates on parent hover */
.btn-arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width var(--dur) var(--ease);
}
.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn-arrow { width: 22px; }

/* ── Section padding rhythm ───────────────────────────────────── */
.section { padding: clamp(64px, 7vw, 120px) 0; }
.section.hero { padding: clamp(96px, 10vw, 160px) 0; }
.section.dense { padding: clamp(40px, 4vw, 64px) 0; }
.section.alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.dark { background: var(--surface-dark); color: var(--background); }
.section.dark .h-display, .section.dark .h-2, .section.dark .h-3, .section.dark .h-4 { color: var(--background); }
.section.dark .body-lead, .section.dark .body { color: rgba(255,255,255,0.78); }
.section.dark .eyebrow { color: rgba(255,255,255,0.55); }

/* Card primitive — drafting register: lines over shadow */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card.interactive:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   ICON PLACEHOLDERS — wireframe register uses textural layout
   markers, NOT real icons. Real Lucide icons drop in per-client
   when the brand is skinned over the wireframe.
   ============================================================ */

.icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  flex-shrink: 0;
}
.icon-placeholder.icon-sm { width: 24px; height: 24px; }
.icon-placeholder.icon-md { width: 32px; height: 32px; }
.icon-placeholder.icon-lg { width: 40px; height: 40px; }
.icon-placeholder.icon-xl { width: 48px; height: 48px; }
.icon-placeholder svg {
  width: 60%; height: 60%;
  stroke-width: 1.25;
}

/* Inline texture marks for inline contexts (replaces small icons in lists, etc.)  */
.tex-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--muted-foreground);
  opacity: 0.4;
  flex-shrink: 0;
  margin-top: 4px;
}
.tex-mark.dot { border-radius: 50%; width: 6px; height: 6px; }
.tex-mark.bar { width: 12px; height: 1.5px; margin-top: 9px; opacity: 0.6; }

/* Real icon class — for when an icon is genuinely meaningful (rare in wireframes) */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* ============================================================
   SVG BACKGROUND PATTERNS — drafting / blueprint signatures
   Apply as a class on any element. They're CSS background-image
   data-URI SVGs so they scale and inherit currentColor on the .pattern-line/.pattern-mark variants.
   ============================================================ */

/* Patterns auto-adapt via --pattern-color (flips light↔dark via :root.dark) */
.bg-dots {
  background-image: radial-gradient(circle, var(--pattern-color) 1px, transparent 1px);
  background-size: 14px 14px;
}
.bg-dots-tight {
  background-image: radial-gradient(circle, var(--pattern-color-strong) 1px, transparent 1px);
  background-size: 10px 10px;
}
.bg-dots-loose {
  background-image: radial-gradient(circle, var(--pattern-color) 1px, transparent 1px);
  background-size: 22px 22px;
}

.bg-pinstripe {
  background-image: repeating-linear-gradient(to bottom, var(--pattern-color) 0 1px, transparent 1px 4px);
}

.bg-hatch {
  background-image: repeating-linear-gradient(45deg, var(--pattern-color) 0 1px, transparent 1px 5px);
}
.bg-hatch-dense {
  background-image: repeating-linear-gradient(45deg, var(--pattern-color-strong) 0 1px, transparent 1px 3px);
}

/* Image placeholder · two variants
   ─────────────────────────────────
   .img-slot          — restrained: muted bg + dashed border + transparent label.
                        Used by HE wires and most section variants. Label text
                        is rendered transparent by default for clean review;
                        flip via `.img-slot { color: var(--muted-foreground); }`
                        in a project override to show the slot label.
   .image-placeholder — drafted-aesthetic: diagonal hatch + centered plus.
                        For documentation/style-guide pages where the placeholder
                        IS the visible artifact.
*/
.img-slot {
  background: var(--muted);
  border: 1px dashed var(--border-strong);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
}

/* Em-dash bulleted scope list — used for "What we do" / capabilities content
   where each item is a short bold lead + em-dash + qualifying clause.
   Less visually heavy than a card grid; reads as prose. */
.scope-list { list-style: none; padding: 0; margin: 0; }
.scope-list li {
  position: relative; padding-left: 20px; margin-bottom: 14px;
  color: var(--muted-foreground); line-height: 1.55;
}
.scope-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--muted-foreground);
}
.scope-list li strong { color: var(--foreground); }

/* Mobile drawer — fullpage overtake variant
   State pattern: <body data-menu-open="true">
   Trigger: button onclick="document.body.dataset.menuOpen='true'"
   Close:   button onclick="document.body.dataset.menuOpen='false'"
            + ESC key handler (recommended on the page)
   Fullpage rather than slide-out because it reads more authoritative
   on mobile (no peek-through of the page underneath). */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--background);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  display: flex; flex-direction: column;
}
body[data-menu-open="true"] .mobile-drawer {
  opacity: 1; pointer-events: auto;
}
body[data-menu-open="true"] { overflow: hidden; }
.mobile-drawer nav ul > li > a { font-size: 1.25rem; }
.mobile-drawer nav .pl-4 a { font-size: 1rem; }

/* Form fields — used by contact forms and similar.
   Light styling that respects tokens; project skins override via :root.kit-X.
   Sized to feel comfortable on touch (≥44px hit target). */
.intake-form label {
  font-size: 13px; color: var(--muted-foreground);
  display: flex; flex-direction: column; gap: 4px;
}
.intake-form input,
.intake-form textarea,
.intake-form select {
  font-family: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--input); background: var(--card);
  border-radius: var(--radius); width: 100%;
  color: var(--foreground);
}
.intake-form textarea { resize: vertical; }
.intake-form .optional {
  font-style: italic; color: var(--muted-foreground); font-weight: normal;
}

.image-placeholder {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    var(--pattern-color) 0 1px,
    transparent 1px 10px
  );
}
.image-placeholder::after {
  /* centered plus crosshair */
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(to right, transparent 13px, var(--border-strong) 13px 15px, transparent 15px),
    linear-gradient(to bottom, transparent 13px, var(--border-strong) 13px 15px, transparent 15px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
