/* AleaNCore — site styles
   Palette: navy + gold (hero, kept from the original site) and logo red #c00000.
   Fonts are self-hosted (no requests to third parties, no cookie banner needed). */

/* ── Fonts ─────────────────────────────────────────────── */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
/* Used only where Apple's Baskerville is not installed (Windows, Android, Linux). */
@font-face {
    font-family: "Libre Baskerville";
    src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Libre Baskerville";
    src: url("../fonts/libre-baskerville-latin-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Libre Baskerville";
    src: url("../fonts/libre-baskerville-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────── */
:root {
    --navy-950: #0b0f14;
    --navy-900: #0f1419;
    --navy-800: #1a2332;
    --navy-700: #243044;

    --gold: #e8b923;
    --gold-hover: #f5d654;
    --gold-soft: rgba(232, 185, 35, 0.15);
    --gold-ink: #7a5a00;          /* gold for text on light backgrounds */

    --red: #c00000;               /* sampled from the AleaNCore logo */
    --red-dark: #a80000;

    --paper: #f8f6f1;
    --paper-2: #efebe2;
    --white: #ffffff;

    --ink: #151b23;
    --ink-2: #3f4753;
    --ink-3: #5f6672;
    --rule: #ddd5c5;

    --on-dark: #f5f5f5;
    --on-dark-muted: #a7afbb;
    --on-dark-rule: rgba(255, 255, 255, 0.12);

    --serif: "Baskerville", "Libre Baskerville", "Baskerville Old Face", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --wrap: 1160px;
    --gutter: 24px;
    --radius: 4px;
    --nav-h: 72px;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

p + p { margin-top: 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 2000;
    background: var(--gold); color: var(--navy-900); padding: 10px 16px;
    font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-light :focus-visible, .section :focus-visible { outline-color: var(--red); }

/* ── Navigation ────────────────────────────────────────── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    height: var(--nav-h);
    background: rgba(15, 20, 25, 0.88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--on-dark-rule);
    color: var(--on-dark);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand-mark { width: 16px; height: 16px; border: 2px solid var(--gold); border-radius: 4px; transform: rotate(45deg); flex: none; }
.brand .wordmark { width: 118px; height: auto; color: var(--on-dark); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
    font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
    color: var(--on-dark-muted); transition: color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links .lang a {
    border: 1px solid var(--on-dark-rule); border-radius: 999px; padding: 5px 11px; color: var(--on-dark);
}
.nav-links .lang a:hover { border-color: var(--gold); }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--on-dark-rule); border-radius: var(--radius);
    color: var(--on-dark); padding: 9px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
.nav-toggle span + span { margin-top: 4px; }

/* ── Buttons & links ───────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 13px 24px; border-radius: var(--radius);
    font: 600 15px/1.3 var(--sans); letter-spacing: 0.01em; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--navy-900); color: var(--on-dark); border-color: var(--navy-900); }
.btn-dark:hover { background: var(--navy-700); border-color: var(--navy-700); }

.link-arrow {
    font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink);
    border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--red); border-bottom-color: var(--red); }
.dark .link-arrow { color: var(--on-dark); }
.dark .link-arrow:hover { color: var(--gold); border-bottom-color: var(--gold); }

.prose a, .faq a, .table a, .card a:not(.link-arrow) {
    color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold);
    text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose a:hover, .faq a:hover, .card a:not(.link-arrow):hover { color: var(--red); text-decoration-color: var(--red); }

/* ── Hero (kept from the original design: diamond mark, Zapfino wordmark, gold + navy) ── */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--navy-900); color: var(--on-dark);
    padding: calc(var(--nav-h) + 96px) 0 0; text-align: center;
}
.hero-backdrop {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, #1e3a5f 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 80%, #2d1f4e 0%, transparent 45%),
        radial-gradient(ellipse 50% 50% at 20% 60%, #1a2f1f 0%, transparent 40%),
        var(--navy-900);
}
.hero-noise {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; }
.orb-1 { width: 500px; height: 500px; background: var(--gold-soft); top: -120px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: rgba(45, 31, 78, 0.45); bottom: 10%; left: -80px; }
.orb-3 { width: 280px; height: 280px; background: rgba(192, 0, 0, 0.16); top: 48%; right: 12%; }

.logo-mark { width: 72px; height: 72px; margin: 0 auto 2rem; display: flex; align-items: center; justify-content: center; }
.logo-mark-inner { width: 52px; height: 52px; border: 3px solid var(--gold); border-radius: 14px; transform: rotate(45deg); }

.hero .wordmark { width: clamp(240px, 44vw, 520px); height: auto; margin: 0 auto; color: var(--on-dark); }

.hero-eyebrow {
    margin-top: 32px;
    font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.hero h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(32px, 4.4vw, 54px); line-height: 1.18; letter-spacing: -0.005em;
    max-width: 900px; margin: 20px auto 0;
}
.hero-lead {
    font-family: var(--serif); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.8;
    color: var(--on-dark-muted); max-width: 760px; margin: 24px auto 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.hero-actions.left { justify-content: flex-start; }


.hero-line { width: 1px; height: 88px; margin: 56px auto 0; background: linear-gradient(var(--gold), transparent); }

@media (prefers-reduced-motion: no-preference) {
    .orb { animation: orb-float 14s ease-in-out infinite; }
    .orb-2 { animation-delay: -5s; }
    .orb-3 { animation-delay: -9s; }
    .logo-mark-inner { animation: logo-pulse 3s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -24px) scale(1.05); }
    66% { transform: translate(-18px, 12px) scale(0.95); }
}
@keyframes logo-pulse {
    0%, 100% { opacity: 1; transform: rotate(45deg) scale(1); }
    50% { opacity: .65; transform: rotate(45deg) scale(1.06); }
}

/* Smaller dark header for inner pages */
.page-head { padding: calc(var(--nav-h) + 72px) 0 72px; text-align: left; }
.page-head .hero-eyebrow { margin-top: 0; }
.page-head h1 { margin: 16px 0 0; max-width: 820px; }
.page-head .hero-lead { margin: 20px 0 0; }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 112px 0; }
.section.alt { background: var(--paper-2); }
.section.white { background: var(--white); }
.dark { background: var(--navy-900); color: var(--on-dark); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--gold); }

.section h2 {
    font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.2;
    margin-top: 16px; max-width: 820px;
}
.lead { font-size: 19px; line-height: 1.7; color: var(--ink-2); max-width: 720px; margin-top: 20px; }
.dark .lead { color: var(--on-dark-muted); }
.section-head { margin-bottom: 56px; }

h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.3; }

.note { font-size: 14px; color: var(--ink-3); margin-top: 24px; }
.dark .note { color: var(--on-dark-muted); }

/* ── Grids & cards ─────────────────────────────────────── */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.point { border-top: 1px solid var(--rule); padding-top: 24px; }
.point .num { font: 700 13px/1 var(--sans); letter-spacing: .12em; color: var(--red); }
.point h3 { margin-top: 14px; }
.point p { margin-top: 12px; color: var(--ink-2); }

.card {
    background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 32px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); }
