/* =====================================================================
   SULONG MARINE — SITE STYLES
   One stylesheet for every page. Theme: "moving forward" — deep-ocean
   navy, signal orange, sea teal, with nautical-chart details.

   Contents
     1. Tokens (rebrand here)        8. Cards & grids
     2. Reset & base                 9. How it works (voyage)
     3. Layout & sections           10. CTA panel
     4. Type, eyebrows, buttons     11. Forms, quote
     5. Header & mobile menu        12. Page-specific: about, services,
     6. Hero, ticker                     contact, prose
     7. Page banner                 13. Footer, chat button
                                    14. Scroll reveal & motion
   ===================================================================== */

/* 1. TOKENS ----------------------------------------------------------- */
:root {
    --navy-950: #06121f;
    --navy-900: #0a1e33;
    --navy-850: #0d2742;
    --navy-800: #10304f;
    --navy-700: #1b4570;

    --orange: #ff8a3d;          /* signal orange: CTAs, highlights */
    --orange-2: #ffa766;        /* hover */
    --orange-deep: #d9661c;     /* gradient shadow end */
    --orange-ink: #1c0d02;      /* text on orange */
    --teal: #3fc1c9;            /* sea teal: secondary accent */

    --ink: #eef4f8;
    --muted: rgba(238, 244, 248, 0.72);
    --faint: rgba(238, 244, 248, 0.5);
    --line: rgba(238, 244, 248, 0.1);
    --line-strong: rgba(238, 244, 248, 0.2);
    --glass: rgba(255, 255, 255, 0.035);
    --link: var(--orange);
    --bg: var(--navy-900);      /* current section background */

    --paper: #f3f6f9;
    --paper-ink: #0a1e33;
    --paper-muted: #46596d;

    --font-display: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 76px;
    --section-y: clamp(4.5rem, 9vw, 8rem);

    --radius-sm: 0.6rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.65);
}

/* 2. RESET & BASE ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
    -webkit-text-size-adjust: 100%;
}
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 5rem); }
/* the jump bar wraps to two rows below ~1240px: leave room for it when jumping */
@media (max-width: 1240px) { html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 8rem); } }
html.menu-open { overflow: hidden; }

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--orange); color: var(--orange-ink); }

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

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: var(--orange);
    color: var(--orange-ink);
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

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

.ms { /* Material Symbols icon */
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.25em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    flex: none;
    width: 1em;
    overflow: hidden;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* Scroll progress ("wake") bar */
.progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 70;
    top: calc(var(--header-h) - 2px);
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    box-shadow: 0 0 12px rgba(255, 138, 61, 0.6);
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    pointer-events: none;
}

/* 3. LAYOUT & SECTIONS ------------------------------------------------ */
.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}
.container--narrow { --container: 820px; }

.section { position: relative; padding-block: var(--section-y); background: var(--bg); }
.section--deep { --bg: var(--navy-950); }
.section--alt  { --bg: var(--navy-850); }
.section--line { border-top: 1px solid var(--line); }

/* Dark "night sea": deep navy with soft teal and orange glows (about: Our values) */
.section--night {
    --bg: var(--navy-950);
    isolation: isolate;
    background:
        radial-gradient(ellipse 55% 75% at 12% 100%, rgba(63, 193, 201, 0.16), transparent 70%),
        radial-gradient(ellipse 45% 65% at 90% 0%, rgba(255, 138, 61, 0.1), transparent 70%),
        linear-gradient(180deg, var(--navy-950), var(--navy-900));
    border-block: 1px solid var(--line);
}
.section--night .chart-grid {
    z-index: -1;
    mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 10%, transparent 80%);
}
.section--night .card { background: rgba(16, 48, 79, 0.6); } /* --navy-800, see-through */

/* Light "chart paper" surface: every component reads these variables */
.surface-paper {
    --bg: var(--paper);
    --ink: var(--paper-ink);
    --muted: var(--paper-muted);
    --faint: rgba(10, 30, 51, 0.5);
    --line: rgba(10, 30, 51, 0.1);
    --line-strong: rgba(10, 30, 51, 0.2);
    --glass: #fff;
    --link: #b8520c;
    color: var(--ink);
    background: var(--bg);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}
.split > .section-head { margin-bottom: 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin-top: 1.1rem; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
}
.section-head--row > div { max-width: 40rem; }

