/* home — tokens, public site, shared primitives */

:root {
    --bg: #f7f5f1;
    --surface: #ffffff;
    --ink: #101a2b;
    --ink-soft: #2a3547;
    --muted: #3d4a5c;
    --line: #e5e1d9;
    --line-soft: #efece6;
    --navy: #101c30;
    --navy-deep: #0a1322;
    --navy-lift: #1c2c46;
    --gold: #bb9a5a;
    --gold-lift: #cdab68;
    --gold-soft: rgba(187, 154, 90, 0.22);
    --danger: #8a2b2b;
    --ok: #1d5b3b;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow-xs: 0 1px 2px rgba(16, 26, 43, 0.04);
    --shadow-sm: 0 1px 2px rgba(16, 26, 43, 0.04), 0 10px 24px -16px rgba(16, 26, 43, 0.28);
    --shadow-md: 0 2px 4px rgba(16, 26, 43, 0.03), 0 22px 45px -24px rgba(16, 26, 43, 0.32);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --header-h: 72px;
    --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(74px - clamp(52px, 6vw, 84px));
}

body {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.18s var(--ease);
}

a:hover {
    color: var(--gold);
}

.container {
    width: min(1200px, calc(100% - 44px));
    margin: 0 auto;
}

::selection {
    background: var(--gold);
    color: #fff;
}

/* =========================================================
   header
   ========================================================= */

.site-header {
    --morph: 0.55s cubic-bezier(0.33, 0, 0.2, 1);
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    border-bottom: 1px solid transparent;
    transition: padding-top var(--morph);
}

.nav-shell {
    position: relative;
    height: var(--header-h);
    margin-inline: 0;
    border-radius: 0;
    transition: margin-inline var(--morph), height var(--morph), border-radius var(--morph), padding var(--morph);
}

.nav-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, transparent);
    border: 1px solid transparent;
    box-shadow:
        inset 0 1px 0 transparent,
        inset 0 -1px 0 transparent,
        0 18px 42px -12px transparent;
    transition: background var(--morph), border-color var(--morph), border-width var(--morph), box-shadow var(--morph);
}

.site-header .nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.brand img {
    height: 34px;
    width: auto;
    transition: opacity 0.3s var(--ease), height var(--morph);
}

.site-header .brand img {
    height: 50px;
}

.brand .logo-light {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

.nav-toggle,
.hide-lg {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: gap var(--morph);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 1.05rem;
    font-weight: 650;
    transition: gap var(--morph), font-size var(--morph);
}

.nav-links a {
    color: var(--ink-soft);
    position: relative;
    transition: color 0.18s var(--ease), padding var(--morph);
}

.nav-links>a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 1px;
    background: var(--gold);
    transition: right 0.3s var(--ease);
}

.nav-links>a:not(.btn):hover::after {
    right: 0;
}

.site-header .btn {
    background: transparent;
    color: var(--navy);
    border-color: rgba(16, 26, 43, 0.34);
    box-shadow: none;
    padding: 8px 18px;
    font-size: 1rem;
    transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease), padding var(--morph), font-size var(--morph);
}

.site-header .btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* scrolled state — flat bar morphs into the capsule */
.site-header.is-stuck:not(.is-open) {
    padding-top: 8px;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

.site-header.is-stuck:not(.is-open) .nav-shell {
    pointer-events: auto;
    height: 54px;
    margin-inline: 24px;
    padding: 0 10px 0 18px;
    border-radius: 999px;
}

@media (min-width: 1128px) {
    .site-header.is-stuck:not(.is-open) .nav-shell {
        margin-inline: calc((100% - 1080px) / 2);
    }
}

.site-header.is-stuck:not(.is-open) .nav-shell::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 245, 241, 0.96));
    border-width: 3px;
    border-color: rgba(176, 140, 68, 0.82);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(187, 154, 90, 0.22),
        0 18px 42px -12px rgba(16, 26, 43, 0.55);
}

.site-header.is-stuck:not(.is-open) .brand img {
    height: 34px;
}

.site-header.is-stuck:not(.is-open) .nav-right {
    gap: 8px;
}

