/* Brand OS — Main Stylesheet
   Generated by LaunchEase v0.13.26
   Comprehensive design system: tokens, components, responsive, a11y.
   Desktop-first; breakpoints at 1180 / 900 / 768 / 480. */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand */
    --color-primary:       #ff6b35;
    --color-primary-hover: #e55a24;
    --color-accent:        #2ecc71;
    --color-secondary:     #34495e;

    /* Neutrals — v0.13.63 contrast bump for WCAG AA + v0.13.95 dark-bg fidelity.
       When the user wanted a dark background (cinema, theater, night-mode), the
       decode_brand_palette helper flips prefer_dark_bg=true and writeCSS rewires
       these. Prior pre-v0.13.95 sites lost dark-background intent because these
       tokens were hardcoded white-bg even when the decoder knew otherwise. */
    --color-text:        #2c3e50;
    --color-text-light:  #475569;
    --color-text-muted:  #64748b;
    --color-bg:          #ffffff;
    --color-bg-alt:      #f8fafc;
    --color-bg-tinted:   #f1f5f9;
    --color-border:      #e2e8f0;
    --color-border-dark: #cbd5e1;

    /* Semantic */
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-error:   #dc2626;
    --color-info:    #2563eb;

    /* Spacing scale (base 4px) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Type scale */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: var(--font-body);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;
    --text-6xl:  3.75rem;

    /* Radius */
    --radius-sm: 0.25rem;
    --radius:    0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadow */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow:    0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.10), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

    /* Layout */
    --container-max:        1180px;
    --container-narrow-max: 760px;
    --header-height:        72px;

    /* Transitions */
    --transition:        180ms ease;
    --transition-slow:   320ms ease;

    /* v0.13.63: accent-color flows brand into native form controls
       (checkbox, radio, range, progress, select). */
    accent-color: var(--color-primary);

    /* v0.13.63: tokenized focus ring derived from primary so the ring follows
       brand palette changes instead of staying hardcoded amber. */
    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

/* v0.13.64: prefers-color-scheme:dark block intentionally REMOVED.
   The v0.13.63 block re-mapped --color-text to a light value in dark mode,
   but --color-text is also used AS A BACKGROUND COLOR on .section-bg-dark,
   .cta-block, and similar rules. The dark-mode override turned those
   sections light-on-light (invisible white text on near-white background).
   Do NOT re-add a dark-mode block without first introducing a separate
   --color-surface-dark token that does not get inverted. See CLAUDE.md v0.13.64. */

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
/* v0.13.63: `loading: lazy` is an HTML attribute, not a CSS property — the
   prior `img { loading: lazy }` was a silent no-op. JS sets the attribute
   on every <img> without `loading=` (see main.js). */

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

button { font: inherit; cursor: pointer; }

input, textarea, select { font: inherit; }

/* Focus-visible — only visible on keyboard nav */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
h1 { font-size: var(--text-5xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h4 { font-size: var(--text-xl);  margin-bottom: var(--space-3); }
h5 { font-size: var(--text-lg);  margin-bottom: var(--space-2); }
h6 { font-size: var(--text-base); margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-light); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }

small { font-size: var(--text-sm); color: var(--color-text-light); }

ul, ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
li { margin-bottom: var(--space-2); }
ul.no-bullets, ol.no-bullets { list-style: none; padding-left: 0; }

blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-3) var(--space-5);
    margin: var(--space-6) 0;
    color: var(--color-text-light);
    font-style: italic;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
}

code, kbd, samp {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-bg-tinted);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}
pre {
    font-family: var(--font-mono);
    background: var(--color-bg-tinted);
    padding: var(--space-4);
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: var(--space-4);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}
.container-narrow {
    max-width: var(--container-narrow-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.page-section {
    padding: var(--space-20) 0;
}
.page-section-tight  { padding: var(--space-12) 0; }
.page-section-loose  { padding: var(--space-24) 0; }
/* v0.13.55: consecutive sections used to zero padding-top entirely, but when
   the 2nd section has section-bg-alt / section-bg-dark the inner heading sat
   flush against the color boundary ("heading at top of section border").
   Keep a tight pad-top so the heading breathes inside its colored block. */
.page-section + .page-section { padding-top: var(--space-12); }

.section-bg-alt { background: var(--color-bg-alt); }
.section-bg-dark { background: var(--color-text); color: #fff; }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3,
.section-bg-dark h4, .section-bg-dark h5, .section-bg-dark h6 { color: #fff; }
.section-bg-dark p, .section-bg-dark li { color: rgba(255, 255, 255, 0.85); }

.section-subtitle {
    color: var(--color-text-light);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    max-width: 60ch;
}

/* Grid utilities */
.grid { display: grid; gap: var(--space-6); }
.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-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Screen-reader-only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 1000;
    transition: top var(--transition);
}
.skip-link:focus-visible {
    top: var(--space-4);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ============================================================
   5. SITE HEADER + NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--color-border);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: var(--space-6);
}
.site-logo {
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--color-text);
    letter-spacing: -0.02em;
    text-decoration: none;
}
.site-logo:hover { color: var(--color-primary); text-decoration: none; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition);
}
.main-nav a:hover { color: var(--color-primary); text-decoration: none; }
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.main-nav a:hover::after { transform: scaleX(1); }

