/* ═══════════════════════════════════════════════════════════
   MEDIALAB — HOME (editorial / award-style)
   Self-contained: used only by templates/index.html.
   Palette comes from theme.css (--ml-*).
   ═══════════════════════════════════════════════════════════ */

:root {
    --ink: #021417;
    --ink-2: #052329;
    --paper: #eef5f3;
    --fg: #e9f3f1;
    --fg-muted: rgba(233, 243, 241, 0.62);
    --fg-faint: rgba(233, 243, 241, 0.34);
    --line: rgba(233, 243, 241, 0.12);
    --accent: var(--ml-400, #4FB3AE);
    --accent-2: var(--ml-200, #9FD3CD);
    --deep: var(--ml-900, #044550);

    --font: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;

    --gutter: clamp(16px, 4vw, 56px);
    --ease: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    background: var(--ink);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--accent); }

/* Film grain */
.grain {
    position: fixed; inset: -50%;
    width: 200%; height: 200%;
    pointer-events: none; z-index: 9000; opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1s steps(6) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -4%); }
    60% { transform: translate(-4%, -1%); }
    80% { transform: translate(3%, 3%); }
}

/* ── PRELOADER ────────────────────────────────────────────── */
.loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--ink);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: var(--gutter);
}
.loader-top, .loader-bottom {
    display: flex; justify-content: space-between; align-items: flex-end;
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted);
}
.loader-count {
    font-size: clamp(5rem, 18vw, 16rem); line-height: .8; font-weight: 600;
    letter-spacing: -0.06em; color: var(--fg);
    font-variant-numeric: tabular-nums;
}
.loader-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
html:not(.js-anim) .loader { display: none; }

/* ── CURSOR ───────────────────────────────────────────────── */
.cursor {
    position: fixed; top: 0; left: 0; z-index: 9500;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border-radius: 50%; background: var(--fg);
    pointer-events: none; mix-blend-mode: difference;
    display: grid; place-items: center;
    opacity: 0;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), opacity .3s;
    will-change: transform;
}
.has-cursor .cursor.is-live { opacity: 1; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor span {
    font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink); opacity: 0; transition: opacity .2s;
}
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--accent); }
.cursor.is-label span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 800;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 22px var(--gutter);
    transition: transform .6s var(--ease), background .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(2, 20, 23, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }

.logo { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.04em; }
.logo span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }

.nav-links { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 100px; background: rgba(233, 243, 241, .03); }
.nav-links a {
    position: relative; overflow: hidden; display: block;
    padding: 8px 16px; border-radius: 100px;
    font-size: .86rem; font-weight: 500; color: var(--fg-muted);
    transition: color .3s, background .3s;
}
.nav-links a:hover { color: var(--ink); background: var(--fg); }
.nav-links a.is-active { color: var(--ink); background: var(--fg); }

.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 20px; border-radius: 100px;
    background: var(--accent); color: var(--ink);
    font-size: .86rem; font-weight: 600;
    transition: background .3s;
}
.nav-cta:hover { background: var(--fg); }
.nav-cta i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.menu-btn {
    display: none; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer;
    position: relative;
}
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 790;
    background: var(--deep);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    padding: 110px var(--gutter) 40px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .8s var(--ease);
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu a {
    font-size: clamp(2.4rem, 11vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.05;
    transform: translateY(40px); opacity: 0;
    transition: transform .7s var(--ease-out), opacity .7s;
}
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: .25s; }
.mobile-menu a:last-child { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 28px; border-radius: 100px;
    font-size: .95rem; font-weight: 600; letter-spacing: -0.01em;
    border: 1px solid var(--line);
    transition: color .5s var(--ease), border-color .5s;
}
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--fg); border-radius: inherit;
    transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--fg); }
