/* ==========================================================================
   LOCAL MOUNTING CO.  —  Design System
   Brand:  Neighborhood TV mounting specialists
   Voice:  Warm, neighborly, grounded
   Visual: Postal-stamp aesthetic, street-grid patterns, sage + cream + ink
   ========================================================================== */

/* -----  1. DESIGN TOKENS  ------------------------------------------------- */
:root {
    /* Palette — sage / cream / ink (no blue, no orange) */
    --ink:        #1f2421;
    --ink-soft:   #2c322e;
    --cream:      #f5efe4;
    --cream-warm: #ebe4d4;
    --paper:      #f9f5ec;
    --sage:       #5d7a5a;
    --sage-deep:  #3f5640;
    --sage-pale:  #c5cfb8;
    --sage-tint:  #e3e8d8;
    --stone:      #8a8478;
    --bone:       #d8d1bf;
    --line:       #cfc7b3;

    /* Type families */
    --font-display: "Fraunces", "Source Serif Pro", Georgia, serif;
    --font-body:    "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Type scale (mobile-first; clamp scales to desktop) */
    --t-display: clamp(2.75rem, 7vw + 1rem, 6.5rem);
    --t-h1:      clamp(2.25rem, 5vw + 0.5rem, 4.25rem);
    --t-h2:      clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
    --t-h3:      clamp(1.35rem, 1.5vw + 0.5rem, 1.85rem);
    --t-h4:      clamp(1.125rem, 0.5vw + 0.85rem, 1.375rem);
    --t-section: 0.75rem;   /* the all-caps eyebrow */
    --t-sub:     1.125rem;
    --t-body:    1rem;
    --t-small:   0.875rem;
    --t-micro:   0.75rem;

    /* Spacing scale (8pt base, but with tightened smalls) */
    --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;
    --s-11: 160px;

    /* Layout */
    --max-w:    1240px;
    --gutter:   24px;
    --radius:   4px;   /* nearly square — postal feel */
    --radius-lg: 8px;

    /* Motion */
    --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur:      280ms;
}

/* -----  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(--ink);
    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 { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--sage); color: var(--cream); }

/* -----  3. TYPOGRAPHY  --------------------------------------------------- */
.display {
    font-family: var(--font-display);
    font-size: var(--t-display);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

h1, .h1 {
    font-family: var(--font-display);
    font-size: var(--t-h1);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-variation-settings: "SOFT" 30, "opsz" 120;
}
h2, .h2 {
    font-family: var(--font-display);
    font-size: var(--t-h2);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
}
h3, .h3 {
    font-family: var(--font-display);
    font-size: var(--t-h3);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
h4, .h4 {
    font-family: var(--font-body);
    font-size: var(--t-h4);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--t-section);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-deep);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--sage-deep);
    display: inline-block;
}

.sub {
    font-size: var(--t-sub);
    line-height: 1.55;
    color: var(--ink-soft);
    font-weight: 400;
}

