/* ==========================================================================
   Nima Software: design system
   Tokens → base → layout → components → pages. No build step: served by
   Symfony AssetMapper. Light/dark follow the OS, overridable via the toggle.
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal-KweUqRv.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal-XNcuA7u.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Palette (Ocean) ----------
   Brand colours as --p-* variables (light and dark variants); the semantic tokens below are
   built from them, so changing the palette only means editing this block. */
:root {
    --p-bg: #f7f9fc;            --p-surface-2: #edf2f9;
    --p-ink: #0b1630;           --p-ink-2: #4a5875;          --p-ink-3: #7886a3;
    --p-line: #e0e7f1;          --p-line-strong: #c9d4e4;
    --p-accent: #2251e6;        --p-accent-hover: #1a40bd;   --p-accent-soft: #e6edfd;
    --p-accent-2: #00a8ca;      --p-accent-bright: #5b82ff;
    --p-on-dark: #93b2ff;       --p-on-dark-soft: #d8e3ff;
    --p-band-bg: #0a1733;       --p-band-surface: #11234a;   --p-band-line: #213765;
    --p-band-line-strong: #34508a; --p-band-ink-2: #a8b8d8;
    --p-dark-bg: #081124;       --p-dark-surface: #0f1b36;   --p-dark-surface-2: #0b162d;
    --p-dark-line: #1c2c4d;     --p-dark-line-strong: #2b4069; --p-dark-ink-2: #a8b8d8;
    --p-dark-band-bg: #050c1c;
}

/* ---------- Tokens ---------- */
:root {
    color-scheme: light;
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

    --bg: var(--p-bg);
    --surface: #ffffff;
    --surface-2: var(--p-surface-2);
    --ink: var(--p-ink);
    --ink-2: var(--p-ink-2);
    --ink-3: var(--p-ink-3);
    --line: var(--p-line);
    --line-strong: var(--p-line-strong);
    --accent: var(--p-accent);
    --accent-hover: var(--p-accent-hover);
    --accent-ink: #ffffff;
    --accent-soft: var(--p-accent-soft);
    --accent-2: var(--p-accent-2);
    --accent-bright: var(--p-accent-bright);
    --on-dark: var(--p-on-dark);
    --on-dark-soft: var(--p-on-dark-soft);
    --success: #1f9d61;
    --danger: #d93a3a;

    --band-bg: var(--p-band-bg);
    --band-surface: var(--p-band-surface);
    --band-line: var(--p-band-line);
    --band-line-strong: var(--p-band-line-strong);
    --band-ink: #eef1f6;
    --band-ink-2: var(--p-band-ink-2);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgb(13 19 33 / .06);
    --shadow: 0 1px 2px rgb(13 19 33 / .04), 0 8px 24px -8px rgb(13 19 33 / .12);
    --shadow-lg: 0 2px 4px rgb(13 19 33 / .04), 0 24px 48px -16px rgb(13 19 33 / .22);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section-y: clamp(64px, 9vw, 120px);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: var(--p-dark-bg);
        --surface: var(--p-dark-surface);
        --surface-2: var(--p-dark-surface-2);
        --ink: #eef1f6;
        --ink-2: var(--p-dark-ink-2);
        --ink-3: color-mix(in srgb, var(--p-dark-ink-2) 75%, var(--p-dark-bg));
        --line: var(--p-dark-line);
        --line-strong: var(--p-dark-line-strong);
        --accent: var(--p-accent-bright);
        --accent-hover: var(--p-on-dark);
        --accent-soft: color-mix(in srgb, var(--p-accent-bright) 14%, transparent);
        --band-bg: var(--p-dark-band-bg);
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -8px rgb(0 0 0 / .5);
        --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / .6);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: var(--p-dark-bg);
    --surface: var(--p-dark-surface);
    --surface-2: var(--p-dark-surface-2);
    --ink: #eef1f6;
    --ink-2: var(--p-dark-ink-2);
    --ink-3: color-mix(in srgb, var(--p-dark-ink-2) 75%, var(--p-dark-bg));
    --line: var(--p-dark-line);
    --line-strong: var(--p-dark-line-strong);
    --accent: var(--p-accent-bright);
    --accent-hover: var(--p-on-dark);
    --accent-soft: color-mix(in srgb, var(--p-accent-bright) 14%, transparent);
    --band-bg: var(--p-dark-band-bg);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -8px rgb(0 0 0 / .5);
    --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--bg); }
