/*
    RXHAL — RxDevelopment
    Client: CleanAz Water Blasting
    Tier: Business
    File: style.css
    Built: 2026-05-02

    Design system
    -------------
    Display:  Fraunces (optical, characterful serif)
    Body:     IBM Plex Sans (industrial-feeling workhorse)
    Mono:     IBM Plex Mono (numerals, small accents)

    Palette: Orange / Ink / Cream — light + dark
    Layout:  Editorial grid, asymmetric, generous whitespace
    Motion:  IntersectionObserver scroll reveals + restrained hover states
*/

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body { min-height: 100vh; line-height: 1.5; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----------------------------------------------------------------
   2. TOKENS — Light mode default
----------------------------------------------------------------- */
:root {
    /* Brand */
    --orange:           #E85D1F;
    --orange-soft:      #F4A06D;
    --orange-deep:      #B84512;

    /* Surfaces */
    --bg:               #F5F2EE;
    --bg-alt:           #EBE6DE;
    --surface:          #FFFFFF;
    --surface-tinted:   #FAF7F2;

    /* Ink */
    --ink:              #0A0A0A;
    --ink-soft:         #2A2723;
    --ink-mute:         #6B6760;
    --ink-faint:        #8A8580;

    /* Lines */
    --line:             rgba(10, 10, 10, 0.10);
    --line-soft:        rgba(10, 10, 10, 0.05);

    /* Accents */
    --accent:           var(--orange);
    --accent-hover:     var(--orange-deep);

    /* Spacing */
    --s-1:  0.25rem;
    --s-2:  0.5rem;
    --s-3:  0.75rem;
    --s-4:  1rem;
    --s-5:  1.25rem;
    --s-6:  1.5rem;
    --s-8:  2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-16: 4rem;
    --s-20: 5rem;
    --s-24: 6rem;
    --s-32: 8rem;

    --section-y:        clamp(4rem, 8vw, 8rem);
    --section-y-tight:  clamp(2.5rem, 5vw, 5rem);
    --container:        1280px;
    --container-narrow: 880px;
    --gutter:           clamp(1.25rem, 4vw, 3rem);
    --content-gap:      clamp(1rem, 2vw, 1.5rem);

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono:    'IBM Plex Mono', 'SF Mono', Consolas, monospace;

    --fs-eyebrow:   0.78rem;
    --fs-small:     0.875rem;
    --fs-body:      1rem;
    --fs-body-lg:   1.0625rem;
    --fs-lead:      clamp(1.125rem, 1.6vw, 1.375rem);
    --fs-h6:        clamp(1rem,    1.2vw, 1.125rem);
    --fs-h5:        clamp(1.125rem, 1.5vw, 1.375rem);
    --fs-h4:        clamp(1.375rem, 2vw,   1.75rem);
    --fs-h3:        clamp(1.75rem,  3vw,   2.5rem);
    --fs-h2:        clamp(2.25rem,  4.5vw, 3.75rem);
    --fs-h1:        clamp(2.75rem,  7vw,   6rem);
    --fs-display:   clamp(3.5rem,   10vw,  8rem);

    /* Motion */
    --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast:       0.18s;
    --t-base:       0.32s;
    --t-slow:       0.6s;

    /* Radii / shadows */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(10,10,10,0.04), 0 2px 6px rgba(10,10,10,0.04);
    --shadow-md: 0 4px 12px rgba(10,10,10,0.06), 0 12px 28px rgba(10,10,10,0.06);
    --shadow-lg: 0 8px 24px rgba(10,10,10,0.08), 0 24px 56px rgba(10,10,10,0.10);

    /* Stable tokens — DO NOT flip with theme.
       Used by sections that are intentionally always dark (statement,
       agent block, footer, section--ink) so the cream-tinted text inside
       them stays readable regardless of light/dark mode. */
    --ink-deep:    #0A0A0A;
    --cream-deep:  #F5F2EE;

    /* Nav height — drives drawer top alignment. Overridden on mobile. */
    --nav-h:       76px;
}

/* Dark mode */
[data-theme="dark"] {
    --bg:               #0F0E0D;
    --bg-alt:           #1A1816;
    --surface:          #1F1D1B;
    --surface-tinted:   #25221F;

    --ink:              #F5F2EE;
    --ink-soft:         #E5E1D9;
    --ink-mute:         #9A958D;
    --ink-faint:        #6B6760;

    --line:             rgba(245, 242, 238, 0.10);
    --line-soft:        rgba(245, 242, 238, 0.05);

    --orange:           #FF7733;
    --orange-soft:      #FFA66D;
    --orange-deep:      #E85D1F;
    --accent:           var(--orange);
    --accent-hover:     var(--orange-soft);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.30), 0 2px 6px rgba(0,0,0,0.20);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.30), 0 12px 28px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.40), 0 24px 56px rgba(0,0,0,0.35);
}

