/* ==========================================================================
   Boilen s.r.o. – main stylesheet
   Brand: #26b872 (green), #162442 (navy), white
   Structure: tokens → base → layout → components → pages → utilities → motion
   ========================================================================== */

/* -------------------------------------------------------------- fonts */
@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    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: "Space Grotesk";
    src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    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;
}

/* -------------------------------------------------------------- tokens */
:root {
    --c-bg: #0b1426;
    --c-bg-2: #0f1b33;
    --c-navy: #162442;
    --c-navy-2: #1e3157;
    --c-surface: rgba(255, 255, 255, 0.04);
    --c-surface-2: rgba(255, 255, 255, 0.07);
    --c-line: rgba(255, 255, 255, 0.12);
    --c-line-strong: rgba(255, 255, 255, 0.24);
    --c-text: #ffffff;
    --c-muted: #a9b5ca;
    --c-green: #26b872;
    --c-green-2: #3dd28c;
    --c-green-d: #1d9a5e;
    --c-green-soft: rgba(38, 184, 114, 0.14);
    --c-warn: #f2b84b;

    --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container: 1320px;
    --container-narrow: 820px;
    --gutter: clamp(16px, 4vw, 48px);
    --section: clamp(64px, 9vw, 128px);
    --header-h: 84px;

    --radius-sm: 10px;
    --radius: 20px;
    --radius-lg: 32px;
    --radius-pill: 999px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur: 0.9s;

    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
}

/* -------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
dl, dd { margin: 0; }
strong { font-weight: 600; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

a:hover { color: var(--c-green-2); }

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--c-green);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--c-green); color: var(--c-bg); }

main:focus { outline: none; }

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

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    display: inline-block;
    vertical-align: -0.2em;
}

.icon--lg { width: 1.75em; height: 1.75em; }

/* Monochrome industry icons coloured via CSS mask (source SVGs have no fill) */
.icon-mask {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: currentColor;
    -webkit-mask: var(--mask) center / contain no-repeat;
    mask: var(--mask) center / contain no-repeat;
}
.icon-mask--icon-thermal-power { --mask: url("../icons/icon-thermal-power.svg"); }
.icon-mask--icon-oil-platform  { --mask: url("../icons/icon-oil-platform.svg"); }
.icon-mask--icon-oil-pump      { --mask: url("../icons/icon-oil-pump.svg"); }
.icon-mask--icon-gas-flaring   { --mask: url("../icons/icon-gas-flaring.svg"); }
.icon-mask--icon-factory       { --mask: url("../icons/icon-factory.svg"); }
.icon-mask--icon-oil-refinery  { --mask: url("../icons/icon-oil-refinery.svg"); }

/* -------------------------------------------------------------- layout */
.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.5); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--c-bg-2); }

.section-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}
.section-head--split .display { margin-bottom: 0; }

.center { text-align: center; }

/* -------------------------------------------------------------- typography */
.display {
    font-size: clamp(2.25rem, 1.4rem + 3.8vw, 5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.display--md { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.5rem); }

.display em,
.page-hero__title em {
    font-style: normal;
    color: var(--c-green);
}

.h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }
.h3 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem); }
.h4 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); margin-top: 1.6em; }

.lead-text {
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
    line-height: 1.55;
    color: var(--c-text);
}

.small { font-size: 0.875rem; color: var(--c-muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-green);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

/* -------------------------------------------------------------- buttons & links */
.btn {
    --btn-bg: transparent;
    --btn-fg: var(--c-text);
    --btn-border: var(--c-line-strong);
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 28px;
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--c-green);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}

.btn:hover { color: var(--c-bg); border-color: var(--c-green); }
.btn:hover::before { transform: translateY(0); }
.btn .icon { transition: transform 0.4s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--c-green); --btn-fg: var(--c-bg); --btn-border: var(--c-green); }
.btn--primary::before { background: #fff; }
.btn--primary:hover { color: var(--c-bg); border-color: #fff; }

.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.06); backdrop-filter: blur(10px); }
.btn--outline { --btn-border: var(--c-green); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--c-green);
}

.link-arrow .icon { transition: transform 0.35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--back:hover .icon { transform: translateX(-4px); }

.link-underline {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease), color 0.25s;
}

.link-underline:hover { background-size: 100% 1px; }

.link-button {
    color: inherit;
    text-align: left;
    transition: color 0.25s;
}

.link-button:hover { color: var(--c-green-2); }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.tag--accent { border-color: var(--c-green); color: var(--c-green); }
.tag--warn { border-color: var(--c-warn); color: var(--c-warn); }

/* -------------------------------------------------------------- header */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--c-green);
    color: var(--c-bg);
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform 0.3s var(--ease);
}

.skip-link:focus { transform: none; color: var(--c-bg); }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(11, 20, 38, 0.82);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--c-line);
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo { display: inline-flex; flex: none; position: relative; z-index: 2; }
.logo img { width: 132px; height: auto; }

.site-nav { display: none; }

.site-nav__list { display: flex; gap: 6px; list-style: none; }

.site-nav__link {
    position: relative;
    display: inline-flex;
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text);
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--c-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav__link[aria-current="page"] { color: var(--c-green); }

.site-header__actions { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }

.site-header__cta { display: none; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.lang-switch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    color: var(--c-muted);
}

.lang-switch__item.is-active { background: var(--c-green); color: var(--c-bg); }
.lang-switch__item:not(.is-active):hover { color: var(--c-text); }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 6px 0 16px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.3s, background-color 0.3s;
}

.menu-toggle:hover { border-color: var(--c-green); }

.menu-toggle__icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-green);
}

.menu-toggle__icon i {
    position: absolute;
    width: 14px;
    height: 1.5px;
    background: var(--c-bg);
    transition: transform 0.45s var(--ease);
}

.menu-toggle__icon i:first-child { transform: translateY(-3px); }
.menu-toggle__icon i:last-child { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: rotate(-45deg); }

@media (max-width: 399px) {
    .menu-toggle { padding-left: 6px; }
    .menu-toggle__label { display: none; }
    .logo img { width: 112px; }
}

@media (min-width: 640px) {
    .site-header__cta { display: inline-flex; }
}

@media (min-width: 1200px) {
    .site-nav { display: block; }
    .logo img { width: 146px; }
}