.icon { flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(800px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--muted { background: var(--surface-2); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.section__lead { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 16px; font-size: .8125rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--on-dark { color: var(--on-dark); }

.text-gradient {
    background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons, pills, links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: 999px;
    font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .875rem; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px -8px var(--accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }

.pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.pill--accent { background: var(--accent-soft); color: var(--accent); }
.pill--light { background: rgb(255 255 255 / .92); color: var(--p-ink); }
.pill--xs { padding: 2px 8px; font-size: .75rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    color: var(--ink); cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); }

/* ---------- Logo ----------
   SVG logos: logo-nima.svg (colour) and logo-nima-light.svg (white wordmark, for dark areas). */
.logo { display: block; width: 160px; height: auto; aspect-ratio: 888 / 249; }
.logo--dark-only { display: none; }
:root[data-theme="dark"] .logo--color { display: none; }
:root[data-theme="dark"] .logo--dark-only { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo--color { display: none; }
    :root:not([data-theme="light"]) .logo--dark-only { display: block; }
}
@media (max-width: 480px) { .site-header__brand .logo { width: 136px; } }
@media (max-width: 400px) { .site-header__brand .logo { width: 120px; } .site-header__inner { gap: 12px; } .site-header__tools { gap: 6px; } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header__brand { color: var(--ink); display: block; flex-shrink: 0; padding: 4px 0; }
.site-header__brand:hover { color: var(--ink); }
.site-header__tools { display: flex; gap: 8px; margin-left: auto; }
.site-header__menu { display: none; }
.lang-switch { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch a { padding: 6px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); text-decoration: none; line-height: 1.2; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
    transition: color .2s, background-color .2s;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.site-nav__link--new { color: var(--accent); }
.site-nav__link--new:hover, .site-nav__link--new[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.site-header__tools .icon-btn + .icon-btn { margin-left: 0; }
@media (min-width: 981px) { .site-nav + .site-header__tools { margin-left: 0; } }

.theme-icon--light, .nav-icon--close { display: none; }
:root[data-theme="dark"] .theme-icon--dark { display: none; }
:root[data-theme="dark"] .theme-icon--light { display: inline; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon--dark { display: none; }
    :root:not([data-theme="light"]) .theme-icon--light { display: inline; }
}

@media (max-width: 980px) {
    .site-header__menu { display: inline-grid; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px var(--gutter) 24px;
        background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }
    .site-nav__list { flex-direction: column; align-items: stretch; }
    .site-nav__link { padding: 12px 14px; font-size: 1.0625rem; }
    .site-nav__cta { min-height: 48px; }
    .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
    .site-header::after {
        /* header has backdrop-filter (containing block for fixed children): size explicitly */
        content: ''; position: fixed; top: var(--header-h); left: 0; right: 0; height: 100vh; z-index: -1;
        background: rgb(5 12 28 / .45); opacity: 0; visibility: hidden;
        transition: opacity .2s var(--ease), visibility .2s;
    }
    .nav-open .site-header::after { opacity: 1; visibility: visible; }
    .nav-open { overflow: hidden; }
    .nav-open .nav-icon--open { display: none; }
    .nav-open .nav-icon--close { display: inline; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.hero__glow {
    position: absolute; inset: -20% -10% auto auto; width: min(720px, 90vw); aspect-ratio: 1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
    filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero__grid > * { min-width: 0; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.035em; line-height: 1.04; }
.hero__title .text-gradient { display: block; font-size: .62em; letter-spacing: -0.025em; line-height: 1.15; margin-top: .3em; }
.hero__lead { margin: 24px 0 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions--center { justify-content: center; }

.console {
    background: var(--band-bg); color: var(--band-ink);
    border: 1px solid var(--band-line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; font-size: .875rem;
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform .6s var(--ease);
}
.console:hover { transform: none; }
.console__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--band-line); }
.console__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--band-line-strong); }
.console__bar span:first-child { background: var(--accent-bright); }
.console__bar em { min-width: 0; margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--band-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__log { padding: 18px 16px; display: grid; gap: 12px; font-family: var(--mono); font-size: .8125rem; }
.console__log li { display: flex; align-items: center; gap: 10px; color: var(--band-ink-2); }
.console__log li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--band-line-strong); }
.console__log li.is-done { color: var(--band-ink); }
.console__log li.is-done::before { background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--success); }
.console__log li.is-review { color: var(--on-dark-soft); }
.console__log li.is-review::before { border-color: var(--accent-bright); border-top-color: transparent; animation: spin 1.2s linear infinite; }
.console__log b { display: inline-block; min-width: 56px; font-weight: 600; color: var(--on-dark); }
.console__log li.is-todo b { color: inherit; }
.console__footer { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--band-line); background: var(--band-surface); line-height: 1.35; }
.console__footer small { color: var(--band-ink-2); }
.console__footer .pill { margin-left: auto; background: rgb(31 157 97 / .16); color: #4fd393; }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: .8125rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.stats__item { display: flex; flex-direction: column-reverse; gap: 4px; padding: 24px 24px 0 0; }
.stats__item + .stats__item { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dd { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stats dt { color: var(--ink-2); font-size: .9375rem; }
.stats--compact { margin-top: 48px; }
.stats--compact dd { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .console { transform: none; }
}
@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr; }
    .stats__item, .stats__item + .stats__item { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Dark band (featured service) ---------- */
.band { position: relative; background: var(--band-bg); color: var(--band-ink); overflow: hidden; isolation: isolate; }
.band::before {
    content: ''; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-bright) 22%, transparent), transparent 70%);
}
.band::after {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--band-line) 1px, transparent 1px), linear-gradient(90deg, var(--band-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 60%);
}
.band__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.band .section__title { color: #fff; }
.band__lead { margin: 16px 0; font-size: 1.25rem; color: var(--band-ink); }
.band p { color: var(--band-ink-2); }
.band .btn { margin-top: 16px; }
.band__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.band__item { padding: 24px; border: 1px solid var(--band-line); border-radius: var(--radius); background: color-mix(in srgb, var(--band-surface) 70%, transparent); backdrop-filter: blur(6px); transition: border-color .2s, transform .3s var(--ease); }
.band__item:hover { border-color: var(--band-line-strong); transform: translateY(-2px); }
.band__item h3 { font-size: 1.0625rem; margin-bottom: 8px; color: #fff; }
.band__item p { font-size: .9375rem; }
@media (max-width: 900px) { .band__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .band__list { grid-template-columns: 1fr; } }

/* ---------- Cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.card__title { font-size: 1.25rem; margin-bottom: 20px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.category-card__index { margin: 0 0 20px; font-family: var(--mono); font-size: .8125rem; color: var(--accent); }
.category-card__title { font-size: 1.5rem; }
.category-card__summary { margin: 8px 0 20px; color: var(--ink-2); font-size: .9375rem; }
.category-card__list { border-top: 1px solid var(--line); padding-top: 12px; }
.category-card__list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.category-card__list a .icon { color: var(--ink-3); transition: color .2s; }
.category-card__list a:hover { color: var(--accent); }
.category-card__list a:hover .icon { color: var(--accent); }
@media (max-width: 1080px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.service-card {
    display: flex; flex-direction: column; gap: 10px; padding: 28px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
    text-decoration: none; color: var(--ink);
    transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.service-card__title { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em; }
.service-card__text { color: var(--ink-2); font-size: .9375rem; }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .875rem; font-weight: 600; color: var(--accent); }
.service-card__more .icon { transition: transform .2s var(--ease); }
.service-card:hover .service-card__more .icon { transform: translateX(3px); }

.feature-card {
    display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
    padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
    background: var(--band-bg); color: var(--band-ink); text-decoration: none;
    border: 1px solid var(--band-line); position: relative; overflow: hidden; isolation: isolate;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card::before { content: ''; position: absolute; inset: -50% -20% auto auto; width: 50%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-bright) 30%, transparent), transparent 70%); }
.feature-card:hover { color: var(--band-ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card__icon { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.feature-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.feature-card__body .pill { background: color-mix(in srgb, var(--accent-bright) 16%, transparent); color: var(--on-dark); }
.feature-card__title { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.feature-card__text { color: var(--band-ink-2); max-width: 640px; }
.feature-card__arrow { margin-left: auto; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--band-line); transition: background-color .2s, transform .3s var(--ease); }
.feature-card:hover .feature-card__arrow { background: var(--accent); border-color: var(--accent); transform: translateX(4px); }
@media (max-width: 640px) { .feature-card { flex-direction: column; align-items: flex-start; } .feature-card__arrow { margin-left: 0; } }

.category-head { display: flex; gap: 20px; align-items: baseline; margin-bottom: 28px; }
.category-head__index { font-family: var(--mono); color: var(--accent); font-size: .9375rem; }
.category-head .section__lead { margin-top: 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid--4 { grid-template-columns: 1fr; } }
.feature { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature__check { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.feature__title { font-size: 1.125rem; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: .9375rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.steps__item { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.steps__num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .875rem; }
.steps__item h3 { font-size: 1.125rem; margin-bottom: 8px; }
.steps__item p { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 1080px) { .steps, .steps--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps--5 { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.project-card[hidden] { display: none; }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__media .pill { position: absolute; top: 12px; left: 12px; }
.project-card__media--logo { display: grid; place-items: center; background: var(--tile, #f4f4f2); }
.project-card__media--logo img { width: auto; height: auto; max-width: 62%; max-height: 46%; object-fit: contain; }
.project-card__body { padding: 24px; }
.project-card__meta { margin-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--accent); }
.project-card__title { font-size: 1.25rem; margin-bottom: 10px; }
.project-card__title a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.project-card__title .icon { color: var(--ink-3); }
.project-card__body p:not(.project-card__meta) { color: var(--ink-2); font-size: .9375rem; }
.stretched::after { content: ''; position: absolute; inset: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--ink); border-color: var(--ink-3); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .quote-grid { grid-template-columns: 1fr; } }
.quote { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.quote__mark { color: var(--accent); margin-bottom: 16px; }
.quote blockquote { margin: 0; font-size: 1.125rem; line-height: 1.6; }
.quote figcaption { margin-top: 24px; font-weight: 700; }
.quote figcaption span { display: block; font-weight: 400; color: var(--ink-2); font-size: .875rem; }

/* ---------- CTA ---------- */
.cta {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: clamp(32px, 6vw, 64px); border-radius: calc(var(--radius-lg) + 6px);
    background: linear-gradient(120deg, var(--accent) 0%, color-mix(in srgb, var(--accent), var(--accent-2) 35%) 55%, var(--accent-2) 130%);
    color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 90% 10%, rgb(255 255 255 / .2), transparent 40%); }
.cta__text { max-width: 620px; }
.cta__title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 12px; }
.cta p { color: rgb(255 255 255 / .88); font-size: 1.0625rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--primary { background: #fff; color: var(--p-ink); box-shadow: none; }
.cta .btn--primary:hover { background: var(--p-band-bg); color: #fff; }
.cta .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .45); }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.page-hero__title { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.035em; max-width: 900px; }
.page-hero__lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 720px; }
.page-hero__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); }
.page-hero__icon--success { margin-inline: auto; background: rgb(31 157 97 / .12); color: var(--success); }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__title, .page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--dark { background: var(--band-bg); color: var(--band-ink); }
.page-hero--dark .page-hero__lead, .page-hero--dark .breadcrumbs { color: var(--band-ink-2); }
.page-hero--dark .page-hero__title { color: #fff; }
.page-hero--dark .page-hero__icon { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.page-hero--dark .stats { border-top-color: var(--band-line); }
.page-hero--dark .stats__item + .stats__item { border-left-color: var(--band-line); }
.page-hero--dark .stats dt { color: var(--band-ink-2); }
.page-hero--dark .stats dd { color: #fff; }
.page-hero--dark .container { position: relative; z-index: 1; }

.breadcrumbs { display: flex; gap: 8px; margin-bottom: 28px; font-size: .875rem; color: var(--ink-3); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs { align-items: center; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Prose & splits ---------- */
.prose { max-width: 760px; font-size: 1.0625rem; color: var(--ink-2); }
.prose__lead { font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.55; color: var(--ink); }
.prose .btn { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo-stack { position: relative; padding: 0 0 15% 15%; }
.photo-stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.photo-stack img:first-child { width: 100%; }
.photo-stack img:last-child { position: absolute; left: 0; bottom: 0; width: 48%; border: 6px solid var(--bg); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.gallery__item { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item--wide { grid-row: span 2; }
.gallery--two { grid-template-columns: 3fr 2fr; }
.gallery--two .gallery__item img { aspect-ratio: 3 / 2; }
.gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--p-band-bg) 70%, transparent); color: #fff; font-size: .8125rem; backdrop-filter: blur(4px); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } .gallery__item--wide { grid-row: auto; } }

.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 24px; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 20px; color: var(--ink-2); }

/* ---------- About ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.team-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; filter: saturate(.9); }
.team-card h3 { font-size: 1.0625rem; }
.team-card p { color: var(--ink-2); font-size: .9375rem; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.event { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.event img { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.event h3 { font-size: 1rem; }
.event h3 a { text-decoration: none; }
.event p { color: var(--ink-3); font-size: .875rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 16px; }
.contact__photo img { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { color: var(--accent); margin-top: 2px; }
.contact-list span { display: block; font-size: .8125rem; color: var(--ink-3); }
.contact-list a { text-decoration: none; font-weight: 500; }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.field__label { font-size: .875rem; font-weight: 600; }
.field__optional { font-size: .75rem; color: var(--ink-3); }
.field > :is(input, select, textarea), .field__input {
    flex-basis: 100%; width: 100%; min-height: 48px; padding: 12px 14px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
textarea.field__input { min-height: 140px; resize: vertical; }
select.field__input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8396' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field--invalid .field__input { border-color: var(--danger); }
.field__error { flex-basis: 100%; margin: 0; font-size: .8125rem; color: var(--danger); }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form__note { margin: 0; font-size: .75rem; color: var(--ink-3); max-width: 360px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9375rem; }
.alert--error { background: rgb(217 58 58 / .1); color: #b42323; border: 1px solid rgb(217 58 58 / .25); }
:root[data-theme="dark"] .alert--error { color: #ff9b9b; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-ink-2); padding-block: clamp(56px, 8vw, 88px) 32px; font-size: .9375rem; }
.site-footer a { color: var(--band-ink-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { display: inline-block; color: #fff !important; margin-bottom: 16px; }
.site-footer__brand .logo { width: 150px; }
.site-footer__about p { max-width: 320px; }
.site-footer__social { display: flex; gap: 16px; margin-top: 16px; }
.site-footer__title { margin-bottom: 16px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.site-footer__links { display: grid; gap: 2px; }
.site-footer__links a { display: inline-block; padding: 8px 0; }
.site-footer__contact { display: grid; gap: 4px; }
.site-footer__contact a { display: inline-block; padding: 8px 0; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { margin-top: 11px; color: var(--on-dark); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--band-line); font-size: .8125rem; }
.site-footer__legal p { margin: 0; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Touch & small screens ---------- */
@media (pointer: coarse) {
    .lang-switch a { padding: 12px 11px; }
    .breadcrumbs a, .site-footer__top { display: inline-block; padding: 11px 0; }
}
@media (max-width: 560px) {
    .hero__actions .btn, .cta__actions .btn { width: 100%; }
    .cta { gap: 24px; }
}