.body-lg {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.small  { font-size: var(--t-small); }
.micro  { font-size: var(--t-micro); letter-spacing: 0.06em; }
.mono   { font-family: var(--font-mono); }
.muted  { color: var(--stone); }
.accent { color: var(--sage-deep); }
.italic { font-style: italic; }

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

.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--ink     { background: var(--ink); color: var(--cream); }
.section--ink .eyebrow { color: var(--sage-pale); }
.section--ink .eyebrow::before { background: var(--sage-pale); }
.section--ink .sub,
.section--ink .body-lg { color: rgba(245,239,228,0.78); }
.section--paper   { background: var(--paper); }
.section--cream-warm { background: var(--cream-warm); }

.grid     { display: grid; gap: var(--s-5); }
.grid-2   { grid-template-columns: repeat(2, 1fr); }
.grid-3   { grid-template-columns: repeat(3, 1fr); }
.grid-4   { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* -----  5. STREET-GRID PATTERN BACKGROUND  ------------------------------ */
/* Distinctive: subtle map-grid pattern as decoration */
.grid-bg {
    position: relative;
}
.grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.grid-bg > * { position: relative; z-index: 1; }

/* -----  6. BUTTONS  ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    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);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    position: relative;
}
.btn:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 3px;
}
.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary {
    background: var(--sage-deep);
    color: var(--cream);
    border-color: var(--sage-deep);
}
.btn--primary:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.btn--secondary {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.btn--secondary:hover {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
}

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

.btn--cta {
    background: var(--cream);
    color: var(--ink);
    border-color: var(--cream);
    padding: 18px 36px;
    font-size: 1rem;
}
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -16px rgba(31,36,33,0.45); }

.btn--text {
    padding: 0;
    color: var(--sage-deep);
    border: none;
    background: none;
    border-bottom: 1.5px solid var(--sage-deep);
    border-radius: 0;
    padding-bottom: 4px;
}
.btn--text:hover { color: var(--ink); border-color: var(--ink); }

/* -----  7. BADGES (postal-stamp style)  --------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--sage-tint);
    color: var(--sage-deep);
    border-radius: var(--radius);
    border: 1px solid var(--sage-pale);
}
.badge--ink {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.badge--outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink-soft);
}

/* Stamp — circular postal-mark style */
.stamp {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1.5px dashed var(--sage-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 12px;
    text-align: center;
    color: var(--sage-deep);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
    flex-shrink: 0;
}
.stamp strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    margin: 2px 0;
}

/* -----  8. CARDS  -------------------------------------------------------- */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-6);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--sage-deep);
}

/* "Ticket" card — distinctive perforated top edge (service items) */
.ticket {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-6);
    position: relative;
    overflow: hidden;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ticket::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background-image: radial-gradient(circle, var(--cream) 3px, transparent 3.5px);
    background-size: 12px 12px;
    background-position: center top;
}
.ticket:hover { transform: translateY(-3px); border-color: var(--sage-deep); }
.ticket__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--sage-deep);
    margin-bottom: var(--s-4);
    padding-top: 8px;
}
.ticket__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--s-3);
    color: var(--ink);
}
.ticket__body {
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: var(--s-5);
}
.ticket__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--s-4);
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--stone);
    text-transform: uppercase;
}

/* Feature card — icon + title + text */
.feature {
    padding: var(--s-5) 0;
    border-top: 1px solid var(--line);
}
.feature__icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--s-4);
    color: var(--sage-deep);
}
.feature__icon svg { width: 100%; height: 100%; }
.feature__title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: var(--s-3);
    color: var(--ink);
}
.feature__body {
    color: var(--ink-soft);
    line-height: 1.6;
}

/* Process card — numbered route step */
.step {
    display: flex;
    gap: var(--s-5);
    padding: var(--s-5) 0;
    border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: none; }
.step__mark {
    flex-shrink: 0;
    width: 56px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--sage-deep);
    padding-top: 8px;
}
.step__mark strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 4px;
}
.step__body { flex: 1; }
.step__body h3 { margin-bottom: var(--s-3); }
.step__body p { color: var(--ink-soft); line-height: 1.65; }

/* Testimonial card — speech bubble style */
.quote {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-6);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.quote::before {
    content: "“";
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--sage-pale);
    line-height: 1;
}
.quote__body {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: var(--s-5);
    font-weight: 400;
    flex: 1;
}
.quote__who {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding-top: var(--s-4);
    border-top: 1px dashed var(--line);
}
.quote__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sage-tint);
    color: var(--sage-deep);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.quote__meta strong {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9375rem;
}
.quote__meta span {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
}

/* FAQ / consideration block */
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--s-5) 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--s-4);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.35;
    transition: color var(--dur) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--sage-deep); }
.faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--sage-deep);
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__body {
    padding: 0 0 var(--s-5) 0;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 60ch;
}