/* No-JS fallback: show the full menu inline */
.no-js .menu-toggle { display: none; }
.no-js .menu[hidden] { display: none; }

/* -------------------------------------------------------------- full-screen menu */
.menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 40px;
    visibility: hidden;
    pointer-events: none;
}

/* While the menu is open: solid header (logo never overlaps menu items), no cookie bar on top */
.is-locked .site-header {
    background: var(--c-navy);
    border-bottom-color: var(--c-line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}

.is-locked .consent { visibility: hidden; }

.menu[hidden] { display: none; }

.menu.is-open { visibility: visible; pointer-events: auto; }

.menu__bg {
    position: fixed;
    inset: 0;
    background: var(--c-navy);
    clip-path: circle(0% at calc(100% - 60px) 42px);
    transition: clip-path 0.8s var(--ease-in-out);
}

.menu__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 85% 10%, rgba(38, 184, 114, 0.18), transparent 70%),
        radial-gradient(50% 50% at 0% 100%, rgba(38, 184, 114, 0.08), transparent 70%);
}

.menu.is-open .menu__bg { clip-path: circle(150% at calc(100% - 60px) 42px); }

/* margin-block: auto = "safe" centring – a menu taller than the screen starts at the top and scrolls,
   instead of overflowing upwards under the header */
.menu__inner {
    position: relative;
    display: grid;
    gap: 40px;
    align-content: start;
    margin-block: auto;
}

.menu__list { list-style: none; counter-reset: menu; }

.menu__item { overflow: hidden; border-bottom: 1px solid var(--c-line); }

.menu__link {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 12px 0;
    font-size: clamp(1.6rem, 1rem + 3vw, 3.6rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    transform: translateY(110%);
    transition: transform 0.8s var(--ease), color 0.3s;
}

.menu__num {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--c-green);
    transform: translateY(-1.2em);
}

.menu__text { transition: transform 0.45s var(--ease); }
.menu__link:hover .menu__text { transform: translateX(16px); }
.menu__link[aria-current="page"] { color: var(--c-green); }

.menu.is-open .menu__link { transform: none; }
.menu.is-open .menu__item:nth-child(1) .menu__link { transition-delay: 0.15s; }
.menu.is-open .menu__item:nth-child(2) .menu__link { transition-delay: 0.2s; }
.menu.is-open .menu__item:nth-child(3) .menu__link { transition-delay: 0.25s; }
.menu.is-open .menu__item:nth-child(4) .menu__link { transition-delay: 0.3s; }
.menu.is-open .menu__item:nth-child(5) .menu__link { transition-delay: 0.35s; }
.menu.is-open .menu__item:nth-child(6) .menu__link { transition-delay: 0.4s; }
.menu.is-open .menu__item:nth-child(7) .menu__link { transition-delay: 0.45s; }
.menu.is-open .menu__item:nth-child(8) .menu__link { transition-delay: 0.5s; }

.menu__aside {
    display: grid;
    gap: 20px;
    align-content: start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease) 0.45s, transform 0.6s var(--ease) 0.45s;
}

.menu.is-open .menu__aside { opacity: 1; transform: none; }

.menu__contact { display: grid; gap: 4px; font-size: 1.25rem; margin: 0; }

@media (max-width: 699px) {
    .menu__link { gap: 14px; padding: 9px 0; font-size: clamp(1.35rem, 0.9rem + 2.4vw, 1.75rem); }
    .menu__num { transform: translateY(-0.6em); }
    .menu__aside { gap: 16px; }
    .menu__contact { font-size: 1.1rem; }
}
.menu__address { color: var(--c-muted); }
.lang-switch--menu { justify-self: start; }

@media (min-width: 1000px) {
    .menu__inner { grid-template-columns: 1.6fr 1fr; gap: 80px; }
    .menu__aside { padding-top: 24px; }
}

/* -------------------------------------------------------------- social */
.social { display: flex; gap: 10px; }

.social__link {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    color: var(--c-text);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.social__link:hover { background: var(--c-green); border-color: var(--c-green); color: var(--c-bg); transform: translateY(-2px); }
.social__link .icon { width: 18px; height: 18px; }

/* -------------------------------------------------------------- hero (home) */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(100vh, 1000px);
    min-height: min(100svh, 1000px);
    padding: calc(var(--header-h) + 40px) 0 clamp(88px, 11vh, 128px);
    overflow: hidden;
    isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s var(--ease-in-out);
}

.hero__slide.is-active { opacity: 1; }

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.hero__slide.is-active .hero__img { animation: kenburns 9s linear forwards; }

@keyframes kenburns {
    from { transform: scale(1.08); }
    to { transform: scale(1.18) translate3d(-1%, -1%, 0); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 20, 38, 0.55) 0%, rgba(11, 20, 38, 0.25) 35%, rgba(11, 20, 38, 0.9) 85%, var(--c-bg) 100%),
        linear-gradient(90deg, rgba(11, 20, 38, 0.85) 0%, rgba(11, 20, 38, 0.15) 70%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero__content { position: relative; }

.hero__title {
    max-width: 17ch;
    margin-bottom: 0.25em;
    font-size: clamp(2.5rem, 0.6rem + 5.6vw, 6.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero__rotator {
    position: relative;
    height: 1.6em;
    margin-bottom: 1.2em;
    overflow: hidden;
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.5rem);
    color: var(--c-green);
}

.hero__rotator-item {
    position: absolute;
    inset: 0;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}

.hero__rotator-item.is-active { transform: none; opacity: 1; }
.hero__rotator-item.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero__lead { max-width: 560px; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: rgba(255, 255, 255, 0.85); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__progress {
    position: absolute;
    left: var(--gutter);
    bottom: 40px;
    display: flex;
    gap: 8px;
}

.hero__bar {
    position: relative;
    width: 48px;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.hero__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-green);
    transform: scaleX(0);
    transform-origin: left;
}

.hero__bar.is-active::after { animation: bar 6.5s linear forwards; }
.hero__bar.is-done::after { transform: scaleX(1); }

@keyframes bar { to { transform: scaleX(1); } }

.hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 40px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-muted);
    writing-mode: vertical-rl;
}

.hero__scroll i {
    position: relative;
    width: 1px;
    height: 64px;
    overflow: hidden;
    background: var(--c-line);
}

