/* ==========================================================================
   ai-nate.com homepage — self-contained styles.
   Scoped to the homepage only: index.html loads this instead of style.css,
   so nothing here can affect the other pages.
   ========================================================================== */

:root {
    --canvas: #fbfaf8;
    /* warm off-white */
    --surface: #ffffff;
    --ink: #14161a;
    --ink-2: #4a505a;
    --ink-3: #6b727d;
    --line: rgba(20, 22, 26, .11);
    --line-soft: rgba(20, 22, 26, .06);
    --accent: #2c5f80;
    /* steel blue, pulled from the portrait */
    --accent-deep: #1f4761;
    --accent-soft: #e9f0f5;
    --navy: #1b2140;
    --navy-2: #232a4e;
    --radius: 20px;
    --wrap: 1120px;
    --nav-h: 64px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

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

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    transition: top .18s var(--ease);
}

.skip-link:focus {
    top: 14px;
}

.eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 4.6vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.03em;
    font-weight: 700;
}

.section-note {
    margin-top: 14px;
    color: var(--ink-2);
    max-width: 46ch;
    font-size: 1.0625rem;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.01em;
    border: 1px solid transparent;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.btn svg {
    flex: none;
}

.btn--primary {
    background: var(--ink);
    color: #fff;
}

.btn--primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn--ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.btn--light {
    background: #fff;
    color: var(--navy);
}

.btn--light:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--accent);
}

.link-arrow::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.6px solid currentColor;
    border-top: 1.6px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s var(--ease);
}

.link-arrow:hover::after {
    transform: rotate(45deg) translate(2px, -2px);
}

/* ---------- nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 248, .78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.site-header.is-stuck {
    border-bottom-color: var(--line-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--nav-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

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

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .18s var(--ease);
}

.nav__link:hover {
    color: var(--ink);
}

.nav__link[aria-current="true"] {
    color: var(--ink);
    font-weight: 600;
}

.nav__link[aria-current="true"]::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--accent);
}

.nav__cta {
    margin-left: 10px;
    min-height: 40px;
    padding: 9px 18px;
    font-size: .9rem;
}

.nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.nav__toggle span {
    position: relative;
    display: block;
    width: 19px;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s var(--ease), opacity .18s var(--ease);
}

.nav__toggle span::before,
.nav__toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 19px;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s var(--ease);
}

.nav__toggle span::before {
    top: -6px;
}

.nav__toggle span::after {
    top: 6px;
}

.nav__toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
    .nav-ready .nav__toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 18px 20px;
        background: var(--canvas);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 22px 40px -28px rgba(20, 22, 26, .5);
    }

    .nav-ready .nav {
        display: none;
    }

    .nav-ready .nav.is-open {
        display: flex;
    }

    .nav__link {
        height: 52px;
        padding: 0 6px;
        font-size: 1.05rem;
        color: var(--ink);
        border-bottom: 1px solid var(--line-soft);
        border-radius: 0;
    }

    .nav__link[aria-current="true"]::after {
        display: none;
    }

    .nav__cta {
        margin: 14px 0 0;
        min-height: 48px;
    }
}

/* ---------- hero ---------- */
.hero {
    padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}

.hero__grid {
    display: grid;
    row-gap: clamp(30px, 4vw, 42px);
    column-gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

/* visually hidden, still read by screen readers */
.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.hero__eyebrow::after {
    content: "";
    flex: 1;
    max-width: 88px;
    height: 1px;
    background: var(--line);
}

.hero h1 {
    font-size: clamp(2.8rem, 7.4vw, 4.9rem);
    line-height: .98;
    letter-spacing: -.042em;
    font-weight: 700;
}

.hero h1 span {
    display: block;
    color: var(--accent);
}

.hero__lede {
    margin-top: 24px;
    max-width: 34ch;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-2);
}

/* portrait */
.portrait {
    position: relative;
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
}

.portrait::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    z-index: 0;
}

.portrait__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: var(--radius);
    background: var(--accent-soft);
    box-shadow: 0 30px 60px -34px rgba(20, 32, 48, .55);
}

.portrait__caption {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding-left: 2px;
    font-size: .82rem;
    color: var(--ink-3);
}

/* route chips */
.routes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 540px;
}

.routes > li {
    display: flex;
}

.route {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.route:hover {
    border-color: rgba(44, 95, 128, .45);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -24px rgba(20, 32, 48, .6);
}

.route__n {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent);
}

.route__label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.015em;
}

.route__sub {
    font-size: .82rem;
    color: var(--ink-3);
    line-height: 1.35;
}