/* CTA panel — large dark block */
.cta-panel {
    background: var(--ink);
    color: var(--cream);
    padding: var(--s-9) var(--s-7);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(245,239,228,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245,239,228,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.cta-panel__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
@media (max-width: 700px) { .cta-panel { padding: var(--s-7) var(--s-5); } }

/* Statistic box */
.stat {
    padding: var(--s-5) 0;
    border-top: 1px solid var(--line);
}
.stat__num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw + 0.5rem, 4rem);
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
    margin-bottom: var(--s-3);
    letter-spacing: -0.02em;
}
.section--ink .stat__num { color: var(--cream); }
.section--ink .stat { border-top-color: rgba(245,239,228,0.15); }
.stat__lbl {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: var(--s-2);
}
.section--ink .stat__lbl { color: var(--sage-pale); }
.stat__note {
    color: var(--stone);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Tier card */
.tier {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    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);
    position: relative;
}
.tier:hover { transform: translateY(-3px); border-color: var(--sage-deep); }
.tier--feature {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.tier--feature .tier__name { color: var(--cream); }
.tier--feature .tier__price { color: var(--cream); }
.tier--feature .tier__sub { color: rgba(245,239,228,0.7); }
.tier--feature .tier__features li { color: rgba(245,239,228,0.85); border-color: rgba(245,239,228,0.15); }
.tier--feature .tier__features li::before { color: var(--sage-pale); }

.tier__name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: var(--s-3);
}
.tier__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: var(--s-3);
}
.tier__price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: var(--s-2);
    color: var(--ink);
}
.tier__price small { font-size: 0.875rem; font-weight: 400; color: var(--stone); letter-spacing: 0; }
.tier__sub {
    color: var(--ink-soft);
    font-size: 0.9375rem;
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-5);
    border-bottom: 1px dashed var(--line);
}
.tier__features {
    flex: 1;
    margin-bottom: var(--s-5);
}
.tier__features li {
    padding: var(--s-3) 0;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.4;
    border-bottom: 1px dashed var(--line);
    padding-left: 24px;
    position: relative;
}
.tier__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sage-deep);
    font-weight: 600;
}
.tier__features li:last-child { border-bottom: none; }

/* -----  9. 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-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-deep);
    font-weight: 500;
}
.field input,
.field textarea,
.field select {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--ink);
    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(--sage-deep);
    background: var(--cream);
}
.field textarea { resize: vertical; min-height: 140px; }

/* -----  10. 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,228,0.96);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: var(--s-5);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    flex-shrink: 0;
}
.brand__mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.brand__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}
.brand__name small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6125rem;
    letter-spacing: 0.18em;
    color: var(--sage-deep);
    font-weight: 500;
    margin-top: 3px;
    text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a {
    font-size: 0.9375rem;
    color: var(--ink-soft);
    padding: 8px 0;
    position: relative;
    transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 500; }
.nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--sage-deep);
}

.header-cta { display: flex; align-items: center; gap: var(--s-3); }

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-items: center;
    justify-content: center;
}
.menu-btn span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1.5px;
    background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }

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

/* Mobile menu drawer */
.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: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}
.mobile-menu nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    border-bottom: 1px dashed var(--line);
    padding-bottom: var(--s-5);
}
.mobile-menu nav a.is-active { color: var(--sage-deep); }
.mobile-menu__foot { margin-top: auto; padding-top: var(--s-7); }

/* -----  11. HERO  ------------------------------------------------------- */
.hero {
    padding: var(--s-9) 0 var(--s-9);
    position: relative;
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.6fr 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-8); }
}

.hero__eyebrow-row {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-6);
    flex-wrap: wrap;
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--t-display);
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-weight: 500;
    margin-bottom: var(--s-5);
    color: var(--ink);
    font-variation-settings: "SOFT" 40, "opsz" 144;
}
.hero__title em {
    font-style: italic;
    color: var(--sage-deep);
    font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.hero__lede {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 52ch;
    margin-bottom: var(--s-6);
}

.hero__ctas {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    margin-bottom: var(--s-7);
}

.hero__meta {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}
.hero__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-4);
    padding-bottom: var(--s-4);
    border-bottom: 1px dashed var(--line);
}
.hero__meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.hero__meta-lbl {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-deep);
}
.hero__meta-val {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink);
    text-align: right;
}

