/* Sri Kalabhairavam v2 design system.
   Half inherited from kalabhairavam.com (green and gold palette, Outfit display, glass navbar,
   eyebrow pills, gradient headings, card grids, CTA banner), half rebuilt:
   self-hosted fonts, local SVG hero art, AA contrast, single data-theme attribute,
   focus-visible rings, 320px safety and a fluid spacing scale.
   Sections: 1 tokens, 2 base, 3 type, 4 layout, 5 blobs, 6 nav, 7 buttons, 8 cards,
   9 hero, 10 numbered services, 11 CTA banner, 12 footer, 13 forms, 14 theme fab,
   15 reveal, 16 utilities, 17 small screens. */

/* --- 1. Theme tokens --- */
:root {
    --bg-page: #f8faf9;
    --bg-surface: #ffffff;
    --bg-soft: #f0f4f2;
    --text-strong: #0f1715;
    --text: #2c3a36;
    --text-soft: #4b5551;
    --text-muted: #6d7a75;
    --brand: #1b4938;
    --brand-strong: #0f2b22;
    --brand-soft: #1f5943;
    --gold: #d4a352;
    --gold-strong: #8a6417;
    --gold-soft: #f3d494;
    --line: rgba(27, 73, 56, .14);
    --line-strong: rgba(27, 73, 56, .26);
    --ink-deep: #071210;

    --shadow-sm: 0 1px 2px rgba(9, 24, 19, .06);
    --shadow-md: 0 10px 28px -14px rgba(9, 24, 19, .34);
    --shadow-lg: 0 24px 60px -26px rgba(9, 24, 19, .42);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-full: 999px;

    --nav-h: 80px;
    --nav-h-sm: 66px;
    --shell: min(1180px, calc(100% - 32px));
    --sec-y: clamp(3.5rem, 7vw, 6.5rem);

    --t-fast: 180ms cubic-bezier(.4, 0, .2, 1);
    --t-norm: 320ms cubic-bezier(.4, 0, .2, 1);

    color-scheme: light;
}

html[data-theme="dark"] {
    --bg-page: #0a0f0d;
    --bg-surface: #121a17;
    --bg-soft: #18221f;
    --text-strong: #f0fdf8;
    --text: #d6e1dc;
    --text-soft: #adbdb7;
    --text-muted: #8b9a95;
    --brand: #348265;
    --brand-strong: #41a37e;
    --brand-soft: #50b892;
    --gold: #e0b977;
    --gold-strong: #eccb96;
    --gold-soft: #f3d494;
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .20);

    --shadow-md: 0 10px 28px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 24px 60px -26px rgba(0, 0, 0, .8);

    color-scheme: dark;
}

/* --- 2. Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: rgba(212, 163, 82, .3); color: var(--text-strong); }

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--brand-strong);
    color: #fff;
    padding: .8rem 1.2rem;
    border-radius: 0 0 var(--r-sm) 0;
    font-weight: 700;
}
.skip:focus { left: 0; }

main { display: block; }

i[data-lucide], .ic { display: inline-flex; }
i svg, .ic svg { width: 1em; height: 1em; stroke-width: 1.9; }

/* --- 3. Typography --- */
h1, h2, h3, h4 {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    color: var(--text-strong);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 1rem;
    text-wrap: balance;
}

