:root {
    color-scheme: dark;
    --imperial-blue: #00296b;
    --french-blue: #003f88;
    --steel-azure: #00509d;
    --school-bus-yellow: #fdc500;
    --gold: #ffd500;
    --ink: #f6f1e8;
    --muted: #b8c8dc;
    --soft: #eef6ff;
    --bg: #00142f;
    --panel: rgba(255, 255, 255, 0.07);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --line: rgba(238, 246, 255, 0.16);
    --amber: var(--school-bus-yellow);
    --orange: var(--gold);
    --cyan: #8fc8ff;
    --mint: #c7ddf2;
    --magenta: var(--french-blue);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
    --radius: 8px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    scroll-snap-type: y mandatory;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #000f25;
    line-height: 1.6;
}

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

.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 80, 157, 0.7), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(0, 63, 136, 0.62), transparent 30%),
        radial-gradient(circle at 62% 78%, rgba(0, 41, 107, 0.86), transparent 34%),
        radial-gradient(circle at 28% 92%, rgba(253, 197, 0, 0.1), transparent 24%),
        linear-gradient(145deg, #000f25 0%, #00142f 42%, #00296b 100%);
    background-size: 140% 140%, 130% 130%, 150% 150%, 120% 120%, 100% 100%;
    animation: navy-drift 20s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 47%, rgba(253, 197, 0, 0.07) 47% 48%, transparent 48% 100%),
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 170px 170px, 48px 48px, 48px 48px;
    opacity: 0.8;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 78%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 14px max(18px, calc((100vw - var(--max)) / 2 + 20px));
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(90deg, rgba(0, 80, 157, 0.24), transparent 34%, rgba(253, 197, 0, 0.08)),
        rgba(0, 18, 45, 0.9);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(20px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #130b1c;
    background: linear-gradient(135deg, var(--school-bus-yellow), var(--gold));
    font-size: 0.85rem;
    box-shadow: 0 8px 28px rgba(253, 197, 0, 0.22);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--soft);
    font-size: 0.94rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.1);
}

.section-shell {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 66px);
    margin-inline: 0;
    padding: 48px max(20px, calc((100vw - var(--max)) / 2 + 20px)) 62px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.hero::before {
    content: "";
    position: absolute;
    left: -7%;
    top: 15%;
    width: 46%;
    height: 70%;
    border-left: 1px solid rgba(143, 200, 255, 0.24);
    border-bottom: 1px solid rgba(253, 197, 0, 0.2);
    transform: skewX(-14deg);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    animation: rise-in 700ms ease both;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    line-height: 0.96;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(4.6rem, 10.2vw, 9.6rem);
    font-weight: 950;
    text-transform: uppercase;
    text-wrap: balance;
    background: linear-gradient(100deg, #ffffff 0%, #d8e9ff 52%, #8fc8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 18px 58px rgba(0, 0, 0, 0.35),
        0 0 34px rgba(0, 80, 157, 0.22);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 5vw, 4rem);
}

h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.hero-kicker {
    max-width: 720px;
    margin-bottom: 18px;
    color: var(--soft);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 850;
    line-height: 1.16;
}

.hero-text {
    max-width: 630px;
    margin-bottom: 18px;
    padding-left: 18px;
    border-left: 3px solid var(--cyan);
    color: #d5dfeb;
    font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.hero-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-specialties span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.075);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 900;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #00142f;
    background: linear-gradient(135deg, var(--school-bus-yellow), var(--gold));
    box-shadow: 0 18px 50px rgba(253, 197, 0, 0.22);
}

.button-secondary {
    border: 1px solid var(--line);
    color: var(--soft);
    background: rgba(255, 255, 255, 0.075);
}

.button-secondary:hover {
    border-color: rgba(143, 200, 255, 0.72);
    box-shadow: 0 12px 36px rgba(0, 80, 157, 0.16);
}

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    width: 100%;
}

.profile-metrics article {
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        rgba(0, 41, 107, 0.24);
}

.profile-metrics strong {
    display: block;
    color: var(--gold);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1;
}

.profile-metrics span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 680px;
    align-self: stretch;
    place-items: center;
    z-index: 1;
    margin-left: 0;
    pointer-events: none;
}

.portrait-stage {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    min-height: 100%;
    place-items: center;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-top: 0;
    animation: rise-in 800ms ease 120ms both;
}

.portrait-stage::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 6%;
    bottom: 0;
    height: 18%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.58), transparent 70%);
    filter: blur(16px);
}

.portrait-stage img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: min(50vw, 620px);
    height: auto;
    max-height: min(76vh, 720px);
    object-fit: contain;
    filter:
        drop-shadow(0 36px 46px rgba(0, 0, 0, 0.54))
        drop-shadow(0 0 18px rgba(143, 200, 255, 0.08));
    animation: portrait-float 7s ease-in-out infinite;
}