.card .meta { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--ink-3); }
.card .meta strong { color: var(--ink); font-weight: 600; }

.ticks { list-style: none; margin-top: 16px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ticks li + li { margin-top: 6px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--gold-ink); }
.dark .ticks li { color: var(--on-dark-muted); }
.dark .ticks li::before { background: var(--gold); }

.services { grid-template-columns: repeat(6, 1fr); }
.services .card { grid-column: span 2; }
.services .card:nth-child(4) { grid-column: 2 / span 2; }
.services .card:nth-child(5) { grid-column: 4 / span 2; }
.card .k { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }

/* Approach: layered diagram */
.approach { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.approach .layers { margin-top: 8px; }
.layers { display: flex; flex-direction: column; gap: 10px; }
.layer {
    border-radius: var(--radius); padding: 18px 22px; font-weight: 600; font-size: 15px;
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.layer small { font-weight: 400; font-size: 13px; }
.layer-top { background: var(--white); border: 1px solid var(--rule); color: var(--ink); width: 100%; }
.layer-mid { background: var(--gold); color: var(--navy-900); width: 88%; margin: 0 auto; padding-top: 12px; padding-bottom: 12px; }
.layer-base { background: var(--navy-900); color: var(--on-dark); width: 100%; padding-top: 26px; padding-bottom: 26px; }
.layer-base small { color: var(--on-dark-muted); }
.layers figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.approach-steps { display: grid; gap: 32px; }
.approach-steps h3 { margin-top: 10px; }
.approach-steps p { margin-top: 8px; color: var(--ink-2); }

/* Audience band */
.audience .point { border-top-color: var(--gold); }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--rule); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
    content: counter(step); display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
    border: 1px solid var(--gold-ink); color: var(--gold-ink); font: 600 16px/1 var(--serif);
    position: relative; margin-bottom: 22px;
}
.section.alt .steps li::before { background: var(--paper-2); }
.steps h3 { font-size: 21px; }
.steps .tag { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--red); }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