/* ----------------------------------------------------------------
   3. BASE
----------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    font-variation-settings: "opsz" 36, "SOFT" 30;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); font-weight: 400; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { color: var(--ink-soft); }

a { transition: color var(--t-fast) var(--ease); }

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

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink-deep); color: var(--cream-deep); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--cream-deep); }
.section--ink p { color: rgba(245, 242, 238, 0.75); }

/* ----------------------------------------------------------------
   5. TYPOGRAPHY HELPERS
----------------------------------------------------------------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 1px;
    background: var(--accent);
}

.lead {
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 56ch;
}

.italic-serif {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

.numeral {
    font-family: var(--font-mono);
    font-feature-settings: "tnum";
    letter-spacing: 0;
}

/* ----------------------------------------------------------------
   6. NAV
----------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.nav--scrolled { border-bottom-color: var(--line); }

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--s-4);
    gap: var(--s-6);
    min-height: var(--nav-h);
    /* CRITICAL: nav contents must paint above the drawer (drawer is a sibling
       inside .nav, and .nav has backdrop-filter which traps fixed positioning
       inside the nav stacking context). z-index here keeps logo/burger/CTA
       on top regardless of drawer state. */
    position: relative;
    z-index: 2;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    flex-shrink: 0;
}

.nav__logo {
    height: 42px;
    width: auto;
    display: block;
}

.nav__brand-text {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--ink);
    display: none;
}

.nav__menu {
    display: none;
    align-items: center;
    gap: var(--s-8);
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 450;
    color: var(--ink-soft);
    position: relative;
    padding-block: var(--s-2);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--t-base) var(--ease);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__link--active { color: var(--ink); }
.nav__link--active::after { width: 100%; }

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

.nav__cta { display: none; }

@media (min-width: 880px) {
    .nav__brand-text { display: inline-block; }
    .nav__menu { display: flex; }
    .nav__cta { display: inline-flex; }
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: all var(--t-fast) var(--ease);
}

.theme-toggle:hover { border-color: var(--ink-soft); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* Hamburger */
.nav__burger {
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.nav__burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-2.75px) rotate(-45deg); }

@media (min-width: 880px) { .nav__burger { display: none; } }

/* Mobile drawer */
.nav__drawer {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: var(--bg);
    padding: var(--s-12) var(--gutter) var(--s-16);
    transform: translateY(-110%);
    visibility: hidden;
    pointer-events: none;
    /* Delay visibility flip until after the slide-up finishes when closing,
       so the drawer doesn't pop out of existence mid-animation. */
    transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
    border-bottom: 1px solid var(--line);
    z-index: 1;
    overflow-y: auto;
}

.nav__drawer[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--t-base) var(--ease), visibility 0s linear 0s;
}

.nav__drawer-list { display: flex; flex-direction: column; gap: var(--s-2); }

.nav__drawer-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    padding-block: var(--s-3);
    border-bottom: 1px solid var(--line-soft);
    display: block;
    transition: color var(--t-fast) var(--ease), padding-left var(--t-base) var(--ease);
}

.nav__drawer-link:hover { color: var(--accent); padding-left: var(--s-2); }

.nav__drawer-foot {
    margin-top: var(--s-8);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

@media (min-width: 880px) { .nav__drawer { display: none; } }

/* ----------------------------------------------------------------
   7. BUTTONS
----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    white-space: nowrap;
    text-align: center;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(184, 69, 18, 0.18), 0 4px 12px rgba(184, 69, 18, 0.18);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(184, 69, 18, 0.24), 0 8px 20px rgba(184, 69, 18, 0.24);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--ink); }

.btn--ink {
    background: var(--ink);
    color: var(--bg);
}

.btn--ink:hover { background: var(--ink-soft); transform: translateY(-1px); }

.btn--lg { padding: 1.125rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.625rem 1rem; font-size: 0.875rem; }

.btn__arrow {
    display: inline-block;
    transition: transform var(--t-base) var(--ease);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

/* Plain text link with arrow */
.linkout {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition: border-color var(--t-base) var(--ease), color var(--t-fast) var(--ease);
}

.linkout:hover { border-bottom-color: var(--accent); color: var(--accent); }
.linkout svg { width: 14px; height: 14px; transition: transform var(--t-base) var(--ease); }
.linkout:hover svg { transform: translate(2px, -2px); }

/* ----------------------------------------------------------------
   8. HERO (homepage)
----------------------------------------------------------------- */
.hero {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: var(--section-y);
    position: relative;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-12);
    align-items: end;
}

@media (min-width: 920px) {
    .hero__grid {
        grid-template-columns: 1.4fr 1fr;
        gap: var(--s-16);
    }
}

.hero__eyebrow { margin-bottom: var(--s-6); }

.hero__title {
    font-size: var(--fs-h1);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: var(--s-8);
}

.hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero__title-period {
    color: var(--accent);
    font-style: normal;
}

.hero__sub {
    font-size: var(--fs-lead);
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 36ch;
    margin-bottom: var(--s-10);
}

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

.hero__meta {
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
    padding: var(--s-8);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    position: relative;
}

.hero__meta::before {
    content: "";
    position: absolute;
    top: -1px;
    left: var(--s-8);
    width: 48px;
    height: 3px;
    background: var(--accent);
}

.hero__meta-item dt {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
    margin-bottom: var(--s-2);
}

.hero__meta-item dd {
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.hero__strip {
    margin-top: var(--s-16);
    padding-top: var(--s-8);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6);
}