/* Faint nautical chart grid + compass, used in hero and banners */
.chart-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(238, 244, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(238, 244, 248, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 70% at 65% 40%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 40%, #000 10%, transparent 75%);
    pointer-events: none;
}
.compass {
    position: absolute;
    color: var(--teal);
    opacity: 0.18;
    pointer-events: none;
}
.compass svg { width: 100%; height: 100%; animation: compass-turn 240s linear infinite; }
@keyframes compass-turn { to { transform: rotate(360deg); } }

/* 4. TYPE, EYEBROWS, BUTTONS ----------------------------------------- */
h1, h2, .display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
    text-wrap: balance;
}
h1 em, h2 em, .display em { font-style: normal; color: var(--orange); }
.surface-paper h2 em { color: #d4620f; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3, h4 { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
}
.surface-paper .eyebrow { color: #d4620f; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    white-space: nowrap;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.btn .ms { font-size: 1.15rem; transition: transform 0.35s var(--ease); }
.btn:hover .ms { transform: translateX(4px); }
.btn:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.btn--primary {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--orange-ink);
}
.btn--primary:hover {
    background: var(--orange-2);
    border-color: var(--orange-2);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px rgba(255, 138, 61, 0.7);
}
.btn--sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--link);
}
.text-link .ms { transition: transform 0.35s var(--ease); }
.text-link:hover .ms { transform: translateX(4px); }

/* 5. HEADER & MOBILE MENU -------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
}
/* Glass layer lives on a pseudo-element so the fixed mobile menu isn't
   trapped inside a backdrop-filter containing block. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6, 18, 31, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.site-header.is-scrolled::before { opacity: 1; }

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__brand { position: relative; z-index: 2; flex: none; transition: opacity 0.3s ease; }
.nav__brand:hover { opacity: 0.85; }
.nav__brand img { height: 48px; width: auto; }

.nav__links { display: flex; gap: 2.4rem; }
.nav__links a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s ease;
}
/* Gradient underline grows from the left */
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--orange), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* Orange CTA pill */
.btn--cta {
    min-height: 0;
    padding: 0.7rem 1.5rem;
    border: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-ink);
    background: linear-gradient(135deg, var(--orange-2), var(--orange) 50%, var(--orange-deep));
    box-shadow: 0 6px 18px -4px rgba(255, 138, 61, 0.45),
                0 16px 40px -12px rgba(255, 138, 61, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.btn--cta:hover {
    background: linear-gradient(135deg, var(--orange-2), var(--orange) 50%, var(--orange-deep));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(255, 138, 61, 0.6),
                0 20px 44px -12px rgba(255, 138, 61, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--cta:active { transform: scale(0.97); }
.btn--cta .ms { font-size: 1rem; }
.btn--cta:disabled { transform: none; }
.nav__cta.btn { flex: none; }

.nav__menu-foot { display: none; }
.nav__toggle { display: none; }

@media (max-width: 960px) {
    .nav__cta { display: none !important; }
    .nav__toggle {
        position: relative;
        z-index: 2;
        display: grid;
        place-content: center;
        gap: 6px;
        width: 3rem;
        height: 3rem;
        margin-left: auto;
        border-radius: 0.8rem;
        border: 1px solid var(--line-strong);
        background: rgba(238, 244, 248, 0.05);
        transition: transform 0.3s var(--ease), border-color 0.3s;
    }
    .nav__toggle:hover { border-color: var(--teal); }
    .nav__toggle:active { transform: scale(0.94); }
    .nav__toggle span {
        display: block;
        width: 18px;
        height: 1.5px;
        background: var(--ink);
        transition: transform 0.4s var(--ease);
    }
    .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
    .nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

    /* Floating glass dropdown card */
    .nav__menu {
        position: fixed;
        top: calc(var(--header-h) + 0.5rem);
        right: var(--gutter);
        z-index: 1;
        width: 19rem;
        max-height: calc(100dvh - var(--header-h) - 1.5rem);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        padding: 1.2rem;
        background: rgba(10, 30, 51, 0.92);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border: 1px solid var(--line-strong);
        border-radius: 1.25rem;
        box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.98);
        transform-origin: top right;
        transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
    }
    .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }

    .nav__links { flex-direction: column; gap: 0.2rem; }
    .nav__links li { width: 100%; text-align: center; }
    .nav__links a { display: block; padding: 0.85rem; }
    .nav__links a::after { left: 35%; width: 30%; bottom: 0.4rem; }

    .nav__menu-foot {
        display: grid;
        gap: 0.9rem;
        margin-top: 0.4rem;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
        text-align: center;
    }
    .nav__menu-foot .btn { width: 100%; }
}

@media (max-width: 660px) {
    .nav__brand img { height: 42px; }
    .nav__menu { width: calc(100% - 2 * var(--gutter)); }
}

/* 6. HERO, TICKER --------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 3rem) 0 clamp(8rem, 14vw, 11rem);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(1000px 600px at 85% 15%, rgba(63, 193, 201, 0.16), transparent 60%),
        radial-gradient(800px 500px at 0% 100%, rgba(255, 138, 61, 0.1), transparent 60%),
        linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}
.hero .chart-grid, .hero .compass { z-index: -1; }
.hero .compass { width: min(720px, 70vw); aspect-ratio: 1; right: -8%; top: 50%; translate: 0 -55%; }
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero__title { font-size: clamp(2.3rem, 5vw, 4.25rem); }
.hero__title .line { display: block; }
.hero__lead { max-width: 34rem; margin: 1.6rem 0 2.4rem; }
.hero__visual { position: relative; }
.hero__ship { animation: ship-bob 6s ease-in-out infinite; }
.hero__ship img {
    width: 100%;
    /* fade the illustration's own sea into the hero background */
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
@keyframes ship-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(-0.8deg); }
}