.info-boxes { margin-top: 64px; }
.info { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 28px 30px; }
.info h3 { font-size: 21px; margin-bottom: 10px; }
.info p { color: var(--ink-2); font-size: 16px; }

/* Projects */
.label-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.label {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
    padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); background: var(--paper);
}
.label.live { border-color: var(--gold-ink); color: var(--gold-ink); background: transparent; }
.label.founder { border-color: var(--red); color: var(--red); background: transparent; }
.figure-line {
    font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink);
    border-left: 2px solid var(--gold); padding-left: 16px; margin: 18px 0 4px;
}
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; list-style: none; }
.stack li { font-size: 12px; color: var(--ink-3); background: var(--paper-2); padding: 3px 9px; border-radius: 3px; }
.card .link-arrow { margin-top: 22px; align-self: flex-start; }
.projects-more { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }

/* Tables (stack into cards on small screens) */
.table-wrap { margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.table thead th { font: 700 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.table tbody th { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); width: 22%; }
.table td { color: var(--ink-2); }
.table tr.us th, .table tr.us td { background: rgba(232, 185, 35, 0.10); }
.table tr.us th { color: var(--ink); }
.dark .table th, .dark .table td { border-bottom-color: var(--on-dark-rule); }
.dark .table thead th { color: var(--gold); border-bottom-color: var(--gold); }
.dark .table tbody th { color: var(--on-dark); }
.dark .table td { color: var(--on-dark-muted); }

.privacy-points { margin-top: 48px; }
.privacy-points .point { border-top-color: var(--on-dark-rule); }
.privacy-points .point h3 { font-size: 20px; color: var(--on-dark); }
.privacy-points .point p { color: var(--on-dark-muted); font-size: 16px; }

/* About */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.portrait img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); filter: saturate(0.92); }
.portrait figcaption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.facts { display: grid; grid-template-columns: 180px 1fr; gap: 12px 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 16px; }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { color: var(--ink-2); }