/* Hamburger button (mobile) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: var(--space-2);
    border-radius: var(--radius);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--color-bg-tinted); }
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    box-shadow: var(--shadow-xl);
    z-index: 200;
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav[hidden] { display: block; } /* visibility via transform, not display */
.mobile-nav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
}
.mobile-nav-title { font-weight: 800; font-size: var(--text-lg); }
.nav-close {
    background: transparent;
    border: 0;
    font-size: var(--text-3xl);
    line-height: 1;
    color: var(--color-text-light);
    padding: var(--space-2);
    border-radius: var(--radius);
}
.nav-close:hover { color: var(--color-text); background: var(--color-bg-tinted); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { margin-bottom: var(--space-2); }
.mobile-nav a {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    color: var(--color-text);
    font-weight: 600;
    font-size: var(--text-lg);
    text-decoration: none;
    transition: background var(--transition);
}
.mobile-nav a:hover { background: var(--color-bg-alt); text-decoration: none; }

.mobile-nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.mobile-nav-scrim.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-scrim[hidden] { display: block; }

body.nav-open { overflow: hidden; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
    padding: var(--space-24) 0 var(--space-20);
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-alt), #fff);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    max-width: 18ch;
    margin: 0 auto var(--space-5);
}
.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    max-width: 60ch;
    margin: 0 auto var(--space-8);
}
.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}
.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
    align-items: center;
    text-align: left;
}
.hero-split h1 { margin-left: 0; }

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--color-bg);
    color: var(--color-text);
    border: 1.5px solid var(--color-border-dark);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
    min-height: 44px;
}
.btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--color-primary);
}
.btn-ghost:hover {
    background: var(--color-bg-alt);
    border-color: transparent;
}

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); min-height: 52px; }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); min-height: 36px; }

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

/* ============================================================
   8. FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-5); }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}
.form-input, .form-select, .form-textarea {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    color: var(--color-text);
    border: 1.5px solid var(--color-border-dark);
    border-radius: var(--radius);
    font-size: var(--text-base);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 44px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: var(--text-sm); color: var(--color-text-light); margin-top: var(--space-2); }
.form-error { color: var(--color-error); font-size: var(--text-sm); margin-top: var(--space-2); }

.form-check, .form-radio {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}
.form-check input, .form-radio input { width: 18px; height: 18px; }

/* ============================================================
   9. CARDS + COMPONENTS
   ============================================================ */
/* v0.13.63: .service-card / .services-grid are aliases of .card / .card-grid
   so writePage_services and any future page using the legacy class names still
   render correctly — the rule applies to both. Single source of truth. */
.card,
.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card-hover:hover,
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3,
.service-card h3 { margin-bottom: var(--space-3); }
.card-grid,
.services-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.content-block { max-width: 70ch; margin: 0 auto; }

/* Feature list */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    padding: var(--space-3) 0 var(--space-3) var(--space-8);
    position: relative;
    border-bottom: 1px solid var(--color-border);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--space-3);
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
}

/* Stat blocks */
.stat-block { text-align: center; padding: var(--space-6); }
.stat-block-value {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}
.stat-block-label {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* CTA block */
.cta-block {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    border-radius: var(--radius-xl);
    margin: var(--space-12) 0;
}
.cta-block h2, .cta-block h3 { color: #fff; }
.cta-block p { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--space-6); }
.cta-block .btn-primary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.cta-block .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-hover);
}
.cta-block .btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}
.cta-block .btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Testimonial */
.testimonial {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}
.testimonial-quote {
    font-size: var(--text-lg);
    color: var(--color-text);
    font-style: italic;
    margin-bottom: var(--space-4);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-bg-tinted);
}
.testimonial-name { font-weight: 600; }
.testimonial-role { color: var(--color-text-light); font-size: var(--text-sm); }
.testimonials { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    background: var(--color-bg-tinted);
    color: var(--color-text);
}
.badge-primary { background: var(--color-primary); color: #fff; }
.badge-accent { background: var(--color-accent); color: #fff; }
.badge-success { background: var(--color-success); color: #fff; }

/* Alert */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    border-left: 4px solid;
    margin-bottom: var(--space-4);
}
.alert-info    { background: #eff6ff; border-color: var(--color-info); color: #1e40af; }
.alert-success { background: #f0fdf4; border-color: var(--color-success); color: #166534; }
.alert-warning { background: #fffbeb; border-color: var(--color-warning); color: #92400e; }
.alert-error   { background: #fef2f2; border-color: var(--color-error); color: #991b1b; }
.flash         { padding: var(--space-4) var(--space-5); border-radius: var(--radius); margin-bottom: var(--space-4); }
.flash-success { background: #f0fdf4; color: #166534; border-left: 4px solid var(--color-success); }
.flash-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--color-info); }
.flash-error   { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--color-error); }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-6);
}
th, td {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
}
th {
    font-weight: 700;
    background: var(--color-bg-alt);
    color: var(--color-text);
}
tbody tr:hover { background: var(--color-bg-alt); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}
.breadcrumb li::after { content: '/'; margin-left: var(--space-2); color: var(--color-text-muted); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--color-text-light); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: var(--space-4);
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}
.modal h3 { margin-bottom: var(--space-4); }

/* Pagination */
.pagination {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: var(--space-8) 0;
    justify-content: center;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
}
.pagination a:hover { background: var(--color-bg-alt); }
.pagination .active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   10. FOOTER (v0.13.62)
   ============================================================ */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-16) 0 var(--space-12);
    margin-top: var(--space-20);
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.18s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-10) var(--space-12);
    margin-bottom: var(--space-10);
}
/* v0.13.62: when intake didn't expose any social URLs the Connect column
   is omitted, so the grid collapses to 2 columns (brand + Explore). */