/* Layered waves along the bottom of the hero */
.waves {
    position: absolute;
    inset: auto 0 -1px;
    height: clamp(70px, 10vw, 130px);
    pointer-events: none;
    overflow: hidden;
}
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    max-width: none;
    height: 100%;
    animation: wave-drift linear infinite;
}
.wave--1 { color: var(--teal); opacity: 0.12; animation-duration: 26s; }
.wave--2 { color: var(--navy-700); opacity: 0.55; animation-duration: 18s; height: 80%; }
.wave--3 { color: var(--navy-950); animation-duration: 12s; height: 55%; }
@keyframes wave-drift { to { transform: translateX(-50%); } }

/* Services ticker: the line keeps moving forward */
.ticker {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker__group { display: flex; flex: none; }
.ticker__group span {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    padding-right: 2.25rem;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.9vw, 1.35rem);
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}
.ticker__group span::after {
    content: "";
    width: 7px;
    height: 7px;
    rotate: 45deg;
    background: var(--orange);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* 7. PAGE BANNER ------------------------------------------------------ */
.banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: calc(var(--header-h) + clamp(4rem, 9vw, 7.5rem)) 0 clamp(4rem, 8vw, 6.5rem);
    background:
        radial-gradient(900px 500px at 90% 0%, rgba(63, 193, 201, 0.14), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(255, 138, 61, 0.08), transparent 60%),
        linear-gradient(180deg, var(--navy-950), var(--navy-900));
    border-bottom: 1px solid var(--line);
}
.banner .chart-grid, .banner .compass { z-index: -1; }
.banner .compass { width: 560px; aspect-ratio: 1; right: -140px; top: 50%; translate: 0 -40%; }
.banner h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); max-width: 17ch; }
.banner .lead { max-width: 40rem; margin-top: 1.5rem; }
.banner--center { min-height: 100svh; display: flex; align-items: center; text-align: center; }
.banner--center h1, .banner--center .lead { margin-inline: auto; }
.banner--center .eyebrow, .banner--center .btn-group { justify-content: center; }
.banner--center .btn-group { margin-top: 2.5rem; }
.drift { width: min(380px, 80%); margin: 0 auto 2.5rem; animation: drift 9s ease-in-out infinite; }
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    50%      { transform: translate(14px, -8px) rotate(3deg); }
}