@media (min-width: 720px) {
    .hero__strip { grid-template-columns: repeat(4, 1fr); }
}

.hero__strip-item .numeral {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: block;
    line-height: 1;
}

.hero__strip-item p {
    font-size: var(--fs-small);
    color: var(--ink-mute);
    margin-top: var(--s-2);
}

/* ----------------------------------------------------------------
   9. STATEMENT BLOCK
----------------------------------------------------------------- */
.statement {
    padding-block: clamp(5rem, 10vw, 9rem);
    background: var(--ink-deep);
    color: var(--cream-deep);
    position: relative;
    overflow: hidden;
}

.statement::before {
    content: "";
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(232, 93, 31, 0.18), transparent 60%);
    pointer-events: none;
}

.statement__inner {
    position: relative;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.statement__eyebrow {
    color: var(--orange-soft);
    margin-bottom: var(--s-8);
}

.statement__eyebrow::before { background: var(--orange-soft); }

.statement__quote {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.8vw, 3.25rem);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--cream-deep);
    max-width: 22ch;
}

.statement__quote em {
    font-style: italic;
    font-weight: 300;
    color: var(--orange-soft);
}

.statement__attribution {
    margin-top: var(--s-12);
    display: flex;
    align-items: center;
    gap: var(--s-4);
    color: rgba(245, 242, 238, 0.6);
    font-size: var(--fs-small);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.statement__attribution::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--orange);
}

/* ----------------------------------------------------------------
   10. SERVICE CARDS
----------------------------------------------------------------- */
.section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    margin-bottom: var(--s-16);
}

@media (min-width: 880px) {
    .section-head {
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: var(--s-12);
    }
}

.section-head__title {
    font-size: var(--fs-h2);
    font-weight: 300;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.section-head__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.section-head__intro p {
    font-size: var(--fs-body-lg);
    color: var(--ink-soft);
    max-width: 50ch;
}

.section-head__eyebrow { margin-bottom: var(--s-4); display: block; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}

@media (min-width: 720px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
    padding: var(--s-8) var(--s-6);
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    position: relative;
    transition: background-color var(--t-base) var(--ease);
}

.service-card:hover { background: var(--surface-tinted); }
.service-card:nth-child(2n) { border-right: 1px solid var(--line); }

@media (min-width: 720px) {
    .service-card:nth-child(2n) { border-right: none; }
}
@media (min-width: 1024px) {
    .service-card:nth-child(2n) { border-right: 1px solid var(--line); }
    .service-card:nth-child(4n) { border-right: none; }
}

.service-card__num {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    color: var(--ink-faint);
    letter-spacing: 0.1em;
}

.service-card__icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: var(--s-2);
    transition: transform var(--t-base) var(--ease);
}

.service-card:hover .service-card__icon { transform: translateY(-3px); }

.service-card__title {
    font-size: var(--fs-h5);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--ink);
    line-height: 1.2;
}

.service-card__desc {
    font-size: var(--fs-small);
    color: var(--ink-mute);
    line-height: 1.55;
    margin-bottom: var(--s-4);
}

.service-card__more {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.service-card__more::after {
    content: "→";
    transition: transform var(--t-base) var(--ease);
}

.service-card:hover .service-card__more::after { transform: translateX(4px); }
.service-card:hover .service-card__more { color: var(--accent); }

/* ----------------------------------------------------------------
   11. PROCESS
----------------------------------------------------------------- */
.process {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 720px)  { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); } }

.process__step {
    padding: var(--s-8) var(--s-4) var(--s-8) 0;
    border-top: 1px solid var(--line);
    position: relative;
}

@media (min-width: 1024px) {
    .process__step { padding-right: var(--s-8); }
    .process__step + .process__step { border-left: 1px solid var(--line); padding-left: var(--s-8); }
}

.process__num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--s-6);
    display: block;
}

.process__title {
    font-size: var(--fs-h5);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--s-3);
    letter-spacing: -0.01em;
}

.process__desc {
    font-size: var(--fs-small);
    color: var(--ink-mute);
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   12. PILLARS / FEATURE GRID
----------------------------------------------------------------- */
.pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-12);
}

@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--s-8); } }

.pillar { display: flex; flex-direction: column; gap: var(--s-4); }

.pillar__num {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: var(--s-2);
}

.pillar__title {
    font-size: var(--fs-h4);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: var(--s-2);
}

.pillar__title em { font-style: italic; color: var(--accent); }

.pillar__desc {
    font-size: var(--fs-body);
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   13. AGENT SECTION (real estate)
----------------------------------------------------------------- */
.agent {
    background: var(--ink-deep);
    color: var(--cream-deep);
    border-radius: var(--r-lg);
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    position: relative;
    display: grid;
    gap: var(--s-10);
}

@media (min-width: 880px) {
    .agent { grid-template-columns: 1fr 1fr; align-items: center; }
}

.agent::after {
    content: "";
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 93, 31, 0.20), transparent 50%);
    pointer-events: none;
}

.agent > * { position: relative; z-index: 1; }
.agent__eyebrow { color: var(--orange-soft); }
.agent__eyebrow::before { background: var(--orange); }