/* Hero image side — illustrative house/map composition */
.hero__art {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--s-6);
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (max-width: 900px) {
    .hero__art { aspect-ratio: 5 / 3; }
}

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

.sec-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-2);
    border-bottom: 1px solid var(--sage-deep);
}
.section--ink .sec-num { color: var(--sage-pale); border-color: var(--sage-pale); }

/* -----  13. FOOTER  ----------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding-top: var(--s-9);
    padding-bottom: var(--s-5);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(245,239,228,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245,239,228,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at top, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 20%, transparent 80%);
}
.site-footer > * { position: relative; z-index: 1; }

.footer-call {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-7);
    align-items: end;
    padding-bottom: var(--s-8);
    border-bottom: 1px solid rgba(245,239,228,0.12);
    margin-bottom: var(--s-8);
}
@media (max-width: 800px) { .footer-call { grid-template-columns: 1fr; } }
.footer-call h2 { color: var(--cream); max-width: 12ch; }
.footer-call p { color: rgba(245,239,228,0.7); max-width: 40ch; margin-top: var(--s-4); }

.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-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-pale);
    margin-bottom: var(--s-4);
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    color: rgba(245,239,228,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,228,0.7); line-height: 1.55; 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 rgba(245,239,228,0.12);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(245,239,228,0.6);
    flex-wrap: wrap;
}
.footer-bottom__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* -----  14. PAGE HEAD (smaller hero for inner pages)  ------------------ */
.page-head {
    padding: var(--s-8) 0 var(--s-7);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.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: 14ch;
}
.page-head h1 em { color: var(--sage-deep); font-style: italic; }
.page-head__lede { max-width: 50ch; color: var(--ink-soft); font-size: 1.0625rem; }
.page-head__crumb {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: var(--s-5);
}

/* -----  15. PROSE (legal pages)  --------------------------------------- */
.prose {
    max-width: 70ch;
    color: var(--ink-soft);
    line-height: 1.75;
}
.prose h2 {
    font-size: 1.625rem;
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: var(--s-5);
    margin-bottom: var(--s-3);
    color: var(--ink);
}
.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 24px;
    position: relative;
    list-style: none;
}
.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 12px;
    height: 1.5px;
    background: var(--sage-deep);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
    color: var(--sage-deep);
    border-bottom: 1px solid var(--sage-pale);
    transition: border-color var(--dur) var(--ease);
}
.prose a:hover { border-color: var(--sage-deep); }

.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-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin-bottom: var(--s-4);
    font-weight: 500;
}
.prose-toc ol {
    list-style: none;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.prose-toc ol li {
    counter-increment: toc;
    font-size: 0.875rem;
}
.prose-toc ol li::before {
    content: counter(toc, decimal-leading-zero) " · ";
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--stone);
    letter-spacing: 0.1em;
}
.prose-toc a { color: var(--ink-soft); transition: color var(--dur) var(--ease); }
.prose-toc a:hover { color: var(--ink); }

.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; }
}

/* -----  16. DECORATIVE / UTILITY  -------------------------------------- */
.rule {
    height: 1px;
    background: var(--line);
    width: 100%;
    border: 0;
    margin: var(--s-7) 0;
}
.rule--dashed {
    background: none;
    border-top: 1px dashed var(--line);
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.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); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }

.hidden-md { display: initial; }
@media (max-width: 768px) { .hidden-md { display: none; } }

/* -----  17. REVEAL ANIMATION  ------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    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; }
}

/* -----  18. SVG ROUTE / DECORATION  ------------------------------------ */
.dash-rule {
    height: 1px;
    background-image: linear-gradient(to right, var(--sage-deep) 50%, transparent 50%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

/* Marker pin shape used in art panels */
.pin {
    width: 24px;
    height: 24px;
    background: var(--sage-deep);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: inline-block;
    position: relative;
}
.pin::before {
    content: "";
    position: absolute;
    inset: 6px;
    background: var(--cream);
    border-radius: 50%;
}