.site-header.is-stuck:not(.is-open) .nav-links {
    gap: 2px;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.site-header.is-stuck:not(.is-open) .nav-links a {
    padding: 5px 12px;
    border-radius: 999px;
}

.site-header.is-stuck:not(.is-open) .nav-links>a:not(.btn)::after {
    left: 12px;
    bottom: 4px;
}

.site-header.is-stuck:not(.is-open) .nav-links>a:not(.btn):hover::after {
    right: 12px;
}

.site-header.is-stuck:not(.is-open) .nav-links + .btn,
.site-header.is-stuck:not(.is-open) .nav-links + form {
    position: relative;
    margin-left: 8px;
}

.site-header.is-stuck:not(.is-open) .nav-links + .btn::before,
.site-header.is-stuck:not(.is-open) .nav-links + form::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 18px;
    transform: translateY(-50%);
    background: var(--gold);
    opacity: 0.7;
}

.site-header.is-stuck:not(.is-open) .btn {
    background: var(--gold);
    color: #17202f;
    border-color: var(--gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    font-size: 0.92rem;
}

.site-header.is-stuck:not(.is-open) .btn:hover {
    background: var(--gold-lift);
    border-color: var(--gold-lift);
    color: #17202f;
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* transparent state while sitting on top of the hero video */
body:has(.hero) .site-header:not(.is-stuck)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(96px, 15vh, 140px);
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.32) 50%,
            transparent 90%);
}

body:has(.hero) .site-header:not(.is-stuck) .brand .logo-dark {
    opacity: 0;
}

body:has(.hero) .site-header:not(.is-stuck) .brand .logo-light {
    opacity: 1;
}

body:has(.hero) .site-header:not(.is-stuck) .nav-links a {
    color: rgba(255, 255, 255, 0.88);
}

body:has(.hero) .site-header:not(.is-stuck) .nav-links a:hover {
    color: #fff;
}

body:has(.hero) .site-header:not(.is-stuck) .link-button {
    color: rgba(255, 255, 255, 0.8);
}

body:has(.hero) .site-header:not(.is-stuck) .link-button:hover {
    color: #fff;
}