.hero__scroll i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-green);
    animation: scrollLine 2.2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Rotating circular badge */
.badge {
    position: absolute;
    right: calc(var(--gutter) + 40px);
    bottom: 120px;
    display: none;
    place-items: center;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: rgba(11, 20, 38, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--c-line);
    color: var(--c-text);
}

.badge__text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: currentColor;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    animation: spin 18s linear infinite;
}

.badge__mark { width: 40px; height: auto; transition: transform 0.5s var(--ease); }
.badge:hover { color: var(--c-green); }
.badge:hover .badge__mark { transform: translateY(4px) scale(1.08); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
    .badge, .hero__scroll { display: flex; }
    .badge { display: grid; }
}

/* -------------------------------------------------------------- marquee */
.marquee {
    position: relative;
    overflow: hidden;
    padding-block: clamp(20px, 3vw, 36px);
    border-block: 1px solid var(--c-line);
    background: var(--c-bg);
    user-select: none;
}

.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group { display: flex; align-items: center; flex: none; }

.marquee__item {
    padding-inline: clamp(16px, 2vw, 32px);
    font-size: clamp(1.75rem, 1rem + 3vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
    transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}

.marquee__item:hover { color: var(--c-green); -webkit-text-stroke-color: var(--c-green); }
.marquee__sep { color: var(--c-green); font-size: clamp(1rem, 0.8rem + 1vw, 1.75rem); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- intro + stats */
.intro__grid {
    display: grid;
    gap: clamp(48px, 7vw, 96px);
    align-items: center;
}

.intro__text p { color: rgba(255, 255, 255, 0.85); }

.intro__collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    aspect-ratio: 1 / 1;
}

.intro__img { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.intro__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__img--1 { grid-column: 1 / 6; grid-row: 1 / 6; }
.intro__img--2 { grid-column: 4 / 7; grid-row: 4 / 7; border: 6px solid var(--c-bg); border-radius: 50%; }
.intro__img--3 { grid-column: 1 / 3; grid-row: 5 / 7; border: 6px solid var(--c-bg); z-index: 1; }

@media (min-width: 1000px) {
    .intro__grid { grid-template-columns: 1fr 1fr; }
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: clamp(64px, 9vw, 120px);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-line);
}

.stats__item {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 8px;
    padding: clamp(24px, 3vw, 44px);
    background: var(--c-bg);
}

.stats__value {
    font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.25rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.stats__suffix { color: var(--c-green); }
.stats__label { color: var(--c-muted); font-size: 0.9375rem; max-width: 22ch; }

@media (min-width: 900px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------- services (home) */
.service-row {
    display: grid;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding-block: clamp(32px, 5vw, 64px);
    border-top: 1px solid var(--c-line);
}

.service-row__media { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.service-row__media a, .service-row__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-row__media img { transition: transform 1.2s var(--ease); }
.service-row__media:hover img { transform: scale(1.04); }

.service-row__num {
    display: block;
    margin-bottom: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--c-green);
}

.service-row__title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.25rem); letter-spacing: -0.03em; }
.service-row__body p { color: rgba(255, 255, 255, 0.82); }
.service-row__body .btn { margin-top: 12px; }

@media (min-width: 1000px) {
    .service-row { grid-template-columns: 1.1fr 1fr; }
    .service-row--reverse .service-row__media { order: 2; }
}

/* -------------------------------------------------------------- horizontal scroll (home) */
.hscroll { position: relative; background: var(--c-bg-2); }

.hscroll__sticky { padding-block: var(--section); overflow: hidden; }

.hscroll__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.hscroll__head .display { margin-bottom: 0; }

.hscroll__progress {
    position: relative;
    width: min(240px, 40vw);
    height: 2px;
    background: var(--c-line);
    overflow: hidden;
}

.hscroll__progress span {
    position: absolute;
    inset: 0;
    background: var(--c-green);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

.hscroll__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
}

.hscroll__viewport::-webkit-scrollbar { display: none; }

.hscroll__track {
    display: flex;
    gap: 20px;
    width: max-content;
    list-style: none;
    padding-right: var(--gutter);
    will-change: transform;
}

.cap-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(78vw, 380px);
    min-height: 420px;
    padding: 36px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--c-surface-2), transparent 60%), var(--c-bg);
    scroll-snap-align: start;
    transition: border-color 0.4s, transform 0.5s var(--ease), background-color 0.4s;
}

.cap-card:hover { border-color: var(--c-green); transform: translateY(-6px); }

.cap-card__num {
    position: absolute;
    top: 28px;
    right: 32px;
    font-size: 0.875rem;
    color: var(--c-muted);
    letter-spacing: 0.12em;
}

.cap-card__icon { width: 72px; height: 72px; color: var(--c-green); margin-bottom: auto; }
.cap-card__title { margin-top: 40px; font-size: 1.6rem; }
.cap-card__text { margin: 0; color: var(--c-muted); }

.cap-card--cta { padding: 0; background: var(--c-green); border-color: var(--c-green); color: var(--c-bg); }
.cap-card--cta:hover { transform: translateY(-6px); }

.cap-card__link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 36px;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--c-bg);
}

.cap-card__link:hover { color: var(--c-bg); }

.cap-card__arrow {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--c-bg);
    color: var(--c-green);
    align-self: flex-end;
    transition: transform 0.5s var(--ease);
}

.cap-card__link:hover .cap-card__arrow { transform: rotate(45deg); }
.cap-card__arrow .icon { width: 28px; height: 28px; }

/* Pinned mode (desktop, set by JS) */
.hscroll.is-pinned .hscroll__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hscroll.is-pinned .hscroll__viewport { overflow: visible; }

/* -------------------------------------------------------------- timeline (home) */
.phases__grid { display: grid; gap: 48px; }

.phases__head { align-self: start; }

@media (min-width: 1000px) {
    .phases__grid { grid-template-columns: 1fr 1.2fr; gap: 96px; }
    .phases__head { position: sticky; top: calc(var(--header-h) + 40px); }
}

.timeline { position: relative; list-style: none; padding-left: 56px; }

.timeline__line {
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--c-line);
}

.timeline__fill {
    position: absolute;
    inset: 0;
    background: var(--c-green);
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
}