.btn svg { transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ── SECTION SHARED ───────────────────────────────────────── */
.section { position: relative; padding: clamp(96px, 14vw, 180px) var(--gutter); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.heading {
    font-size: clamp(2.4rem, 6.4vw, 6rem); font-weight: 600; line-height: .98; letter-spacing: -0.05em;
}
.sub { max-width: 440px; color: var(--fg-muted); font-size: 1.05rem; }

/* line-mask reveals */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 140px var(--gutter) 40px;
    overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, var(--ink) 0%, transparent 38%), linear-gradient(to bottom, rgba(2, 20, 23, .7) 0%, transparent 25%);
}
.hero > *:not(canvas) { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
    padding: 8px 16px 8px 12px; margin-bottom: 32px;
    border: 1px solid var(--line); border-radius: 100px;
    background: rgba(2, 20, 23, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: .82rem; color: var(--fg-muted);
}
.hero-badge a { color: var(--fg); border-bottom: 1px solid currentColor; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }

.hero-headline {
    font-size: clamp(3.3rem, 12.4vw, 13.5rem);
    font-weight: 600; line-height: .86; letter-spacing: -0.065em;
    margin-left: -.04em;
}
.hero-headline .serif { color: var(--accent-2); letter-spacing: -0.03em; padding-right: .06em; }
.hero-headline .indent { padding-left: 12vw; }

.hero-foot {
    display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 32px;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-sub { max-width: 440px; min-height: 3.2em; font-size: 1.1rem; color: var(--fg-muted); }
.typewriter-cursor { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint); }
.scroll-line { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee { padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
html:not(.js-anim) .marquee-track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
    display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px);
    font-size: clamp(3rem, 9vw, 8.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px var(--fg-faint);
}
.marquee-item .highlight { color: var(--fg); -webkit-text-stroke: 0; }
.marquee-dot { flex: none; width: .22em; height: .22em; border-radius: 50%; background: var(--accent); }

/* ── SERVICES ─────────────────────────────────────────────── */
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(56px, 8vw, 100px); }
.services-header .eyebrow { grid-column: 1 / -1; }
.services-header .sub { justify-self: end; }

.service-list { border-top: 1px solid var(--line); list-style: none; }
.service-row {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: 80px 1.1fr 1fr 56px; gap: 24px; align-items: center;
    padding: clamp(24px, 3vw, 40px) 0;
    border-bottom: 1px solid var(--line);
    transition: padding .6s var(--ease), color .5s var(--ease);
}
.service-row::before {
    content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
    background: var(--accent);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform .6s var(--ease);
}
.service-num { font-size: .85rem; font-weight: 500; color: var(--fg-faint); font-variant-numeric: tabular-nums; transition: color .5s; }
.service-row h3 { font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; transition: transform .6s var(--ease); }
.service-row p { color: var(--fg-muted); max-width: 420px; transition: color .5s; }
.service-arrow {
    width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line);
    display: grid; place-items: center; transition: transform .6s var(--ease), border-color .5s, background .5s;
}
.service-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) {
    .service-row:hover { color: var(--ink); }
    .service-row:hover::before { transform: scaleY(1); transform-origin: top; }
    .service-row:hover h3 { transform: translateX(16px); }
    .service-row:hover p, .service-row:hover .service-num { color: rgba(2, 20, 23, .72); }
    .service-row:hover .service-arrow { background: var(--ink); color: var(--accent); border-color: var(--ink); transform: rotate(-45deg); }
}

/* Floating icon preview that follows the cursor over the list */
.service-preview {
    position: fixed; top: 0; left: 0; z-index: 50; pointer-events: none;
    width: 220px; height: 220px; margin: -110px 0 0 -110px;
    border-radius: 50%; background: var(--ink); color: var(--accent);
    display: grid; place-items: center;
    transform: scale(0); transition: transform .5s var(--ease);
}
.service-preview.is-on { transform: scale(1); }
.service-preview svg { position: absolute; width: 84px; height: 84px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6) rotate(-20deg); transition: opacity .35s, transform .5s var(--ease-out); }
.service-preview svg.is-active { opacity: 1; transform: none; }
@media (hover: none), (max-width: 900px) { .service-preview { display: none; } }