body:has(.hero) .site-header:not(.is-stuck) .btn {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

body:has(.hero) .site-header:not(.is-stuck) .btn:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.site-main {
    padding-top: var(--header-h);
}

body:has(.hero) .site-main {
    padding-top: 0;
}

/* =========================================================
   typography
   ========================================================= */

h1,
h2,
h3 {
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(2.7rem, 6.2vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.95rem, 3.6vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

em.accent {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--gold);
    margin: 0 0 12px;
}

.eyebrow::before {
    content: "";
    flex: none;
    width: 52px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 22' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M46 17H20C8 17 8 11 20 11H52C66 11 66 5 52 5H26'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 22' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M46 17H20C8 17 8 11 20 11H52C66 11 66 5 52 5H26'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lead,
.muted {
    color: var(--muted);
}

.lead {
    font-size: clamp(1.02rem, 1.3vw, 1.14rem);
    max-width: 58ch;
}

/* =========================================================
   buttons
   ========================================================= */

.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 650;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover {
    background: var(--navy-lift);
    border-color: var(--navy-lift);
    color: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn-small {
    padding: 11px 20px;
    font-size: 0.9rem;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #17202f;
}

.btn-gold:hover {
    background: var(--gold-lift);
    border-color: var(--gold-lift);
    color: #17202f;
}

.btn-line {
    background: transparent;
    border-color: rgba(16, 26, 43, 0.25);
    color: var(--ink);
    box-shadow: none;
}

.btn-line:hover {
    background: rgba(16, 26, 43, 0.05);
    border-color: var(--ink);
    color: var(--ink);
}

.btn-onDark {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    box-shadow: none;
}

.btn-onDark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #dbe3ee;
    width: 100%;
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.link-button {
    appearance: none;
    background: none;
    border: 0;
    color: var(--muted);
    padding: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s var(--ease);
}

.link-button:hover {
    color: var(--gold);
}

.actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.actions-center {
    justify-content: center;
}

/* =========================================================
   hero
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    min-height: min(100svh, 940px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: var(--navy-deep);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    isolation: isolate;
    contain: strict;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-media video,
.hero-media .hero-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-media video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}

.hero-media video.is-ready {
    opacity: 1;
}

.hero-media .hero-poster {
    filter: none;
}

.hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 40px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    filter:
        drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85)) drop-shadow(0 10px 36px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 72px rgba(0, 0, 0, 0.35));
}

.hero .eyebrow {
    color: #f0d59a;
    margin: -8px 0 22px;
}

@media (min-width: 961px) {
    .eyebrow {
        font-size: 2.1rem;
    }

    .eyebrow::before {
        width: 62px;
        height: 18px;
    }

    .hero .eyebrow {
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
    }
}

.hero h1 {
    color: #fff;
    max-width: 11ch;
    font-size: clamp(2.9rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.96;
    margin: 0 0 20px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.65);
}

.hero h1 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--gold-lift);
}

.hero-text {
    margin: 0;
    max-width: 44ch;
    color: #fff;
    font-size: 1.05rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
}

.hero-link {
    color: #fff;
    font-weight: 650;
    font-size: 0.95rem;
}

.hero-link span {
    display: inline-block;
    transition: transform 0.25s var(--ease);
}

.hero-link:hover {
    color: var(--gold-lift);
}

.hero-link:hover span {
    transform: translateX(4px);
}

/* shipping-label card */
.manifest {
    --manifest-base-rotation: -3.2deg;
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 380px);
    color: var(--ink);
    background: #f4ecd8;
    border-radius: 18px;
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.55);
    overflow: visible;
    transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(var(--manifest-base-rotation)) translateZ(0);
    transform-origin: 50% 0%;
    animation: manifest-arrive 1700ms cubic-bezier(0.2, 0.8, 0.2, 1), manifest-sway 820ms cubic-bezier(0.2, 0.7, 0.3, 1) 880ms both;
    transition: transform 180ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 300ms ease;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.pin {
    position: absolute;
    z-index: 4;
    top: -18px;
    left: 44%;
    width: 26px;
    height: 40px;
    transform: rotate(14deg);
    transform-origin: 50% 90%;
    animation: pin-land 560ms cubic-bezier(0.22, 0.75, 0.3, 1) 1000ms both;
    overflow: visible;
}

@keyframes manifest-arrive {
    0% {
        opacity: 0.18;
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(calc(var(--manifest-base-rotation) - 10deg)) translateX(110vw) translateZ(420px) scale(0.82);
        animation-timing-function: linear;
    }

    45% {
        opacity: 0.85;
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(calc(var(--manifest-base-rotation) + 8deg)) translateX(38vw) translateZ(150px) scale(0.92);
        animation-timing-function: linear;
    }

    64% {
        opacity: 1;
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(calc(var(--manifest-base-rotation) + 3deg)) translateX(0) translateZ(0) scale(1);
        animation-timing-function: linear;
    }

    68% {
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(calc(var(--manifest-base-rotation) - 3deg)) translateX(0) translateZ(0) scale(1);
        animation-timing-function: linear;
    }

    78% {
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(calc(var(--manifest-base-rotation) + 1.5deg)) translateX(0) translateZ(0) scale(1);
        animation-timing-function: linear;
    }

    89% {
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(calc(var(--manifest-base-rotation) - 0.7deg)) translateX(0) translateZ(0) scale(1);
        animation-timing-function: linear;
    }

    96% {
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(calc(var(--manifest-base-rotation) + 0.2deg)) translateX(0) translateZ(0) scale(1);
        animation-timing-function: linear;
    }

    100% {
        opacity: 1;
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(var(--manifest-base-rotation)) translateX(0) translateZ(0) scale(1);
    }
}

@keyframes manifest-sway {
    0% { rotate: 0deg; }
    22% { rotate: 2.5deg; }
    48% { rotate: -2deg; }
    70% { rotate: 1deg; }
    86% { rotate: -0.35deg; }
    100% { rotate: 0deg; }
}

@keyframes pin-land {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(-18deg) scale(0.78);
    }

    72% {
        opacity: 1;
        transform: translateY(2px) rotate(20deg) scale(1.04);
    }

    88% {
        transform: translateY(-1px) rotate(10deg) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: rotate(14deg);
    }
}

.manifest-head {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 18px 18px 0 0;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.manifest-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px 14px;
    border-bottom: 1px dashed var(--line);
}

.manifest-time {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
}

.manifest-hero small {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.manifest-hero strong {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.manifest-hero em {
    display: inline-block;
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
    color: #17202f;
    background: var(--gold);
    border-radius: 999px;
    padding: 5px 10px;
}

.manifest-hero img {
    height: 46px;
    width: auto;
}

.manifest dl {
    margin: 0;
    padding: 6px 18px;
}

.manifest dl div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.86rem;
}

.manifest dl div:last-child {
    border-bottom: 0;
}

.manifest dt {
    color: var(--muted);
    font-weight: 600;
}

.manifest dd {
    margin: 0;
    font-weight: 600;
}

.manifest-code {
    margin: 8px 18px 18px;
}

.manifest-code svg {
    display: block;
    width: 100%;
    height: 42px;
    fill: var(--ink);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(140px, 24vh, 240px);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.42) 40%,
            transparent 78%);
}

/* integrations strip */
.hero-band {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hero-band-track {
    display: flex;
    width: max-content;
    gap: 56px;
    padding: 16px 0;
    animation: slide 38s linear infinite;
}

.hero-band span {
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   sections
   ========================================================= */

.section {
    padding: clamp(52px, 6vw, 84px) 0;
}

.section-alt {
    background: var(--surface);
}

.section-dark {
    background: var(--navy);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-dark .lead,
.section-dark p {
    color: rgba(255, 255, 255, 0.92);
}

.section-tight {
    padding: clamp(36px, 4.5vw, 56px) 0;
}

.section-head {
    max-width: 64ch;
    margin-bottom: clamp(28px, 3.2vw, 40px);
}

/* =========================================================
   split
   ========================================================= */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
}

.split-reverse .split-media {
    order: 2;
}

.split-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
}

.split-media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.split-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.badge-float {
    position: absolute;
    left: 22px;
    bottom: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.badge-float span {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

/* =========================================================
   process — image-led step cards on a timeline rail
   ========================================================= */

.process {
    --process-gap: clamp(16px, 2vw, 24px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(55% 45% at 88% 0%, rgba(187, 154, 90, 0.12), transparent 70%),
        radial-gradient(40% 35% at 0% 100%, rgba(16, 28, 48, 0.05), transparent 70%),
        var(--surface);
}

.process-head {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(20px, 5vw, 80px);
    align-items: end;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.process-head h2 {
    margin: 0;
    max-width: 13ch;
}

.process-head h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.process-head .lead {
    margin: 0;
    justify-self: end;
    max-width: 44ch;
}

.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--process-gap);
}

.process-steps>li {
    min-width: 0;
}

.process-card {
    position: relative;
    isolation: isolate;
    height: 100%;
    min-height: clamp(300px, 26vw, 360px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(18px, 1.8vw, 22px);
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background: var(--navy);
    box-shadow: 0 30px 60px -38px rgba(10, 19, 34, 0.6);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.process-card>img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.4s var(--ease);
}

.process-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(10, 19, 34, 0.5) 0%, rgba(10, 19, 34, 0.04) 26%, rgba(10, 19, 34, 0.5) 56%, rgba(10, 19, 34, 0.95) 100%);
}

.process-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
    transition: box-shadow 0.5s var(--ease);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 44px 70px -36px rgba(10, 19, 34, 0.65);
}

.process-card:hover>img {
    transform: scale(1.08);
}

.process-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(205, 171, 104, 0.7);
}

.process-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.process-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px 9px 14px;
    border-radius: 999px;
    font-size: 1.22rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    background: rgba(10, 19, 34, 0.78);
    border: 1px solid rgba(205, 171, 104, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.01em;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.process-tag svg {
    width: 23px;
    height: 23px;
    flex: none;
    fill: none;
    stroke: var(--gold-lift);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-card:hover .process-tag {
    border-color: var(--gold-lift);
    background: rgba(10, 19, 34, 0.9);
}

.process-num {
    display: block;
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 3.6vw, 3.4rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px var(--gold-lift);
    transition: color 0.5s var(--ease);
}

.process-card:hover .process-num {
    color: var(--gold-lift);
}

.process-body p {
    margin: 0;
    max-width: 34ch;
    color: #fff;
    font-size: 1.22rem;
}

.process-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.process-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.process-meta li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-lift);
}

.process-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: clamp(18px, 2vw, 24px);
    padding: 12px 12px 12px 26px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line-soft);
}

