/* ==========================================================================
   MLTECH — Design system 2026
   Night-blue direction: deep navy, warm cream type, one vermilion signal colour.
   ========================================================================== */

:root {
    --night: #0b1526;
    --night-2: #101d33;
    --night-3: #16263f;
    --deep: #070e1b;
    --cream: #ece9e2;

    --bg: var(--night);
    --surface: var(--night-2);
    --raised: var(--night-3);
    --text: var(--cream);
    --muted: #9ba5b5;
    --dim: #6c778a;
    --line: rgba(236, 233, 226, .09);
    --line-2: rgba(236, 233, 226, .18);
    --accent: #ec5a32;
    --accent-ink: #fff;

    /* aliases used by the project stages */
    --ink-2: var(--night-2);
    --ink-3: var(--night-3);

    --f-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --f-serif: "Instrument Serif", Georgia, serif;
    --f-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius: 22px;
    --max: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);

    color-scheme: dark;
}

/* Deeper scope — used for the work band and footer */
.dark {
    --bg: var(--deep);
    --surface: #0c1729;
    --raised: var(--night-2);
    background: var(--bg);
    color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--f-body); font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad-text { color: inherit; }
.accent { color: var(--accent); }

/* Subtle paper grain */
.grain {
    pointer-events: none; position: fixed; inset: 0; z-index: 100; opacity: .06; mix-blend-mode: overlay;
    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");
}

