/* ==========================================================================
   TV MOUNT WORKS  —  Design System
   Brand:  The workshop for mounted screens.
   Voice:  Tradesperson direct. Job-sheet warm. "Engineered to hang, made to last."
   Visual: Blueprint blue + ivory drafting paper + graphite + safety-vest amber.
           Dimension callouts, exploded axonometric SVGs, blueprint grid backgrounds,
           job-sheet card chrome, revision stamps, IBM Plex family.
   ========================================================================== */

/* -----  1. TOKENS  ------------------------------------------------------- */
:root {
    /* Palette — drafting blue + warm ivory + safety amber */
    --ivory:        #f6f0e2;            /* drafting paper, warm */
    --ivory-2:      #ede5d0;
    --ivory-3:      #e1d7be;
    --bone:         #faf5e8;            /* lightest highlight */

    --blueprint:    #1d3a6e;            /* dominant deep blueprint cyan-blue */
    --blueprint-2:  #112347;            /* deeper */
    --blueprint-3:  #2d5295;            /* line / accent */
    --blueprint-tint: #cdd9ec;          /* sky wash */
    --blueprint-line: rgba(29,58,110,0.18);

    --ink:          #14171c;            /* drafting pencil dark */
    --ink-2:        #232830;
    --ink-3:        #3a414b;
    --graphite:     #5a5e68;            /* mid pencil grey */
    --graphite-2:   #8a8e98;
    --graphite-3:   #b3b6bd;

    --amber:        #ffb800;            /* safety-vest amber — primary accent */
    --amber-2:      #e8a000;
    --amber-soft:   #ffd97a;
    --amber-wash:   rgba(255,184,0,0.12);

    --rust:         #b8542c;            /* red-ink callout color, used sparingly */

    --line:         rgba(20,23,28,0.13);
    --line-dim:     rgba(20,23,28,0.06);
    --line-onink:   rgba(246,240,226,0.16);

    /* IBM Plex family — engineering brief feel, all three weights */
    --font-display: "IBM Plex Serif", "Source Serif Pro", Georgia, serif;
    --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Type scale */
    --t-mega:    clamp(3rem, 7vw + 1rem, 7.25rem);
    --t-display: clamp(2.375rem, 4.8vw + 1rem, 5rem);
    --t-h1:      clamp(2.125rem, 4.2vw + 0.5rem, 3.875rem);
    --t-h2:      clamp(1.75rem, 2.7vw + 0.5rem, 2.625rem);
    --t-h3:      clamp(1.3125rem, 1.6vw + 0.5rem, 1.75rem);
    --t-h4:      clamp(1.0625rem, 0.6vw + 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: 1280px;
    --gutter: 28px;

    /* Minimal radius — drafting paper edges are sharp */
    --radius:    2px;
    --radius-sm: 1px;
    --radius-lg: 4px;

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

/* -----  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(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--t-body);
    line-height: 1.62;
    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(--amber); color: var(--ink); }

/* -----  3. TYPOGRAPHY  --------------------------------------------------- */
.mega {
    font-family: var(--font-display);
    font-size: var(--t-mega);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.022em;
}
.display {
    font-family: var(--font-display);
    font-size: var(--t-display);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.015em;
}
h1, .h1 { font-family: var(--font-display); font-size: var(--t-h1); font-weight: 500; line-height: 1.04; letter-spacing: -0.012em; }
h2, .h2 { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 500; line-height: 1.08; 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.003em; }

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

/* Stamp — monospace label used for revision marks, job numbers, drawing IDs */
.stamp {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blueprint);
}
.stamp--amber { color: var(--amber-2); }
.stamp--ivory { color: var(--ivory); }
.stamp--ink { color: var(--ink-2); }

/* Tag — drafting tag with a small dot-and-line */
.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blueprint);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.tag::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--amber);
}
.tag--ivory { color: var(--ivory); }
.tag--ivory::before { background: var(--amber); }