.process-foot p {
    margin: 0;
    color: var(--muted);
}

.process-foot strong {
    margin-right: 6px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* =========================================================
   features / cards
   ========================================================= */

.card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 30px;
    margin: 0 0 16px;
    box-shadow: var(--shadow-xs);
}

.services {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: start;
}

.services-intro {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.services-intro h2 {
    max-width: 12ch;
}

.services-intro figure {
    margin: 28px 0 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.services-intro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.service-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px 20px;
    align-items: baseline;
    padding: 22px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: padding 0.3s var(--ease);
}

.service-list li:hover {
    padding-left: 16px;
}

.service-list li>span {
    font-family: var(--serif);
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.service-list h3 {
    margin: 0 0 4px;
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
    transition: color 0.25s var(--ease);
}

.service-list li:hover h3 {
    color: var(--gold-lift);
}

.service-list p {
    margin: 0;
    font-size: 0.95rem;
}

.tick {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 15px;
}

.tick li {
    padding-left: 32px;
    position: relative;
    color: var(--muted);
}

.tick li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 15px;
    height: 7px;
    border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg);
}

.score {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 36px);
}

.score article {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.score span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.score strong {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.2rem, 3.2vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.score p {
    margin: 12px 0 0;
    max-width: 28ch;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* =========================================================
   cta
   ========================================================= */

.cta {
    position: relative;
    isolation: isolate;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(52px, 8vw, 96px) clamp(24px, 5vw, 72px);
    text-align: center;
    color: #fff;
    background: var(--navy);
}

.cta img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 19, 34, 0.82), rgba(10, 19, 34, 0.94));
}