.agent__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 300;
    color: var(--cream-deep);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-block: var(--s-6) var(--s-6);
}

.agent__title em { font-style: italic; color: var(--orange-soft); }

.agent__desc {
    font-size: var(--fs-body-lg);
    color: rgba(245, 242, 238, 0.75);
    line-height: 1.6;
    margin-bottom: var(--s-8);
    max-width: 44ch;
}

.agent__list { display: flex; flex-direction: column; gap: var(--s-4); }

.agent__list-item {
    display: flex;
    gap: var(--s-4);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid rgba(245, 242, 238, 0.08);
}

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

.agent__list-num {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    color: var(--orange);
    letter-spacing: 0.1em;
    min-width: 28px;
    padding-top: 4px;
}

.agent__list-text {
    color: rgba(245, 242, 238, 0.85);
    font-size: var(--fs-body);
    line-height: 1.55;
}

/* ----------------------------------------------------------------
   14. SOCIAL / TESTIMONIALS LINKS
----------------------------------------------------------------- */
.social-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-4);
    margin-top: var(--s-8);
}

@media (min-width: 720px) { .social-block { grid-template-columns: repeat(3, 1fr); } }

.social-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-8);
    background: var(--surface);
    transition: all var(--t-base) var(--ease);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    text-decoration: none;
}

.social-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-card__icon {
    width: 32px;
    height: 32px;
    color: var(--ink);
    transition: color var(--t-fast) var(--ease);
}

.social-card:hover .social-card__icon { color: var(--accent); }

.social-card__platform {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
}

.social-card__handle {
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.social-card__action {
    margin-top: auto;
    font-size: var(--fs-small);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.social-card__action::after {
    content: "↗";
    transition: transform var(--t-fast) var(--ease);
}

.social-card:hover .social-card__action::after { transform: translate(2px, -2px); }

/* ----------------------------------------------------------------
   15. CTA SECTION
----------------------------------------------------------------- */
.cta-section {
    padding-block: clamp(5rem, 10vw, 9rem);
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.cta-section__eyebrow { margin-bottom: var(--s-6); }

.cta-section__title {
    font-size: clamp(2.25rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
    max-width: 14ch;
    margin: 0 auto var(--s-8);
}

.cta-section__title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.cta-section__sub {
    font-size: var(--fs-body-lg);
    color: var(--ink-soft);
    max-width: 50ch;
    margin: 0 auto var(--s-10);
}

.cta-section__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-3);
}

/* ----------------------------------------------------------------
   16. FOOTER
----------------------------------------------------------------- */
.footer {
    background: var(--ink-deep);
    color: var(--cream-deep);
    padding-block: var(--s-16) var(--s-6);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-12);
    padding-bottom: var(--s-12);
    border-bottom: 1px solid rgba(245, 242, 238, 0.08);
}

@media (min-width: 880px) {
    .footer__top {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--s-8);
    }
}

.footer__brand-block {}

.footer__logo {
    height: 56px;
    width: auto;
    margin-bottom: var(--s-4);
}

.footer__tag {
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--cream-deep);
    margin-bottom: var(--s-4);
    max-width: 22ch;
}

.footer__tag em { font-style: italic; color: var(--orange-soft); }

.footer__location {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(245, 242, 238, 0.5);
}

.footer__col-title {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--orange-soft);
    margin-bottom: var(--s-5);
}

.footer__list { display: flex; flex-direction: column; gap: var(--s-3); }

.footer__list a {
    color: rgba(245, 242, 238, 0.75);
    font-size: var(--fs-small);
    transition: color var(--t-fast) var(--ease);
}

.footer__list a:hover { color: var(--orange); }

.footer__bottom {
    padding-top: var(--s-6);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    align-items: flex-start;
    font-size: 0.8125rem;
    color: rgba(245, 242, 238, 0.45);
}

@media (min-width: 720px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer__bottom a { color: rgba(245, 242, 238, 0.65); }
.footer__bottom a:hover { color: var(--orange); }

.footer__bottom-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-5);
}

.footer__credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--orange-soft) !important;
    transition: color var(--t-fast) var(--ease);
}

.footer__credit:hover { color: var(--orange) !important; }
.footer__credit svg { width: 9px; height: 9px; transition: transform var(--t-fast) var(--ease); }
.footer__credit:hover svg { transform: translate(2px, -2px); }

/* ----------------------------------------------------------------
   17. PAGE HEADER (interior pages)
----------------------------------------------------------------- */
.page-header {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    border-bottom: 1px solid var(--line);
}

.page-header__eyebrow { margin-bottom: var(--s-6); }

.page-header__title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: var(--s-6);
    max-width: 14ch;
}

.page-header__title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.page-header__sub {
    font-size: var(--fs-lead);
    color: var(--ink-soft);
    max-width: 56ch;
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   18. SERVICES PAGE — detailed list
----------------------------------------------------------------- */
.svc-list { display: flex; flex-direction: column; }

.svc-row {
    padding-block: var(--s-12);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    align-items: start;
}

@media (min-width: 880px) {
    .svc-row {
        grid-template-columns: 80px 1fr 2fr;
        gap: var(--s-12);
    }
}

.svc-row__num {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    color: var(--ink-faint);
    letter-spacing: 0.12em;
    padding-top: 6px;
}

.svc-row__title {
    font-size: var(--fs-h3);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--ink);
}

