@layer reset, base, layout, components, motion;

/* ═══════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════════════ */
:root {
  /* Color */
  --bg:             #0c0c0f;
  --surface:        #141418;
  --surface-2:      #1c1c22;
  --border:         rgba(255 255 255 / 0.07);
  --border-strong:  rgba(255 255 255 / 0.14);

  --text:           #f0f0f4;
  --text-muted:     #9898b2;
  --text-faint:     #8888b4;

  --accent:         #f0a040;
  --accent-dim:     rgba(240 160 64 / 0.12);
  --accent-glow:    rgba(240 160 64 / 0.22);
  --blue:           #5b8ef5;
  --blue-dim:       rgba(91 142 245 / 0.10);

  /* Footer-specific colors — muted, low-contrast */
  /* Footer-specific colors — muted, low-contrast */
  --footer-text:       #a07040;
  --footer-text-faint: #7a5530;

  /* Typography */
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', monospace;

  /* Scale — fluid, no breakpoints needed */
  --text-sm:   clamp(0.8rem,  0.5vw + 0.65rem, 0.9rem);
  --text-base: clamp(1rem,    0.5vw + 0.85rem, 1.1rem);
  --text-lg:   clamp(1.1rem,  1vw   + 0.75rem, 1.35rem);
  --text-xl:   clamp(1.4rem,  2vw   + 0.75rem, 2rem);
  --text-2xl:  clamp(2rem,    4vw   + 0.5rem,  3.5rem);
  --text-hero: clamp(2.75rem, 6vw   + 1rem,    6rem);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.75rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 8rem;

  /* Misc */
  --radius:    10px;
  --radius-lg: 18px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:     64px;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════════════ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { color-scheme: dark; scroll-behavior: smooth; }
  img, svg { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
  ul, ol { list-style: none; }
  a { color: inherit; text-decoration: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════════════════════ */
@layer base {
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }

  h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-lg); }

  p { max-width: 60ch; }

  ::selection { background: var(--accent); color: #000; }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
  }

  /* Anchor scroll offset so nav doesn't cover headings */
  [id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
}

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════════════ */
@layer layout {

  .container {
    width: min(100%, 1100px);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
  }

  /* ── NAV ─────────────────────────────────────────────── */
  .nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    background: rgba(12 12 15 / 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .logo-wordmark {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
  }

  .nav-links a:not(.btn):hover { color: var(--text); }

  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }

  .nav--open .nav-toggle span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav--open .nav-toggle span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* ── SECTION SHELL ───────────────────────────────────── */
  .section {
    padding-block: var(--space-2xl);
  }

  .section--alt { background: var(--surface); }

  .section-sub {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-block-start: var(--space-sm);
  }

}

/* ═══════════════════════════════════════════════════════════════════════
   COMPONENTS
═══════════════════════════════════════════════════════════════════════ */
@layer components {

  /* ── BUTTONS ─────────────────────────────────────────── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 1.4em;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: var(--text-base);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
  }

  .btn--primary {
    background: var(--accent);
    color: #000;
    font-weight: 600;
  }
  .btn--primary:hover {
    background: color-mix(in srgb, var(--accent) 85%, #fff);
    box-shadow: 0 0 24px var(--accent-glow);
  }

  .btn--ghost {
    border-color: var(--border-strong);
    color: var(--text-muted);
  }
  .btn--ghost:hover {
    border-color: var(--text-muted);
    color: var(--text);
  }

  .btn--sm  { font-size: var(--text-sm); padding: 0.45em 1em; }
  .btn--lg  { font-size: var(--text-lg); padding: 0.7em 1.75em; }
  .btn--full { width: 100%; justify-content: center; }

  /* ── EYEBROW ─────────────────────────────────────────── */
  .eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-block-end: var(--space-sm);
  }

  /* ── HERO ────────────────────────────────────────────── */
  .hero {
    position: relative;
    padding-block-start: calc(var(--nav-h) + var(--space-2xl));
    padding-block-end: 0;
    overflow: hidden;
  }

  .hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 80% 55% at 50% -10%, rgba(240 160 64 / 0.13), transparent 70%),
      radial-gradient(ellipse 50% 40% at 80% 70%, rgba(91 142 245 / 0.07), transparent 70%);
  }

  .hero-inner {
    position: relative;
    text-align: center;
    padding-block-end: var(--space-xl);
  }

  .hero-headline {
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: -0.035em;
    background: linear-gradient(160deg, var(--text) 50%, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-block: var(--space-sm) var(--space-md);
  }

  .hero-sub {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 52ch;
    margin-inline: auto;
    margin-block-end: var(--space-lg);
  }

  .hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Stats bar */
  .stats-bar {
    border-top: 1px solid var(--border);
    margin-block-start: var(--space-xl);
    background: var(--surface);
  }

  .stats-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-block: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .stat { text-align: center; }

  .stat-value {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
  }

  .stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .stat-rule {
    width: 1px;
    height: 40px;
    background: var(--border-strong);
  }

  /* ── PROBLEM CARDS ───────────────────────────────────── */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-block-start: var(--space-xl);
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px rgba(0 0 0 / 0.3);
  }

  .card-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-block-end: var(--space-md);
  }

  .card h3 { margin-block-end: var(--space-xs); }
  .card p  { color: var(--text-muted); font-size: var(--text-sm); }

  /* ── TRANSFORM ───────────────────────────────────────── */
  .transform {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: center;
    margin-block-start: var(--space-xl);
  }

  .transform-col {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
  }

  .transform-col--after {
    background: var(--accent-dim);
    border-color: rgba(240 160 64 / 0.25);
  }

  .transform-label {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-block-end: var(--space-md);
  }

  .transform-col--after .transform-label { color: var(--accent); }

  .transform-list li {
    padding-block: 0.45em;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--text-muted);
  }
  .transform-col--after .transform-list li { color: var(--text); }
  .transform-list li:last-child { border-bottom: none; }

  .transform-arrow {
    color: var(--accent);
    opacity: 0.5;
  }
  .transform-arrow svg { width: 48px; }

  /* ── STEPS ───────────────────────────────────────────── */
  .steps {
    position: relative;
    display: grid;
    gap: 0;
    margin-block-start: var(--space-xl);
  }

  .steps::before {
    content: '';
    position: absolute;
    inset-inline-start: 19px;
    inset-block: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
  }

  .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--space-md);
    padding-block: var(--space-lg);
    padding-inline-start: var(--space-xs);
  }

  .step + .step { border-top: 1px solid var(--border); }

  .step-num {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent);
    background: var(--bg);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
  }

  .step-body h3 { margin-block-end: var(--space-xs); }
  .step-body p  { color: var(--text-muted); }

  /* ── FEATURES ────────────────────────────────────────── */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-block-start: var(--space-xl);
  }

  .feature {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color 0.2s, transform 0.2s;
  }

  .feature:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-block-end: var(--space-md);
  }

  .feature h3 { margin-block-end: var(--space-xs); }
  .feature p  { color: var(--text-muted); font-size: var(--text-sm); }

  /* ── WHY OCCAM ───────────────────────────────────────── */
  .occam-section { overflow: hidden; }

  .occam-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  .occam-quote {
    padding: var(--space-xl);
    border-inline-start: 2px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  .occam-quote blockquote {
    font-size: var(--text-xl);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text);
    font-style: italic;
    margin-block-end: var(--space-md);
  }

  .occam-quote figcaption {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
  }

  .occam-body p:not(.eyebrow) {
    color: var(--text-muted);
    margin-block-start: var(--space-md);
  }

  .occam-body h2 { margin-block-start: var(--space-sm); }

  .occam-closer {
    color: var(--text) !important;
    font-weight: 500;
    font-size: var(--text-lg) !important;
  }

  /* ── PRICING ─────────────────────────────────────────── */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    max-width: 720px;
    margin-inline: auto;
    margin-block-start: var(--space-xl);
    align-items: start;
  }

  .pricing-single {
    max-width: 480px;
    margin-inline: auto;
    margin-block-start: var(--space-xl);
  }

  .pricing-support {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
    margin-block-start: var(--space-md);
    max-width: none;
  }

  .pricing-support a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
  }

  /* Gradient border trick for the featured card */
  .pricing-card--featured {
    background:
      linear-gradient(var(--surface), var(--surface)) padding-box,
      linear-gradient(140deg, var(--accent), var(--blue)) border-box;
    border: 1px solid transparent;
  }

  .pricing-badge {
    position: absolute;
    inset-block-start: -13px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 0.2em 0.9em;
    border-radius: 99px;
    white-space: nowrap;
  }

  .pricing-tier {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-block-end: var(--space-sm);
  }

  .pricing-amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.04em;
  }

  .pricing-note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-block: var(--space-xs) var(--space-md);
    max-width: none;
  }

  .pricing-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-block-end: var(--space-lg);
  }

  .pricing-list li {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    font-size: var(--text-sm);
    color: var(--text-muted);
  }

  .pricing-list li::before {
    content: '—';
    color: var(--accent);
    flex-shrink: 0;
  }

  /* ── CONTACT ─────────────────────────────────────────── */
  .contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
  }

  .contact-copy h2 { margin-block: var(--space-xs) var(--space-md); }
  .contact-copy p:not(.eyebrow)  { color: var(--text-muted); margin-block-end: var(--space-sm); }

  .contact-direct { margin-block-start: var(--space-lg) !important; }

  .contact-email {
    color: var(--accent);
    font-weight: 500;
    transition: opacity 0.2s;
  }
  .contact-email:hover { opacity: 0.75; }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
  }

  .form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
  }

  .label-optional {
    font-weight: 400;
    color: var(--text-faint);
  }

  .form-group input,
  .form-group textarea {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.65em 0.9em;
    color: var(--text);
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder { color: var(--text-faint); }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
  }

  /* ── FORM STATUS ─────────────────────────────────────── */
  .form-status {
    font-size: var(--text-sm);
    min-height: 1.5em;
    max-width: none;
  }
  .form-status--success { color: #4ade80; }
  .form-status--error   { color: #f87171; }

  /* ── ANNOUNCE BAR ───────────────────────────────────── */
  /* AI INTEGRATION NOTE: place as first child of <body>, before nav */
  .announce-bar {
    background: var(--accent-dim);
    border-bottom: 1px solid rgba(240 160 64 / 0.25);
    padding: 0.6em var(--space-md);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
  }

  .announce-bar a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* ── FAQ ACCORDION ───────────────────────────────────── */
  /* AI INTEGRATION NOTE: uses native <details>/<summary>, no JS needed */
  .faq {
    margin-block-start: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .faq details {
    border-bottom: 1px solid var(--border);
  }

  .faq details:last-child {
    border-bottom: none;
  }

  .faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    transition: background 0.15s;
  }

  .faq summary::-webkit-details-marker { display: none; }

  .faq summary:hover {
    background: var(--surface-2);
  }

  .faq summary::after {
    content: '+';
    font-size: 1.25em;
    color: var(--accent);
    flex-shrink: 0;
    margin-inline-start: var(--space-md);
    transition: transform 0.2s;
  }

  .faq details[open] > summary::after {
    transform: rotate(45deg);
  }

  .faq-body {
    padding: 0 var(--space-lg) var(--space-md);
  }

  .faq-body p {
    color: var(--text-muted);
    font-size: var(--text-sm);
  }

  /* ── BUSINESS HOURS ──────────────────────────────────── */
  /* AI INTEGRATION NOTE: add class="hours-row--today" to current day row */
  .hours-table {
    margin-block-start: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75em var(--space-lg);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
    transition: background 0.15s;
  }

  .hours-row:last-child { border-bottom: none; }

  .hours-row--today {
    background: var(--accent-dim);
    border-color: rgba(240 160 64 / 0.2);
  }

  .hours-row--today .hours-day {
    color: var(--accent);
    font-weight: 600;
  }

  .hours-day { color: var(--text); font-weight: 500; }

  .hours-time { color: var(--text-muted); }

  .hours-time--closed {
    color: var(--text-faint);
    font-style: italic;
  }

  /* ── MENU / PRICE LIST ───────────────────────────────── */
  /* AI INTEGRATION NOTE: prices in data-price attr for reliable bulk edits */
  .menu {
    margin-block-start: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
  }

  .menu-category-title {
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-block-end: var(--space-sm);
    padding-block-end: var(--space-xs);
    border-bottom: 1px solid var(--border);
  }

  .menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
  }

  .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-md);
    padding-block: var(--space-sm);
    border-bottom: 1px solid var(--border);
  }

  .menu-item:last-child { border-bottom: none; }

  .menu-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    flex: 1;
  }

  .menu-item-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
  }

  .menu-item-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
  }

  .menu-item-tag {
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 600;
  }

  .menu-item-price {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── DOWNLOAD CARDS ──────────────────────────────────── */
  /* AI INTEGRATION NOTE: files go in /files/; rename on update to bust CDN cache */
  .download-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-block-start: var(--space-xl);
  }

  .download-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .download-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 16px rgba(0 0 0 / 0.2);
  }

  .download-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .download-card-icon svg {
    width: 100%;
    height: 100%;
  }

  .download-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
  }

  .download-card-name {
    font-weight: 600;
    font-size: var(--text-base);
  }

  .download-card-meta {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
  }

  .download-card-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-faint);
    transition: color 0.2s, transform 0.2s;
  }

  .download-card:hover .download-card-arrow {
    color: var(--accent);
    transform: translateY(2px);
  }

  /* ── SOCIAL STRIP ────────────────────────────────────── */
  /* AI INTEGRATION NOTE: add/remove by data-platform; set href to full profile URL */
  .social-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-block-start: var(--space-xl);
  }

  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-decoration: none;
  }

  .social-link svg {
    width: 22px;
    height: 22px;
  }

  .social-link:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--surface-2);
  }

  /* ── TESTIMONIAL GRID ────────────────────────────────── */
  /* AI INTEGRATION NOTE: .testimonial-org is optional — omit if client has no org */
  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
    margin-block-start: var(--space-xl);
  }

  .testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .testimonial-quote p {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--text-muted);
    font-style: italic;
  }

  .testimonial-quote p::before { content: '\201C'; }
  .testimonial-quote p::after  { content: '\201D'; }

  .testimonial-source {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    margin-top: auto;
  }

  .testimonial-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
  }

  .testimonial-org {
    font-size: var(--text-sm);
    color: var(--text-faint);
    font-family: var(--font-mono);
  }

  /* ── CALENDAR SUBSCRIBE ──────────────────────────────── */
  /* AI INTEGRATION NOTE: webcal:// URL is a manual conversion-time step */
  .cal-subscribe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-block-start: var(--space-xl);
    padding: var(--space-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .cal-subscribe-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-block-end: 0.4em;
    max-width: none;
  }

  .cal-subscribe-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    max-width: 52ch;
  }

  /* ── MAP EMBED ───────────────────────────────────────── */
  /* AI INTEGRATION NOTE: conversion-time manual step — embed URL from openstreetmap.org */
  .map-embed {
    margin-block-start: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
  }

  .map-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
  }

  /* ── PHOTO GALLERY ───────────────────────────────────── */
  /* AI INTEGRATION NOTE: replace .demo-img divs with <img> tags */
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-sm);
    margin-block-start: var(--space-xl);
  }

  .photo-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    border: 1px solid var(--border);
  }

  /* ── VIDEO EMBED ─────────────────────────────────────── */
  /* AI INTEGRATION NOTE: extract video ID from URL, set as src; supports YouTube + Vimeo */
  .video-embed {
    margin-block-start: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
  }

  .video-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
  }

  .video-embed-caption {
    margin-block-start: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-faint);
    text-align: center;
    max-width: none;
  }

  /* ── FOOTER ──────────────────────────────────────────── */
  .footer {
    border-top: 3px solid var(--border);
    padding-block: var(--space-lg) var(--space-md);
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-block-end: var(--space-md);
    padding-block-end: var(--space-md);
    border-bottom: 1px solid var(--border);
  }

  .footer-wordmark {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-block-end: 0.2em;
  }

  .footer-tagline {
    font-size: var(--text-sm);
    color: var(--text-muted);
  }

  .footer-right a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color 0.2s;
  }
  .footer-right a:hover { color: var(--text); }

  .footer-base p {
    font-size: var(--text-sm);
    color: var(--footer-text-faint);
    max-width: none;
  }

}

