/* ==========================================================================
   Checkin Group — checkingroup.ge
   Design tokens → base → header/menu → home gate → inner pages → footer
   Breakpoints: 480 / 768 / 1024 / 1280 (mobile-first where it matters)
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL; subset to Latin + Cyrillic + Georgian) */
@font-face { font-family: 'FiraGO'; src: url('../fonts/FiraGO-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('../fonts/FiraGO-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('../fonts/FiraGO-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('../fonts/FiraGO-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('../fonts/FiraGO-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* FiraGO has no Mtavruli glyphs, so Georgian headings use Noto Sans Georgian.
   unicode-range keeps Latin/Cyrillic in those same headings on FiraGO. */
@font-face {
    font-family: 'Mtavruli';
    src: url('../fonts/NotoSansGeorgian-Mtavruli.woff2') format('woff2');
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+10D0-10FF, U+1C90-1CBF;
}

/* ---------- Tokens */
:root {
    --brand: #169b9a;            /* sampled from the check in travel logo */
    --brand-ink: #0e6f6e;        /* brand for text on light backgrounds (AA) */
    --brand-soft: #e7f4f3;
    --out: 9 47 77;              /* Outgoing — deep ocean (rgb triplet) */
    --out-hi: #2a7fb8;
    --in: 78 22 36;              /* Incoming — Georgian wine (rgb triplet) */
    --in-hi: #c46a46;            /* terracotta */
    --ink: #0e171c;
    --ink-2: #33434b;
    --muted: #63727a;
    --paper: #ffffff;
    --sand: #f5f2ec;
    --line: rgb(14 23 28 / .1);

    --font: 'FiraGO', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Mtavruli', 'FiraGO', system-ui, sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 84px;
    --radius: 20px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --shadow: 0 1px 2px rgb(14 23 28 / .04), 0 12px 32px -12px rgb(14 23 28 / .18);
}

@media (max-width: 767px) {
    :root { --header-h: 68px; }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; overflow-wrap: break-word; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

.icon { width: 1.25em; height: 1.25em; flex: none; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 100;
    padding: 10px 16px; border-radius: 999px;
    background: var(--paper); color: var(--ink); font-weight: 600;
    transform: translateY(-160%);
    transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
    width: min(1200px, 100% - var(--gutter) * 2);
    margin-inline: auto;
}

/* Display headings use var(--font-head) + text-transform: uppercase:
   Georgian becomes Mtavruli, Latin and Cyrillic become capitals. */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

/* ---------- Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--brand-ink);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.button:hover { background: var(--brand); transform: translateY(-1px); }
.button .icon { width: 18px; height: 18px; }
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: var(--brand-soft); }
.button--ghost { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .45); }
.button--ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    color: #fff;
    transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.page-home .site-header { position: absolute; }

/* Soft top scrim so white text reads over any photo. */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0 0 -48px 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgb(6 12 16 / .55), rgb(6 12 16 / 0));
    pointer-events: none;
    transition: opacity .35s var(--ease);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 32px);
    height: var(--header-h);
    padding-inline: var(--gutter);
    transition: height .35s var(--ease);
}

.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand__logo {
    width: auto;
    height: 50px;
    transition: height .35s var(--ease);
}

.nav {
    display: none;
    align-items: center;
    gap: clamp(20px, 2.6vw, 36px);
    margin-left: auto;
}

.nav__link {
    position: relative;
    padding: 6px 0;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.lang-switch {
    display: none;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgb(255 255 255 / .12);
    border: 1px solid rgb(255 255 255 / .22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.lang-switch__link {
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang-switch__link:hover { background: rgb(255 255 255 / .16); }
.lang-switch__link[aria-current='true'] { background: #fff; color: var(--ink); }

.menu-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border-radius: 50%;
    background: rgb(255 255 255 / .14);
    border: 1px solid rgb(255 255 255 / .25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle__open, .menu-toggle__close { grid-area: 1 / 1; display: grid; transition: opacity .25s, transform .35s var(--ease-out); }
.menu-toggle__close { opacity: 0; transform: rotate(-90deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__open { opacity: 0; transform: rotate(90deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__close { opacity: 1; transform: none; }

/* Solid header once the page scrolls (inner pages; home keeps it absolute). */
.site-header.is-scrolled { background: rgb(255 255 255 / .94); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgb(14 23 28 / .25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled .site-header__inner { height: 68px; }
.site-header.is-scrolled .brand__logo { height: 42px; }
.site-header.is-scrolled .lang-switch { background: rgb(14 23 28 / .05); border-color: var(--line); }
.site-header.is-scrolled .lang-switch__link:hover { background: rgb(14 23 28 / .06); }
.site-header.is-scrolled .lang-switch__link[aria-current='true'] { background: var(--ink); color: #fff; }
.site-header.is-scrolled .menu-toggle { background: rgb(14 23 28 / .05); border-color: var(--line); }

@media (min-width: 1024px) {
    .nav, .lang-switch { display: flex; }
    .menu-toggle { display: none; }
}

@media (max-width: 767px) {
    .brand__logo { height: 42px; }
    .site-header.is-scrolled .site-header__inner { height: 60px; }
    .site-header.is-scrolled .brand__logo { height: 36px; }
}

/* Without JS the menu button can't work: show the links inline instead. */
.no-js .menu-toggle { display: none; }
.no-js .nav, .no-js .lang-switch { display: flex; }
.no-js .site-header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 10px; }

/* ---------- Mobile menu (full screen) */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: calc(var(--header-h) + 28px) var(--gutter) max(32px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #fff;
    background:
        radial-gradient(120% 70% at 100% 0%, rgb(22 155 154 / .35), transparent 60%),
        radial-gradient(90% 60% at 0% 100%, rgb(var(--in) / .55), transparent 60%),
        var(--ink);
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }

.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgb(255 255 255 / .12);
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 6vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .2s;
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: .1s; }
.mobile-menu__link[aria-current='page'] { color: var(--brand); }

.mobile-menu__langs { display: flex; gap: 8px; }
.mobile-menu__lang {
    min-width: 56px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / .3);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-align: center;
}
.mobile-menu__lang[aria-current='true'] { background: #fff; color: var(--ink); border-color: #fff; }

.mobile-menu__contact { display: flex; flex-direction: column; gap: 12px; margin-top: auto; font-size: .95rem; color: rgb(255 255 255 / .8); }
.mobile-menu__contact a { display: inline-flex; align-items: center; gap: 12px; }
.mobile-menu__contact .icon { color: var(--brand); }

html.menu-open { overflow: hidden; }
html.menu-open .site-header { position: fixed; background: transparent; color: #fff; box-shadow: none; }
html.menu-open .site-header::before { opacity: 0; }
html.menu-open .menu-toggle { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .25); }

/* ==========================================================================
   Home — the department gate
   ========================================================================== */
.gate {
    position: relative;
    display: flex;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    background: var(--ink);
}

.panel {
    --accent: var(--out);
    --accent-hi: var(--out-hi);
    position: relative;
    isolation: isolate;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: #fff;
    transition: flex-grow .9s var(--ease-out);
}
.panel--incoming { --accent: var(--in); --accent-hi: var(--in-hi); }
.panel + .panel { box-shadow: inset 1px 0 0 rgb(255 255 255 / .22); }

.panel__media { position: absolute; inset: 0; z-index: -3; }
.panel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: kenburns 26s ease-in-out infinite alternate;
    will-change: transform;
}
.panel--outgoing .panel__img { object-position: 42% 62%; }
.panel--incoming .panel__img { object-position: 74% 45%; animation-delay: -9s; }

@keyframes kenburns {
    from { transform: scale(1.05) translate3d(0, 0, 0); }
    to   { transform: scale(1.16) translate3d(-1.8%, -1.2%, 0); }
}

.panel__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(to top, rgb(var(--accent) / .94) 0%, rgb(var(--accent) / .62) 34%, rgb(var(--accent) / .12) 62%, rgb(6 12 16 / .28) 100%);
    transition: opacity .6s var(--ease);
}
/* Dimming layer for the panel that is NOT being hovered. */
.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(6 12 16 / .5);
    opacity: 0;
    transition: opacity .7s var(--ease);
    pointer-events: none;
}

.panel__body {
    width: 100%;
    max-width: 700px;
    padding: calc(var(--header-h) + 24px) clamp(24px, 4.6vw, 76px) clamp(36px, 8vh, 84px);
}

.panel__logo { width: auto; height: 56px; margin-bottom: 22px; }

.panel__kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgb(255 255 255 / .85);
}
.panel__kicker::before { content: ''; width: 30px; height: 2px; border-radius: 2px; background: var(--brand); }

.panel__title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 1rem + 2.7vw, 3.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.panel__tagline {
    margin: 14px 0 0;
    font-size: clamp(1.1rem, .95rem + .55vw, 1.55rem);
    font-weight: 300;
    line-height: 1.35;
    color: rgb(255 255 255 / .92);
}

.panel__more { display: grid; grid-template-rows: 1fr; }
.panel__more-inner { min-height: 0; overflow: hidden; }

.panel__desc {
    max-width: 52ch;
    margin: 18px 0 0;
    font-size: .98rem;
    color: rgb(255 255 255 / .82);
}

.panel__services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    margin-top: 22px;
}
.panel__services li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .93rem;
    line-height: 1.35;
}
.panel__services .icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 50%;
    background: rgb(255 255 255 / .1);
    border: 1px solid rgb(255 255 255 / .24);
}

.panel__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 22px 0 0;
    font-size: .88rem;
}
.panel__contact a {
    position: relative;
    z-index: 2;          /* above the stretched CTA link */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgb(255 255 255 / .85);
    transition: color .2s;
}
.panel__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.panel__contact .icon { width: 16px; height: 16px; color: var(--brand); }

.panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 8px 8px 8px 24px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
/* Stretch the link over the whole panel. */
.panel__cta::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.panel__cta:focus-visible { outline-offset: 4px; outline-color: #fff; }
.panel__cta-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    transition: transform .45s var(--ease-out), background-color .3s;
}
.panel__cta-arrow .icon { width: 18px; height: 18px; }
.panel:hover .panel__cta-arrow,
.panel:focus-within .panel__cta-arrow { transform: translateX(4px); }

.panel__scroll { display: none; }

/* Central "choose your direction" badge on the seam. */
.gate__badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 152px;
    height: 152px;
    padding: 24px;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    background: rgb(8 16 20 / .32);
    border: 1px solid rgb(255 255 255 / .3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.45;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity .45s var(--ease), transform .7s var(--ease-out);
}
.gate__badge::before {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1.5px dashed var(--brand);
    animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Entrance on load */
.js .panel__kicker,
.js .panel__title,
.js .panel__tagline,
.js .panel__cta { animation: rise 1s var(--ease-out) both; }
.js .panel__kicker { animation-delay: .1s; }
.js .panel__title { animation-delay: .2s; }
.js .panel__tagline { animation-delay: .32s; }
.js .panel__cta { animation-name: fade; animation-delay: .45s; }
.js .panel--incoming .panel__kicker { animation-delay: .22s; }
.js .panel--incoming .panel__title { animation-delay: .32s; }
.js .panel--incoming .panel__tagline { animation-delay: .44s; }
.js .panel--incoming .panel__cta { animation-delay: .57s; }
.js .gate__badge { animation: badge-in 1s var(--ease-out) .7s both; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes badge-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.85); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* Desktop with a real pointer: hover expands a side and reveals the details. */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    .panel:hover,
    .panel:focus-within { flex-grow: 1.62; }

    .gate:hover .panel:not(:hover)::before,
    .gate:focus-within .panel:not(:focus-within)::before { opacity: 1; }

    .gate:hover .gate__badge,
    .gate:focus-within .gate__badge { opacity: 0; transform: translate(-50%, -50%) scale(.82); }

    .panel__more {
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows .8s var(--ease-out), opacity .45s var(--ease);
    }
    .panel:hover .panel__more,
    .panel:focus-within .panel__more {
        grid-template-rows: 1fr;
        opacity: 1;
        transition-delay: .12s, .22s;
    }

    .panel__services li {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
    }
    .panel:hover .panel__services li,
    .panel:focus-within .panel__services li { opacity: 1; transform: none; }
    .panel:hover .panel__services li:nth-child(1) { transition-delay: .25s; }
    .panel:hover .panel__services li:nth-child(2) { transition-delay: .3s; }
    .panel:hover .panel__services li:nth-child(3) { transition-delay: .35s; }
    .panel:hover .panel__services li:nth-child(4) { transition-delay: .4s; }
    .panel:hover .panel__services li:nth-child(5) { transition-delay: .45s; }
    .panel:hover .panel__services li:nth-child(6) { transition-delay: .5s; }

    .panel__cta:hover { background: var(--brand-soft); }
}

/* Short laptop screens: keep the expanded panel inside the viewport. */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) and (max-height: 780px) {
    .panel__title { font-size: clamp(1.8rem, .8rem + 2.2vw, 2.8rem); }
    .panel__desc { display: none; }
    .panel__services { margin-top: 16px; gap: 8px 20px; }
    .panel__services .icon { width: 32px; height: 32px; padding: 7px; }
    .panel__cta { margin-top: 20px; }
}

/* Touch tablets / narrow desktops: still side by side, everything visible. */
@media (min-width: 768px) and (hover: none), (min-width: 768px) and (max-width: 1023px) {
    .gate { height: auto; min-height: 100svh; }
    .panel__services { grid-template-columns: 1fr; gap: 10px; }
    .gate__badge { width: 128px; height: 128px; font-size: .66rem; top: calc(var(--header-h) + 90px); }
}

/* Phones: stacked, each department fills the screen. */
@media (max-width: 767px) {
    html.page-home { scroll-snap-type: y proximity; }

    .gate { flex-direction: column; height: auto; min-height: 0; overflow: visible; }
    .panel { flex: none; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; }
    .panel + .panel { box-shadow: inset 0 1px 0 rgb(255 255 255 / .22); }
    .panel--outgoing .panel__img { object-position: 30% 60%; }
    .panel--incoming .panel__img { object-position: 78% 50%; }
    .panel__shade {
        background: linear-gradient(to top, rgb(var(--accent) / .96) 0%, rgb(var(--accent) / .78) 45%, rgb(var(--accent) / .2) 75%, rgb(6 12 16 / .35) 100%);
    }

    .panel__body { padding: calc(var(--header-h) + 32px) 20px 40px; }
    .panel--outgoing .panel__body { padding-bottom: 92px; }
    .panel__title { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.5rem); }
    .panel__desc { font-size: .93rem; margin-top: 14px; }
    .panel__services { gap: 10px 14px; margin-top: 18px; }
    .panel__services li { gap: 10px; font-size: .84rem; }
    .panel__services .icon { width: 30px; height: 30px; padding: 6px; }
    .panel__contact { flex-direction: column; gap: 8px; margin-top: 18px; }
    .panel__cta { margin-top: 22px; }

    .panel__scroll {
        position: absolute;
        left: 50%;
        bottom: 20px;
        z-index: 2;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: .68rem;
        font-weight: 600;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: rgb(255 255 255 / .75);
        transform: translateX(-50%);
    }
    .panel__scroll .icon { width: 20px; height: 20px; animation: nudge 1.8s var(--ease) infinite; }

    .gate__badge { display: none; }
}

@media (max-width: 379px) {
    .panel__services { grid-template-columns: 1fr; }
}

@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Exit curtain: grows from the chosen panel to full screen */
.curtain {
    --accent: var(--out);
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgb(var(--accent));
    color: #fff;
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(50% 50% 50% 50%);
}
.curtain.is-active { visibility: visible; transition: clip-path .62s var(--ease-out); }
.curtain__title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s var(--ease) .25s, transform .6s var(--ease-out) .25s;
}
.curtain.is-full .curtain__title { opacity: 1; transform: none; }
.curtain__bar {
    display: block;
    width: 120px;
    height: 2px;
    margin: 18px auto 0;
    background: rgb(255 255 255 / .25);
    overflow: hidden;
    border-radius: 2px;
}
.curtain__bar::after {
    content: '';
    display: block;
    height: 100%;
    background: var(--brand);
    transform: translateX(-100%);
    animation: load 1.2s var(--ease) infinite;
}
@keyframes load { to { transform: translateX(100%); } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(440px, 64vh, 700px);
    min-height: clamp(440px, 64svh, 700px);
    overflow: hidden;
    color: #fff;
    background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 32s ease-in-out infinite alternate;
}
.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgb(8 20 26 / .9) 0%, rgb(8 20 26 / .45) 45%, rgb(8 20 26 / .2) 70%, rgb(8 20 26 / .45) 100%),
        linear-gradient(100deg, rgb(14 111 110 / .35), transparent 60%);
}
.hero__body { padding-block: calc(var(--header-h) + 48px) clamp(44px, 7vw, 96px); }
.hero .kicker { color: rgb(255 255 255 / .85); }
.hero__title {
    max-width: 18ch;
    font-family: var(--font-head);
    font-size: clamp(2rem, 1.2rem + 3.8vw, 4.6rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-wrap: balance;
}
.hero__lead {
    max-width: 58ch;
    margin: 20px 0 0;
    font-size: clamp(1.02rem, .95rem + .4vw, 1.3rem);
    font-weight: 300;
    color: rgb(255 255 255 / .9);
}
.js .hero .kicker, .js .hero__title, .js .hero__lead { animation: rise 1s var(--ease-out) both; }
.js .hero__title { animation-delay: .1s; }
.js .hero__lead { animation-delay: .22s; }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tint { background: var(--sand); }
.section__title {
    margin-bottom: 22px;
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.7rem);
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-wrap: balance;
}
.section__title--center { text-align: center; }
.section__title--center + .stats,
.section__title--center + .cards { margin-top: 44px; }
.section__lead {
    max-width: 58ch;
    margin: -8px auto 48px;
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
}