.svc-row__title em { font-style: italic; color: var(--accent); font-weight: 400; }

.svc-row__body p { font-size: var(--fs-body-lg); color: var(--ink-soft); line-height: 1.6; }
.svc-row__body p + p { margin-top: var(--s-4); }

.svc-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-6);
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink-mute);
}

/* Outcome category section */
.outcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    margin-top: var(--s-12);
}

@media (min-width: 720px)  { .outcome-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .outcome-grid { grid-template-columns: repeat(2, 1fr); } }

.outcome-card {
    padding: var(--s-8);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    transition: all var(--t-base) var(--ease);
}

.outcome-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.outcome-card__icon { width: 36px; height: 36px; color: var(--accent); }

.outcome-card__title {
    font-size: var(--fs-h5);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.outcome-card__desc { font-size: var(--fs-small); color: var(--ink-mute); line-height: 1.6; }

/* ----------------------------------------------------------------
   19. CALCULATOR
----------------------------------------------------------------- */
.calc {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-12);
}

@media (min-width: 1024px) {
    .calc { grid-template-columns: 1.4fr 1fr; gap: var(--s-16); align-items: start; }
}

.calc__col {}

.calc__step { margin-bottom: var(--s-12); }

.calc__step-head {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
}

.calc__step-num {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    color: var(--accent);
    letter-spacing: 0.16em;
}

.calc__step-title {
    font-size: var(--fs-h4);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.calc__step-sub {
    font-size: var(--fs-small);
    color: var(--ink-mute);
    margin-top: var(--s-2);
    margin-bottom: var(--s-6);
}

/* Selectable cards (services) */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-3);
}

@media (min-width: 540px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.choice {
    position: relative;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-5);
    background: var(--surface);
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    transition: all var(--t-fast) var(--ease);
    user-select: none;
}

.choice:hover { border-color: var(--ink-mute); }

.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice__check {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1.5px solid var(--line);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all var(--t-fast) var(--ease);
}

.choice__check svg {
    width: 14px;
    height: 14px;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: all var(--t-fast) var(--ease);
}

.choice input:checked + .choice__check {
    background: var(--accent);
    border-color: var(--accent);
}

.choice input:checked + .choice__check svg { opacity: 1; transform: scale(1); }

.choice:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.choice__body { flex: 1; min-width: 0; }

.choice__title {
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 2px;
}

.choice__desc {
    font-size: var(--fs-small);
    color: var(--ink-mute);
    line-height: 1.4;
}

/* Radio variant — used for size & property type */
.choice--radio .choice__check { border-radius: 50%; }
.choice--radio .choice__check::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: all var(--t-fast) var(--ease);
}
.choice--radio input:checked + .choice__check { background: var(--accent); border-color: var(--accent); }
.choice--radio input:checked + .choice__check::after { opacity: 1; transform: scale(1); }
.choice--radio .choice__check svg { display: none; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field + .field { margin-top: var(--s-5); }

.field__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
}

@media (min-width: 600px) { .field__row { grid-template-columns: 1fr 1fr; } }

.field__label {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
}

.field__label .req { color: var(--accent); margin-left: 2px; }

.field__input,
.field__select,
.field__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.field__textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.field__select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B6760' stroke-width='1.5' stroke-linecap='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field__hint {
    font-size: 0.8125rem;
    color: var(--ink-faint);
    line-height: 1.5;
}

/* File upload */
.upload {
    position: relative;
    border-radius: var(--r-md);
    padding: var(--s-12) var(--s-6);
    text-align: center;
    cursor: pointer;
    background: var(--surface-tinted);
    transition: background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    /* Pixel-perfect dashed border via SVG background — won't break into chunks at any width */
    background-image:
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%238A8580' stroke-width='1.5' stroke-dasharray='6,5' rx='8' ry='8'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: block;
}

[data-theme="dark"] .upload {
    background-image:
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%237A756F' stroke-width='1.5' stroke-dasharray='6,5' rx='8' ry='8'/%3e%3c/svg%3e");
}

.upload:hover {
    background-color: color-mix(in srgb, var(--accent) 5%, var(--surface));
    background-image:
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23E85D1F' stroke-width='1.5' stroke-dasharray='6,5' rx='8' ry='8'/%3e%3c/svg%3e");
}

.upload[data-drag-over="true"] {
    background-color: color-mix(in srgb, var(--accent) 10%, var(--surface));
    transform: scale(1.005);
    background-image:
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23E85D1F' stroke-width='2' stroke-dasharray='8,4' rx='8' ry='8'/%3e%3c/svg%3e");
}

/* Bulletproof input hide — position off-screen rather than display:none, which has
   a history of leaving phantom click targets in some browsers. */
.upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.upload__icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin: 0 auto var(--s-3);
    transition: transform var(--t-base) var(--ease);
}

.upload:hover .upload__icon,
.upload[data-drag-over="true"] .upload__icon { transform: translateY(-3px); }