/* Knowledge */
.definition {
    font-family: var(--serif); font-size: clamp(20px, 2.2vw, 25px); line-height: 1.6; color: var(--ink);
    border-left: 3px solid var(--gold); padding: 6px 0 6px 28px; max-width: 900px;
}
.faq { margin-top: 64px; max-width: 900px; }
.faq h3 { font-size: 28px; margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
    cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
    font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px;
    border-right: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details > div { padding: 0 44px 24px 0; color: var(--ink-2); }

.glossary { margin-top: 64px; }
.glossary h3 { font-size: 28px; margin-bottom: 24px; }
.glossary dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.glossary dt { font-weight: 600; }
.glossary dd { color: var(--ink-2); margin-top: 6px; font-size: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.contact-details { margin-top: 32px; font-size: 16px; display: grid; gap: 18px; }
.contact-details dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.contact-details dd { color: var(--on-dark); margin-top: 4px; }
.contact-details a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-details a:hover { color: var(--gold); }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 40px; display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form label .opt { font-weight: 400; color: var(--ink-3); }
.form input, .form textarea {
    width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink);
    border: 1px solid #c9c1b0; border-radius: var(--radius); padding: 12px 14px; background: var(--white);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold-ink); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .privacy-hint { font-size: 14px; color: var(--ink-3); }
.form .privacy-hint a { color: var(--ink-2); }
.form .btn { justify-self: start; }

/* Project detail pages */
.project-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; list-style: none; }
.project-index a {
    display: inline-block; font-size: 14px; text-decoration: none; color: var(--on-dark);
    border: 1px solid var(--on-dark-rule); border-radius: 999px; padding: 7px 14px;
}
.project-index a:hover { border-color: var(--gold); color: var(--gold); }

.project { display: grid; grid-template-columns: 300px 1fr; gap: 64px; padding: 88px 0; border-top: 1px solid var(--rule); }
.project:first-child { border-top: 0; }
.project-meta { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.project-meta h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; margin: 4px 0 20px; }
.project-meta dl { font-size: 14px; display: grid; gap: 12px; }
.project-meta dt { font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.project-meta dd { color: var(--ink-2); margin-top: 2px; }
.project-meta .link-arrow { display: inline-block; margin-top: 22px; }

.prose { max-width: 720px; color: var(--ink-2); }
.prose h3 { font-size: 22px; color: var(--ink); margin: 36px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 12px 0 0 0; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li + li { margin-top: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--gold-ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .figure-line { margin-top: 20px; }

.disclaimer {
    margin-top: 28px; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--red);
    padding: 16px 20px; font-size: 15px; color: var(--ink-2); border-radius: var(--radius);
}
.disclaimer strong { color: var(--red-dark); }

/* Legal pages */
.legal { padding: 88px 0 112px; }
.legal .prose h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); margin: 48px 0 14px; }
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose h3 { font-size: 19px; margin: 28px 0 8px; }
.legal address { font-style: normal; }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 80px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer .wordmark { width: 150px; color: var(--on-dark); margin-bottom: 18px; }
.footer h2 { font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
    margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--on-dark-rule);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1000px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .services { grid-template-columns: 1fr 1fr; }
    .services .card, .services .card:nth-child(4), .services .card:nth-child(5) { grid-column: auto; }
    .approach, .contact, .about { grid-template-columns: 1fr; gap: 48px; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
    .steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .project { grid-template-columns: 1fr; gap: 32px; }
    .project-meta { position: static; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy-900); border-bottom: 1px solid var(--on-dark-rule); padding: 8px var(--gutter) 20px;
    }
    .nav-links.open { display: flex; }
    .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--on-dark-rule); font-size: 14px; }
    .nav-links .lang { margin-top: 14px; }
    .nav-links .lang a { display: inline-block; padding: 6px 14px; border-bottom: 1px solid var(--on-dark-rule); }
}

@media (max-width: 680px) {
    :root { --gutter: 16px; }
    body { font-size: 16px; }
    .section { padding: 76px 0; }
    .hero { padding-top: calc(var(--nav-h) + 64px); }
    .hero-actions .btn { width: 100%; }
    .grid-3, .grid-2, .services, .steps, .glossary dl { grid-template-columns: 1fr; }
    .card { padding: 26px 22px; }
    .layer-mid { width: 92%; }
    .form { grid-template-columns: 1fr; padding: 26px 20px; }
    .facts { grid-template-columns: 1fr; gap: 4px; }
    .facts dd { margin-bottom: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }

    .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
    .table tr { border-bottom: 1px solid var(--rule); padding: 18px 0; }
    .dark .table tr { border-bottom-color: var(--on-dark-rule); }
    .table th, .table td { border: 0; padding: 4px 0; }
    .table tbody th { width: 100%; margin-bottom: 6px; }
    .table td::before { content: attr(data-label); display: block; font: 700 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
    .dark .table td::before { color: var(--gold); }
    .table tr.us { padding-left: 12px; padding-right: 12px; }
}

@media print {
    .nav, .hero-backdrop, .hero-noise, .orb, .hero-line, .form { display: none !important; }
    .hero, .dark, .footer { background: #fff !important; color: #000 !important; }
}