/* Story + image */
.split {
    display: grid;
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}
.split__text { color: var(--ink-2); font-size: 1.04rem; }
.split__text .section__title { color: var(--ink); }
.split__media {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
    content: '';
    position: absolute;
    inset: auto 24px 24px auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgb(255 255 255 / .8);
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8.5 16.5l5 5L24 10.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
}
@media (min-width: 900px) {
    .split { grid-template-columns: 1.05fr .95fr; }
    .split__media { aspect-ratio: 4 / 5; }
}

.mission {
    position: relative;
    margin-top: 34px;
    padding: 26px 28px 26px 30px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    border-left: 3px solid var(--brand);
}
.mission__title {
    margin: 0 0 6px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brand-ink);
}
.mission__text { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: clamp(24px, 3.5vw, 40px) 16px;
    border-radius: var(--radius);
    background: var(--paper);
    text-align: center;
    box-shadow: var(--shadow);
}
.stat__value {
    font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--brand-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.stat__label { color: var(--muted); font-size: .95rem; line-height: 1.35; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* Team */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: clamp(20px, 3vw, 32px);
}
.member { display: flex; flex-direction: column; gap: 4px; }
.member__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 14px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--sand);
}
.member__photo--empty {
    display: grid;
    place-items: center;
    font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
    font-weight: 300;
    letter-spacing: .06em;
    color: rgb(255 255 255 / .92);
    background:
        radial-gradient(80% 60% at 20% 10%, rgb(255 255 255 / .18), transparent 60%),
        linear-gradient(150deg, var(--brand) 0%, rgb(var(--out)) 100%);
}
.member:nth-child(even) .member__photo--empty {
    background:
        radial-gradient(80% 60% at 20% 10%, rgb(255 255 255 / .18), transparent 60%),
        linear-gradient(150deg, var(--in-hi) 0%, rgb(var(--in)) 100%);
}
.member__name { font-weight: 600; font-size: 1.08rem; }
.member__role { color: var(--muted); font-size: .93rem; line-height: 1.4; }