.upload__title { font-weight: 500; color: var(--ink); margin-bottom: var(--s-1); font-size: 1rem; }
.upload__hint  { font-size: var(--fs-small); color: var(--ink-mute); }

.upload__list { margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.upload__item {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-2) var(--s-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: var(--fs-small);
}
.upload__item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.upload__item-remove { color: var(--ink-faint); padding: 4px; line-height: 0; }
.upload__item-remove:hover { color: var(--accent); }

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Calculator summary */
.calc__summary {
    position: sticky;
    top: 96px;
    padding: var(--s-8);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.calc__summary-eyebrow { margin-bottom: var(--s-2); }

.calc__summary-title {
    font-size: var(--fs-h5);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
}

.calc__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-4);
    font-size: var(--fs-small);
    padding-block: var(--s-2);
}

.calc__summary-row--empty { color: var(--ink-faint); font-style: italic; }
.calc__summary-row span:first-child { color: var(--ink-soft); }
.calc__summary-row span:last-child { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }

.calc__summary-total {
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.calc__summary-total-label {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
}

.calc__summary-total-value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.calc__summary-total-value .numeral { color: var(--accent); }

.calc__summary-note {
    font-size: 0.8125rem;
    color: var(--ink-faint);
    line-height: 1.5;
    margin-top: var(--s-2);
}

.calc__submit { margin-top: var(--s-4); }
.calc__submit .btn { width: 100%; }

.form-status {
    margin-top: var(--s-4);
    padding: var(--s-4);
    border-radius: var(--r-md);
    font-size: var(--fs-small);
    line-height: 1.5;
    display: none;
}

.form-status--success { display: block; background: rgba(34, 139, 65, 0.08); border: 1px solid rgba(34, 139, 65, 0.3); color: #1f7c3a; }
.form-status--error   { display: block; background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.3); color: #b22222; }
.form-status--loading { display: block; background: var(--surface-tinted); border: 1px solid var(--line); color: var(--ink-soft); }

[data-theme="dark"] .form-status--success { color: #6dd396; background: rgba(34, 139, 65, 0.15); }
[data-theme="dark"] .form-status--error   { color: #f08e8e; background: rgba(220, 38, 38, 0.15); }

/* ----------------------------------------------------------------
   20. ABOUT PAGE
----------------------------------------------------------------- */
.bio {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-12);
    margin-top: var(--s-12);
}

@media (min-width: 880px) {
    .bio { grid-template-columns: 1fr 1.6fr; gap: var(--s-16); align-items: start; }
}

.bio__avatar {
    aspect-ratio: 4/5;
    background: var(--bg-alt);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    text-align: center;
}

.bio__avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%);
}

.bio__avatar-text {
    position: relative;
    padding: var(--s-6);
    color: var(--ink-mute);
}

.bio__name {
    font-size: var(--fs-h2);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--s-3);
}

.bio__name em { font-style: italic; color: var(--accent); font-weight: 400; }

.bio__role {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
    margin-bottom: var(--s-8);
}

.bio__body { display: flex; flex-direction: column; gap: var(--s-5); }

.bio__body p {
    font-size: var(--fs-body-lg);
    color: var(--ink-soft);
    line-height: 1.65;
}

.bio__pull {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 300;
    font-style: italic;
    color: var(--ink);
    line-height: 1.3;
    padding: var(--s-6) 0 var(--s-6) var(--s-6);
    border-left: 2px solid var(--accent);
    margin-block: var(--s-4);
}

/* ----------------------------------------------------------------
   21. CONTACT PAGE
----------------------------------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-12);
}

@media (min-width: 1024px) {
    .contact { grid-template-columns: 1fr 1.2fr; gap: var(--s-16); align-items: start; }
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
}

.contact__item {
    padding-block: var(--s-5);
    border-bottom: 1px solid var(--line);
}

.contact__item-label {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
    margin-bottom: var(--s-3);
    display: block;
}

.contact__item-value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
    transition: color var(--t-fast) var(--ease);
    display: inline-block;
    word-break: break-word;
}

a.contact__item-value:hover { color: var(--accent); }

.contact__form {
    padding: var(--s-10);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.contact__form-title {
    font-size: var(--fs-h4);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: var(--s-3);
}

.contact__form-sub {
    font-size: var(--fs-small);
    color: var(--ink-mute);
    margin-bottom: var(--s-8);
}

/* ----------------------------------------------------------------
   22. TERMS PAGE
----------------------------------------------------------------- */
.legal {
    max-width: 760px;
    margin-inline: auto;
}