h1 { font-weight: 800; font-size: clamp(2.2rem, 5.1vw, 4.1rem); }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-weight: 700; font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.25; }
h4 { font-weight: 700; font-size: 1.05rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--brand-soft), var(--gold-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
html[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: var(--r-full);
    background: rgba(212, 163, 82, .16);
    color: var(--gold-strong);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
}
html[data-theme="dark"] .eyebrow { color: var(--gold-soft); background: rgba(224, 185, 119, .16); }

.lead {
    font-size: clamp(1.03rem, 1.35vw, 1.18rem);
    color: var(--text-soft);
    max-width: 62ch;
}

.small { font-size: .9rem; color: var(--text-muted); }

strong, b { color: var(--text-strong); font-weight: 700; }

/* --- 4. Layout shells --- */
.shell { width: var(--shell); margin-inline: auto; }

.section { padding-block: var(--sec-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--surface { background: var(--bg-surface); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(2.2rem, 4.5vw, 3.4rem);
    text-align: center;
}
.section-head .lead { margin-inline: auto; }

.grid-2 { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.split {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    align-items: center;
}

/* --- 5. Decorative blobs --- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-blobs::before, .bg-blobs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
}
.bg-blobs::before { top: -12%; left: -10%; width: 48vw; height: 48vw; background: rgba(27, 73, 56, .14); }
.bg-blobs::after { bottom: -14%; right: -10%; width: 42vw; height: 42vw; background: rgba(212, 163, 82, .13); }
html[data-theme="dark"] .bg-blobs::before { background: rgba(52, 130, 101, .18); }
html[data-theme="dark"] .bg-blobs::after { background: rgba(224, 185, 119, .14); }

/* --- 6. Navbar (always dark glass) --- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 90;
    background: rgba(7, 18, 15, .84);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: height var(--t-norm), background var(--t-norm), box-shadow var(--t-norm);
    color-scheme: dark;
}
.nav.is-scrolled {
    height: var(--nav-h-sm);
    background: rgba(5, 13, 11, .94);
    box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .55);
}

.nav__inner {
    width: var(--shell);
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav__brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; min-width: 0; }
.nav__mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--gold), #b88a3f);
    color: #16221c;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: .92rem;
    letter-spacing: .02em;
    transition: width var(--t-norm), height var(--t-norm);
}
.nav.is-scrolled .nav__mark { width: 33px; height: 33px; font-size: .84rem; }
.nav__word {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.06rem;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.nav__word b { color: #fff; font-weight: 800; }

.nav__right { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }

.nav__link {
    position: relative;
    font-weight: 600;
    font-size: .95rem;
    color: rgba(255, 255, 255, .76);
    padding-block: .4rem;
    transition: color var(--t-fast);
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--gold);
    transition: width var(--t-norm);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav__cta { padding: .62rem 1.2rem; font-size: .9rem; }

.nav__burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.nav__burger:hover { border-color: var(--gold); color: var(--gold); }

/* Mobile drawer */
.menu { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.menu.is-open { visibility: visible; }

.mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 14, 11, .58);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity var(--t-norm);
}
.menu.is-open .mobile-backdrop { opacity: 1; }

.mobile-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: #0b1512;
    color: #fff;
    color-scheme: dark;
    border-left: 1px solid rgba(255, 255, 255, .1);
    padding: 1.1rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(102%);
    transition: transform var(--t-norm);
    overflow-y: auto;
}
.menu.is-open .mobile-panel { transform: none; }

.mobile-panel__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.mobile-panel__close {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.mobile-panel__close:hover { border-color: var(--gold); color: var(--gold); }

.mobile-panel__links { display: grid; gap: .25rem; }
.mobile-panel__links .nav__link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: .8rem .25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mobile-panel__links .nav__link::after { display: none; }
.mobile-panel__links .nav__link.is-active { color: var(--gold-soft); }

/* --- 7. Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .82rem 1.5rem;
    border-radius: var(--r-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid transparent;
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn i svg { width: 1.05em; height: 1.05em; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--brand-soft); }
html[data-theme="dark"] .btn--primary { color: #04120c; }

.btn--accent { background: var(--gold); color: #1c1608; box-shadow: var(--shadow-md); }
.btn--accent:hover { background: var(--gold-soft); }

.btn--ghost { border-color: var(--line-strong); color: var(--text-strong); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-strong); background: rgba(212, 163, 82, .08); }

.btn--ghost-light {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

/* --- 8. Cards --- */
.card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(1.35rem, 2vw, 2rem);
    transition: transform var(--t-norm), border-color var(--t-norm), box-shadow var(--t-norm);
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(212, 163, 82, .06), transparent 62%);
    opacity: 0;
    transition: opacity var(--t-norm);
    pointer-events: none;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .7rem; }
.card > * { position: relative; }

.card--soft { background: var(--bg-soft); border-color: transparent; }
.card--soft:hover { border-color: var(--gold); }
.card--flat:hover { transform: none; box-shadow: none; }

.card__icon {
    width: 54px;
    height: 54px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(27, 73, 56, .12), rgba(212, 163, 82, .2));
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
}
html[data-theme="dark"] .card__icon {
    color: var(--gold);
    background: linear-gradient(135deg, rgba(52, 130, 101, .24), rgba(224, 185, 119, .18));
}

.card__cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .93rem;
    color: var(--brand);
    transition: gap var(--t-fast), color var(--t-fast);
}
.card__cta:hover { gap: .6rem; color: var(--gold-strong); }
html[data-theme="dark"] .card__cta { color: var(--gold); }