.footer-grid-nosocials { grid-template-columns: 2fr 1fr; }
/* v0.13.62: when Explore has >6 items it splits into two parallel columns,
   shifting the layout to 4 cols. */
.footer-grid-wide { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.footer-grid-wide.footer-grid-nosocials { grid-template-columns: 1.6fr 1fr 1fr; }

.footer-col h4 {
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-4);
    /* Override heading default's negative tracking — uppercase tiny text
       reads cramped with the global -0.02em. */
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { font-size: var(--text-sm); }
.footer-brand {
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: var(--space-3);
}
.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    max-width: 38ch;
    font-size: var(--text-sm);
    line-height: 1.55;
    margin: 0;
}

/* Social icon pills — replace dead text links with real iconography. */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
}
.footer-social li { margin: 0; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.footer-social a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateY(-1px);
}
.footer-social svg { display: block; }

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--text-xs);
}
.footer-bottom p { margin: 0; }
.powered-by { color: rgba(255, 255, 255, 0.5); }
.powered-by a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.powered-by a:hover { color: #fff; }
.photo-credit { flex-basis: 100%; color: rgba(255, 255, 255, 0.45); font-size: var(--text-xs); margin: var(--space-2) 0 0; }

/* ============================================================
   11. ANIMATIONS — fade-in on scroll
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   12. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1180px) {
    /* v0.13.62: wide-variant footer collapses split-explore back into one
       column at narrow desktop / wide tablet widths. */
    .footer-grid-wide { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid-wide.footer-grid-nosocials { grid-template-columns: 2fr 1fr; }
}

@media (max-width: 900px) {
    :root {
        --header-height: 64px;
    }
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-2xl); }
    .hero { padding: var(--space-16) 0 var(--space-12); }
    .hero-split { grid-template-columns: 1fr; gap: var(--space-8); text-align: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid,
    .footer-grid-nosocials,
    .footer-grid-wide,
    .footer-grid-wide.footer-grid-nosocials { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .page-section { padding: var(--space-16) 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    h1 { font-size: var(--text-3xl); }
    .hero h1 { font-size: var(--text-4xl); }
    .hero-subtitle { font-size: var(--text-lg); }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container, .container-narrow { padding: 0 var(--space-4); }
    .hero { padding: var(--space-12) 0 var(--space-10); }
    .hero h1 { font-size: var(--text-3xl); }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .btn { width: 100%; }
    .hero-cta .btn, .form-group .btn { width: auto; }
    .footer-grid,
    .footer-grid-nosocials,
    .footer-grid-wide,
    .footer-grid-wide.footer-grid-nosocials { grid-template-columns: 1fr; }
    .cta-block { padding: var(--space-10) var(--space-4); }
}

/* ============================================================
   13. A11Y — reduced motion + high contrast
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
    :root {
        --color-border: #475569;
        --color-border-dark: #1e293b;
        --color-text-light: #334155;
    }
    .btn { border-width: 2px; }
}

/* ============================================================
   14. PRINT
   ============================================================ */
@media print {
    .site-header, .site-footer, .nav-toggle, .mobile-nav, .mobile-nav-scrim,
    .hero-cta, .cta-block, .skip-link { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
    .page-section { padding: 0; }
    h1, h2, h3 { page-break-after: avoid; }
    p, blockquote, li { page-break-inside: avoid; }
    .container { max-width: 100%; padding: 0; }
}

/* ============================================================
   15. DECORATIONS (v0.13.30) — brand-color SVG backgrounds
   ============================================================ */
.hero-decorated {
    position: relative;
    background-image: url('/assets/images/decorations/hero-bg.svg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.section-decorated {
    position: relative;
    background-image: url('/assets/images/decorations/dots.svg');
    background-repeat: repeat;
    background-size: 160px;
}
.section-divider-wave {
    margin-top: var(--space-20);
    margin-bottom: 0;
    background: url('/assets/images/decorations/wave.svg') no-repeat center top;
    /* v0.13.63: was `100% auto` — auto height scaled the SVG proportionally
       and overflowed the 120px container on wide viewports. `100% 100%`
       stretches the wave to fill the container exactly. */
    background-size: 100% 100%;
    height: 120px;
}
.decoration-blob {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.decoration-blob > * { position: relative; z-index: 1; }

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
}
.icon-tile img { width: 100%; height: 100%; }