/* Service cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 2vw, 24px);
}
.card {
    padding: clamp(24px, 3vw, 34px);
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand-ink);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__title { margin-bottom: 8px; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.card__text { margin: 0; color: var(--muted); font-size: .97rem; }

/* Fleet */
.fleet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: clamp(16px, 2vw, 24px);
}
.vehicle {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.vehicle__media { aspect-ratio: 3 / 2; overflow: hidden; }
.vehicle__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.vehicle:hover .vehicle__media img { transform: scale(1.05); }
.vehicle__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgb(255 255 255 / .92);
    background:
        radial-gradient(70% 70% at 80% 0%, rgb(255 255 255 / .16), transparent 60%),
        linear-gradient(135deg, var(--brand) 0%, rgb(var(--out)) 100%);
}
.vehicle:nth-child(even) .vehicle__placeholder {
    background:
        radial-gradient(70% 70% at 80% 0%, rgb(255 255 255 / .16), transparent 60%),
        linear-gradient(135deg, var(--brand-ink) 0%, rgb(var(--in)) 100%);
}
.vehicle__placeholder .icon { width: 72px; height: 72px; stroke-width: 1.1; }
.vehicle__body { padding: 22px 24px 26px; }
.vehicle__name { font-size: 1.15rem; font-weight: 600; }
.vehicle__seats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: .85rem;
    font-weight: 600;
}
.vehicle__seats .icon { width: 16px; height: 16px; }
.vehicle__text { margin: 0; color: var(--muted); font-size: .95rem; }

