/* ==========================================================================
   HOMEMOUNT  —  Design System
   Brand:  Domestic crafter co-op for TV installation
   Voice:  Slow, considered, gentle
   Visual: Warm cream/oat/walnut + deep tea green, soft 12px corners,
           italic serif accents, room-illustration motifs.
   ========================================================================== */

/* -----  1. TOKENS  ------------------------------------------------------- */
:root {
    /* Palette — cream / oat / walnut / tea (no orange, no blue) */
    --cream:      #f5efe1;
    --cream-2:    #ebe3cf;
    --oat:        #e9e0cd;
    --paper:      #ede5d2;
    --clay:       #c8bba0;          /* muted tan, NOT orange */
    --walnut:     #3a3128;          /* dark warm brown */
    --walnut-2:   #4a4036;
    --ink:        #1c1814;
    --tea:        #1f4d3c;          /* deep emerald-teal, approved accent */
    --tea-2:      #16382b;
    --tea-pale:   #b9d0c5;
    --tea-tint:   #d9e4dc;
    --stone:      #8a8170;          /* warm grey */
    --stone-2:    #a59b8a;
    --line:       rgba(58,49,40,0.15);
    --line-dim:   rgba(58,49,40,0.08);
    --line-onink: rgba(245,239,225,0.16);

    /* Type — warm serif + rounded humanist sans (no mono — handfeel) */
    --font-display: "Spectral", "Source Serif Pro", "Georgia", serif;
    --font-body:    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mark:    "Spectral", serif;       /* italic accents */

    /* Type scale */
    --t-mega:    clamp(3rem, 7vw + 1rem, 7rem);
    --t-display: clamp(2.5rem, 5vw + 1rem, 5rem);
    --t-h1:      clamp(2.125rem, 4vw + 0.5rem, 3.75rem);
    --t-h2:      clamp(1.625rem, 2.5vw + 0.5rem, 2.5rem);
    --t-h3:      clamp(1.25rem, 1.5vw + 0.5rem, 1.625rem);
    --t-h4:      clamp(1.0625rem, 0.5vw + 0.85rem, 1.25rem);
    --t-body:    1rem;
    --t-small:   0.9375rem;
    --t-micro:   0.75rem;

    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
    --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

    --max-w: 1240px;
    --gutter: 28px;

    --radius:    12px;          /* SOFT corners — signature distinction */
    --radius-sm: 8px;
    --radius-lg: 20px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 320ms;
}

/* -----  2. RESET + BASE  ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
    background: var(--cream);
    color: var(--walnut);
    font-family: var(--font-body);
    font-size: var(--t-body);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--tea); color: var(--cream); }

/* -----  3. TYPOGRAPHY  --------------------------------------------------- */
.mega {
    font-family: var(--font-display);
    font-size: var(--t-mega);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.018em;
    font-style: normal;
}
.display {
    font-family: var(--font-display);
    font-size: var(--t-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
}
h1, .h1 { font-family: var(--font-display); font-size: var(--t-h1); font-weight: 400; line-height: 1.05; letter-spacing: -0.012em; }
h2, .h2 { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 400; line-height: 1.1; letter-spacing: -0.008em; }
h3, .h3 { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; }
h4, .h4 { font-family: var(--font-body); font-size: var(--t-h4); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }

em, i, .italic { font-style: italic; font-family: var(--font-mark); }

.label {
    font-family: var(--font-body);
    font-size: var(--t-micro);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tea-2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.label::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--tea-2);
}
.label--plain::before { display: none; }

.mark {
    font-family: var(--font-mark);
    font-style: italic;
    color: var(--tea-2);
    font-weight: 400;
}

.lede {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--walnut-2);
    font-weight: 400;
}
.lede-lg { font-size: 1.25rem; line-height: 1.55; }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); letter-spacing: 0.06em; }
.muted { color: var(--stone); }
.accent { color: var(--tea-2); }

/* -----  4. LAYOUT  ------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.container--narrow { max-width: 920px; }

.section {
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
    position: relative;
}
@media (max-width: 768px) {
    .section { padding-top: var(--s-8); padding-bottom: var(--s-8); }
}
.section--tight   { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.section--oat     { background: var(--oat); }
.section--paper   { background: var(--paper); }
.section--walnut  { background: var(--walnut); color: var(--cream); }
.section--walnut .label { color: var(--tea-pale); }
.section--walnut .label::before { background: var(--tea-pale); }
.section--walnut .mark { color: var(--tea-pale); }
.section--walnut .lede { color: rgba(245,239,225,0.78); }
.section--walnut .muted { color: var(--stone-2); }

/* -----  5. PAPER TEXTURE (subtle background depth)  ------------------- */
.paper-grain {
    position: relative;
}
.paper-grain::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(58,49,40,0.025) 1px, transparent 1.5px),
        radial-gradient(circle at 75% 75%, rgba(58,49,40,0.025) 1px, transparent 1.5px);
    background-size: 64px 64px, 80px 80px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
    opacity: 0.7;
}
.paper-grain > * { position: relative; z-index: 1; }