.cta h2 {
    color: #fff;
    margin-bottom: 18px;
    text-wrap: balance;
}

.cta p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 54ch;
    margin: 0 auto 32px;
}

/* =========================================================
   footer
   ========================================================= */

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.86);
    padding: clamp(56px, 7vw, 84px) 0 32px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.92);
}

.site-footer a:hover {
    color: var(--gold-lift);
}

.site-footer h3 {
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
}

.footer-grid img {
    height: 46px;
    margin-bottom: 18px;
}

.footer-grid p {
    margin: 0;
    font-size: 0.93rem;
    max-width: 34ch;
}

.footer-list {
    display: grid;
    gap: 10px;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    margin-top: clamp(40px, 5vw, 60px);
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.84rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================================
   reveal
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .manifest,
    .pin {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .site-header,
    .nav-shell,
    .nav-shell::before,
    .site-header .brand img,
    .site-header .nav-right,
    .site-header .nav-links,
    .site-header .nav-links a,
    .site-header .btn {
        transition: none;
    }

    .btn,
    .service-list li,
    .service-list h3,
    .process-card,
    .process-card>img,
    .process-num {
        transition: none;
    }

    .hero-band-track {
        animation: none;
    }
}


.alert {
    border-radius: 12px;
    padding: 12px 15px;
    margin: 16px 0;
    font-size: 0.94rem;
}

.alert-error {
    background: #fbeaea;
    color: var(--danger);
}

.alert-success {
    background: #e6f3ec;
    color: var(--ok);
}

.toast-stack {
    position: fixed;
    z-index: 90;
    top: calc(var(--header-h) + 12px);
    right: 20px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100% - 40px));
    pointer-events: none;
}

.toast-stack:empty {
    display: none;
}