.legal h2 {
    font-size: var(--fs-h4);
    font-weight: 400;
    letter-spacing: -0.015em;
    margin-top: var(--s-12);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li {
    font-size: var(--fs-body);
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: var(--s-4);
}

.legal ul, .legal ol { margin-bottom: var(--s-6); padding-left: var(--s-6); }
.legal ul li, .legal ol li { list-style-position: outside; margin-bottom: var(--s-2); }
.legal ul li { list-style-type: disc; }
.legal ol li { list-style-type: decimal; }

.legal__updated {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
    margin-bottom: var(--s-4);
    display: block;
}

/* ----------------------------------------------------------------
   23. SCROLL REVEAL
----------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

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

.divider { width: 100%; height: 1px; background: var(--line); margin-block: var(--s-12); }

.text-accent { color: var(--accent); }
.text-mute   { color: var(--ink-mute); }

/* Prevent body scroll when mobile drawer open */
body.no-scroll { overflow: hidden; }

/* ==================================================================
   25. MOBILE OPTIMIZATION
   ------------------------------------------------------------------
   Targeted overrides for narrow viewports and touch interaction.
   Desktop styles above are intentionally untouched.
================================================================== */

/* Touch devices: kill hover-triggered transforms that "stick" after tap */
@media (hover: none) {
    .service-card:hover { background: transparent; }
    .service-card:hover .service-card__icon { transform: none; }
    .service-card:hover .service-card__more::after { transform: none; }
    .service-card:hover .service-card__more { color: var(--ink); }

    .social-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--line);
    }
    .social-card:hover .social-card__icon { color: var(--ink); }
    .social-card:hover .social-card__action::after { transform: none; }

    .outcome-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--line);
    }

    .btn--primary:hover,
    .btn--ink:hover,
    .btn:hover .btn__arrow { transform: none; }

    .nav__drawer-link:hover { padding-left: 0; }

    .linkout:hover svg { transform: none; }
    .footer__credit:hover svg { transform: none; }
}