/* -----  6. BUTTONS  ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 26px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    border-radius: 999px;            /* PILL — distinct from prior sites */
    border: 1.5px solid transparent;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--tea); outline-offset: 3px; }
.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn--primary {
    background: var(--tea);
    color: var(--cream);
    border-color: var(--tea);
}
.btn--primary:hover {
    background: var(--tea-2);
    border-color: var(--tea-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -14px rgba(31,77,60,0.6);
}

.btn--solid {
    background: var(--walnut);
    color: var(--cream);
    border-color: var(--walnut);
}
.btn--solid:hover {
    background: var(--ink);
    border-color: var(--ink);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--walnut);
    border-color: var(--walnut);
}
.btn--outline:hover { background: var(--walnut); color: var(--cream); }
.section--walnut .btn--outline { color: var(--cream); border-color: var(--cream); }
.section--walnut .btn--outline:hover { background: var(--cream); color: var(--walnut); }

.btn--ghost {
    padding: 4px 0;
    background: none;
    border: none;
    border-bottom: 1.5px solid currentColor;
    color: var(--tea-2);
    border-radius: 0;
}
.btn--ghost:hover { color: var(--walnut); }

/* -----  7. CHIPS + LABEL DECORATIONS  --------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    background: var(--paper);
    color: var(--walnut);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.chip--solid { background: var(--walnut); color: var(--cream); border-color: var(--walnut); }
.chip--tea   { background: var(--tea); color: var(--cream); border-color: var(--tea); }
.chip--dot::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tea-2);
    display: inline-block;
}

/* Hand-feel label tab — small tag like a craft label */
.tab-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--cream);
    border: 1px solid var(--walnut);
    border-radius: var(--radius-sm);
    font-family: var(--font-mark);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--walnut);
}

/* -----  8. CARDS  ------------------------------------------------------- */
/* Room card — soft-edged with paper background and gentle illustration slot */
.room {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-6);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    position: relative;
}
.room:hover {
    transform: translateY(-3px);
    border-color: var(--tea-2);
    box-shadow: 0 18px 40px -22px rgba(58,49,40,0.18);
}
.room__topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line-dim);
}
.room__id {
    font-family: var(--font-mark);
    font-style: italic;
    font-size: 1rem;
    color: var(--tea-2);
}
.room__num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    line-height: 0.9;
    color: var(--walnut);
}
.room__title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    line-height: 1.05;
    margin-bottom: var(--s-4);
    color: var(--walnut);
    letter-spacing: -0.01em;
}
.room__body {
    color: var(--walnut-2);
    font-size: 0.9375rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: var(--s-5);
}
.room__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--s-4);
    border-top: 1px solid var(--line-dim);
    font-size: 0.8125rem;
    color: var(--stone);
}
.room__foot .mark { color: var(--tea-2); }

/* Sketch — small line illustration slot at top of card */
.sketch {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: var(--cream-2);
    border-radius: var(--radius-sm);
    margin-bottom: var(--s-5);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sketch svg { width: 70%; height: auto; color: var(--walnut); }

/* Note card — like a handwritten note */
.note {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-5) var(--s-6);
    position: relative;
}
.note__corner {
    position: absolute;
    top: -10px; left: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-mark);
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--tea-2);
}

/* Step — process card */
.step-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-6) var(--s-5);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.step-card:hover { transform: translateY(-2px); border-color: var(--tea-2); }
.step-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--s-5);
}
.step-card__id { font-family: var(--font-mark); font-style: italic; color: var(--tea-2); font-size: 1rem; }
.step-card__n {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 0.9;
    color: var(--walnut);
    letter-spacing: -0.02em;
}
.step-card__title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    line-height: 1.1;
    margin-bottom: var(--s-3);
    color: var(--walnut);
}
.step-card__body { color: var(--walnut-2); font-size: 0.9375rem; line-height: 1.55; }