.toast-stack .alert {
    margin: 0;
    padding: 13px 16px;
    border: 1px solid rgba(16, 26, 43, 0.06);
    box-shadow: 0 16px 36px -18px rgba(16, 26, 43, 0.45);
    font-weight: 600;
    pointer-events: auto;
    cursor: pointer;
    animation: toast-in 0.3s var(--ease);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast-stack .alert.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (max-width: 1040px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 960px) {
    :root {
        --header-h: 62px;
    }

    .site-header .brand img {
        height: 44px;
    }

    .site-header.is-stuck:not(.is-open) .nav-shell {
        height: 50px;
    }

    .site-header.is-stuck:not(.is-open) .brand img {
        height: 32px;
    }

    .split,
    .services {
        grid-template-columns: 1fr;
    }

    .services-intro {
        position: static;
    }

    .services-intro h2 {
        max-width: none;
    }

    .split-reverse .split-media {
        order: 0;
    }

    .split-media {
        order: -1;
    }

    .score {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-bottom: 32px;
    }

    .manifest {
        --manifest-base-rotation: -2.4deg;
        justify-self: start;
        transform: perspective(1100px) rotateX(var(--manifest-tilt-x, 0deg)) rotateY(var(--manifest-tilt-y, 0deg)) rotate(var(--manifest-base-rotation)) translateZ(0);
    }

    .process-head {
        grid-template-columns: 1fr;
    }

    .process-head .lead {
        justify-self: start;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-card {
        min-height: 280px;
    }

    .process-card:hover {
        transform: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: calc(100% - 32px);
    }

    .nav-right {
        gap: 12px;
    }

    .hide-lg {
        display: block;
    }

    .site-header .btn {
        padding: 8px 15px;
        font-size: 0.92rem;
    }

    .site-header.is-stuck:not(.is-open) .nav-shell {
        height: 48px;
        margin-inline: 10px;
        padding: 0 6px 0 12px;
    }

    .site-header.is-stuck:not(.is-open) .brand img {
        height: 30px;
    }

    .site-header.is-stuck:not(.is-open) .btn {
        padding: 5px 13px;
    }

    .site-header.is-stuck:not(.is-open) .nav-links + .btn::before,
    .site-header.is-stuck:not(.is-open) .nav-links + form::before {
        display: none;
    }

    .site-header.is-open {
        padding-top: 0;
    }

    .site-header.is-open .btn {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.55);
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 70;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        content: "";
        display: block;
        width: 24px;
        height: 2.2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 0.25s var(--ease), background 0.25s var(--ease);
    }

    .nav-toggle span {
        position: relative;
    }

    .nav-toggle span::before {
        position: absolute;
        top: -7px;
    }

    .nav-toggle span::after {
        position: absolute;
        top: 7px;
    }

    body:has(.hero) .site-header:not(.is-stuck) .nav-toggle span,
    body:has(.hero) .site-header:not(.is-stuck) .nav-toggle span::before,
    body:has(.hero) .site-header:not(.is-stuck) .nav-toggle span::after {
        background: #fff;
    }

    .site-header.is-open .nav-toggle span {
        background: transparent !important;
    }

    .site-header.is-open .nav-toggle span::before {
        top: 0;
        transform: rotate(45deg);
        background: #fff !important;
    }

    .site-header.is-open .nav-toggle span::after {
        top: 0;
        transform: rotate(-45deg);
        background: #fff !important;
    }

    .site-header.is-open {
        background: rgba(10, 19, 34, 0.98) !important;
        backdrop-filter: saturate(180%) blur(20px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .site-header.is-open .brand .logo-dark {
        opacity: 0 !important;
    }

    .site-header.is-open .brand .logo-light {
        opacity: 1 !important;
    }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        bottom: 0;
        height: calc(100dvh - var(--header-h));
        background: rgba(10, 19, 34, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 28px 36px;
        gap: 4px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
        overflow-y: auto;
    }

    .site-header.is-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.15rem;
        padding: 13px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-links a:hover {
        color: var(--gold-lift);
    }

    .nav-links>a::after {
        display: none;
    }



    .hero {
        min-height: 88svh;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .process-foot {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 20px;
        padding: 22px;
    }
}