.timeline__item { position: relative; padding-bottom: 48px; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__num {
    position: absolute;
    left: -56px;
    top: -2px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-line-strong);
    border-radius: 50%;
    background: var(--c-bg);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-muted);
    transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}

.timeline__item.is-active .timeline__num { background: var(--c-green); border-color: var(--c-green); color: var(--c-bg); }
.timeline__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem); margin-bottom: 0.3em; }
.timeline__text { color: var(--c-muted); margin: 0; }

/* -------------------------------------------------------------- claim (word reveal) */
.claim { padding-block: calc(var(--section) * 0.9); }

.claim__text {
    margin: 0;
    max-width: 22ch;
    font-size: clamp(2rem, 1rem + 4.4vw, 5.25rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.word-dim { color: rgba(255, 255, 255, 0.16); transition: color 0.4s var(--ease); }
.word-dim.is-lit { color: var(--c-text); }
.word-dim.is-lit:last-child { color: var(--c-green); }

/* -------------------------------------------------------------- references teaser */
.ref-list { list-style: none; border-top: 1px solid var(--c-line); }

.ref-list__item { border-bottom: 1px solid var(--c-line); }

.ref-list__link {
    position: relative;
    display: grid;
    gap: 6px 32px;
    padding: 28px 64px 28px 0;
    transition: padding 0.5s var(--ease), color 0.3s;
}

.ref-list__link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c-green-soft);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s var(--ease);
}

.ref-list__link:hover { padding-left: 20px; color: var(--c-text); }
.ref-list__link:hover::before { transform: scaleY(1); }

.ref-list__project { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); font-weight: 500; letter-spacing: -0.01em; }
.ref-list__service { color: var(--c-muted); }
.ref-list__location { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: 0.9375rem; }
.ref-list__location .icon { color: var(--c-green); }

.ref-list__arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}

.ref-list__link:hover .ref-list__arrow { background: var(--c-green); color: var(--c-bg); border-color: var(--c-green); transform: translateY(-50%) rotate(45deg); }

@media (min-width: 1000px) {
    .ref-list__link { grid-template-columns: 1.4fr 1fr 1fr; align-items: center; }
}

/* -------------------------------------------------------------- careers teaser */
.careers-teaser { overflow: hidden; }

.careers-teaser__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(60% 50% at 50% 0%, rgba(38, 184, 114, 0.12), transparent 70%);
}

.career-cards { display: grid; gap: 20px; margin-bottom: 48px; }

.career-card {
    padding: 36px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    transition: border-color 0.4s, background-color 0.4s;
    transform-style: preserve-3d;
}

.career-card:hover { border-color: var(--c-green); background: var(--c-surface-2); }

.career-card__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--c-green-soft);
    color: var(--c-green);
}

.career-card__title { font-size: 1.6rem; text-transform: none; }

@media (min-width: 900px) {
    .career-cards { grid-template-columns: repeat(3, 1fr); }
}

.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 1.2em; }

.check-list li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, 0.85); }

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--c-green);
    border-bottom: 2px solid var(--c-green);
    transform: rotate(-45deg);
}

@media (min-width: 800px) {
    .check-list--columns { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* -------------------------------------------------------------- posts */
.post-grid { display: grid; gap: clamp(24px, 3vw, 40px); }

@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: flex; flex-direction: column; }

.post-card__media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    background: var(--c-surface);
}

.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }

.post-card__body { padding-top: 24px; display: flex; flex-direction: column; flex: 1; }

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: var(--c-muted);
}

.post-card__title { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem); line-height: 1.2; margin-bottom: 0.5em; }
.post-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease), color 0.3s; }
.post-card:hover .post-card__title a { background-size: 100% 1px; color: var(--c-green-2); }
.post-card__excerpt { color: var(--c-muted); font-size: 0.9375rem; }

.post-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 500;
    color: var(--c-green);
}

.post-card__more .icon { transition: transform 0.35s var(--ease); }
.post-card:hover .post-card__more .icon { transform: translateX(5px); }

.post-featured {
    display: grid;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    margin-bottom: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(56px, 7vw, 96px);
    border-bottom: 1px solid var(--c-line);
}

.post-featured__media { display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; }
.post-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured__title { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.03em; }
.post-featured__body p { color: var(--c-muted); }

@media (min-width: 1000px) {
    .post-featured { grid-template-columns: 1.4fr 1fr; }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 64px;
}

.pagination__list { display: flex; gap: 8px; list-style: none; }

.pagination__num,
.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    font-weight: 500;
}

.pagination__num.is-active { background: var(--c-green); border-color: var(--c-green); color: var(--c-bg); }
.pagination__num:hover, .pagination__link:hover { border-color: var(--c-green); }

/* -------------------------------------------------------------- page hero (sub-pages) */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 clamp(48px, 7vw, 96px);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 60% at 90% 0%, rgba(38, 184, 114, 0.16), transparent 70%),
        linear-gradient(180deg, var(--c-navy) 0%, var(--c-bg) 100%);
}

.page-hero__title {
    max-width: 16ch;
    font-size: clamp(2.6rem, 1.3rem + 5.6vw, 6.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.page-hero__lead { max-width: 640px; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); color: rgba(255, 255, 255, 0.82); }

.page-hero__media {
    margin-top: clamp(40px, 6vw, 80px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 7;
}

.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumbs { margin-bottom: 28px; font-size: 0.875rem; color: var(--c-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--c-line-strong); }
.breadcrumbs a:hover { color: var(--c-green); }
.breadcrumbs [aria-current] { color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 40ch; }

/* -------------------------------------------------------------- generic media + text */
.media-split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }

.media-split__media { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.media-split__media--portrait { aspect-ratio: 4 / 5; }
.media-split__media img { width: 100%; height: 100%; object-fit: cover; }
.media-split__body p { color: rgba(255, 255, 255, 0.82); }

@media (min-width: 1000px) {
    .media-split { grid-template-columns: 1fr 1fr; }
    .media-split--reverse .media-split__media { order: 2; }
}

/* -------------------------------------------------------------- process: sticky stack */
.stack-section__grid { display: grid; gap: 48px; }

@media (min-width: 1000px) {
    .stack-section__grid { grid-template-columns: 0.9fr 1.1fr; gap: 96px; }
    .stack-section__intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

.stack { list-style: none; display: grid; gap: 24px; }

.stack__card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: clamp(28px, 3.5vw, 48px);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--c-navy-2), var(--c-navy) 60%);
    box-shadow: var(--shadow);
    transform-origin: center top;
    transition: transform 0.4s linear, filter 0.4s linear;
}