/* Tier — soft pill cards */
.tier {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--s-7) var(--s-6);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tier:hover {
    transform: translateY(-3px);
    border-color: var(--tea-2);
    box-shadow: 0 24px 50px -28px rgba(58,49,40,0.22);
}
.tier--feature { background: var(--walnut); color: var(--cream); border-color: var(--walnut); }
.tier__id {
    font-family: var(--font-mark);
    font-style: italic;
    color: var(--tea-2);
    font-size: 1rem;
    margin-bottom: var(--s-3);
}
.tier--feature .tier__id { color: var(--tea-pale); }
.tier__name {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: var(--s-3);
    color: var(--walnut);
    letter-spacing: -0.015em;
}
.tier--feature .tier__name { color: var(--cream); }
.tier__price {
    font-family: var(--font-display);
    font-size: 2.625rem;
    line-height: 1;
    margin-bottom: var(--s-2);
    color: var(--walnut);
    letter-spacing: -0.02em;
}
.tier--feature .tier__price { color: var(--cream); }
.tier__price small { font-size: 0.875rem; font-weight: 400; color: var(--stone); letter-spacing: 0; }
.tier--feature .tier__price small { color: rgba(245,239,225,0.65); }
.tier__sub {
    color: var(--walnut-2);
    font-size: 0.9375rem;
    padding-bottom: var(--s-5);
    margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--line-dim);
    line-height: 1.55;
}
.tier--feature .tier__sub { color: rgba(245,239,225,0.7); border-color: var(--line-onink); }
.tier__inc { flex: 1; margin-bottom: var(--s-5); }
.tier__inc li {
    padding: var(--s-3) 0 var(--s-3) 26px;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--walnut-2);
    border-bottom: 1px solid var(--line-dim);
}
.tier--feature .tier__inc li { color: rgba(245,239,225,0.85); border-color: var(--line-onink); }
.tier__inc li:last-child { border-bottom: none; }
.tier__inc li::before {
    content: "○";
    position: absolute;
    left: 0;
    top: 11px;
    color: var(--tea-2);
    font-size: 0.875rem;
}
.tier--feature .tier__inc li::before { color: var(--tea-pale); }

/* Letter (testimonial) — like a postcard */
.letter {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-6) var(--s-6) var(--s-5);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.letter__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: var(--s-4);
    margin-bottom: var(--s-5);
    border-bottom: 1px dashed var(--line);
}
.letter__id {
    font-family: var(--font-mark);
    font-style: italic;
    color: var(--tea-2);
    font-size: 1rem;
}
.letter__stamp {
    background: var(--oat);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--walnut-2);
}
.letter__body {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    line-height: 1.5;
    color: var(--walnut);
    font-weight: 400;
    flex: 1;
    margin-bottom: var(--s-5);
}
.letter__sign {
    padding-top: var(--s-4);
    border-top: 1px solid var(--line-dim);
}
.letter__name {
    font-family: var(--font-mark);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--walnut);
    margin-bottom: 2px;
}
.letter__where {
    font-size: 0.8125rem;
    color: var(--stone);
}

/* Question (FAQ) — open book feel */
.q {
    border-top: 1px solid var(--line);
    padding: var(--s-5) 0;
}
.q:last-of-type { border-bottom: 1px solid var(--line); }
.q summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--s-4);
    transition: color var(--dur) var(--ease);
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover .q__title { color: var(--tea-2); }
.q__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--walnut);
    letter-spacing: -0.005em;
    flex: 1;
}
.q__title em { color: var(--tea-2); font-weight: 400; }
.q__toggle {
    font-family: var(--font-display);
    font-size: 1.625rem;
    line-height: 1;
    color: var(--tea-2);
    transition: transform var(--dur) var(--ease);
    padding-left: var(--s-4);
}
.q[open] .q__toggle { transform: rotate(45deg); }
.q__body {
    padding-top: var(--s-4);
    color: var(--walnut-2);
    line-height: 1.7;
    max-width: 68ch;
}

/* CTA panel */
.cta-panel {
    background: var(--walnut);
    color: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--s-9) var(--s-7);
    position: relative;
    overflow: hidden;
}
@media (max-width: 700px) { .cta-panel { padding: var(--s-7) var(--s-5); } }

/* -----  9. STATS — inline narrative style  ----------------------------- */
.stat-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
    padding: var(--s-6) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .stat-line { grid-template-columns: 1fr; gap: var(--s-5); } }