/* 8. CARDS & GRIDS ---------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.6rem, 3vw, 2.1rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.surface-paper .card { background: #fff; box-shadow: 0 1px 2px rgba(10, 30, 51, 0.04); }
.card::before { /* pointer-following glow (js sets --mx/--my) */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(63, 193, 201, 0.13), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.surface-paper .card:hover { box-shadow: 0 24px 50px -28px rgba(10, 30, 51, 0.35); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.25rem; }
.card__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); letter-spacing: 0.1em; }
.icon-box {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 138, 61, 0.12);
    border: 1px solid rgba(255, 138, 61, 0.25);
    color: var(--orange);
    transition: transform 0.5s var(--ease), background-color 0.3s;
}
.icon-box .ms { font-size: 1.6rem; }
.icon-box .icon-svg { width: 1.6rem; height: 1.6rem; }
.card:hover .icon-box { transform: rotate(-6deg) scale(1.05); }
.icon-box--teal { background: rgba(63, 193, 201, 0.12); border-color: rgba(63, 193, 201, 0.28); color: var(--teal); }
.surface-paper .icon-box--teal { color: #0f7f86; }
.surface-paper .icon-box { color: #d4620f; }

.card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.card__actions .btn { min-height: 44px; padding: 0.6rem 1.05rem; font-size: 0.75rem; }
.card__actions .card__more { font-size: 0.85rem; }
.card p:has(+ .card__actions) { margin-bottom: 1.75rem; }
.card__more { position: relative; z-index: 1; } /* stays clickable above the whole-card Inquire link */
.card .btn--cta::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */

.card--value .icon-box { margin-bottom: 1.75rem; }
/* Orange first letters of Focus, Wisdom, Dedication spell FWD */
.card--value h3::first-letter { color: var(--orange); font-family: var(--font-display); font-size: 1.5em; font-weight: 800; }

/* Flags we work with: arranged like a partner-logo wall */
.flag-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.flag-item {
    flex: 0 0 calc((100% - 4rem) / 5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    padding: 1.75rem 1rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    transition: border-color 0.5s, background-color 0.5s, transform 0.6s var(--ease);
}
.flag-item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 24px -12px rgba(0, 0, 0, 0.8);
    transition: filter 0.6s, transform 0.6s var(--ease);
}
.flag-item span {
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--muted);
    transition: color 0.5s;
}
/* On mouse devices the wall sits quietly and each flag lights up on hover */
@media (hover: hover) {
    .flag-item img { filter: saturate(0.65) brightness(0.9); }
    .flag-item:hover { border-color: rgba(63, 193, 201, 0.45); background-color: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }
    .flag-item:hover img { filter: none; transform: scale(1.06); }
    .flag-item:hover span { color: var(--ink); }
}
@media (max-width: 960px) { .flag-item { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 480px) {
    .flag-grid { gap: 0.75rem; }
    .flag-item { flex-basis: calc((100% - 0.75rem) / 2); padding: 1.4rem 0.75rem 1.1rem; }
}

/* 9. HOW IT WORKS (voyage route) ------------------------------------- */
/* Each step draws its own dashed connector to the next stop, so the line
   only ever runs between circles (never past the last one). */
.voyage {
    --stop: 64px;                         /* circle size */
    --ring: 10px;                         /* dark ring around each circle */
    --voyage-gap: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--voyage-gap);
    text-align: center;
}
.step { position: relative; }
/* Dashed connector (always visible) + a glow that travels along it */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--stop) / 2 - 1px);
    left: calc(50% + var(--stop) / 2 + var(--ring) + 6px);
    width: calc(100% + var(--voyage-gap) - var(--stop) - 2 * var(--ring) - 12px);
    height: 2px;
}
.step:not(:last-child)::before {
    background: repeating-linear-gradient(90deg, rgba(238, 244, 248, 0.22) 0 8px, transparent 8px 16px);
}
.step:not(:last-child)::after {
    background: linear-gradient(90deg, transparent, var(--teal), var(--orange), transparent) no-repeat;
    background-size: 35% 100%;
    background-position: -60% 0;
    /* only light up the dashes, not the gaps */
    -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 16px);
    mask-image: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 16px);
    filter: drop-shadow(0 0 4px rgba(255, 138, 61, 0.7));
    animation: route-flow 3.6s linear infinite;
}
.step:nth-child(2)::after { animation-delay: 1.8s; }
@keyframes route-flow {
    0%        { background-position: -60% 0; }
    50%, 100% { background-position: 160% 0; }
}