/* Numbered pillar cards */
.card__num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .14em;
    color: var(--gold-strong);
    display: block;
    margin-bottom: .6rem;
}
html[data-theme="dark"] .card__num { color: var(--gold); }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; padding: 0; list-style: none; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: var(--r-full);
    border: 1px solid var(--line-strong);
    background: var(--bg-surface);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .82rem;
    color: var(--text-strong);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* Checklist */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks li::before {
    content: '';
    flex: none;
    margin-top: .45rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 163, 82, .18);
}

/* Trust / credential block */
.trust { display: grid; gap: .75rem; padding: 0; list-style: none; margin: 0; }
.trust__item {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .8rem 1rem;
    border-radius: var(--r-md);
    background: var(--bg-soft);
    border: 1px solid var(--line);
}
.trust__check {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(212, 163, 82, .2);
    color: var(--gold-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
html[data-theme="dark"] .trust__check { color: var(--gold-soft); }
.trust__label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.trust__value { font-weight: 600; color: var(--text-strong); word-break: break-word; }

/* Person cards */
.person { display: grid; gap: 1rem; grid-template-columns: 96px 1fr; align-items: center; }
.person img { width: 96px; height: 96px; border-radius: var(--r-md); object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line); }
.person__role { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .88rem; color: var(--gold-strong); margin: 0; }
html[data-theme="dark"] .person__role { color: var(--gold); }
.person h3 { margin: 0 0 .2rem; font-size: 1.2rem; }

/* --- 9. Hero --- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(92vh, 860px);
    padding: calc(var(--nav-h) + 3rem) 0 clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    isolation: isolate;
}
.hero--compact { min-height: 0; align-items: center; padding: calc(var(--nav-h) + 3.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #071210 url(art/port.svg) center / cover no-repeat;
}
.hero--compact .hero__bg { background-position: center 62%; }

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(104deg, rgba(5, 14, 11, .95) 0%, rgba(5, 14, 11, .8) 42%, rgba(5, 14, 11, .38) 82%);
}

.hero__content { max-width: 780px; color: #fff; }
.hero__content h1 { color: #fff; }
.hero__content .lead { color: rgba(255, 255, 255, .88); margin: 1.1rem 0 2rem; }
.hero__content .eyebrow { color: var(--gold-soft); background: rgba(255, 255, 255, .12); }

/* The hero sits on dark art in both themes, so its accent must stay light. */
.hero__content .text-gradient,
.cta-banner .text-gradient {
    background: linear-gradient(135deg, #f3d494, #d4a352);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__metrics {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.metric {
    background: rgba(255, 255, 255, .94);
    color: var(--ink-deep);
    border-radius: var(--r-md);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .metric { background: rgba(18, 26, 23, .9); color: var(--text-strong); border: 1px solid var(--line-strong); }
.metric strong { display: block; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.35rem; color: inherit; letter-spacing: -.01em; }
.metric span { display: block; margin-top: .15rem; font-size: .82rem; font-weight: 600; color: #4b5551; }
html[data-theme="dark"] .metric span { color: var(--text-soft); }

/* --- 10. Numbered service blocks --- */
.svc { scroll-margin-top: calc(var(--nav-h) + 24px); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc__head { display: grid; gap: .4rem; margin-bottom: 1.5rem; }
.svc__num {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-strong);
    letter-spacing: -.02em;
}
html[data-theme="dark"] .svc__num { -webkit-text-stroke-color: rgba(224, 185, 119, .38); }

/* FAQ */
.faq {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-surface);
    padding: 0 1.1rem;
    margin-bottom: .7rem;
    transition: border-color var(--t-fast);
}
.faq:hover, .faq[open] { border-color: var(--gold); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 2rem 1rem 0;
    position: relative;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    position: absolute;
    right: .35rem;
    top: 1.45rem;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--gold-strong);
    border-bottom: 2px solid var(--gold-strong);
    transform: rotate(45deg);
    transition: transform var(--t-fast);
}
html[data-theme="dark"] .faq summary::after { border-color: var(--gold); }
.faq[open] summary::after { transform: rotate(225deg); top: 1.7rem; }
.faq__body { padding-bottom: 1.1rem; color: var(--text-soft); }

/* --- 11. CTA banner --- */
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, #0f2b22, #1b4938);
    color: #fff;
    padding: clamp(1.75rem, 4vw, 3.25rem);
    display: grid;
    gap: 1.4rem;
}
.cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 86% 0%, rgba(212, 163, 82, .34), transparent 58%);
    pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, .86); max-width: 62ch; margin-bottom: 0; }