.stat-line__cell { display: flex; flex-direction: column; gap: 6px; }
.stat-line__n {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--walnut);
}
.section--walnut .stat-line { border-color: var(--line-onink); }
.section--walnut .stat-line__n { color: var(--cream); }
.stat-line__lbl {
    font-family: var(--font-mark);
    font-style: italic;
    color: var(--tea-2);
    font-size: 1rem;
    margin-bottom: var(--s-2);
}
.section--walnut .stat-line__lbl { color: var(--tea-pale); }
.stat-line__note {
    color: var(--walnut-2);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-top: var(--s-2);
}
.section--walnut .stat-line__note { color: rgba(245,239,225,0.7); }

/* -----  10. FORMS  ------------------------------------------------------ */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--tea-2);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.field label .mark { font-size: 0.9375rem; }
.field input,
.field textarea,
.field select {
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--walnut);
    width: 100%;
    font-family: var(--font-body);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--tea-2);
    background: var(--cream-2);
}
.field textarea { resize: vertical; min-height: 140px; }

/* -----  11. HEADER + NAV  ---------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cream);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(245,239,225,0.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: var(--s-5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--walnut);
}
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__txt {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand__name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.brand__sub {
    font-family: var(--font-mark);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--tea-2);
    margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a {
    font-size: 0.9375rem;
    color: var(--walnut-2);
    padding: 8px 0;
    position: relative;
    transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--walnut); }
.nav a.is-active { color: var(--walnut); font-weight: 500; }
.nav a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: var(--tea-2);
    border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: var(--s-3); }
.menu-btn {
    display: none;
    width: 44px; height: 44px;
    border: 1.5px solid var(--walnut);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
}
.menu-btn span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--walnut);
    position: relative;
}
.menu-btn span::before, .menu-btn span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--walnut);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }

@media (max-width: 980px) {
    .nav, .header-cta .btn:not(.menu-btn) { display: none; }
    .header-cta .menu-btn { display: flex; }
    .header-cta .chip { display: none; }
}

.mobile-menu {
    position: fixed; inset: 0;
    background: var(--cream);
    z-index: 100;
    padding: var(--s-7) var(--gutter);
    display: none;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-8);
}
.mobile-menu__close {
    width: 44px; height: 44px;
    border: 1.5px solid var(--walnut);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--s-3); }
.mobile-menu nav a {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--walnut);
    line-height: 1;
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) 0;
    letter-spacing: -0.015em;
}
.mobile-menu nav a.is-active { color: var(--tea-2); font-style: italic; }
.mobile-menu__foot { margin-top: auto; padding-top: var(--s-7); }

/* -----  12. HERO (editorial spread)  ----------------------------------- */
.hero {
    padding: var(--s-9) 0 var(--s-8);
    position: relative;
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--s-8);
    align-items: end;
}
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
    .hero { padding: var(--s-7) 0 var(--s-7); }
}

.hero__lockup .label { margin-bottom: var(--s-6); }
.hero__lockup h1 {
    font-family: var(--font-display);
    font-size: var(--t-mega);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.022em;
    margin-bottom: var(--s-5);
    color: var(--walnut);
}
.hero__lockup h1 em {
    font-style: italic;
    color: var(--tea-2);
    font-family: var(--font-display);
}

.hero__lede {
    color: var(--walnut-2);
    font-size: 1.1875rem;
    line-height: 1.6;
    max-width: 48ch;
    margin-bottom: var(--s-6);
}
.hero__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-7); }

.hero__notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}
.hero__note dt {
    font-family: var(--font-mark);
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--tea-2);
    margin-bottom: 6px;
}
.hero__note dd { color: var(--walnut-2); font-size: 0.9375rem; line-height: 1.5; }

/* Right-side editorial illustration card */
.hero__editorial {
    background: var(--oat);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--s-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 4 / 5;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 900px) {
    .hero__editorial { aspect-ratio: 16 / 10; min-height: 220px; }
}

/* -----  13. PAGE HEAD (inner pages)  ----------------------------------- */
.page-head {
    padding: var(--s-8) 0 var(--s-7);
    border-bottom: 1px solid var(--line);
}
.page-head__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--s-6);
    flex-wrap: wrap;
    gap: var(--s-3);
}
.page-head__crumb { font-family: var(--font-body); font-size: 0.875rem; color: var(--stone); }
.page-head__crumb a { color: var(--walnut-2); }
.page-head__crumb a:hover { color: var(--tea-2); }
.page-head__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-7);
    align-items: end;
}
@media (max-width: 768px) { .page-head__grid { grid-template-columns: 1fr; } }
.page-head h1 {
    font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem);
    line-height: 1;
    margin-bottom: var(--s-4);
    max-width: 16ch;
    letter-spacing: -0.018em;
}
.page-head h1 em { color: var(--tea-2); font-style: italic; }
.page-head__lede { max-width: 55ch; color: var(--walnut-2); font-size: 1.0625rem; line-height: 1.55; }

