/* =================================================================
   Aravir Technologies — Design System
   Elegant · minimal · monochrome, echoing the silver wordmark.
   Type: Fraunces (display) + Inter (UI/body).
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
    --bg: #ffffff;
    --paper: #f6f6f3;
    --paper-2: #eeeeea;
    --ink: #16181d;
    --ink-soft: #3e434b;
    --muted: #6b7178;
    --line: #e8e8e3;
    --line-2: #d8d8d2;

    --dark: #16181d;
    --dark-2: #1c1f25;
    --dark-3: #23272e;
    --on-dark: #edeef0;
    --on-dark-soft: #a5aab2;
    --on-dark-line: rgba(255, 255, 255, .12);

    --radius: 16px;
    --radius-sm: 11px;
    --radius-lg: 26px;
    --container: 1180px;
    --container-narrow: 760px;

    --shadow-sm: 0 1px 2px rgba(18, 20, 26, .04), 0 3px 10px rgba(18, 20, 26, .045);
    --shadow-md: 0 8px 28px rgba(18, 20, 26, .08), 0 2px 6px rgba(18, 20, 26, .05);
    --shadow-lg: 0 30px 70px rgba(18, 20, 26, .14);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 94px; }

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

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

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }

.display, h1.display {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.7rem, 6.2vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -.025em;
    color: var(--ink);
}
.display em { font-style: italic; font-weight: 400; }

h2, .h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.05rem);
    letter-spacing: -.02em;
    line-height: 1.08;
}
h2 em, .h2 em { font-style: italic; }

h3, .h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

.lead {
    font-size: clamp(1.12rem, 1.6vw, 1.32rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--line-2); }
.eyebrow--center::after { content: ""; width: 26px; height: 1px; background: var(--line-2); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--dark); color: var(--on-dark); }

.section-head { max-width: 660px; margin-bottom: 3.2rem; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons ---------- */
.btn {
    --bg-btn: var(--ink); --fg-btn: #fff; --bd-btn: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-family: var(--font-sans); font-weight: 500; font-size: .96rem; line-height: 1;
    padding: 1em 1.6em; border-radius: 999px; cursor: pointer;
    background: var(--bg-btn); color: var(--fg-btn); border: 1px solid var(--bd-btn);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .28s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary:hover { background: #2a2e36; border-color: #2a2e36; }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--ink); --bd-btn: var(--line-2); }
.btn--ghost:hover { --bd-btn: var(--ink); box-shadow: none; }
.btn--sm { padding: .72em 1.25em; font-size: .875rem; }
.btn--lg { padding: 1.12em 2em; font-size: 1.02rem; }
.btn--light { --bg-btn: #fff; --fg-btn: var(--ink); --bd-btn: #fff; }
.btn--light:hover { --bg-btn: #f0f0ec; --bd-btn: #f0f0ec; }
.btn--on-dark-ghost { --bg-btn: transparent; --fg-btn: #fff; --bd-btn: rgba(255, 255, 255, .28); }
.btn--on-dark-ghost:hover { --bd-btn: #fff; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.arrow-link {
    display: inline-flex; align-items: center; gap: .45em;
    font-weight: 600; font-size: .95rem; color: var(--ink);
    transition: gap .25s var(--ease);
}
.arrow-link svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.arrow-link:hover { gap: .75em; }
.arrow-link:hover svg { transform: translateX(2px); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: 78px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 34px; width: auto; }
.brand__logo--light { display: none; }
.brand:hover { opacity: .82; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__link {
    position: relative; display: inline-block; padding: .5rem .95rem;
    font-size: .95rem; font-weight: 500; color: var(--ink-soft); border-radius: 8px;
    transition: color .2s;
}
.nav__link::after {
    content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .28rem; height: 1.5px;
    background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.nav__cta-item { display: none; }

.site-header__cta { flex-shrink: 0; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-shrink: 0;
}
.nav-toggle__bar { display: block; width: 22px; height: 1.5px; background: var(--ink); margin-inline: auto; transition: transform .3s var(--ease), opacity .2s; }
body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; overflow: hidden;
    padding-top: clamp(4rem, 9vw, 7.5rem);
    padding-bottom: clamp(4rem, 8vw, 6.5rem);
    background:
        radial-gradient(60% 60% at 50% -10%, rgba(22, 24, 29, .05), transparent 70%),
        linear-gradient(180deg, var(--bg), var(--paper));
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(22, 24, 29, .035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(22, 24, 29, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 35%, #000 30%, transparent 78%);
    mask-image: radial-gradient(80% 70% at 50% 35%, #000 30%, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero .display { margin-bottom: 1.6rem; }
.hero__lead { max-width: 600px; margin-bottom: 2.2rem; }
.hero__actions { margin-bottom: 3.4rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 2.4rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.hero__meta-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.hero__meta-label { font-size: .82rem; color: var(--muted); margin-top: .5rem; letter-spacing: .02em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    padding-top: clamp(3.5rem, 7vw, 6rem);
    padding-bottom: clamp(3rem, 5vw, 4.5rem);
    background: linear-gradient(180deg, var(--bg), var(--paper));
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(22, 24, 29, .03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(22, 24, 29, .03) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(75% 90% at 30% 0%, #000, transparent 75%);
    mask-image: radial-gradient(75% 90% at 30% 0%, #000, transparent 75%);
}
.page-hero__inner { position: relative; max-width: 780px; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { opacity: .5; }
.page-hero h1 {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.025em; line-height: 1.04;
}
.page-hero .lead { margin-top: 1.3rem; max-width: 620px; }

/* ---------- Cards ---------- */
.card {
    position: relative; background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2rem 1.9rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 13px; margin-bottom: 1.4rem;
    background: var(--ink); color: #fff;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .65rem; }
.card p { font-size: .98rem; line-height: 1.62; }
.card__link { margin-top: 1.3rem; }
.card--bare { background: transparent; border-color: transparent; padding: 1.6rem 0; }
.card--bare:hover { transform: none; box-shadow: none; }
.section--paper .card { background: var(--bg); }

/* numbered process card */
.step { position: relative; padding: 1.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); height: 100%; }
.step__num { font-family: var(--font-display); font-size: 1.05rem; color: var(--muted); letter-spacing: .05em; }
.step h3 { margin: 1rem 0 .55rem; }
.step p { font-size: .96rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__body .eyebrow { margin-bottom: 1.1rem; }
.split__body h2 { margin-bottom: 1.2rem; }
.split__body > p { margin-bottom: 1.2rem; }

.media-panel {
    position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line);
    background: linear-gradient(150deg, var(--paper), #fff 60%); padding: 2.5rem;
    box-shadow: var(--shadow-sm); overflow: hidden; min-height: 320px;
    display: flex; align-items: center; justify-content: center;
}
.media-panel--dark { background: linear-gradient(150deg, var(--dark-2), var(--dark)); border-color: var(--dark-3); }

/* Dark "manifest" — engineering motif */
.manifest { width: 100%; font-family: "SFMono-Regular", ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--on-dark); }
.manifest__bar { display: flex; align-items: center; gap: .5rem; padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--on-dark-line); }
.manifest__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dark-3); }
.manifest__title { margin-left: .6rem; font-size: .82rem; color: var(--on-dark-soft); letter-spacing: .02em; }
.manifest__row { display: flex; gap: 1rem; align-items: baseline; padding: .7rem 0; }
.manifest__row span { color: var(--on-dark-soft); font-size: .85rem; }
.manifest__row b { color: #fff; font-weight: 500; font-family: var(--font-sans); font-size: 1.02rem; letter-spacing: -.01em; }

/* Compact value strip */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value-strip__item { background: var(--bg); padding: 1.6rem; }
.value-strip__item .ico { color: var(--ink); margin-bottom: .8rem; }
.value-strip__item h4 { margin-bottom: .3rem; }
.value-strip__item p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 880px) { .value-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .value-strip { grid-template-columns: 1fr; } }

/* ---------- Check list ---------- */
.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.55; }
.checklist svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; color: var(--ink); }
.checklist--cols { grid-template-columns: repeat(2, 1fr); gap: .9rem 1.8rem; }

/* ---------- Tags / tech ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag {
    font-size: .9rem; font-weight: 500; color: var(--ink-soft);
    padding: .5rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg);
    transition: border-color .2s, color .2s, transform .2s;
}
.tag:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.section--dark .stat__num { color: #fff; }
.stat__label { color: var(--muted); margin-top: .7rem; font-size: .92rem; }
.section--dark .stat__label { color: var(--on-dark-soft); }

/* ---------- Value list (large index rows) ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
    display: grid; grid-template-columns: 3.5rem 1fr 1.4fr; gap: 1.5rem; align-items: baseline;
    padding: 1.8rem 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease);
}
.index-row:hover { padding-left: .6rem; }
.index-row__num { font-family: var(--font-display); color: var(--muted); font-size: 1rem; }
.index-row h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.01em; }
.index-row p { font-size: .98rem; }

/* ---------- Quote ---------- */
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote__mark { font-family: var(--font-display); font-size: 4rem; line-height: .5; color: var(--line-2); }
.quote blockquote { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.32; letter-spacing: -.015em; color: var(--ink); margin: 1.5rem 0; }
.section--dark .quote blockquote { color: #fff; }
.quote__cite { font-size: .9rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band__inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: #fff; margin-bottom: 1.2rem; }
.cta-band p { color: var(--on-dark-soft); margin-bottom: 2.2rem; font-size: 1.1rem; }
.cta-band::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(60% 120% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-soft); padding-top: clamp(3.5rem, 6vw, 5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__logo { height: 38px; width: auto; margin-bottom: 1.3rem; }
.site-footer__blurb { font-size: .96rem; line-height: 1.6; max-width: 320px; margin-bottom: 1.6rem; }
.site-footer__heading { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; margin-bottom: 1.2rem; }
.site-footer__links li, .site-footer__contact li { margin-bottom: .7rem; font-size: .96rem; }
.site-footer__links a:hover, .site-footer__contact a:hover { color: #fff; }
.site-footer__contact { font-size: .96rem; line-height: 1.5; }
.social { display: flex; gap: .6rem; }
.social__link {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 1px solid var(--on-dark-line); border-radius: 10px; color: var(--on-dark-soft);
    transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.social__link:hover { color: var(--dark); background: #fff; border-color: #fff; transform: translateY(-2px); }
.site-footer__bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding-block: 1.8rem; border-top: 1px solid var(--on-dark-line);
}
.site-footer__copy { font-size: .88rem; }
.site-footer__legal { display: flex; gap: 1.6rem; font-size: .88rem; }
.site-footer__legal a:hover { color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field input, .field textarea, .field select {
    font: inherit; font-size: .98rem; color: var(--ink); width: 100%;
    padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: #aab0b8; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 24, 29, .08);
}
.form__note { font-size: .85rem; color: var(--muted); }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid; }
.alert--success { background: #f1f6f1; border-color: #cfe2cf; color: #2f5d36; }
.alert--error { background: #fbf2f2; border-color: #ecd0d0; color: #8a3a3a; }
.is-hidden { display: none; }

/* contact split */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.8rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); }
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__item h4 { margin-bottom: .25rem; }
.contact-info__item p, .contact-info__item a { color: var(--ink-soft); font-size: .98rem; }
.contact-info__item a:hover { color: var(--ink); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: var(--container-narrow); }
.prose h2 { font-size: 1.6rem; margin-top: 2.6rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .6rem; }
.prose p, .prose li { font-size: 1rem; line-height: 1.75; margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 1.8rem; } .mt-4 { margin-top: 2.6rem; }
.mb-0 { margin-bottom: 0; }
.maxw-narrow { max-width: var(--container-narrow); }

/* ---------- Consistency helpers ---------- */
.btn-row--center { justify-content: center; }
.eyebrow--on-dark { color: var(--on-dark-soft); }
.tag--on-dark { background: transparent; border-color: var(--on-dark-line); color: var(--on-dark); }
.tag--on-dark:hover { border-color: #fff; color: #fff; }
.index-row--compact { grid-template-columns: 3rem 1fr; }
.text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; transition: opacity .2s; }
.text-link:hover { opacity: .65; }
.page-hero--plain { border-bottom: 0; }
.error-code { font-family: var(--font-display); font-weight: 300; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; letter-spacing: -.03em; color: var(--line-2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */

/* Small laptop / large tablet */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .split { gap: clamp(2rem, 4vw, 3rem); }
}

/* Tablet (portrait & landscape) */
@media (max-width: 980px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .site-footer__brand { grid-column: 1 / -1; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
    .index-row { grid-template-columns: 2.5rem 1fr; }
    .index-row p { grid-column: 2; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 2.6rem; }
    .split--reverse .split__media { order: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.6rem; }
}

/* Mobile navigation (covers tablet portrait & phones) */
@media (max-width: 880px) {
    .nav {
        position: fixed; left: 0; right: 0; top: 78px; margin: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: .5rem 0 1.4rem; box-shadow: var(--shadow-lg);
        transform: translateY(-14px); opacity: 0; visibility: hidden;
        max-height: calc(100vh - 78px); overflow-y: auto;
        transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
    }
    body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list > li { width: 100%; }
    .nav__link { display: block; padding: 1rem 24px; font-size: 1.08rem; border-radius: 0; color: var(--ink); }
    .nav__link::after { display: none; }
    .nav__link.is-active { background: var(--paper); }
    .nav__cta-item { display: block; padding: 1.2rem 24px 0; }
    .nav__cta-item .btn { width: 100%; }
    .site-header__cta { display: none; }
    .nav-toggle { display: flex; }
    .site-header.is-scrolled, .site-header { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* Large phone */
@media (max-width: 680px) {
    body { font-size: 16px; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .checklist--cols { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .hero__meta { gap: 1.6rem 2rem; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Small phone */
@media (max-width: 520px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .value-strip { grid-template-columns: 1fr; }
    .hero__actions .btn, .cta-band__inner .btn { width: 100%; }
    .btn-row { width: 100%; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