.lede {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink-2);
}
.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(--graphite); }
.accent { color: var(--blueprint); }

/* -----  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: 940px; }
.container--wide   { max-width: 1380px; }

.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--ivory-2   { background: var(--ivory-2); }
.section--ivory-3   { background: var(--ivory-3); }
.section--blueprint { background: var(--blueprint); color: var(--ivory); }
.section--blueprint h1, .section--blueprint h2, .section--blueprint h3 { color: var(--bone); }
.section--blueprint .lede { color: rgba(246,240,226,0.82); }
.section--blueprint .tag { color: var(--amber); }
.section--blueprint .stamp { color: var(--amber); }
.section--blueprint .muted { color: var(--graphite-3); }

/* -----  5. BLUEPRINT GRID BACKGROUND  -------------------------------- */
/* The signature texture — grid lines on ivory, like drafting paper.       */
.blueprint-grid {
    position: relative;
}
.blueprint-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--blueprint-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--blueprint-line) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0;
    pointer-events: none;
    opacity: 0.45;
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}
.blueprint-grid > * { position: relative; z-index: 1; }

/* Tighter grid for cards */
.grid-bg {
    background-color: var(--bone);
    background-image:
        linear-gradient(to right, rgba(29,58,110,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(29,58,110,0.06) 1px, transparent 1px);
    background-size: 16px 16px;
}

/* Blueprint section uses negative/inverted grid */
.section--blueprint .blueprint-grid-inner {
    background-image:
        linear-gradient(to right, rgba(246,240,226,0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(246,240,226,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* -----  6. BUTTONS  ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    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),
                box-shadow var(--dur) var(--ease);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    position: relative;
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn .arr { transition: transform var(--dur) var(--ease); font-family: var(--font-mono); }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary {
    background: var(--blueprint);
    color: var(--ivory);
    border-color: var(--blueprint);
}
.btn--primary:hover {
    background: var(--blueprint-2);
    border-color: var(--blueprint-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -14px rgba(29,58,110,0.5);
}

.btn--amber {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
}
.btn--amber:hover {
    background: var(--amber-2);
    border-color: var(--amber-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(255,184,0,0.55);
}

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

.btn--ghost {
    padding: 4px 0;
    background: none;
    border: none;
    border-bottom: 1.5px solid currentColor;
    color: var(--blueprint);
    border-radius: 0;
    font-weight: 600;
}
.btn--ghost:hover { color: var(--amber-2); }

/* -----  7. CHIPS  ------------------------------------------------------ */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--ivory-2);
    color: var(--blueprint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.chip--ink { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip--amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.chip--blueprint { background: var(--blueprint); color: var(--ivory); border-color: var(--blueprint); }
.chip--live::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 3px rgba(255,184,0,0.3);
    animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,184,0,0.3); }
    50%      { box-shadow: 0 0 0 6px rgba(255,184,0,0); }
}

/* -----  8. JOB — service card (looks like a job sheet)                  */
/* Top strip: job number + revision stamp. Body: title + spec line + body.  */
.job {
    background: var(--bone);
    border: 1px solid var(--line);
    border-top: 3px solid var(--blueprint);
    padding: var(--s-6) var(--s-6) var(--s-5);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
}
.job:hover {
    transform: translateY(-3px);
    border-top-color: var(--amber);
    box-shadow: 0 18px 40px -20px rgba(29,58,110,0.22);
}
.job__stamp {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 1px dashed var(--line);
}
.job__no {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blueprint);
    font-weight: 500;
}
.job__rev {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--graphite);
}
.job__title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: var(--s-4);
    color: var(--ink);
    letter-spacing: -0.01em;
}
.job__body {
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: var(--s-5);
}
.job__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
.job__specs dt {
    color: var(--graphite);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.625rem;
}
.job__specs dd { color: var(--ink); font-weight: 500; }
.job__specs dd.accent { color: var(--amber-2); }

/* -----  9. SPEC — process step (technical spec card)                    */
.spec {
    background: var(--bone);
    border: 1px solid var(--line);
    padding: var(--s-6) var(--s-5);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color var(--dur) var(--ease);
}
.spec::before {
    /* The number stamped in the corner like a sheet revision mark */
    content: attr(data-step);
    position: absolute;
    top: 0;
    right: 0;
    background: var(--blueprint);
    color: var(--ivory);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 10px;
    letter-spacing: 0.12em;
}
.spec:hover { border-color: var(--amber); }
.spec__id {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blueprint);
    margin-bottom: var(--s-4);
    padding-top: var(--s-3);
}
.spec__title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: var(--s-3);
    color: var(--ink);
    letter-spacing: -0.005em;
}
.spec__body { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; flex: 1; }
.spec__time {
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber-2);
}