/* ── STATS ────────────────────────────────────────────────── */
.stats { padding: 0 var(--gutter) clamp(96px, 12vw, 160px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat-item { padding: 32px 24px 0 0; }
.stat-item + .stat-item { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-item h3 { font-size: clamp(3.4rem, 8vw, 8rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.stat-item h3 sup { font-size: .4em; vertical-align: top; position: relative; top: .25em; color: var(--accent); margin-left: .04em; }
.stat-item p { margin-top: 10px; color: var(--fg-muted); font-size: .92rem; }

/* ── PROCESS (horizontal pin) ─────────────────────────────── */
.process { background: var(--paper); color: var(--ink); padding: 0; overflow: hidden; }
.process-track { display: flex; align-items: stretch; width: max-content; min-height: 100vh; min-height: 100svh; }
.process-intro, .process-card { flex: none; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(100px, 12vh, 140px) var(--gutter) clamp(40px, 8vh, 80px); }
.process-intro { width: 48vw; }
.process-intro .eyebrow { color: rgba(2, 20, 23, .6); }
.process-intro .sub { color: rgba(2, 20, 23, .62); }
.process-intro .heading { margin: 32px 0; }
.process-card { width: 40vw; border-left: 1px solid rgba(2, 20, 23, .12); }
.process-num {
    font-size: clamp(8rem, 18vw, 18rem); font-weight: 700; line-height: .8; letter-spacing: -0.07em;
    color: transparent; -webkit-text-stroke: 1.5px var(--deep);
}
.process-card:last-child .process-num { color: var(--ml-500, #199396); -webkit-text-stroke: 0; }
.process-card h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-bottom: 18px; }
.process-card p { color: rgba(2, 20, 23, .64); max-width: 400px; font-size: 1.05rem; }
.process-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 2px; background: rgba(2, 20, 23, .1); }
.process-progress i { display: block; height: 100%; background: var(--deep); transform-origin: left; transform: scaleX(0); }

/* ── ABOUT ────────────────────────────────────────────────── */
.about-top { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: clamp(56px, 8vw, 96px); }
.about-top .heading { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.about-body { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.about-text-wrap { grid-column: 2; }
.about-text { font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: .8em; }
.about-text strong { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-2); }
.about-text .w { display: inline; }
.about-text-wrap .btn { margin-top: 16px; }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(64px, 9vw, 120px); }
.about-stat {
    position: relative; overflow: hidden; aspect-ratio: 1 / 1.05;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 24px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line);
    transition: background .5s var(--ease), color .5s;
}
.about-stat::after { content: ''; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 100%; border-radius: 50%; background: var(--accent); z-index: 0; transition: top .7s var(--ease); }
.about-stat > * { position: relative; z-index: 1; }
.about-stat h4 { font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -0.06em; line-height: 1; }
.about-stat p { color: var(--fg-muted); font-size: .92rem; transition: color .5s; }
@media (hover: hover) {
    .about-stat:hover { color: var(--ink); }
    .about-stat:hover::after { top: -20%; }
    .about-stat:hover p { color: rgba(2, 20, 23, .7); }
}

/* ── NEWS ─────────────────────────────────────────────────── */
.news-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 80px); }
.news-header .heading { margin-top: 20px; }
.view-all-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; font-weight: 500; position: relative; }
.view-all-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.view-all-link:hover::after { transform: scaleX(0); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.news-card { display: flex; flex-direction: column; }
.news-media { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--ink-2); }
.news-thumb { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.news-thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--fg-faint); background: linear-gradient(135deg, var(--ink-2), var(--deep)); }
.news-thumb-placeholder svg { width: 48px; height: 48px; }
.news-tag { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 100px; background: var(--fg); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.news-body { padding-top: 20px; }
.news-body h3 { font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px; }
.news-body h3 span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.news-excerpt { color: var(--fg-muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 8px; margin-top: 14px; font-size: .8rem; color: var(--fg-faint); }
.news-card:hover .news-thumb { transform: scale(1); }
.news-card:hover h3 span { background-size: 100% 1px; }
.news-empty { grid-column: 1 / -1; padding: 64px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--fg-muted); font-family: var(--serif); font-style: italic; font-size: 1.6rem; }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { text-align: center; overflow: hidden; }
.cta-title { font-size: clamp(2.8rem, 9vw, 9.5rem); font-weight: 600; line-height: .92; letter-spacing: -0.06em; }
.cta-title .serif { color: var(--accent); }
.cta-sub { margin: 32px auto 56px; max-width: 460px; color: var(--fg-muted); font-size: 1.08rem; }
.cta-orb {
    position: relative; display: inline-grid; place-items: center;
    width: clamp(150px, 16vw, 210px); aspect-ratio: 1; border-radius: 50%;
    background: var(--accent); color: var(--ink);
    font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
    transition: background .4s;
}
.cta-orb:hover { background: var(--fg); }
.cta-orb span { display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }
.cta-orb::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--line); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer { padding: clamp(64px, 8vw, 100px) var(--gutter) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: var(--fg-muted); font-size: .94rem; }
.footer-col h4 { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { position: relative; color: var(--fg-muted); transition: color .3s; }
.footer-col a:hover { color: var(--fg); }
.footer-mark {
    margin: clamp(48px, 7vw, 96px) 0 0; text-align: center; white-space: nowrap;
    font-size: 21.5vw; font-weight: 700; line-height: .78; letter-spacing: -0.075em;
    color: #0b2a30;
    user-select: none;
}
.footer-mark span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.04em; color: var(--deep); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--fg-faint); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .service-row { grid-template-columns: 56px 1fr 56px; }
    .service-row p { grid-column: 2 / 3; grid-row: 2; }
    .service-arrow { grid-row: 1 / 3; grid-column: 3; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav { grid-template-columns: 1fr auto; }
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .nav-cta { display: none; }

    .hero-foot { grid-template-columns: 1fr; gap: 24px; }
    .hero-headline .indent { padding-left: 0; }
    .scroll-indicator { display: none; }

    .services-header, .about-top, .about-body { grid-template-columns: 1fr; gap: 24px; }
    .services-header .sub { justify-self: start; }
    .about-text-wrap { grid-column: 1; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item, .stat-item + .stat-item { padding: 28px 16px 28px 0; border-left: 0; }
    .stat-item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
    .stat-item:nth-child(n+3) { border-top: 1px solid var(--line); }

    /* process becomes a vertical stack */
    .process { padding: clamp(80px, 14vw, 120px) 0; }
    .process-track { flex-direction: column; width: 100%; min-height: 0; }
    .process-intro, .process-card { width: 100%; padding: 0 var(--gutter); }
    .process-intro { padding-bottom: 48px; }
    .process-card { border-left: 0; border-top: 1px solid rgba(2, 20, 23, .12); padding-top: 36px; padding-bottom: 36px; gap: 24px; }
    .process-num { font-size: clamp(5rem, 26vw, 9rem); }
    .process-progress { display: none; }

    .about-stats { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .service-row { grid-template-columns: 1fr 44px; gap: 14px; }
    .service-num { grid-column: 1 / -1; }
    .service-row h3 { grid-column: 1; grid-row: 2; }
    .service-row p { grid-column: 1 / -1; grid-row: 3; }
    .service-arrow { grid-column: 2; grid-row: 2; width: 44px; height: 44px; }
    .about-stat { aspect-ratio: auto; min-height: 150px; padding: 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta-row .btn { flex: 1; justify-content: center; }
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .grain { display: none; }
}
