/* ==========================================================================
   I-Optia v2 — design system
   Dark "deep tech" canvas for hero / portfolio / contact, light paper for
   reading sections. One accent (teal) + one support color (blue); each
   solution carries its own --accent for its card and detail dialog.
   ========================================================================== */

:root {
    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    --night: #050b1a;
    --night-2: #0a1633;
    --paper: #ffffff;
    --paper-alt: #f4f7fb;
    --ink: #0b1530;
    --text: #475569;
    --muted: #64748b;
    --line: #e4e9f1;
    --line-dark: rgba(255, 255, 255, 0.09);
    --text-dark: #a7b4c7;

    --brand: #00c9a7;
    --brand-hover: #2de0c2;
    --brand-ink: #0f766e;
    --blue: #3b82f6;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(11, 21, 48, 0.05), 0 6px 20px rgba(11, 21, 48, 0.06);
    --shadow-lg: 0 2px 6px rgba(11, 21, 48, 0.06), 0 24px 60px rgba(11, 21, 48, 0.14);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(5rem, 9vw, 8rem);
    --nav-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 32px); }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--brand-ink); margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--brand); }
.h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 1.25rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--muted); }
.text-gradient {
    background: linear-gradient(90deg, var(--brand) 0%, #4fd1c5 40%, var(--blue) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag {
    display: inline-flex; align-items: center;
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.3rem 0.7rem; border-radius: 999px;
    color: var(--accent, var(--brand));
    background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.75rem 1.35rem; border-radius: 999px;
    font-size: 0.95rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
    border: 1.5px solid transparent;
    transition: transform 200ms var(--ease), background-color 200ms, color 200ms, border-color 200ms, box-shadow 200ms;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
.btn--primary { background: var(--brand); color: #03211c; }
.btn--primary:hover { background: var(--brand-hover); box-shadow: 0 10px 28px rgba(0, 201, 167, 0.28); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--outline { color: var(--ink); border-color: rgba(11, 21, 48, 0.2); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn .icon { transition: transform 200ms var(--ease); }
.btn:hover .icon use[href="#i-arrow"] { transform: translateX(3px); }

/* ---------- Nav (floating pill) ---------- */
.site-header {
    position: fixed; inset: 1rem 0 auto; z-index: 100;
    padding: 0 var(--gutter);
    pointer-events: none;
}
.nav {
    pointer-events: auto;
    position: relative;
    max-width: 1120px; height: var(--nav-h); margin: 0 auto;
    display: flex; align-items: center; gap: 1.5rem;
    padding: 0 0.6rem 0 1.1rem;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(5, 11, 26, 0.18);
    transition: box-shadow 250ms, background-color 250ms;
}
.site-header.is-scrolled .nav { background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(11, 21, 48, 0.12); }
.nav__brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.nav__brand img { width: 32px; height: auto; }
.nav__brand--light { color: #fff; }
.nav__brand--light img { width: 40px; padding: 5px; background: #fff; border-radius: 50%; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav__links a:not(.btn) {
    display: block; padding: 0.5rem 0.85rem; border-radius: 999px;
    font-size: 0.94rem; font-weight: 500; color: var(--ink);
    transition: background-color 200ms, color 200ms;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { background: var(--paper-alt); color: var(--brand-ink); }
.nav__cta-mobile { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; color: var(--ink); }
.nav__toggle .icon { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 5rem) 0 6rem;
    background: var(--night); color: var(--text-dark);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before { /* earth image, faded into the night */
    content: ''; position: absolute; inset: 0;
    background: url('../img/hero-earth.webp') right center / cover no-repeat;
    opacity: 0.4;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, #000 20%, transparent 75%);
}
.hero__bg::after { /* blueprint grid + color glows */
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(600px 400px at 15% 20%, rgba(0, 201, 167, 0.14), transparent 70%),
        radial-gradient(700px 500px at 85% 80%, rgba(59, 130, 246, 0.16), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero .eyebrow {
    padding: 0.4rem 0.85rem; border-radius: 999px;
    border: 1px solid rgba(0, 201, 167, 0.3); background: rgba(0, 201, 167, 0.08);
    letter-spacing: 0.08em; margin-bottom: 1.75rem;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0, 201, 167, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 201, 167, 0); } }
.hero__title { color: #fff; font-size: clamp(2.5rem, 4.9vw, 4.15rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; max-width: 36rem; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.75rem; }
.hero__domains { display: flex; flex-wrap: wrap; gap: 0.5rem 0; font-size: 0.85rem; color: #7f8ea6; }
.hero__domains li:not(:last-child)::after { content: '·'; margin: 0 0.7rem; color: rgba(255, 255, 255, 0.25); }

.hero__scroll {
    position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
    width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Orbit: the six solutions circling I-Optia */
.orbit { position: relative; width: min(500px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.14); }
.orbit__ring--outer { inset: 7%; }
.orbit__ring--inner { inset: 24%; border-style: solid; border-color: rgba(255, 255, 255, 0.07); }
.orbit__core {
    position: absolute; inset: 37%; border-radius: 50%;
    display: grid; place-items: center; background: #fff;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04), 0 0 60px rgba(0, 201, 167, 0.35), 0 0 140px rgba(59, 130, 246, 0.25);
}
.orbit__core img { width: 62%; height: auto; }
.orbit__track { position: absolute; inset: 0; animation: spin var(--dur) linear infinite; }
.orbit__track--outer { --dur: 70s; --r: 43cqi; }
.orbit__track--inner { --dur: 50s; --r: 26cqi; animation-direction: reverse; }
.orbit__item {
    position: absolute; left: 50%; top: 50%;
    width: 15cqi; height: 15cqi; margin: -7.5cqi 0 0 -7.5cqi;
    transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.orbit__item img {
    width: 100%; height: 100%; object-fit: contain; padding: 18%;
    background: #fff; border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: spin var(--dur) linear infinite reverse;
}
.orbit__track--inner .orbit__item img { animation-direction: normal; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--light { background: var(--paper); }
.section--light-alt { background: var(--paper-alt); }
.section--dark { background: var(--night); color: var(--text-dark); }
.section--dark .h2 { color: #fff; }
.section--dark .lead { color: var(--text-dark); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__intro .lead { color: var(--ink); margin-bottom: 1rem; }
.about__media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.35rem; padding: 1.75rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat dd { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.stat dt { font-size: 0.92rem; color: var(--muted); }

/* Solutions */
.section--dark#solutions {
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
        radial-gradient(700px 500px at 0% 100%, rgba(0, 201, 167, 0.1), transparent 70%),
        var(--night);
}
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sol-card {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 1rem; text-align: left;
    min-height: 300px; padding: 1.75rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line-dark);
    transition: transform 300ms var(--ease), border-color 300ms, background-color 300ms;
}
.sol-card::before { /* accent glow that wakes up on hover */
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(420px 240px at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
    opacity: 0.45; transition: opacity 300ms;
}
.sol-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(255, 255, 255, 0.055); }
.sol-card:hover::before { opacity: 1; }
.sol-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
/* Logo chips: a fixed-size block box whose image fills the content box and is
   scaled + centered by object-fit, so tall (portrait) logos never overflow */
.sol-card__logo,
.vertical__logo { display: block; flex-shrink: 0; overflow: hidden; background: #fff; }
.sol-card__logo img,
.vertical__logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.sol-card__logo { width: 60px; height: 60px; border-radius: 16px; padding: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.sol-card__name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.sol-card__text { font-size: 0.97rem; line-height: 1.6; color: var(--text-dark); }
.sol-card__more { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--accent); }
.sol-card__more .icon { transition: transform 250ms var(--ease); }
.sol-card:hover .sol-card__more .icon { transform: translateX(4px); }

/* Disciplines */
.disciplines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.disc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.disc__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.25rem; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.disc__icon .icon { width: 28px; height: 28px; }
.disc h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.disc p { font-size: 0.95rem; }

/* Verticals: problem → solution → disciplines */
.verticals__title { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.verticals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.vertical {
    position: relative; display: flex; flex-direction: column; gap: 0.9rem;
    padding: 1.6rem; border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--accent);
}
.vertical .tag { align-self: flex-start; color: color-mix(in srgb, var(--accent) 70%, #000); }
/* Always reserve two lines, so the solution row sits at the same height in every card */
.vertical__problem { font-size: 1.02rem; line-height: 1.5; color: var(--ink); min-height: 3em; }
/* Informative only: the solution cards above are the single entry point to each detail */
.vertical__sol {
    display: inline-flex; align-items: center; gap: 0.65rem; align-self: flex-start;
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.vertical__logo { width: 40px; height: 40px; border-radius: 11px; padding: 5px; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.65rem 0.3rem 0.5rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; white-space: nowrap;
    color: var(--c); background: color-mix(in srgb, var(--c) 11%, #fff);
}
.chip .icon { width: 16px; height: 16px; }


/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; transition: transform 300ms var(--ease), box-shadow 300ms; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 1.25rem; background: linear-gradient(135deg, #e6f7f3, #e3edfc); }
.member h3 { font-size: 1.1rem; margin-bottom: 0.25rem; letter-spacing: -0.015em; }
.member__role { font-size: 0.85rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 0.75rem; }
.member p:not(.member__role) { font-size: 0.9rem; line-height: 1.55; }

/* Contact */
.contact {
    overflow: hidden;
    background:
        radial-gradient(700px 420px at 0% 0%, rgba(0, 201, 167, 0.16), transparent 70%),
        radial-gradient(700px 420px at 100% 100%, rgba(59, 130, 246, 0.18), transparent 70%),
        var(--night-2);
}
.contact__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact .h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.channels { display: grid; gap: 0.85rem; }
.channel {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.25rem; border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark);
    transition: transform 250ms var(--ease), background-color 250ms, border-color 250ms;
}
.channel:hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.channel__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--c); flex-shrink: 0; }
.channel strong { display: block; color: #fff; font-weight: 600; }
.channel span span { font-size: 0.9rem; color: var(--text-dark); word-break: break-all; }
.channel__ext { margin-left: auto; color: var(--text-dark); }

/* Footer */
.footer { background: #030712; color: #8a97ab; padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: 0.94rem; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand p { margin-top: 1rem; max-width: 22rem; }
.footer h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer li + li { margin-top: 0.6rem; }
.footer a:not(.nav__brand):hover { color: var(--brand); }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: #fff; transition: background-color 200ms, color 200ms; }
.footer__social a:hover { background: var(--brand); color: #03211c !important; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.85rem; }

/* ---------- Solution dialog ---------- */
.sol-dialog {
    width: min(860px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
    margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
    background: var(--paper); color: var(--text);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.sol-dialog::backdrop { background: rgba(5, 11, 26, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sol-dialog[open] { animation: dialog-in 380ms var(--ease); }
.sol-dialog[open]::backdrop { animation: fade-in 300ms ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.sol-dialog__inner { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.sol-dialog__close {
    position: absolute; top: 1rem; right: 1rem; z-index: 3;
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 200ms var(--ease);
}
.sol-dialog__close:hover { transform: rotate(90deg); }
.sol-dialog__media { position: relative; aspect-ratio: 16 / 9; background: var(--night); }
.sol-dialog__media img, .sol-dialog__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff;
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent), 0 16px 40px rgba(0, 0, 0, 0.4);
    transition: transform 250ms var(--ease);
}
.play .icon { width: 30px; height: 30px; margin-left: 4px; }
.play:hover { transform: translate(-50%, -50%) scale(1.08); }
.sol-dialog__body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.sol-dialog__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0.85rem 0 0.4rem; }
.sol-dialog__lead { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.checks { display: grid; gap: 0.7rem; margin: 1.5rem 0; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink); }
.checks .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; margin-top: 1px; color: #fff; background: var(--accent); }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 0.5rem; }
.figures div { padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 9%, #fff); }
.figures strong { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; color: var(--ink); }
.figures span { font-size: 0.88rem; color: var(--muted); }
.note { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; }
.sol-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }
.sol-dialog .btn--primary { background: var(--accent); color: #fff; }
.sol-dialog .btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 35%, transparent); }
.soon { font-size: 0.9rem; color: var(--muted); }
body.has-dialog { overflow: hidden; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .solutions { grid-template-columns: repeat(2, 1fr); }
    .disciplines, .verticals { grid-template-columns: repeat(2, 1fr); }
    .team { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
    .nav { gap: 0.75rem; }
    .nav__links {
        position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0.15rem;
        padding: 0.75rem; border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.97); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity 200ms, transform 250ms var(--ease), visibility 0s 250ms;
    }
    .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms, transform 250ms var(--ease); }
    .nav__links a:not(.btn) { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
    .nav__cta-mobile { display: block; margin-top: 0.5rem; }
    .nav__cta-mobile .btn { width: 100%; padding: 0.9rem; }
    .nav__cta { display: none; }
    .nav__toggle { display: inline-flex; margin-left: auto; }

    .hero__grid { grid-template-columns: 1fr; text-align: left; }
    .orbit { width: min(380px, 88%); margin-top: 1rem; }
    .about, .contact__grid { grid-template-columns: 1fr; }
    .about__media { order: -1; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 1.5rem; }
}

@media (max-width: 640px) {
    :root { --nav-h: 58px; }
    .site-header { inset: 0.6rem 0 auto; padding: 0 0.75rem; }
    .hero { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 5rem; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__scroll { display: none; }
    .solutions, .disciplines, .verticals { grid-template-columns: 1fr; }
    .sol-card { min-height: 0; }
    .team { grid-template-columns: 1fr; gap: 0.85rem; }
    .member { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: start; padding: 1.15rem; }
    .member img { width: 72px; height: 72px; margin: 0; }
    .contact__actions .btn { flex: 1 1 100%; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .figures { grid-template-columns: 1fr; }
    .sol-dialog { width: 100%; max-height: 100dvh; height: 100dvh; max-width: none; border-radius: 0; }
    .sol-dialog__close { top: 0.75rem; right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