/* Tablet down */
@media (max-width: 879px) {

    /* Override nav height for mobile — fewer pixels, drawer auto-aligns */
    :root { --nav-h: 64px; }

    /* --- Nav --- */
    /* Force-hide desktop-only nav items. !important guards against any
       cache or specificity issue overriding the base display:none. */
    .nav__menu       { display: none !important; }
    .nav__cta        { display: none !important; }
    .nav__brand-text { display: none !important; }

    .nav__inner { padding-block: var(--s-3); }
    .nav__logo  { height: 36px; }

    /* 44px minimum touch targets */
    .nav__burger,
    .theme-toggle {
        width: 44px;
        height: 44px;
    }

    .nav__drawer {
        padding: var(--s-6) var(--gutter) var(--s-12);
    }

    .nav__drawer-link {
        font-size: 1.5rem;
        padding-block: var(--s-4);
        min-height: 56px;
        display: flex;
        align-items: center;
    }

    .nav__drawer-foot { margin-top: var(--s-6); gap: var(--s-3); }
    .nav__drawer-foot .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
        justify-content: center;
    }

    /* --- Buttons: 48px touch target on mobile --- */
    .btn { min-height: 48px; }
    .btn--sm { min-height: 42px; padding: 0.75rem 1.125rem; }
    .btn--lg { min-height: 54px; }

    /* --- Hero --- */
    .hero { padding-top: var(--s-8); }
    .hero__grid { gap: var(--s-10); }

    .hero__title {
        font-size: clamp(2.5rem, 11vw, 4rem);
        line-height: 1;
        margin-bottom: var(--s-6);
    }

    .hero__sub {
        font-size: 1.0625rem;
        max-width: 36ch;
        margin-bottom: var(--s-8);
    }

    .hero__ctas {
        flex-direction: column;
        align-items: stretch;
        gap: var(--s-3);
    }
    .hero__ctas .btn { width: 100%; }
    .hero__ctas .linkout {
        align-self: flex-start;
        margin-top: var(--s-2);
    }

    .hero__meta { padding: var(--s-6); gap: var(--s-6); }
    .hero__meta::before { left: var(--s-6); }
    .hero__meta-item dd { font-size: 1.125rem; }

    .hero__strip {
        margin-top: var(--s-12);
        padding-top: var(--s-6);
        gap: var(--s-6) var(--s-4);
    }
    .hero__strip-item .numeral { font-size: 2.25rem; }

    /* --- Statement --- */
    .statement { padding-block: clamp(3.5rem, 12vw, 5.5rem); }
    .statement__quote { font-size: clamp(1.625rem, 6vw, 2.25rem); }
    .statement__attribution { margin-top: var(--s-8); font-size: 0.78rem; }

    /* --- Section heads --- */
    .section-head {
        margin-bottom: var(--s-10);
        gap: var(--s-4);
    }
    .section-head__title { font-size: clamp(2rem, 8vw, 2.75rem); }
    .section-head__intro p { font-size: 1rem; }

    /* --- Service cards: clean borders on single column --- */
    .service-card {
        padding: var(--s-6);
        border-right: none;
        gap: var(--s-3);
    }
    .service-card:nth-child(2n) { border-right: none; }

    /* --- Process --- */
    .process__step { padding: var(--s-6) 0; }
    .process__num {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: var(--s-4);
    }

    /* --- Pillars --- */
    .pillars { gap: var(--s-10); }
    .pillar__title { font-size: clamp(1.5rem, 6vw, 1.75rem); }

    /* --- Agent block --- */
    .agent {
        padding: var(--s-8) var(--s-6);
        gap: var(--s-8);
    }
    .agent__title { font-size: clamp(1.625rem, 7vw, 2.25rem); }
    .agent__desc { font-size: 1rem; margin-bottom: var(--s-6); }
    .agent__list-item { padding-bottom: var(--s-3); gap: var(--s-3); }
    .agent__list-text { font-size: 0.9375rem; }

    /* --- Social cards --- */
    .social-card { padding: var(--s-6); }

    /* --- CTA section --- */
    .cta-section { padding-block: clamp(3.5rem, 12vw, 5.5rem); }
    .cta-section__title { font-size: clamp(2.25rem, 10vw, 3.5rem); }
    .cta-section__sub { font-size: 1rem; margin-bottom: var(--s-8); }
    .cta-section__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-section__buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Footer --- */
    .footer { padding-block: var(--s-12) var(--s-6); }
    .footer__top {
        gap: var(--s-10);
        padding-bottom: var(--s-10);
    }
    .footer__logo { height: 48px; }
    .footer__bottom {
        font-size: 0.75rem;
        gap: var(--s-2);
    }
    .footer__bottom-right { gap: var(--s-3) var(--s-5); }
    .footer__credit { font-size: 0.68rem; }

    /* --- Page header (interior pages) --- */
    .page-header {
        padding-top: var(--s-10);
        padding-bottom: var(--s-10);
    }
    .page-header__title { font-size: clamp(2.25rem, 10vw, 3.75rem); }
    .page-header__sub { font-size: 1rem; }

    /* --- Services detailed list --- */
    .svc-row {
        padding-block: var(--s-8);
        gap: var(--s-4);
    }
    .svc-row__num { padding-top: 0; }
    .svc-row__title { font-size: clamp(1.625rem, 7vw, 2.25rem); }
    .svc-row__body p { font-size: 1rem; }
    .svc-row__chips { margin-top: var(--s-4); gap: 0.4rem; }
    .chip {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
        letter-spacing: 0.1em;
    }

    /* --- Outcome cards --- */
    .outcome-card { padding: var(--s-6); }

    /* --- Calculator --- */
    .calc { gap: var(--s-8); }
    .calc__step { margin-bottom: var(--s-10); }
    .calc__step-head {
        flex-wrap: wrap;
        row-gap: var(--s-2);
        gap: var(--s-2) var(--s-3);
    }
    .calc__step-title { font-size: 1.375rem; }
    .calc__step-sub { font-size: 0.9375rem; }

    /* Unstick the summary on mobile — it lives below the form so sticky
       just made it overlap the bottom of the page awkwardly. */
    .calc__summary {
        position: static;
        padding: var(--s-6);
        margin-top: var(--s-2);
    }
    .calc__summary-title { font-size: 1.125rem; }
    .calc__summary-total-value { font-size: 1.75rem; }

    /* --- Upload zone --- */
    .upload { padding: var(--s-10) var(--s-5); }
    .upload__title { font-size: 0.9375rem; }
    .upload__hint { font-size: 0.8125rem; }

    /* --- Choice cards (calculator) --- */
    .choice { padding: var(--s-4); }
    .choice__title { font-size: 0.9375rem; }
    .choice__desc { font-size: 0.8125rem; }

    /* --- Bio --- */
    .bio { gap: var(--s-8); margin-top: var(--s-8); }
    .bio__avatar {
        max-width: 320px;
        width: 100%;
        margin-inline: auto;
    }
    .bio__name { font-size: clamp(2rem, 9vw, 2.5rem); }
    .bio__role { margin-bottom: var(--s-6); }
    .bio__body p { font-size: 1rem; }
    .bio__pull {
        font-size: 1.25rem;
        padding: var(--s-4) 0 var(--s-4) var(--s-4);
    }

    /* --- Contact page --- */
    .contact { gap: var(--s-8); }
    .contact__info { gap: var(--s-4); }
    .contact__item { padding-block: var(--s-4); }
    .contact__item-value { font-size: clamp(1.25rem, 5vw, 1.625rem); }
    .contact__form { padding: var(--s-6); }
    .contact__form-title { font-size: 1.5rem; }

    /* --- Legal / terms --- */
    .legal h2 {
        font-size: 1.25rem;
        margin-top: var(--s-8);
    }
    .legal p, .legal li { font-size: 0.9375rem; }
}

/* Smaller phones (≤480px) */
@media (max-width: 480px) {
    .nav__drawer-link { font-size: 1.375rem; }

    .hero__meta { padding: var(--s-5); }
    .hero__meta::before { left: var(--s-5); }
    .hero__strip { gap: var(--s-5) var(--s-3); }
    .hero__strip-item .numeral { font-size: 1.875rem; }
    .hero__strip-item p { font-size: 0.78rem; }

    .agent { padding: var(--s-6) var(--s-5); }
    .agent__list-num { min-width: 22px; }

    .calc__summary { padding: var(--s-5); }
    .upload { padding: var(--s-8) var(--s-4); }

    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .footer__bottom-right { flex-wrap: wrap; }
}

/* Landscape phones — keep sane vertical density on short viewports */
@media (max-height: 540px) and (orientation: landscape) {
    .hero { padding-top: var(--s-4); padding-bottom: var(--s-12); }
    .nav__drawer { padding-block: var(--s-4) var(--s-8); }
    .nav__drawer-link {
        font-size: 1.125rem;
        padding-block: var(--s-2);
        min-height: 44px;
    }
}