.stack__card:nth-child(2) { top: calc(var(--header-h) + 40px); }
.stack__card:nth-child(3) { top: calc(var(--header-h) + 56px); }
.stack__card:nth-child(4) { top: calc(var(--header-h) + 72px); }
.stack__card:nth-child(5) { top: calc(var(--header-h) + 88px); }
.stack__card:nth-child(6) { top: calc(var(--header-h) + 104px); }
.stack__card:nth-child(7) { top: calc(var(--header-h) + 120px); }
.stack__card:nth-child(8) { top: calc(var(--header-h) + 136px); }

.stack__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.stack__num { font-size: 0.875rem; letter-spacing: 0.14em; color: var(--c-green); }
.stack__icon { width: 64px; height: 64px; color: var(--c-green); }
.stack__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.stack__text { margin: 0; color: rgba(255, 255, 255, 0.82); }

/* -------------------------------------------------------------- lists */
.split-list { display: grid; gap: 32px; padding-block: 24px; }
.split-list + .split-list { margin-top: 48px; padding-top: 72px; border-top: 1px solid var(--c-line); }
.split-list__title { max-width: 40ch; }

@media (min-width: 1000px) {
    .split-list { grid-template-columns: 1fr 1.3fr; gap: 80px; }
}

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }

.pill-list__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    background: var(--c-surface);
    transition: border-color 0.3s, background-color 0.3s;
}

.pill-list__item:hover { border-color: var(--c-green); background: var(--c-green-soft); }
.pill-list__item .icon { color: var(--c-green); }

.list-title { margin-top: 1.5em; font-weight: 600; color: var(--c-green); }

/* -------------------------------------------------------------- quote band */
.quote-band { text-align: center; }

.quote-band__text {
    max-width: 24ch;
    margin: 0 auto;
    font-size: clamp(1.8rem, 1rem + 3.6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

/* -------------------------------------------------------------- next link */
.next-link__a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 24px;
    padding-block: clamp(32px, 5vw, 64px);
    border-block: 1px solid var(--c-line);
}

.next-link__a .eyebrow { grid-column: 1 / -1; margin: 0; }

.next-link__title {
    font-size: clamp(2rem, 1rem + 4.4vw, 5.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    transition: transform 0.6s var(--ease), color 0.3s;
}

.next-link__arrow {
    display: grid;
    place-items: center;
    width: clamp(56px, 7vw, 96px);
    height: clamp(56px, 7vw, 96px);
    border-radius: 50%;
    border: 1px solid var(--c-line-strong);
    transition: background-color 0.4s, color 0.4s, transform 0.6s var(--ease);
}

.next-link__arrow .icon { width: 40%; height: 40%; }
.next-link__a:hover .next-link__title { transform: translateX(16px); color: var(--c-green); }
.next-link__a:hover .next-link__arrow { background: var(--c-green); color: var(--c-bg); border-color: var(--c-green); transform: rotate(-45deg); }

/* -------------------------------------------------------------- engineering: sub-navigation */
.subnav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-block: 1px solid var(--c-line);
    background: rgba(11, 20, 38, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: top 0.5s var(--ease);
}

.subnav.is-below-header { top: var(--header-h); }

.subnav__list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.subnav__list::-webkit-scrollbar { display: none; }

.subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--c-muted);
    border-bottom: 2px solid transparent;
}

.subnav__link span { font-size: 0.75rem; color: var(--c-green); }
.subnav__link:hover, .subnav__link.is-active { color: var(--c-text); border-bottom-color: var(--c-green); }

.eng-section__num {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(3rem, 2rem + 4vw, 6rem);
    font-weight: 500;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--c-green);
}

.anchor-legacy { position: absolute; top: 0; }
.eng-section { padding-block: calc(var(--section) * 0.5); }
.eng-section:first-of-type { padding-top: var(--section); }

/* -------------------------------------------------------------- accordion */
.accordion {
    margin-top: 28px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-surface);
    overflow: hidden;
}

.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.accordion__summary::-webkit-details-marker { display: none; }

.accordion__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-green);
    color: var(--c-bg);
    transition: transform 0.4s var(--ease);
}

.accordion[open] .accordion__icon { transform: rotate(45deg); }
.accordion__content { padding: 0 24px 24px; }
.accordion__content p { color: rgba(255, 255, 255, 0.82); }

/* -------------------------------------------------------------- references table */
.filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 56px;
}

.chip {
    padding: 10px 18px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-muted);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.chip:hover { border-color: var(--c-green); color: var(--c-text); }
.chip.is-active { background: var(--c-green); border-color: var(--c-green); color: var(--c-bg); }

.filter__count { margin: 0 0 0 auto; font-size: 0.875rem; color: var(--c-muted); }

.ref-table + .ref-table { margin-top: 72px; }
.ref-table[hidden] { display: none; }
.ref-table__title { margin-bottom: 24px; }

.table { width: 100%; border-collapse: collapse; font-size: 0.9875rem; }

.table th,
.table td {
    padding: 18px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--c-line);
}

.table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-green);
    border-bottom-color: var(--c-line-strong);
}

.table tbody th { font-weight: 500; }
.table tbody td { color: var(--c-muted); }
.table tbody tr { transition: background-color 0.3s; }
.table tbody tr:hover { background: var(--c-surface); }
.table tbody tr[hidden] { display: none; }

@media (max-width: 760px) {
    .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .table, .table tbody, .table tr, .table th, .table td { display: block; }
    .table tr { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
    .table th, .table td { padding: 2px 0; border: 0; }
    .table tbody th { font-size: 1.05rem; margin-bottom: 6px; }
    .table td::before { content: attr(data-label) ": "; color: var(--c-green); font-size: 0.8125rem; }
}

/* -------------------------------------------------------------- documents */
.doc-list { list-style: none; border-top: 1px solid var(--c-line); }
.doc-list__item { border-bottom: 1px solid var(--c-line); }

.doc-list__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 24px;
    padding: 24px 8px;
    transition: background-color 0.3s, padding 0.5s var(--ease);
}