.step__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--stop);
    height: var(--stop);
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    border: 1px solid rgba(63, 193, 201, 0.45);
    box-shadow: 0 0 0 var(--ring) rgba(0, 0, 0, 0.28),
                0 0 28px 4px rgba(63, 193, 201, 0.14);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--teal);
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.6s;
}
/* Final stop lights up orange once the route reaches it */
.step:last-child .step__num::after {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--ring) - 8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 138, 61, 0.28);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s, transform 0.8s var(--ease);
}
.step:last-child .step__num,
.step:last-child .step__num::after { transition-delay: 2s; }
.voyage.is-in .step:last-child .step__num {
    background: linear-gradient(135deg, var(--orange-2), var(--orange) 55%, var(--orange-deep));
    border-color: transparent;
    color: var(--orange-ink);
    box-shadow: 0 0 0 var(--ring) rgba(0, 0, 0, 0.28),
                0 0 36px 6px rgba(255, 138, 61, 0.22);
}
.voyage.is-in .step:last-child .step__num::after { opacity: 1; transform: none; }
.step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.step p { color: var(--muted); max-width: 22rem; margin-inline: auto; }

/* 10. CTA PANEL ---------------------------------------- */
.cta-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.5fr auto;
    gap: 2rem 3rem;
    align-items: end;
    padding: clamp(2.25rem, 6vw, 5rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(700px 380px at 100% 0%, rgba(255, 138, 61, 0.3), transparent 60%),
        radial-gradient(600px 380px at 0% 100%, rgba(63, 193, 201, 0.2), transparent 60%),
        var(--navy-800);
}
.cta-panel h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); max-width: 22ch; }
.cta-panel p { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }
.cta-panel__lines {
    position: absolute;
    inset: auto -5% -10% auto;
    width: 70%;
    z-index: -1;
    color: var(--ink);
    opacity: 0.07;
}

/* 11. FORMS, QUOTE --------------------------------------- */
.quote {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
}
.quote__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.quote__intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-top: 1.1rem; }
.talk-card {
    display: flex;
    gap: 1rem;
    margin-top: 2.25rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--glass);
}
.talk-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.talk-card p { color: var(--muted); font-size: 0.95rem; }
.talk-card a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.form-card {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}
/* Let grid columns shrink below their content's natural width (inputs, long
   select options) instead of pushing the page wider than the screen */