/* -----  10. TIER (pricing)  ------------------------------------------- */
.tier {
    background: var(--bone);
    border: 1px solid var(--line);
    padding: var(--s-7) var(--s-6);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tier:hover { transform: translateY(-3px); border-color: var(--amber); }
.tier--feature {
    background: var(--blueprint);
    color: var(--ivory);
    border-color: var(--blueprint);
}
.tier--feature .tier__name,
.tier--feature .tier__amount,
.tier--feature .tier__sub,
.tier--feature .tier__inc li { color: var(--ivory); }
.tier--feature .tier__inc li { border-color: var(--line-onink); }
.tier--feature .tier__inc li::before { color: var(--amber); }
.tier--feature .tier__sub { border-color: var(--line-onink); color: rgba(246,240,226,0.78); }

.tier__id {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blueprint);
    margin-bottom: var(--s-5);
}
.tier--feature .tier__id { color: var(--amber); }
.tier__name {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: var(--s-3);
    color: var(--ink);
    letter-spacing: -0.012em;
}
.tier__amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin-bottom: var(--s-2);
    font-variant-numeric: tabular-nums;
}
.tier__amount small {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--graphite);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.tier__sub {
    color: var(--ink-2);
    font-size: 0.9375rem;
    padding-bottom: var(--s-5);
    margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
}
.tier__inc { flex: 1; margin-bottom: var(--s-5); }
.tier__inc li {
    padding: var(--s-3) 0 var(--s-3) 24px;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line-dim);
}
.tier__inc li:last-child { border-bottom: none; }
.tier__inc li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 11px;
    color: var(--blueprint);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* -----  11. BRIEF (testimonial)  --------------------------------------- */
/* Like a project brief sent back to us by a client.                       */
.brief {
    background: var(--bone);
    border: 1px solid var(--line);
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.brief__head {
    background: var(--blueprint);
    color: var(--ivory);
    padding: var(--s-3) var(--s-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.brief__head .brief__rev { color: var(--amber); }
.brief__body {
    padding: var(--s-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.brief__quote {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    line-height: 1.5;
    color: var(--ink);
    flex: 1;
    margin-bottom: var(--s-5);
    font-weight: 400;
}
.brief__sign {
    padding-top: var(--s-4);
    border-top: 1px dashed var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.brief__name {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
    font-weight: 600;
}
.brief__where {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--graphite);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* -----  12. CALLOUT — dimension/annotation card                        */
.callout {
    border: 1px solid var(--blueprint);
    background: var(--bone);
    padding: var(--s-5);
    position: relative;
}
.callout::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--amber);
    border-left: 2px solid var(--amber);
}
.callout::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--amber);
    border-right: 2px solid var(--amber);
}
.callout__head {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blueprint);
    margin-bottom: var(--s-3);
}

/* -----  13. STAT (figure tile)  --------------------------------------- */
.stat {
    border: 1px solid var(--line);
    padding: var(--s-6) var(--s-5);
    background: var(--bone);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    position: relative;
}
.stat__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blueprint);
}
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 0.95;
    color: var(--ink);
    letter-spacing: -0.022em;
    font-variant-numeric: tabular-nums;
}
.stat__note {
    color: var(--ink-3);
    font-size: 0.875rem;
    line-height: 1.5;
}
.section--blueprint .stat {
    background: var(--blueprint-2);
    border-color: var(--line-onink);
}
.section--blueprint .stat__label { color: var(--amber); }
.section--blueprint .stat__value { color: var(--ivory); }
.section--blueprint .stat__note { color: rgba(246,240,226,0.7); }