.doc-list__link:hover { background: var(--c-surface); padding-inline: 20px; color: var(--c-text); }
.doc-list__icon { color: var(--c-green); grid-row: span 2; }
.doc-list__title { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-weight: 500; }
.doc-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--c-muted); grid-column: 2; }

.doc-list__action {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.doc-list__link:hover .doc-list__action { background: var(--c-green); color: var(--c-bg); border-color: var(--c-green); }

.doc-list--compact .doc-list__link { grid-template-columns: 1fr auto; padding-block: 18px; }
.doc-list--compact .doc-list__meta { grid-column: 1; }
.doc-list--compact .doc-list__action { grid-column: 2; }

/* -------------------------------------------------------------- about */
.year-line { list-style: none; display: grid; gap: 0; position: relative; }

.year-line__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0 28px 40px;
    border-left: 1px solid var(--c-line);
}

.year-line__dot {
    position: absolute;
    left: -7px;
    top: 42px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--c-bg-2);
    border: 2px solid var(--c-green);
}

.year-line__year {
    font-size: clamp(2.4rem, 1.6rem + 3vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--c-green);
    font-variant-numeric: tabular-nums;
}

.year-line__text { margin: 0; font-size: 1.15rem; }

@media (min-width: 1000px) {
    .year-line { grid-auto-flow: column; grid-auto-columns: 1fr; }
    .year-line__item { padding: 56px 24px 0 0; border-left: 0; border-top: 1px solid var(--c-line); }
    .year-line__dot { left: 0; top: -7px; }
}

.cert-grid { display: grid; gap: 24px; }

@media (min-width: 700px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }

.cert {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    overflow: hidden;
    transition: border-color 0.4s;
}

.cert:hover { border-color: var(--c-green); }

.cert__media {
    display: block;
    padding: 24px;
    background: #f3f5f8;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.cert__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.8s var(--ease); }
.cert:hover .cert__media img { transform: scale(1.04); }
.cert__body { padding: 28px; }
.cert__title { font-size: 1.4rem; margin-bottom: 0.2em; }
.cert__desc { color: var(--c-muted); }

/* -------------------------------------------------------------- careers */
.job { display: grid; gap: 48px; align-items: start; }

@media (min-width: 1000px) {
    .job { grid-template-columns: 1.4fr 1fr; gap: 80px; }
    .job__poster { position: sticky; top: calc(var(--header-h) + 32px); }
}

.job__body .tag { margin-bottom: 20px; }
.job__body > p { color: rgba(255, 255, 255, 0.85); }

.job__poster a { display: block; overflow: hidden; border-radius: var(--radius-lg); }
.job__poster img { width: 100%; transition: transform 0.8s var(--ease); }
.job__poster a:hover img { transform: scale(1.03); }

.benefits { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; }
.benefits li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 20px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.benefits__emoji { font-size: 1.4rem; line-height: 1.2; }

.job__apply { padding: 32px; border-radius: var(--radius-lg); background: var(--c-navy); border: 1px solid var(--c-line); }
.job__apply .icon { color: var(--c-green); }
.job__apply .btn .icon { color: currentColor; }
.job__contacts { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }

/* -------------------------------------------------------------- contact */
.contact-big {
    display: grid;
    gap: 8px;
    margin-bottom: clamp(48px, 7vw, 96px);
    padding-bottom: clamp(48px, 7vw, 96px);
    border-bottom: 1px solid var(--c-line);
}

.contact-big__link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: clamp(1.6rem, 1rem + 3.2vw, 4.25rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.2;
    word-break: break-word;
}

.contact-big__link .icon { color: var(--c-green); flex: none; }

.contact-grid { display: grid; gap: 20px; margin-bottom: 64px; }

@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
    .contact-grid { grid-template-columns: repeat(4, 1fr); }
    .contact-card--wide { grid-column: span 4; }
}

.contact-card {
    padding: 32px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
}

.contact-card__icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--c-green-soft);
    color: var(--c-green);
}

.contact-card__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.8em; }
.contact-card address, .contact-card p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1em; }

.def-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.9375rem; }
.def-list dt { color: var(--c-muted); }
.def-list dd { text-align: right; font-weight: 500; }

/* -------------------------------------------------------------- contact form */
.form-section__grid { display: grid; gap: 48px; align-items: start; }

@media (min-width: 1000px) {
    .form-section__grid { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
    .form-section__head { position: sticky; top: calc(var(--header-h) + 40px); }
}

.form {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-bg);
}

.form__grid { display: grid; gap: 20px; }

@media (min-width: 700px) {
    .form__grid { grid-template-columns: 1fr 1fr; }
    .form__field--full { grid-column: 1 / -1; }
}

.form__field { display: grid; gap: 8px; align-content: start; }

.form__label { font-size: 0.875rem; font-weight: 500; color: var(--c-muted); }
.form__label span { color: var(--c-green); }

.form__input {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.form__input::placeholder { color: rgba(169, 181, 202, 0.6); }
.form__input:hover { border-color: rgba(255, 255, 255, 0.4); }
.form__input:focus { outline: none; border-color: var(--c-green); background: var(--c-surface-2); box-shadow: 0 0 0 4px rgba(38, 184, 114, 0.18); }
.form__input[aria-invalid="true"] { border-color: #ff7a7a; }

.form__textarea { min-height: 160px; resize: vertical; line-height: 1.55; }

.form__select {
    appearance: none;
    padding-right: 48px;
    background-image: linear-gradient(45deg, transparent 50%, var(--c-green) 50%), linear-gradient(135deg, var(--c-green) 50%, transparent 50%);
    background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.form__select option { background: var(--c-navy); color: var(--c-text); }

.form__error { margin: 0; font-size: 0.8125rem; color: #ff9b9b; }

.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
}

.form__note { flex: 1 1 280px; margin: 0; font-size: 0.8125rem; color: var(--c-muted); }
.form__note a { color: var(--c-green); text-decoration: underline; text-underline-offset: 2px; }

.form__submit[disabled] { opacity: 0.7; cursor: progress; }

.form__status {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-line);
    font-weight: 500;
}

.form__status--success { border-color: var(--c-green); background: var(--c-green-soft); color: var(--c-text); }
.form__status--error { border-color: #ff7a7a; background: rgba(255, 122, 122, 0.1); color: #ffd0d0; }

/* -------------------------------------------------------------- embeds */
.embed {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(38, 184, 114, 0.18), transparent 70%),
        var(--c-navy);
    border: 1px solid var(--c-line);
}

/* No min-height here: together with aspect-ratio it would force a minimum WIDTH (747 px) and overflow phones */
.embed { width: 100%; min-width: 0; }
.embed--map { aspect-ratio: 4 / 3; }

@media (min-width: 700px) {
    .embed--map { aspect-ratio: 16 / 9; }
}

@media (min-width: 1100px) {
    .embed--map { aspect-ratio: 21 / 9; }
}

.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.embed__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.embed__button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-weight: 600;
}

.embed__icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--c-green);
    color: var(--c-bg);
    transition: transform 0.5s var(--ease);
    box-shadow: 0 0 0 0 rgba(38, 184, 114, 0.5);
    animation: pulse 2.4s infinite;
}