.hero-badge {
    position: absolute;
    right: 0;
    bottom: 19%;
    z-index: 2;
    max-width: 250px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(0, 18, 45, 0.78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.hero-badge strong,
.hero-badge span {
    display: block;
}

.hero-badge strong {
    color: var(--amber);
    font-size: 1.5rem;
    line-height: 1.1;
}

.hero-badge span {
    margin-top: 7px;
    color: var(--soft);
    font-size: 0.9rem;
}

.feature-panel,
.expertise-card,
.service-list article,
.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
        var(--panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.content-section {
    min-height: 100vh;
    padding: 78px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
    max-width: 850px;
    margin-bottom: 34px;
}

.section-heading.compact {
    max-width: 760px;
}

.section-heading p:not(.eyebrow),
.contact p {
    color: var(--muted);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.feature-panel {
    padding: clamp(24px, 4vw, 42px);
}

.feature-panel h3,
.expertise-card h3,
.service-list h3,
.timeline h3 {
    color: var(--soft);
}

.feature-panel p,
.expertise-card p,
.service-list p,
.timeline p {
    margin-bottom: 0;
    color: var(--muted);
}

.panel-accent {
    background: linear-gradient(140deg, rgba(0, 80, 157, 0.18), rgba(253, 197, 0, 0.07), rgba(255, 255, 255, 0.045));
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.expertise-card {
    min-height: 235px;
    padding: 26px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 0;
    color: var(--amber);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.feature-panel h3,
.expertise-card h3,
.service-list h3,
.timeline h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.feature-panel .card-icon,
.expertise-card .card-icon,
.service-list .card-icon,
.timeline .card-icon {
    vertical-align: middle;
}

.feature-panel .card-icon + h3,
.expertise-card .card-icon + h3,
.service-list .card-icon + h3,
.timeline .card-icon + h3 {
    margin-top: 0;
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-color: rgba(253, 197, 0, 0.52);
    background: var(--panel-strong);
}

.journey {
    display: flex;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: block;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
        var(--panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.timeline time {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--amber);
    font-weight: 950;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.service-list article {
    padding: 24px;
}

.contact {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 430px);
    gap: 34px;
    align-items: center;
    margin-block: 54px 74px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(253, 197, 0, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(253, 197, 0, 0.13), transparent 42%),
        linear-gradient(315deg, rgba(0, 80, 157, 0.2), transparent 44%),
        rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow);
}

.contact-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    font-style: normal;
}

.contact-card a {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-wrap: anywhere;
    padding: 12px 0;
    color: var(--soft);
    border-bottom: 1px solid var(--line);
}

.contact-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--amber);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-card a:last-child {
    border-bottom: 0;
}

.contact-card a:hover {
    color: var(--cyan);
}

.site-footer {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 34px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 1100px) {
    html {
        scroll-snap-type: y proximity;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 58px;
    }

    .hero-copy {
        max-width: 900px;
    }

    .hero-visual {
        max-width: 680px;
        width: 100%;
        min-height: 620px;
        margin-left: 0;
        margin-inline: auto;
    }

    .portrait-stage img {
        max-width: min(82vw, 540px);
        max-height: 640px;
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    html {
        scroll-snap-type: none;
    }

    .section-shell,
    .site-footer {
        width: min(100% - 28px, var(--max));
    }

    .hero.section-shell {
        width: 100%;
    }

    .site-header {
        padding-inline: 14px;
    }

    .brand span:last-child {
        font-size: 0.96rem;
    }

    .nav-links a {
        padding-inline: 11px;
        white-space: nowrap;
    }

    h1 {
        font-size: clamp(3.45rem, 18vw, 5.6rem);
    }

    .hero {
        gap: 28px;
        padding-bottom: 44px;
    }

    .hero-kicker {
        font-size: clamp(1.15rem, 6vw, 1.55rem);
    }

    .profile-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 510px;
    }

    .portrait-stage img {
        max-width: min(96vw, 400px);
        max-height: 510px;
    }

    .hero-badge {
        right: 0;
        bottom: 4px;
        max-width: calc(100% - 24px);
    }

    .about-layout,
    .expertise-grid,
    .service-list {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 54px 0;
    }

    .timeline li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .contact {
        margin-block: 32px 54px;
    }
}

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

@keyframes navy-drift {
    0% {
        background-position: 0% 12%, 100% 0%, 42% 100%, 12% 90%, center;
    }

    50% {
        background-position: 24% 0%, 72% 20%, 55% 70%, 28% 78%, center;
    }

    100% {
        background-position: 8% 28%, 92% 14%, 38% 84%, 18% 96%, center;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portrait-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}