.split > *, .quote > *, .contact-grid > *, .form__row > *, .field { min-width: 0; }
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field__label { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.field__label .req { color: var(--orange); margin-left: 0.15rem; }
.input {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.input::placeholder { color: rgba(238, 244, 248, 0.38); }
.input:hover { border-color: rgba(238, 244, 248, 0.34); }
.input:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(63, 193, 201, 0.18);
}
.input:user-invalid { border-color: #ff7a7a; }
select.input {
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23eef4f8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
select.input option { background: var(--navy-900); color: var(--ink); }
textarea.input { min-height: 140px; resize: vertical; }
.form__note { font-size: 0.8rem; color: var(--faint); }
.form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form__status { min-height: 1.4em; margin-top: 0.9rem; font-size: 0.92rem; color: var(--muted); }
.form__status.success { color: var(--teal); }
.form__status.error { color: #ff9a9a; }
.surface-paper .form__status.success { color: #0f7f86; }
.surface-paper .form__status.error { color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 12. PAGE-SPECIFIC -------------------------------------------------- */
/* Media frame */
.frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.frame img { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 2.25rem; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.chip:hover { border-color: var(--orange); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--orange-ink);
}

.prose-block > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.prose-block > p:not(.eyebrow) + p { margin-top: 1rem; }
.prose-block strong { color: var(--ink); }

/* About: mission */
.mission-card { padding: clamp(2rem, 5vw, 3.25rem); }
.mission-card .icon-box { margin-bottom: 2rem; }
.mission-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.mission-card p { font-size: 1.1rem; }

/* Services: sticky jump bar with scroll-spy */
.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    background: rgba(6, 18, 31, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.subnav__track {
    display: flex;
    flex-wrap: wrap;            /* never hide services: wrap onto a second row instead */
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
}
.chip__short { display: none; }

.svc {
    border-bottom: 1px solid var(--line);
    /* links to a service (e.g. "More info") scroll past most of the section's top padding,
       so its details show higher on screen. The padding itself is unchanged. */
    scroll-margin-top: calc(1.5rem - var(--section-y));
}
.svc--flip .svc__media { order: -1; }
.svc__index {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-strong);
}
.svc h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.svc__lead { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
.includes-title {
    margin: 2rem 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--faint);
}
.includes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    margin-bottom: 2.25rem;
}
.includes li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.97rem; }
.includes li::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 0.12rem;
    border-radius: 50%;
    background: rgba(63, 193, 201, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%233fc1c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* FAQ accordion */
.faq-list { max-width: 54rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.5rem 0;
    border: 0;
    background: none;
    text-align: left;
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    font-weight: 600;
    color: var(--ink);
}
.faq__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.faq__q:hover .faq__icon { border-color: var(--orange); }
.faq.is-open .faq__icon { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.faq__a p { padding: 0 3.5rem 1.6rem 0; color: var(--muted); }
.js .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.js .faq__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s 0.5s; }
.js .faq.is-open .faq__a { grid-template-rows: 1fr; }
.js .faq.is-open .faq__a > div { visibility: visible; transition: visibility 0s; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-list { display: grid; gap: 0.85rem; }
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--glass);
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.contact-item:hover { border-color: var(--line-strong); transform: translateX(4px); }
.contact-item .icon-box { width: 46px; height: 46px; border-radius: 12px; }
.contact-item .icon-box .ms { font-size: 1.35rem; }
.contact-item__label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--faint); }
.contact-item a { color: var(--link); }
.map {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line-strong);
    background:
        linear-gradient(rgba(238, 244, 248, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(238, 244, 248, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
        var(--navy-850);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--faint);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map--live { padding: 0; border-style: solid; border-color: var(--line); background: var(--navy-850); }
.map__pin {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--orange);
    color: var(--orange-ink);
    box-shadow: 0 0 0 10px rgba(255, 138, 61, 0.16), 0 0 0 22px rgba(255, 138, 61, 0.07);
    animation: pin-pulse 2.6s ease-in-out infinite;
}
@keyframes pin-pulse {
    0%, 100% { box-shadow: 0 0 0 10px rgba(255, 138, 61, 0.16), 0 0 0 22px rgba(255, 138, 61, 0.07); }
    50%      { box-shadow: 0 0 0 14px rgba(255, 138, 61, 0.12), 0 0 0 30px rgba(255, 138, 61, 0.04); }
}

.prose { font-size: 1.075rem; line-height: 1.8; color: var(--ink); max-width: 44rem; }
.prose > p + p, .prose > ul + p, .prose > p + ul { margin-top: 1.2rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 3rem 0 1rem; }
.prose ul { display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 7px; rotate: 45deg; background: var(--orange); }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .intro { font-size: 1.2rem; line-height: 1.7; }

.side-links a { display: block; padding: 0.6rem 0; border-top: 1px solid var(--line); font-weight: 500; font-size: 0.95rem; line-height: 1.4; }
.side-links a[aria-current="page"] { color: var(--link); }

/* 13. FOOTER, CHAT BUTTON -------------------------------------------- */
.footer {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 6rem) 0 2rem;
    background: var(--navy-950);
    border-top: 1px solid var(--line);
}
.footer__top { display: grid; grid-template-columns: 1.4fr 0.7fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.footer__contact { align-self: end; } /* contacts line up with the bottom of the other columns */
.footer__brand img { height: 52px; width: auto; }
.footer__brand > p { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; max-width: 22rem; }
.footer__def { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--orange); font-size: 0.88rem; color: var(--faint); max-width: 22rem; }
.footer__def b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.footer h2 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.25rem; }
.footer li + li { margin-top: 0.7rem; }
.footer__links a { color: var(--muted); font-size: 0.95rem; transition: color 0.25s; }
.footer__links a:hover { color: var(--orange); }
.footer__contact li { display: flex; gap: 0.65rem; color: var(--muted); font-size: 0.93rem; }
.footer__contact .ms { color: var(--orange); font-size: 1.15rem; margin-top: 0.15rem; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--faint);
}
.footer__bottom a:hover { color: var(--ink); }
/* room beside the last row so the floating WhatsApp button never covers it */
@media (max-width: 1360px) { .footer__bottom { padding-right: 4.5rem; } }

.chat-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
    animation: chat-in 0.8s var(--ease) 1.2s both;
}
.chat-float:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(37, 211, 102, 0.7); }
.chat-float svg { width: 30px; height: 30px; }
@keyframes chat-in { from { opacity: 0; transform: translateY(20px) scale(0.9); } }