.embed__icon .icon { width: 30px; height: 30px; }
.embed__button:hover .embed__icon { transform: scale(1.08); }
.embed__notice { max-width: 48ch; margin: 0; font-size: 0.8125rem; color: var(--c-muted); }
.embed__link { font-size: 0.875rem; color: var(--c-green); }

@keyframes pulse {
    70% { box-shadow: 0 0 0 22px rgba(38, 184, 114, 0); }
    100% { box-shadow: 0 0 0 0 rgba(38, 184, 114, 0); }
}

.embed.is-loaded .embed__placeholder { display: none; }

/* -------------------------------------------------------------- prose (articles, legal) */
.prose { font-size: 1.0625rem; }
.prose > * + * { margin-top: 0; }
.prose p, .prose li { color: rgba(255, 255, 255, 0.86); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); margin-top: 1.8em; }
.prose h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.4em; display: grid; gap: 8px; }
.prose li::marker { color: var(--c-green); }
.prose a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--c-green-2); }
.prose strong { color: var(--c-text); }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 3em 0; }
.prose blockquote { margin: 2em 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--c-green); font-size: 1.3rem; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--c-surface-2); font-size: 0.9em; }
.prose .figure, .prose .embed { margin: 2.4em 0; }
.prose__effective { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 0.9375rem; }

.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--c-muted); text-align: center; }

/* -------------------------------------------------------------- article */
.article__header { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px)); }

.article__title {
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.article__lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); color: rgba(255, 255, 255, 0.8); }

.article__cover {
    margin-top: clamp(32px, 5vw, 64px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 8;
}

.article__cover img { width: 100%; height: 100%; object-fit: cover; }

.article__layout {
    display: grid;
    gap: 32px;
    padding-block: clamp(48px, 6vw, 96px);
    max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.article__share { display: flex; align-items: center; gap: 10px; order: 2; }
.article__share-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); margin-right: 6px; }

@media (min-width: 1200px) {
    .article__layout {
        grid-template-columns: 80px minmax(0, var(--container-narrow)) 80px;
        justify-content: center;
        max-width: none;
    }
    .article__share { order: 0; flex-direction: column; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
    .article__share-label { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 0 8px; }
}

.article__footer { padding-bottom: 32px; }

.post-nav {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
    padding-block: 32px;
    border-block: 1px solid var(--c-line);
}

.post-nav__link { display: grid; gap: 6px; }
.post-nav__link .eyebrow { margin: 0; }
.post-nav__link .eyebrow::before { display: none; }
.post-nav__title { font-size: 1.15rem; font-weight: 500; }
.post-nav__link--next { text-align: right; justify-items: end; }

@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------------- 404 */
.error-page { padding: calc(var(--header-h) + 80px) 0 var(--section); }

.error-page__code {
    margin: 0;
    font-size: clamp(7rem, 4rem + 18vw, 20rem);
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c-green);
}

.error-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 48px; }
.error-page__links { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; color: var(--c-muted); }

/* -------------------------------------------------------------- footer */
.site-footer { position: relative; background: var(--c-bg-2); border-top: 1px solid var(--c-line); }

.footer-cta { padding-block: var(--section); border-bottom: 1px solid var(--c-line); overflow: hidden; }

.footer-cta__link {
    display: inline-flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    color: var(--c-text);
}

.footer-cta__title {
    font-size: clamp(2.8rem, 1rem + 8vw, 9rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.05em;
    transition: color 0.4s;
}

.footer-cta__link:hover { color: var(--c-text); }
.footer-cta__link:hover .footer-cta__title { color: var(--c-green); }

.footer-cta__arrow {
    display: grid;
    place-items: center;
    flex: none;
    width: clamp(64px, 9vw, 140px);
    height: clamp(64px, 9vw, 140px);
    border-radius: 50%;
    background: var(--c-green);
    color: var(--c-bg);
    transition: transform 0.6s var(--ease);
}

.footer-cta__arrow .icon { width: 40%; height: 40%; }
.footer-cta__link:hover .footer-cta__arrow { transform: rotate(45deg) scale(1.05); }

.footer-cta__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    margin-top: 40px;
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
}

.site-footer__grid {
    display: grid;
    gap: 40px;
    padding-block: clamp(56px, 7vw, 96px);
    font-size: 0.9375rem;
    color: var(--c-muted);
}

.site-footer__grid a:hover { color: var(--c-green); }

.site-footer__heading {
    margin-bottom: 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-text);
}

.site-footer__claim { max-width: 40ch; margin: 24px 0; }
.site-footer__links { list-style: none; display: grid; gap: 8px; }
.site-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid var(--c-line);
    line-height: 1.3;
}

@media (max-width: 559px) {
    .iso-badge { width: 100%; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--c-line); }
}

.iso-badge__img {
    width: 56px;
    height: auto;
    opacity: 0.85;
    filter: saturate(0.85);
    transition: opacity 0.3s, filter 0.3s, transform 0.4s var(--ease);
}

.iso-badge__text { display: grid; font-size: 0.75rem; color: var(--c-muted); }
.iso-badge__text strong { font-weight: 600; letter-spacing: 0.04em; color: var(--c-text); }
.iso-badge:hover .iso-badge__img { opacity: 1; filter: none; transform: scale(1.06); }
.iso-badge:hover .iso-badge__text strong { color: var(--c-green); }