/* ═══════════════════════════════════════════════════════════════════════
   MOTION
═══════════════════════════════════════════════════════════════════════ */
@layer motion {

  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* Stagger children when a grid container becomes visible */
  .card-grid.visible    .card:nth-child(2),
  .feature-grid.visible .feature:nth-child(2),
  .pricing-grid.visible .pricing-card:nth-child(2) { transition-delay: 0.1s; }

  .card-grid.visible    .card:nth-child(3),
  .feature-grid.visible .feature:nth-child(3)       { transition-delay: 0.2s; }

  .card-grid.visible    .card:nth-child(4),
  .feature-grid.visible .feature:nth-child(4)       { transition-delay: 0.3s; }

  .feature-grid.visible .feature:nth-child(5)       { transition-delay: 0.4s; }
  .feature-grid.visible .feature:nth-child(6)       { transition-delay: 0.5s; }

  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .nav-links {
    display: none;
    position: absolute;
    inset-block-start: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .nav--open .nav-links { display: flex; }
  .nav-toggle { display: flex; }

  .transform {
    grid-template-columns: 1fr;
  }

  .transform-arrow {
    transform: rotate(90deg);
    margin-inline: auto;
  }

  .occam-inner      { grid-template-columns: 1fr; }
  .contact-inner    { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .stat-rule        { display: none; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .steps::before { display: none; }
  .step { grid-template-columns: 1fr; }
  .step-num { width: 36px; height: 36px; font-size: 0.75rem; }

  .cal-subscribe { flex-direction: column; align-items: flex-start; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}