/* Call-to-action band */
.cta-band {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(32px, 5vw, 64px);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(60% 120% at 100% 0%, rgb(255 255 255 / .14), transparent 60%),
        linear-gradient(120deg, var(--brand-ink) 0%, rgb(var(--out)) 100%);
}
.cta-band__title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.cta-band__text { margin: 10px 0 0; color: rgb(255 255 255 / .85); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
    .cta-band__actions, .cta-band__actions .button { width: 100%; justify-content: center; }
}

/* 404 */
.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 32px) 64px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(80% 60% at 85% 10%, rgb(22 155 154 / .35), transparent 60%),
        radial-gradient(70% 60% at 10% 100%, rgb(var(--in) / .6), transparent 60%),
        var(--ink);
}
.not-found__code {
    margin: 0;
    font-size: clamp(6rem, 4rem + 12vw, 13rem);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgb(255 255 255 / .55);
}
.not-found__title {
    margin-top: 12px;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
    font-weight: 700;
    text-transform: uppercase;
}
.not-found__text { margin: 12px auto 28px; max-width: 42ch; color: rgb(255 255 255 / .8); }

/* Scroll reveal (only when JS is there to undo it) */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    color: rgb(255 255 255 / .72);
    background: #0b1317;
    font-size: .94rem;
}
.site-footer__grid {
    display: grid;
    gap: 40px;
    padding-block: clamp(56px, 7vw, 88px) 40px;
}
.site-footer__brand p { max-width: 36ch; margin: 18px 0 0; }
.site-footer__title {
    margin-bottom: 16px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
}
.site-footer__list { display: flex; flex-direction: column; gap: 12px; }
.site-footer__list a { transition: color .2s; }
.site-footer__list a:hover { color: #fff; }
.site-footer__list strong { display: block; font-weight: 600; color: rgb(255 255 255 / .92); }
.site-footer__list span { font-size: .85rem; }
.site-footer__list--icons li { display: flex; align-items: flex-start; gap: 12px; }
.site-footer__list--icons .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / .18);
    color: #fff;
    transition: background-color .25s, border-color .25s;
}
.social a:hover { background: var(--brand); border-color: var(--brand); }
.social .icon { width: 19px; height: 19px; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 22px 28px;
    border-top: 1px solid rgb(255 255 255 / .1);
    font-size: .8rem;
    color: rgb(255 255 255 / .5);
}
.site-footer__bottom p { margin: 0; }
.site-footer__credits a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__credits a:hover { color: #fff; }

@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }

/* ==========================================================================
   Reduced motion: no zooms, no reveals, instant everything.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .panel__img, .hero__media img { animation: none; transform: none; }
    .js .reveal { opacity: 1; transform: none; }
}