@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 28px;
    border-top: 1px solid var(--c-line);
    font-size: 0.875rem;
    color: var(--c-muted);
}

.site-footer__bottom p { margin: 0; }

.to-top {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.to-top__ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--c-line); stroke-width: 1.5; }
.to-top__ring .to-top__progress { stroke: var(--c-green); stroke-dasharray: 100; stroke-dashoffset: var(--dash, 100); }
.to-top__icon { position: absolute; right: 13px; width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.to-top:hover .to-top__icon { transform: translateY(-3px); }

/* -------------------------------------------------------------- consent banner */
.consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    max-width: 460px;
    padding: 24px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius);
    background: rgba(22, 36, 66, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    font-size: 0.9375rem;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.consent.is-visible { transform: none; opacity: 1; }
.consent[hidden] { display: none; }
.consent__title { margin-bottom: 8px; font-weight: 600; font-size: 1.05rem; }
.consent__text { color: rgba(255, 255, 255, 0.82); }
.consent__text a { color: var(--c-green); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent__actions .btn { flex: 1 1 auto; }
.consent__prefs { display: grid; gap: 12px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--c-line); }

.switch { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--c-line-strong); transition: background-color 0.3s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.switch input:checked + .switch__track { background: var(--c-green); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--c-green); outline-offset: 3px; }
.switch input:disabled + .switch__track { opacity: 0.6; }
.switch__label small { display: block; color: var(--c-muted); }

@media (min-width: 640px) {
    .consent { left: 24px; bottom: 24px; right: auto; }
}

/* -------------------------------------------------------------- lightbox */
.lightbox {
    width: min(1200px, 94vw);
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c-text);
    overflow: visible;
}

.lightbox::backdrop { background: rgba(5, 10, 20, 0.88); backdrop-filter: blur(6px); }
.lightbox[open] { animation: zoomIn 0.5s var(--ease); }
.lightbox__figure { display: grid; justify-items: center; gap: 12px; }
.lightbox__img { max-height: 84vh; width: auto; border-radius: var(--radius); background: #fff; }
.lightbox__caption { font-size: 0.9375rem; color: var(--c-muted); }

.lightbox__close {
    position: absolute;
    top: -56px;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-green);
    color: var(--c-bg);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- custom cursor (fine pointers only) */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .cursor.is-enabled { display: block; }
    .cursor__dot,
    .cursor__ring {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 300;
        pointer-events: none;
        border-radius: 50%;
        transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%);
    }
    .cursor__dot { width: 6px; height: 6px; background: var(--c-green); }
    .cursor__ring {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(38, 184, 114, 0.6);
        transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) translate(-50%, -50%) scale(var(--scale, 1));
        transition: width 0.35s var(--ease), height 0.35s var(--ease), background-color 0.35s, border-color 0.35s;
        display: grid;
        place-items: center;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--c-bg);
    }
    .cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(38, 184, 114, 0.12); }
    .cursor.is-view .cursor__ring { width: 96px; height: 96px; background: var(--c-green); border-color: var(--c-green); }
    .cursor.is-view .cursor__ring::after { content: attr(data-label); }
    .cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }
}

/* -------------------------------------------------------------- utilities */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

[hidden] { display: none !important; }

/* -------------------------------------------------------------- motion: reveal on scroll
   Hidden states apply only when JS runs (class "js" on <html>) – content is always
   visible without JavaScript and for search engines. */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    transition-delay: var(--delay, 0s);
}

.js [data-reveal="clip"] {
    opacity: 1;
    transform: none;
    clip-path: inset(100% 0 0 0 round var(--radius-lg));
    transition: clip-path 1.3s var(--ease);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

.js [data-split] { opacity: 0; }
.js [data-split].is-split { opacity: 1; }

.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.split-word__inner {
    display: inline-block;
    transform: translate3d(0, 105%, 0);
    transition: transform 1s var(--ease);
    transition-delay: calc(var(--i, 0) * 0.05s);
}

.is-in .split-word__inner { transform: none; }

[data-parallax] { transform: translate3d(0, var(--py, 0), 0) scale(1.12); will-change: transform; }

/* Keep rounded corners when a transformed child is clipped (Chrome/Safari bug) */
.intro__img,
.service-row__media,
.media-split__media,
.page-hero__media,
.article__cover,
.post-card__media,
.post-featured__media { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }

.services { padding-top: calc(var(--section) * 0.6); }

/* "Reduce motion" (e.g. Windows → Accessibility → Animation effects OFF):
   no movement, zooming, rotation or parallax – but soft fades, the slideshow cross-fade,
   counters and the typewriter stay, so the site is still alive. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { transform: none; transition: opacity 0.8s ease; }
    .js [data-reveal="clip"] { clip-path: none; opacity: 0; transition: opacity 1s ease; }
    .js [data-reveal="clip"].is-in { clip-path: none; opacity: 1; }
    .js [data-split] { opacity: 0; transition: opacity 0.8s ease; }
    .js [data-split].is-in { opacity: 1; }
    .split-word__inner { transform: none; }
    [data-parallax] { transform: none; }
    .marquee__track { animation-duration: 90s; }
    .hero__slide.is-active .hero__img,
    .badge__text,
    .hero__scroll i::after,
    .embed__icon { animation: none; }
    .menu__link, .menu__aside { transform: none; }
    .menu__bg { clip-path: none; opacity: 0; transition: opacity 0.35s ease; }
    .menu.is-open .menu__bg { clip-path: none; opacity: 1; }
    .cap-card:hover, .social__link:hover, .career-card { transform: none; }
}

/* Typewriter (hero claims) */
.hero__rotator.is-typewriter { height: auto; min-height: 1.6em; }
.typewriter__caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 4px;
    vertical-align: -0.15em;
    background: currentColor;
    animation: caret 1s steps(1) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

/* -------------------------------------------------------------- print */
@media print {
    .site-header, .menu, .consent, .cursor, .footer-cta, .hero__media, .marquee, .article__share, .lightbox { display: none !important; }
    body { background: #fff; color: #000; }
    .js [data-reveal], .js [data-split] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    a { color: #000; text-decoration: underline; }
}