.cta-banner .eyebrow { color: var(--gold-soft); background: rgba(255, 255, 255, .12); }
.cta-banner__row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- 12. Footer --- */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--line);
    padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
}
.footer__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
}
.footer__brand p { color: var(--text-soft); max-width: 42ch; font-size: .94rem; }
.footer__name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: .6rem; }

.footer__reg { display: grid; gap: .4rem; margin: 1.1rem 0 0; }
.footer__reg > div { display: flex; gap: .6rem; font-size: .84rem; }
.footer__reg dt { font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); min-width: 54px; }
.footer__reg dd { margin: 0; color: var(--text-soft); }

.footer h4 {
    font-family: 'Outfit', sans-serif;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-muted);
    margin-bottom: .9rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer li { font-size: .93rem; color: var(--text-soft); }
.footer li a { color: var(--text-soft); transition: color var(--t-fast); }
.footer li a:hover { color: var(--gold-strong); }
html[data-theme="dark"] .footer li a:hover { color: var(--gold); }

.footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: .86rem;
}
.footer__bottom nav { display: flex; gap: 1.25rem; }
.footer__bottom a:hover { color: var(--gold-strong); }

.tlink { color: var(--brand); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.tlink:hover { color: var(--gold-strong); border-color: var(--gold); }
html[data-theme="dark"] .tlink { color: var(--gold); }

/* --- 13. Forms --- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.field { display: grid; gap: .4rem; }
.field__label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.field__input {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--bg-page);
    color: var(--text-strong);
    font: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field__input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 163, 82, .2);
    background: var(--bg-surface);
}
textarea.field__input { min-height: 140px; resize: vertical; }
.field--span2 { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .84rem; color: var(--text-muted); }

.form-status {
    border-radius: var(--r-md);
    padding: 1rem 1.1rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: rgba(27, 73, 56, .1);
    color: var(--brand);
    border-color: rgba(27, 73, 56, .3);
}
html[data-theme="dark"] .form-status { background: rgba(52, 130, 101, .16); color: var(--brand-soft); border-color: rgba(80, 184, 146, .34); }

/* --- 14. Theme fab --- */
.theme-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 70; display: grid; justify-items: end; gap: .55rem; }
.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    color: var(--text-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover { transform: scale(1.05); border-color: var(--gold); }
.theme-toggle .on-dark { display: none; }
html[data-theme="dark"] .theme-toggle .on-dark { display: inline-flex; }
html[data-theme="dark"] .theme-toggle .on-light { display: none; }

.theme-pop {
    display: grid;
    gap: .15rem;
    padding: .35rem;
    border-radius: var(--r-md);
    background: var(--bg-surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    min-width: 152px;
}
.theme-pop[hidden] { display: none; }
.theme-pop button {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border-radius: var(--r-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    text-align: left;
}
.theme-pop button:hover { background: var(--bg-soft); color: var(--text-strong); }
.theme-pop button[aria-pressed="true"] { background: rgba(212, 163, 82, .16); color: var(--gold-strong); }
html[data-theme="dark"] .theme-pop button[aria-pressed="true"] { color: var(--gold-soft); }

body.menu-open { overflow: hidden; }
body.menu-open .theme-fab { opacity: 0; visibility: hidden; }

/* --- 15. Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms cubic-bezier(.4, 0, .2, 1), transform 560ms cubic-bezier(.4, 0, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 70ms; }
.reveal.delay-2 { transition-delay: 140ms; }
.reveal.delay-3 { transition-delay: 210ms; }
.reveal.delay-4 { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .btn:hover, .card:hover { transform: none; }
}

/* --- 16. Utilities --- */
.center { text-align: center; }
.divider { width: 58px; height: 4px; border-radius: 4px; background: var(--gold); border: 0; margin: 1.1rem 0 1.4rem; }
.center .divider { margin-inline: auto; }
.stack-sm > * + * { margin-top: .75rem; }
.mt-lg { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: .4rem; }

/* --- 17. Small screens --- */
@media (max-width: 1040px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
    .nav__links { display: none; }
    .nav__burger { display: inline-flex; }
}

@media (max-width: 640px) {
    :root { --shell: min(1180px, calc(100% - 24px)); }
    .nav__cta { display: none; }
    .hero { min-height: 0; padding-top: calc(var(--nav-h) + 2.5rem); }
    .hero__metrics { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .person { grid-template-columns: 72px 1fr; }
    .person img { width: 72px; height: 72px; }
}

@media (max-width: 380px) {
    .nav__word { font-size: .95rem; }
    .hero__metrics { grid-template-columns: 1fr; }
    .btn { padding: .78rem 1.15rem; font-size: .9rem; }
}