/* 14. SCROLL REVEAL & MOTION ----------------------------------------
   Add data-reveal to any element ("up" default, "left", "right",
   "zoom", "fade", "wipe"). Put data-stagger on a parent to cascade
   its children. Only applies when JS runs (html.js). */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease),
        clip-path 1.3s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="left"]  { transform: translate3d(-44px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(44px, 0, 0); }
.js [data-reveal="zoom"]  { transform: scale(0.94); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal="wipe"]  { opacity: 1; transform: none; clip-path: inset(0 100% 0 0 round var(--radius-lg)); }
.js [data-reveal="wipe"] img { transform: scale(1.14); transition: transform 1.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js [data-reveal="wipe"].is-in img { transform: none; }

/* RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1080px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    /* tablets: keep all three columns side by side (the links column is only as wide as its text) */
    .footer__top { grid-template-columns: 1fr auto 1.1fr; }
}

@media (max-width: 900px) {
    .hero { min-height: auto; padding-top: calc(var(--header-h) + 3.5rem); }
    .hero__inner, .split, .quote, .contact-grid, .cta-panel { grid-template-columns: 1fr; }
    .hero__visual { max-width: 560px; }
    .svc--flip .svc__media { order: 0; }
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .quote__intro { position: static; }
    /* 3-up grids become 2-up: let an odd last card span the row instead of sitting alone */
    .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    /* stacked service illustrations: don't let them fill the whole tablet width */
    .svc__media { max-width: 600px; }
    /* sideways reveals would sit past the screen edge on stacked layouts */
    .js [data-reveal="left"], .js [data-reveal="right"] { transform: translate3d(0, 34px, 0); }
    .section-head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
    .grid--2, .grid--3, .grid--4, .form__row, .includes { grid-template-columns: 1fr; }
    .card__top { margin-bottom: 1.5rem; }
    .card--value .icon-box { margin-bottom: 1.25rem; }
    .map { min-height: 300px; }
    /* jump bar on phones: compact grid with one-word labels (2 rows; 3 on very narrow screens) */
    .subnav__track {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
        gap: 0.375rem;
        padding: 0.6rem 0;
    }
    .subnav .chip { justify-content: center; min-height: 32px; padding: 0.3rem 0.35rem; font-size: 0.72rem; }
    .subnav .chip__full { display: none; }
    .subnav .chip__short { display: inline; }
    .voyage { --stop: 56px; --ring: 8px; --voyage-gap: 2.5rem; grid-template-columns: 1fr; text-align: left; }
    .step { display: grid; grid-template-columns: var(--stop) 1fr; column-gap: 1.5rem; align-content: start; }
    .step__num { grid-row: span 2; margin: 0; }
    .step p { margin-inline: 0; }
    /* vertical connector: from this circle down to the next one */
    .step:not(:last-child)::before,
    .step:not(:last-child)::after {
        top: calc(var(--stop) + var(--ring) + 6px);
        left: calc(var(--stop) / 2 - 1px);
        width: 2px;
        height: calc(100% + var(--voyage-gap) - var(--stop) - 2 * var(--ring) - 12px);
    }
    .step:not(:last-child)::before {
        background: repeating-linear-gradient(180deg, rgba(238, 244, 248, 0.22) 0 8px, transparent 8px 16px);
    }
    .step:not(:last-child)::after {
        background-image: linear-gradient(180deg, transparent, var(--teal), var(--orange), transparent);
        background-size: 100% 35%;
        -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 8px, transparent 8px 16px);
        mask-image: repeating-linear-gradient(180deg, #000 0 8px, transparent 8px 16px);
        animation-name: route-flow-y;
    }
    @keyframes route-flow-y {
        0%        { background-position: 0 -60%; }
        50%, 100% { background-position: 0 160%; }
    }
    .footer__top { grid-template-columns: 1fr; }
    .faq__a p { padding-right: 0; }
    .chat-float { width: 54px; height: 54px; }
    .chat-float svg { width: 28px; height: 28px; }
    .btn-group .btn { flex: 1 1 auto; }
    .banner .compass { opacity: 0.1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
    .js [data-reveal] img { transform: none; }
    .ticker__track { animation: none; }
}

@media print {
    .site-header, .chat-float, .progress, .waves, .ticker, .subnav { display: none !important; }
    body, .section, .banner, .footer { background: #fff !important; color: #000 !important; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