@media (min-width: 861px) {
    .hero__grid {
        grid-template-columns: 1.08fr .92fr;
    }

    .hero__copy {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
    }

    .hero__routes-wrap {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }

    .hero__figure {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 860px) {
    /* Keep the three route names within reach of the first screen. */
    .hero {
        padding-top: clamp(26px, 5vw, 52px);
    }

    .portrait::before {
        inset: 18px -18px -18px 18px;
    }

    .hero__copy {
        order: 1;
    }

    .hero__routes-wrap {
        order: 2;
    }

    .hero__figure {
        order: 3;
    }

    .routes {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .hero__eyebrow {
        margin-bottom: 16px;
    }

    .route {
        padding: 12px 12px 14px;
    }

    .route__sub {
        display: none;
    }
}

/* ---------- pillars ---------- */
.pillars {
    padding: clamp(64px, 9vw, 116px) 0 clamp(24px, 4vw, 48px);
    scroll-margin-top: calc(var(--nav-h) + 12px);
}

.pillars__head {
    max-width: 44ch;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.pillars__head .eyebrow {
    display: block;
    margin-bottom: 16px;
}

.pillar {
    display: grid;
    gap: 20px;
    padding: clamp(36px, 5vw, 60px) 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

.pillar:last-child {
    border-bottom: 1px solid var(--line);
}

.pillar__index {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pillar__num {
    color: var(--accent);
}

.pillar h3 {
    font-size: clamp(1.75rem, 3.6vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -.032em;
    font-weight: 700;
}

.pillar__lede {
    margin-top: 16px;
    max-width: 52ch;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--ink-2);
}

.ticks {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    max-width: 56ch;
}

.ticks li {
    position: relative;
    padding-left: 26px;
    font-size: .975rem;
    color: var(--ink-2);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .55em;
    width: 9px;
    height: 5px;
    border-left: 1.7px solid var(--accent);
    border-bottom: 1.7px solid var(--accent);
    transform: rotate(-45deg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin-top: 28px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    overflow: hidden;
}

.steps li {
    background: var(--surface);
    padding: 18px 18px 20px;
}

.steps b {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.steps span {
    font-size: .925rem;
    color: var(--ink-2);
    line-height: 1.45;
}

.pillar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-top: 30px;
}

@media (min-width: 861px) {
    .pillar {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 40px;
    }

    .pillar__index {
        position: sticky;
        top: calc(var(--nav-h) + 40px);
        align-self: start;
        flex-direction: column;
        gap: 6px;
        padding-top: 8px;
    }
}

/* ---------- about (navy band) ---------- */
.about {
    margin-top: clamp(64px, 9vw, 112px);
    padding: clamp(64px, 9vw, 112px) 0;
    background: var(--navy);
    background-image: radial-gradient(120% 90% at 15% 0%, var(--navy-2) 0%, var(--navy) 62%);
    color: #eef1f7;
    scroll-margin-top: var(--nav-h);
}

.about__grid {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
}

.about blockquote {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: -.032em;
    font-weight: 600;
    color: #fff;
}

.about blockquote span {
    display: block;
    color: #9dbdd6;
}

.about p {
    color: #c3ccdd;
    max-width: 52ch;
    font-size: 1.0625rem;
}

.about p+p {
    margin-top: 16px;
}

.about__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 28px;
}

.about__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    color: #eef1f7;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.about__links a:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .45);
}

.about :focus-visible {
    outline-color: #9dbdd6;
}

@media (min-width: 861px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ---------- closing ---------- */
.closing {
    padding: clamp(64px, 9vw, 112px) 0;
    text-align: center;
}

.closing h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 700;
}

.closing p {
    margin: 16px auto 30px;
    max-width: 42ch;
    color: var(--ink-2);
}

/* ---------- footer ---------- */
.site-footer {
    padding: clamp(44px, 6vw, 64px) 0 40px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-footer__top {
    display: grid;
    gap: 32px;
    padding-bottom: 34px;
}

.site-footer__blurb {
    margin-top: 12px;
    max-width: 34ch;
    font-size: .95rem;
    color: var(--ink-2);
}

.site-footer__mail {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 6px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--accent);
}

.site-footer__mail:hover {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__nav h2 {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
}

.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: .95rem;
    color: var(--ink-2);
}

.site-footer__nav a:hover {
    color: var(--ink);
}

.socials {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--ink-3);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}

.socials a:hover {
    color: var(--ink);
    background: var(--accent-soft);
}

.site-footer__bottom {
    display: flex;
    min-height: 44px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding-top: 26px;
    border-top: 1px solid var(--line-soft);
    font-size: .85rem;
    color: var(--ink-3);
}

.site-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    color: var(--ink-3);
}

.site-footer__legal a:hover {
    color: var(--ink);
}

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

/* ---------- reveal ---------- */
.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal-ready [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media print {

    .reveal-ready [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }

    .reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