/* ---------- Logo (masked PNG so it takes the current text colour) ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo-mark, .logo-word, .hero-mark { background: currentColor; }
.logo-mark {
    display: block; width: 50px; aspect-ratio: 467 / 229;
    -webkit-mask: url("../logos/mltech-mark.png") center / contain no-repeat; mask: url("../logos/mltech-mark.png") center / contain no-repeat;
}
.logo-word {
    display: block; width: 88px; aspect-ratio: 424 / 74;
    -webkit-mask: url("../logos/mltech-word.png") center / contain no-repeat; mask: url("../logos/mltech-word.png") center / contain no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--text); color: var(--bg); font-weight: 500; font-size: 15.5px; letter-spacing: -.01em;
    transition: transform 160ms var(--ease-out), color 180ms ease; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit;
    transform: translateY(101%); transition: transform 220ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .btn:hover::before { transform: none; }
    .btn:hover { color: var(--accent-ink); }
    .btn:hover svg { transform: translateX(4px); }
}
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; padding: 0 var(--gutter); }
.header .bar {
    pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    max-width: calc(var(--max) - 2 * var(--gutter) + 40px); margin: 0 auto; padding: 9px 9px 9px 20px;
    border-radius: 999px; transition: background .4s, box-shadow .4s;
}
.header.scrolled .bar {
    background: rgba(11, 21, 38, .78); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, .6);
}
.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 8px 14px; font-size: 14.5px; color: var(--muted); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .nav a:hover { color: var(--text); }
    .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.lang button {
    position: relative; z-index: 1; background: none; border: 0; cursor: pointer; padding: 6px 11px;
    font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--muted); border-radius: 999px; transition: color .3s;
}
.lang button[aria-pressed="true"] { color: var(--bg); }
.lang::before {
    content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--text);
    transition: transform 260ms var(--ease-in-out);
}
html[lang="en"] .lang::before { transform: translateX(100%); }

.menu-btn {
    display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--text);
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn { -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(.94); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--bg); border-radius: 2px; transition: transform 240ms var(--ease-out); }
.header.open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
.header.open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.m-nav {
    pointer-events: auto; display: none; flex-direction: column; margin: 10px auto 0; padding: 12px 18px 18px;
    transform-origin: top right;
    border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -24px rgba(0,0,0,.6);
}
.m-nav a:not(.btn) { padding: 15px 4px; font-family: var(--f-display); font-weight: 500; font-size: 24px; letter-spacing: -.03em; border-bottom: 1px solid var(--line); }
.m-nav .btn { margin-top: 16px; }

@media (max-width: 900px) {
    .nav, .header .btn-cta-head { display: none; }
    .menu-btn { display: inline-flex; }
    .m-nav {
        display: flex; opacity: 0; visibility: hidden; transform: scale(.96) translateY(-6px);
        transition: opacity 150ms ease, transform 150ms ease, visibility 0s 150ms;
    }
    .header.open .m-nav {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
    }
    .header.open .bar { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
}
@media (max-width: 380px) { .logo-word { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 80px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: calc((100% - 0px) / 12) 100%, calc(100% / 12) 100%; opacity: .45;
    -webkit-mask: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent); mask: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
}
#flux { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.hero-inner > * { min-width: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.045em; line-height: .98; margin: 0; }
.hero h1 { font-size: clamp(46px, 7.6vw, 124px); margin: 0 0 30px; }
.hero h1 .serif { letter-spacing: -.03em; color: var(--accent); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 900ms var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 80ms; }
.hero h1 .line:nth-child(3) > span { animation-delay: 160ms; }
@keyframes rise { to { transform: none; } }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 540px; margin: 0 0 36px; }
.lead strong { color: var(--text); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.fade-up { opacity: 0; transform: translateY(12px); animation: fadeUp 700ms var(--ease-out) forwards; }
.d1 { animation-delay: 280ms; } .d2 { animation-delay: 360ms; } .d3 { animation-delay: 440ms; }
.hero-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 30px 0 0; padding-top: 22px; max-width: 640px;
    border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 18px; }
.hero-meta span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.hero-tg { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 15px; color: var(--muted); transition: color 180ms ease; }
.hero-tg svg { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .hero-tg:hover { color: var(--text); }
    .hero-tg:hover svg { transform: translate(2px, -2px); }
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Hero visual: the infinity mark, drawn in ink */
.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; perspective: 1200px; }
.orb { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; transform-style: preserve-3d; }
.orb-ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px solid var(--line-2); }
.orb-ring.r2 { inset: 22%; border-style: dashed; border-color: var(--line); animation: spin 80s linear infinite; }
.orb-ring.r3 { inset: -2%; border-color: var(--line); }
.orb-ring.r1::before, .orb-ring.r3::before {
    content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; top: 50%; left: -4px; margin-top: -3.5px; background: var(--accent);
}
.orb-ring.r3::before { background: var(--text); }
.orb-ring.r1 { animation: spin 18s linear infinite; }
.orb-ring.r3 { animation: spin 32s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-mark {
    position: relative; width: 74%; aspect-ratio: 467 / 229; transform: translateZ(50px); color: var(--text);
    -webkit-mask: url("../logos/mltech-mark.png") center / contain no-repeat; mask: url("../logos/mltech-mark.png") center / contain no-repeat;
}

@media (max-width: 980px) {
    .hero { padding-top: 110px; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { max-width: 420px; width: 100%; margin: 0 auto; order: -1; }
}
@media (max-width: 560px) {
    .hero-visual { max-width: 300px; }
}

/* ---------- Trust marquee ---------- */
.trust { padding: 34px 0; border-block: 1px solid var(--line); }
.trust-label { text-align: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 24px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 90px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 45px)); } }
.tl { display: flex; align-items: center; gap: 12px; height: 44px; opacity: .6; transition: opacity .3s, filter .3s; filter: grayscale(1); white-space: nowrap; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .tl:hover { opacity: 1; } }
.tl img { height: 100%; width: auto; }
.tl .t-edog { filter: brightness(0) invert(1); }
.tl .t-itineria { height: 28px; filter: brightness(0) invert(1); }
.tl .t-pct { height: 36px; }
.tl .t-flash { height: 48px; }
.tl span { font-weight: 600; font-size: 15px; }
.wm-vinea { font-family: "Bodoni Moda", Didot, serif; font-size: 26px; letter-spacing: .08em; font-weight: 500; }
.wm-gest { font-family: Arial, Helvetica, sans-serif; font-size: 24px; letter-spacing: -.02em; }
.wm-gest b { color: #e4605e; font-weight: 400; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 170px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 30px; align-items: end; margin-bottom: clamp(48px, 6vw, 84px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.section h2 { font-size: clamp(36px, 5.4vw, 80px); max-width: 14ch; }
.section h2 .serif { color: var(--accent); }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.card {
    --mx: 50%; --my: 50%;
    position: relative; overflow: hidden; border-radius: var(--radius); padding: 32px;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 250ms ease, transform 250ms var(--ease-out);
}
.card::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 250ms ease; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(232, 70, 30, .07), transparent 50%);
}
@media (hover: hover) and (pointer: fine) {
    .card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -40px rgba(0,0,0,.7); }
    .card:hover::before { opacity: 1; }
    .card:hover .ico { background: var(--accent); }
}
.card::after { display: none; }
.card h3 { font-size: 23px; letter-spacing: -.03em; margin: 26px 0 10px; line-height: 1.1; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--raised); transition: background 250ms ease; }
.ico svg { width: 22px; height: 22px; stroke: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span { font-family: var(--f-mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.b-1 { grid-column: span 4; } .b-2, .b-3, .b-4, .b-5, .b-third { grid-column: span 2; } .b-half { grid-column: span 3; } .b-6 { grid-column: span 6; }
.b-1 { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; background: var(--deep); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.b-1 .ico { background: var(--accent); }
.b-1 h3 { font-size: clamp(28px, 2.8vw, 40px); max-width: 15ch; }
.code-win {
    position: absolute; right: 26px; top: 50%; translate: 0 -50%; width: 40%; border-radius: 14px; padding: 16px 18px;
    font-family: var(--f-mono); font-size: 12.5px; line-height: 1.75; background: #1d1d1a; color: #a5a39b;
    box-shadow: inset 0 0 0 1px rgba(242,240,235,.1);
}
.code-win .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.code-win .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a36; }
.k { color: #f2f0eb; } .s { color: #e8a48f; } .f { color: #d8d5cc; text-decoration: underline; text-decoration-color: rgba(232,70,30,.6); text-underline-offset: 3px; } .c { color: #6f6d66; }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 641px) { .b-1 > div:first-child, .b-1 > .tags { max-width: 54%; position: relative; z-index: 1; } }
.b-6 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.stack-flow { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.stack-flow span { font-family: var(--f-mono); font-size: 12px; padding: 10px 14px; border-radius: 10px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.stack-flow em { width: 30px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.stack-flow em::after { content: ""; position: absolute; top: -1px; width: 8px; height: 3px; border-radius: 3px; background: var(--accent); animation: packet 1.6s linear infinite; }
@keyframes packet { from { left: -8px; } to { left: 100%; } }
@media (max-width: 1000px) {
    .b-1, .b-6 { grid-column: span 6; } .b-2, .b-3, .b-4, .b-5, .b-half { grid-column: span 3; } .b-third { grid-column: span 2; }
}
@media (max-width: 820px) {
    .b-third { grid-column: span 6; }
    .b-6 { grid-template-columns: minmax(0, 1fr); } .stack-flow { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .b-2, .b-3, .b-4, .b-5, .b-third, .b-half { grid-column: span 6; }
    .code-win { position: relative; right: auto; top: auto; translate: none; width: 100%; margin-top: 24px; }
    .stack-flow { gap: 8px; } .stack-flow em { display: none; }
    .card { padding: 26px; }
}

/* ---------- Work (dark band, stacked showcase cards) ---------- */
.projects { border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0; }
.projects .section-head h2 .serif { color: var(--accent); }
.stack { display: grid; gap: 28px; }
.proj {
    --brand: #e8461e; --brand-2: #f2f0eb; --brand-ink: #fff; --panel: #1a1a18;
    position: sticky; top: calc(96px + var(--i) * 14px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(680px, 82vh);
    border-radius: 28px; overflow: hidden; background: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--line), 0 -30px 80px -30px rgba(0,0,0,.9);
    transform-origin: 50% 0;
}
.proj-shade { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }
.proj > * { min-width: 0; }
.proj-body { padding: clamp(26px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proj-cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.proj h3 { font-size: clamp(34px, 3.8vw, 58px); }
.proj-tagline { font-family: var(--f-serif); font-style: italic; font-size: clamp(21px, 2vw, 28px); color: var(--brand-2); margin: -8px 0 0; line-height: 1.2; }
.proj-desc { color: var(--muted); margin: 0; }
.scope { list-style: none; margin: 0; padding: 0; display: grid; }
.scope li { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; padding: 10px 0; border-top: 1px solid var(--line); }
.scope li::before { content: "→"; flex: none; font-family: var(--f-mono); font-size: 13px; color: var(--brand-2); }
.proj-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.proj-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; padding: 12px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background 200ms ease, color 200ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.proj-link:active { transform: scale(.97); }
.proj-link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .proj-link:hover { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
    .proj-link:hover svg { transform: translate(3px, -3px); }
}

.stage {
    position: relative; overflow: hidden; display: grid; place-items: center; padding: clamp(24px, 3vw, 44px);
    background: radial-gradient(110% 80% at 85% 0%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 62%), var(--panel);
}
.stage::before {
    content: ""; position: absolute; inset: 0; opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 44px 44px;
    -webkit-mask: radial-gradient(circle at 50% 40%, #000, transparent 70%); mask: radial-gradient(circle at 50% 40%, #000, transparent 70%);
}
.browser {
    position: relative; width: 100%; max-width: 520px; border-radius: 16px; overflow: hidden; background: #fff; color: #111;
    box-shadow: 0 50px 100px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.12);
    transform: rotate(-2deg); transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .proj:hover .browser { transform: rotate(0) scale(1.02); } }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #f1f1f1; border-bottom: 1px solid #e3e3e3; }
.browser-bar .dots { display: flex; gap: 6px; } .browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d4; }
.browser-bar .url { flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 11px; color: #555; background: #fff; border-radius: 8px; padding: 5px 10px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.browser-bar .url svg { width: 11px; height: 11px; flex: none; }
.site { padding: 26px 26px 30px; min-height: 300px; position: relative; }
.site-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.site-nav .links { display: flex; gap: 8px; }
.site-nav .links i { display: block; width: 34px; height: 6px; border-radius: 6px; background: currentColor; opacity: .15; }
.site-h { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 14px; max-width: 15ch; }
.site-btn { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }

.p-edog { --brand: #e65708; --brand-2: #ff9a5c; --brand-ink: #fff; --panel: #1b1210; }
.p-pct { --brand: #1f4e9a; --brand-2: #f6a531; --brand-ink: #fff; --panel: #0e1526; }
.p-itin { --brand: #4f46e5; --brand-2: #c7c9f5; --brand-ink: #fff; --panel: #131420; }
.p-gest { --brand: #e4605e; --brand-2: #f4a3a1; --brand-ink: #fff; --panel: #1a1213; }
.p-flash { --brand: #2e3032; --brand-2: #cfd3d8; --brand-ink: #fff; --panel: #141618; }
.p-vinea { --brand: #c9a96e; --brand-2: #e3c995; --brand-ink: #111; --panel: #14110c; }

.pct-stage { display: grid; gap: 14px; width: 100%; max-width: 520px; position: relative; }
.edog-app { color: #1f2937; }
.edog-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--brand); color: #fff; }
.edog-top img { width: 40px; height: auto; flex: none; }
.edog-top b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.02em; line-height: 1.1; }
.edog-top span { font-size: 11.5px; opacity: .9; }
.edog-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-family: var(--f-mono); font-size: 10.5px; white-space: nowrap; }
.edog-live > i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.edog-map { position: relative; line-height: 0; }
.edog-map svg { width: 100%; height: auto; aspect-ratio: 480 / 270; display: block; }
.edog-map .dot { fill: #e65708; stroke: #fff; stroke-width: 2; }
.edog-map .dot.idle { fill: #9aa3ad; }
.edog-map .ring { fill: none; stroke: #e65708; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: blip 2.2s ease-out infinite; }
@keyframes blip { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.edog-tip { position: absolute; left: 33%; top: 12%; line-height: 1.3; padding: 8px 11px; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); font-size: 11px; color: #4b5563; }
.edog-tip::after { content: ""; position: absolute; left: 14px; bottom: -5px; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); }
.edog-tip b { display: block; font-size: 12px; color: #111; }
.edog-legend { display: flex; align-items: center; gap: 14px; padding: 10px 16px; font-size: 11px; color: #4b5563; border-top: 1px solid #eceff1; background: #fff; }
.edog-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.edog-legend i { width: 8px; height: 8px; border-radius: 50%; background: #9aa3ad; }
.edog-legend i.on { background: #e65708; }
.edog-legend .edog-geo { margin-left: auto; font-family: var(--f-mono); font-size: 10px; color: #6b7280; }
.pct-id { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 18px; background: #fff; color: #0e1526; }
.pct-id img { width: 66px; height: 66px; flex: none; }
.pct-id b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; line-height: 1.15; }
.pct-id span { font-size: 12.5px; opacity: .7; }
.net { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.net svg { width: 100%; height: auto; display: block; }
.net .flow { stroke-dasharray: 4 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.net text { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); }
.net text.on { fill: var(--night); font-weight: 500; }
.pct-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pct-row div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-size: 12px; line-height: 1.4; color: var(--muted); }
.pct-row svg { display: block; width: 18px; height: 18px; stroke: var(--muted); margin-bottom: 10px; }
.pct-row b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--text); letter-spacing: -.02em; margin-bottom: 2px; }

.site-itin { background: #fff; }
.site-itin .site-logo { height: 20px; width: auto; filter: brightness(0); }
.itin-search { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px -14px rgba(79, 70, 229, .5), 0 0 0 1px #e6e6f2; font-size: 12px; color: #555; margin-bottom: 16px; }
.itin-search span:first-of-type { flex: 1; }
.itin-search .site-btn { padding: 8px 12px; }
.itin-days { display: grid; gap: 8px; }
.itin-days div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; box-shadow: 0 0 0 1px #ececf0; font-size: 12px; }
.itin-days b { font-family: var(--f-mono); font-size: 10.5px; padding: 3px 7px; border-radius: 6px; background: var(--brand); color: #fff; }

.site-gest { background: #fafafa; }
.gest-head { display: flex; align-items: baseline; gap: 8px; }
.crm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.crm .col { background: #efefef; border-radius: 10px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.crm .col > span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #888; padding: 2px 4px; }
.crm .lead-c { background: #fff; border-radius: 8px; padding: 8px; font-size: 11px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.crm .lead-c i { display: block; height: 4px; width: 60%; background: #e4605e; border-radius: 4px; margin-top: 6px; opacity: .6; }
.uptime { display: flex; gap: 3px; margin-top: 4px; }
.uptime i { width: 5px; height: 18px; border-radius: 2px; background: #3ccf74; }

.site-vinea { background: #0d0b08; color: #f3ead8; text-align: center; padding-top: 22px; }
.site-vinea .site-nav { justify-content: center; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.v-logo { font-family: "Bodoni Moda", Didot, serif; font-size: 30px; letter-spacing: .1em; font-weight: 500; line-height: 1; }
.v-slogan { font-size: 8px; letter-spacing: .3em; opacity: .7; }
.v-search { margin: 0 auto 20px; max-width: 320px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(201, 169, 110, .4); font-size: 9.5px; letter-spacing: .12em; color: #c9a96e; text-align: left; }
.v-bottles { display: flex; justify-content: center; align-items: flex-end; gap: 16px; height: 130px; }
.v-bottles i { display: block; width: 26px; border-radius: 9px 9px 5px 5px; position: relative; background: linear-gradient(90deg, #2a1810, #5a2a1a 50%, #2a1810); }
.v-bottles i::before { content: ""; position: absolute; left: 50%; top: -34px; width: 9px; height: 36px; margin-left: -4.5px; border-radius: 3px 3px 0 0; background: inherit; }
.v-bottles i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 40%; height: 26px; background: #f3ead8; border-radius: 2px; box-shadow: inset 0 0 0 1px #c9a96e; }
.v-bottles i:nth-child(1) { height: 92px; } .v-bottles i:nth-child(2) { height: 110px; background: linear-gradient(90deg, #13240f, #2e4a22 50%, #13240f); } .v-bottles i:nth-child(3) { height: 100px; background: linear-gradient(90deg, #6b5a1d, #c9a96e 50%, #6b5a1d); } .v-bottles i:nth-child(4) { height: 88px; }
.v-cats { display: flex; justify-content: center; gap: 14px; margin-top: 18px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #c9a96e; }

.site-flash { background: #fff; color: #2e3032; }
.site-flash .f-logo { width: 58px; height: auto; }
.f-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.f-cats span { font-size: 10.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #f1f2f3; }
.f-cats span:first-child { background: #2e3032; color: #fff; }
.f-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.f-cards div { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px #ececee; }
.f-cards i { display: block; height: 58px; background: linear-gradient(135deg, #d9dcdf, #bfc4c9); }
.f-cards div:nth-child(2) i { background: linear-gradient(135deg, #e3d9cc, #c9b9a3); }
.f-cards div:nth-child(3) i { background: linear-gradient(135deg, #cfd9d3, #a9bdb1); }
.f-cards b { display: block; height: 6px; width: 70%; margin: 9px 8px 6px; border-radius: 4px; background: #2e3032; opacity: .7; }
.f-cards em { display: block; height: 5px; width: 45%; margin: 0 8px 10px; border-radius: 4px; background: #2e3032; opacity: .25; }

@media (max-width: 960px) {
    .proj { grid-template-columns: minmax(0, 1fr); position: relative; top: auto; min-height: 0; }
    .stage { order: -1; min-height: 340px; }
}
@media (max-width: 480px) {
    .site { padding: 20px 18px 24px; min-height: 0; }
    .pct-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pct-row div { padding: 10px; font-size: 11px; }
    .edog-legend .edog-geo { display: none; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.step { position: relative; padding: 30px 26px 10px 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); margin-bottom: 60px; }
.step h3 { font-size: 26px; letter-spacing: -.035em; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step small { display: inline-block; margin-top: 18px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding: 4px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-in-out) var(--d, 0s); }
.step + .step::before { left: -1px; }
.step.in::before { transform: scaleX(1); }
@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step:nth-child(3) { padding-left: 0; border-left: 0; }
    .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
    .step-n { margin-bottom: 30px; }
}
@media (max-width: 520px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .step, .step + .step { padding: 26px 0 8px; border-left: 0; }
    .step + .step { border-top: 1px solid var(--line); margin-top: 16px; }
}

/* ---------- Figures ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-2); }
.stat { padding: 34px 26px 30px 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(44px, 5vw, 76px); font-weight: 500; letter-spacing: -.055em; line-height: 1; margin-bottom: 14px; }
.stat p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 24ch; }
@media (max-width: 900px) {
    .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
    .why { grid-template-columns: minmax(0, 1fr); }
    .stat, .stat + .stat { padding: 26px 0; border-left: 0; }
    .stat + .stat { border-top: 1px solid var(--line); }
}

/* ---------- Big marquee band ---------- */
.mega-wrap { overflow: hidden; padding: 20px 0 0; }
.mega {
    font-family: var(--f-display); font-weight: 500; letter-spacing: -.06em; line-height: .95; white-space: nowrap;
    font-size: clamp(64px, 14vw, 230px); display: flex; gap: .35em; width: max-content; animation: marquee 46s linear infinite;
}
.mega span { color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.mega span:nth-child(even) { color: var(--text); -webkit-text-stroke: 0; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact h2 { font-size: clamp(42px, 6vw, 92px); max-width: 11ch; }
.contact-lead { color: var(--muted); font-size: 18px; margin: 26px 0 34px; max-width: 460px; }
.channels { display: grid; border-top: 1px solid var(--line-2); }
.channel { display: flex; align-items: center; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line-2); -webkit-tap-highlight-color: transparent; }
.channel > :not(.arrow) { transition: transform 250ms var(--ease-out); }
.channel:active > :not(.arrow) { transform: scale(.98); }
.channel .ch-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--raised); transition: background 200ms ease, transform 250ms var(--ease-out); }
.channel .ch-ico svg { width: 22px; height: 22px; }
.channel b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.03em; line-height: 1.2; }
.channel span { font-size: 14px; color: var(--muted); }
.channel .arrow { margin-left: auto; width: 22px; height: 22px; flex: none; color: var(--text); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .channel:hover > :not(.arrow) { transform: translateX(10px); }
    .channel:hover .ch-ico { background: var(--accent); }
    .ch-tg:hover .ch-ico { background: #229ed9; }
    .channel:hover .arrow { transform: translate(3px, -3px); }
}
.reassure { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 13.5px; }
.reassure span { display: inline-flex; align-items: center; gap: 8px; }
.reassure svg { width: 15px; height: 15px; stroke: var(--accent); }

.form-card { position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 50px 100px -50px rgba(0,0,0,.8); }
.form-card::before { display: none; }
.form-title { font-family: var(--f-display); font-weight: 500; font-size: 26px; letter-spacing: -.035em; margin: 0 0 6px; }
.form-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 28px; }
.field-label { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; border: 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.chips label:active span { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .chips label:hover span { box-shadow: inset 0 0 0 1px var(--text); } }
.chips input:checked + span { background: var(--text); color: var(--bg); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fl { position: relative; margin-bottom: 14px; }
.fl input, .fl textarea, .fl select {
    width: 100%; padding: 24px 16px 10px; border-radius: 14px; border: 0; outline: 0; background: var(--raised);
    box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s, background .3s; font-size: 16px; appearance: none; -webkit-appearance: none;
}
.fl select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba5b5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.fl textarea { min-height: 130px; resize: vertical; }
.fl input:focus, .fl textarea:focus, .fl select:focus { background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--text); }
.fl label { position: absolute; left: 17px; top: 17px; font-size: 16px; line-height: 1.4; color: var(--dim); pointer-events: none; transform-origin: left top; transition: transform 200ms var(--ease-out), color 200ms ease; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label,
.fl textarea:focus + label, .fl textarea:not(:placeholder-shown) + label,
.fl select + label { transform: translateY(-9px) scale(.72); color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 12px; color: var(--dim); margin: 16px 0 0; line-height: 1.55; }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--text); }
.submit { width: 100%; margin-top: 8px; padding: 19px; font-size: 16px; }
.submit .lbl, .submit > svg { transition: filter 200ms ease, opacity 200ms ease; }
.submit .spin {
    position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
    border: 2px solid rgba(11,21,38,.25); border-top-color: currentColor; opacity: 0; transition: opacity 200ms ease; animation: spin .7s linear infinite;
}
.submit.loading .lbl, .submit.loading > svg { filter: blur(2px); opacity: 0; }
.submit.loading .spin { opacity: 1; }
.form-msg { margin-top: 14px; font-size: 14px; min-height: 1.4em; }
.form-msg.err { color: #ff8a6b; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-card.done form { display: none; } .form-card.done .form-success { display: block; animation: fadeUp 500ms var(--ease-out) forwards; }
.check { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.check svg { width: 36px; height: 36px; stroke: #fff; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 30px; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin: 0 0 24px; }
.grecaptcha-badge { visibility: hidden !important; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .row-2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 28px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo-mark { width: 64px; } .footer .logo-word { width: 108px; }
.footer p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer h4 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14.5px; transition: color .3s; }
@media (pointer: coarse), (max-width: 760px) { .footer ul { gap: 2px; } .footer ul a { display: inline-block; padding: 9px 0; } .legal-line a { display: inline-block; padding: 8px 0; } }
.footer ul a:hover { color: var(--text); }
.footer-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 60px; margin-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-cta p.big { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 5vw, 72px); letter-spacing: -.05em; line-height: 1; color: var(--text); max-width: 14ch; margin: 0; }
.footer-cta .serif { color: var(--accent); }
.footer .btn { background: var(--text); color: var(--bg); }
.legal-line { margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 11.5px; color: var(--dim); font-family: var(--f-mono); }
.legal-line .ids { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.legal-line a:hover { color: var(--text); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* ---------- Mobile sticky CTA ---------- */
.m-cta {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; display: none; gap: 8px; padding: 6px; border-radius: 999px;
    background: rgba(7, 14, 27, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -14px rgba(0,0,0,.5);
    transform: translateY(150%); transition: transform 200ms var(--ease-out);
}
.m-cta.show { transform: none; transition-duration: 300ms; }
.m-cta .btn { flex: 1; padding: 13px 14px; background: var(--text); color: var(--bg); }
.m-cta .tg { flex: 0 0 auto; width: 46px; padding: 0; background: #229ed9; color: #fff; }
.m-cta .tg svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .m-cta { display: flex; } body { padding-bottom: 70px; } }

/* ---------- Legal pages ---------- */
.legal-page { padding: 150px 0 100px; }
.legal-page .wrap { max-width: 860px; }
.legal-page h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 14px; }
.legal-page .updated { color: var(--dim); font-family: var(--f-mono); font-size: 12.5px; margin-bottom: 50px; }
.legal-page h2 { font-size: 24px; letter-spacing: -.03em; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page strong { color: var(--text); font-weight: 500; }
.legal-page a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.legal-page td, .legal-page th { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal-page th { color: var(--text); font-weight: 500; width: 38%; }
.legal-page .table-scroll { overflow-x: auto; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.back:hover { color: var(--text); }
html[lang="fr"] [data-only="en"], html[lang="en"] [data-only="fr"] { display: none !important; }

/* Infinite animations rest while their section is offscreen (toggled by main.js) */
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transform: none; transition: opacity 400ms ease; }
    .fade-up { transform: none; animation: fadeIn 400ms ease forwards; }
    .hero h1 .line > span { transform: none; animation: fadeIn 400ms ease both; }
    .marquee-track, .mega, .orb-ring, .stack-flow em::after, .net .flow, .edog-map .ring, .caret { animation: none !important; }
    .step::before { transform: scaleX(1); transition: none; }
    .browser, .card, .channel > *, .m-nav { transform: none !important; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.fl select option { background: var(--night-2); color: var(--text); }