/* -----  14. CTA PANEL  ------------------------------------------------ */
.cta-panel {
    background: var(--blueprint);
    color: var(--ivory);
    padding: var(--s-9) var(--s-7);
    position: relative;
    overflow: hidden;
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(246,240,226,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(246,240,226,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
@media (max-width: 700px) { .cta-panel { padding: var(--s-7) var(--s-5); } }

/* -----  15. 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: 8px; }
.field label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blueprint);
    font-weight: 500;
}
.field label .opt { color: var(--graphite); margin-left: 6px; }
.field input,
.field textarea,
.field select {
    background: var(--bone);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 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::placeholder, .field textarea::placeholder { color: var(--graphite-2); }
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--blueprint);
    background: var(--bone);
}
.field textarea { resize: vertical; min-height: 150px; }

/* -----  16. HEADER + NAV  --------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ivory);
    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(246,240,226,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(--ink);
}
.brand__mark { width: 44px; height: 44px; 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: 600;
    letter-spacing: -0.012em;
}
.brand__sub {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--blueprint);
    margin-top: 4px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.header-cta { display: flex; align-items: center; gap: var(--s-3); }
.menu-btn {
    display: none;
    width: 44px; height: 44px;
    border: 1.5px solid var(--ink);
    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:not(.menu-btn) { display: none; }
    .header-cta .menu-btn { display: flex; }
    .header-cta .chip { display: none; }
}

.mobile-menu {
    position: fixed; inset: 0;
    background: var(--ivory);
    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(--ink);
    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-3); }
.mobile-menu nav a {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--ink);
    line-height: 1;
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) 0;
    letter-spacing: -0.015em;
    font-weight: 500;
}
.mobile-menu nav a.is-active { color: var(--blueprint); }
.mobile-menu__foot { margin-top: auto; padding-top: var(--s-7); }

/* -----  17. HERO  ----------------------------------------------------- */
.hero {
    padding: var(--s-8) 0 var(--s-9);
    position: relative;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--s-8);
    align-items: end;
}
@media (max-width: 920px) {
    .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
    .hero { padding: var(--s-7) 0; }
}
.hero__lockup .tag { margin-bottom: var(--s-5); }
.hero__lockup h1 {
    font-family: var(--font-display);
    font-size: var(--t-mega);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: -0.024em;
    margin-bottom: var(--s-5);
    color: var(--ink);
}
.hero__lockup h1 em {
    font-style: italic;
    color: var(--blueprint);
}
.hero__lede {
    color: var(--ink-2);
    font-size: 1.1875rem;
    line-height: 1.55;
    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__notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    padding-top: var(--s-5);
    border-top: 2px solid var(--blueprint);
}
@media (max-width: 640px) { .hero__notes { grid-template-columns: 1fr 1fr; } }
.hero__note dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blueprint);
    margin-bottom: 6px;
}
.hero__note dd { color: var(--ink); font-size: 0.9375rem; line-height: 1.45; font-weight: 600; }

.hero__sheet {
    background: var(--bone);
    border: 1.5px solid var(--blueprint);
    padding: var(--s-5);
    position: relative;
    transition: transform var(--dur) var(--ease-out);
}
.hero__sheet:hover { transform: translateY(-3px); }
.hero__sheet::before,
.hero__sheet::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
}
.hero__sheet::before {
    top: -2px; left: -2px;
    border-top: 3px solid var(--amber);
    border-left: 3px solid var(--amber);
}
.hero__sheet::after {
    bottom: -2px; right: -2px;
    border-bottom: 3px solid var(--amber);
    border-right: 3px solid var(--amber);
}
.hero__sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: var(--s-3);
    border-bottom: 1px dashed var(--line);
    margin-bottom: var(--s-4);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blueprint);
}
.hero__sheet-foot {
    padding-top: var(--s-3);
    border-top: 1px dashed var(--line);
    margin-top: var(--s-4);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--graphite);
}