/* -----  14. SECTION HEAD  ---------------------------------------------- */
.sec-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-7);
    align-items: end;
    margin-bottom: var(--s-7);
}
@media (max-width: 768px) { .sec-head { grid-template-columns: 1fr; gap: var(--s-5); } }
.sec-head__id { margin-bottom: var(--s-4); }
.sec-head__title { max-width: 16ch; }
.sec-head__lede { color: var(--walnut-2); line-height: 1.6; }
.section--walnut .sec-head__lede { color: rgba(245,239,225,0.78); }

/* -----  15. FOOTER  ----------------------------------------------------- */
.site-footer {
    background: var(--walnut);
    color: var(--cream);
    padding-top: var(--s-9);
    padding-bottom: var(--s-5);
}
.footer-call {
    padding-bottom: var(--s-8);
    border-bottom: 1px solid var(--line-onink);
    margin-bottom: var(--s-8);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-7);
    align-items: end;
}
@media (max-width: 800px) { .footer-call { grid-template-columns: 1fr; } }
.footer-call h2 { color: var(--cream); max-width: 14ch; }
.footer-call h2 em { color: var(--tea-pale); font-style: italic; }
.footer-call p { color: rgba(245,239,225,0.75); max-width: 44ch; margin-top: var(--s-4); line-height: 1.6; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--s-6);
    margin-bottom: var(--s-7);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
    font-family: var(--font-mark);
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--tea-pale);
    margin-bottom: var(--s-4);
    font-weight: 400;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    color: rgba(245,239,225,0.78);
    font-size: 0.9375rem;
    transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--cream); }
.footer-col p { color: rgba(245,239,225,0.7); line-height: 1.6; font-size: 0.9375rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-onink);
    font-size: 0.8125rem;
    color: rgba(245,239,225,0.5);
    flex-wrap: wrap;
}
.footer-bottom__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* -----  16. PROSE (legal pages)  --------------------------------------- */
.prose {
    max-width: 70ch;
    color: var(--walnut-2);
    line-height: 1.8;
}
.prose h2 {
    font-size: 1.75rem;
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    color: var(--walnut);
    letter-spacing: -0.012em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-size: 1.1875rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: var(--s-5);
    margin-bottom: var(--s-3);
    color: var(--walnut);
    letter-spacing: -0.005em;
}
.prose p { margin-bottom: var(--s-4); }
.prose ul { margin: 0 0 var(--s-4) 0; padding-left: 0; }
.prose ul li {
    padding: 6px 0 6px 26px;
    position: relative;
    list-style: none;
}
.prose ul li::before {
    content: "○";
    position: absolute;
    left: 0;
    top: 9px;
    color: var(--tea-2);
    font-size: 0.875rem;
}
.prose strong { color: var(--walnut); font-weight: 600; }
.prose a {
    color: var(--tea-2);
    border-bottom: 1px solid rgba(31,77,60,0.35);
    transition: border-color var(--dur) var(--ease);
}
.prose a:hover { border-color: var(--tea-2); }

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--s-8);
}
@media (max-width: 900px) {
    .legal-grid { grid-template-columns: 1fr; }
    .prose-toc { position: static; }
}
.prose-toc {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-5);
    position: sticky;
    top: 96px;
}
.prose-toc h4 {
    font-family: var(--font-mark);
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--tea-2);
    margin-bottom: var(--s-4);
    font-weight: 400;
}
.prose-toc ol { display: flex; flex-direction: column; gap: 10px; }
.prose-toc ol li {
    font-size: 0.875rem;
    padding-left: 22px;
    position: relative;
    counter-increment: toc;
}
.prose-toc ol { counter-reset: toc; }
.prose-toc ol li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: var(--font-mark);
    font-style: italic;
    color: var(--tea-2);
    font-size: 0.8125rem;
}
.prose-toc a { color: var(--walnut-2); transition: color var(--dur) var(--ease); }
.prose-toc a:hover { color: var(--walnut); }

/* -----  17. UTILITY  --------------------------------------------------- */
.rule { height: 1px; background: var(--line); width: 100%; border: 0; margin: var(--s-6) 0; }
.text-center { text-align: center; }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); }
.hidden-md { display: initial; }
@media (max-width: 768px) { .hidden-md { display: none; } }

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