/* -----  18. PAGE HEAD  ------------------------------------------------ */
.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-mono);
    font-size: 0.75rem;
    color: var(--graphite);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.page-head__crumb a { color: var(--ink-2); }
.page-head__crumb a:hover { color: var(--blueprint); }
.page-head__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    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.02em;
}
.page-head h1 em { color: var(--blueprint); font-style: italic; }
.page-head__lede {
    max-width: 56ch;
    color: var(--ink-2);
    font-size: 1.0625rem;
    line-height: 1.55;
}

/* -----  19. 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); margin-bottom: var(--s-6); } }
.sec-head__title { max-width: 18ch; }
.sec-head__lede { color: var(--ink-2); line-height: 1.6; }

/* -----  20. FAQ  ------------------------------------------------------ */
.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(--blueprint); }
.q__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -0.005em;
    flex: 1;
}
.q__title em { color: var(--blueprint); font-style: italic; }
.q__toggle {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    line-height: 1;
    color: var(--blueprint);
    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(--ink-2);
    line-height: 1.7;
    max-width: 72ch;
}
.q__body p + p { margin-top: var(--s-3); }

/* -----  21. FOOTER  --------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: var(--ivory);
    padding-top: var(--s-9);
    padding-bottom: var(--s-5);
}
.footer-call {
    padding-bottom: var(--s-8);
    border-bottom: 1px dashed var(--line-onink);
    margin-bottom: var(--s-8);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--s-7);
    align-items: end;
}
@media (max-width: 800px) { .footer-call { grid-template-columns: 1fr; } }
.footer-call h2 { color: var(--ivory); max-width: 14ch; }
.footer-call h2 em { color: var(--amber); }
.footer-call p { color: rgba(246,240,226,0.75); max-width: 46ch; margin-top: var(--s-4); line-height: 1.55; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 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.16em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--s-4);
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    color: rgba(246,240,226,0.78);
    font-size: 0.9375rem;
    transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--amber); }
.footer-col p { color: rgba(246,240,226,0.72); 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 dashed var(--line-onink);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(246,240,226,0.55);
    flex-wrap: wrap;
}
.footer-bottom__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* -----  22. PROSE (legal pages)  -------------------------------------- */
.prose {
    max-width: 70ch;
    color: var(--ink-2);
    line-height: 1.75;
}
.prose h2 {
    font-size: 1.75rem;
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    color: var(--ink);
    letter-spacing: -0.015em;
}
.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(--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: 7px;
    color: var(--blueprint);
    font-family: var(--font-mono);
    font-weight: 600;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
    color: var(--blueprint);
    border-bottom: 1px solid rgba(29,58,110,0.35);
    transition: border-color var(--dur) var(--ease);
}
.prose a:hover { border-color: var(--blueprint); }

.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(--bone);
    border: 1px solid var(--line);
    padding: var(--s-5);
    position: sticky;
    top: 96px;
    height: max-content;
    position: relative;
}
.prose-toc::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--amber);
}
.prose-toc h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blueprint);
    margin-bottom: var(--s-4);
    font-weight: 500;
}
.prose-toc ol { display: flex; flex-direction: column; gap: 10px; counter-reset: toc; }
.prose-toc ol li {
    font-size: 0.875rem;
    padding-left: 30px;
    position: relative;
    counter-increment: toc;
    line-height: 1.4;
}
.prose-toc ol li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    color: var(--blueprint);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}
.prose-toc a { color: var(--ink-2); transition: color var(--dur) var(--ease); }
.prose-toc a:hover { color: var(--blueprint); }

/* -----  23. 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); } .mt-9 { margin-top: var(--s-9); }
.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; } }

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

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