/* ============================================================
   KITE BOSTON — style.css
   Swiss-grid · Dark field guide · Monospace data
   ============================================================ */

/* ------------------------------------------------------------
   CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
    --bg:           #0b0b0b;
    --text:         #e4dfd6;
    --text-dim:     #7a756d;
    --text-mono:    #9e9282;
    --border:       rgba(200, 185, 162, 0.13);
    --border-mid:   rgba(200, 185, 162, 0.22);

    --font-body:    'Inter', system-ui, sans-serif;
    --font-serif:   'Instrument Serif', Georgia, serif;
    --font-mono:    'Roboto Mono', 'Courier New', monospace;

    --nav-h:        52px;
    --max-w:        1080px;
    --pad-x:        2rem;
    --section-py:   7rem;
}

/* ------------------------------------------------------------
   RESET + BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ------------------------------------------------------------ */

.mono {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--text-mono);
    font-weight: 300;
}

.lede {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 1.25rem;
}

p {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.75;
}

strong {
    font-weight: 500;
    color: var(--text);
}

.block-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 1.75rem;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 4.5rem 0;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad-x);
    transition: background 0.35s ease, border-bottom 0.35s ease;
}

.nav--scrolled {
    background: rgba(11, 11, 11, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 22px;
    width: auto;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 1; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* Apply link — hidden until revealed by JS */
.nav-apply {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.nav-apply[aria-hidden="false"],
.nav-apply:not([aria-hidden]) {
    opacity: 1;
    pointer-events: auto;
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
    position: relative;
    height: 100svh;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Video + Overlay */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(11, 11, 11, 0.25) 0%,
        rgba(11, 11, 11, 0.08) 25%,
        rgba(11, 11, 11, 0.45) 65%,
        rgba(11, 11, 11, 0.88) 100%
    );
}

/* Content — three-point layout: top / middle / bottom */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: calc(var(--nav-h) + 1.5rem) var(--pad-x) 3.5rem;
}

.hero-coord {
    font-size: 0.62rem;
    color: rgba(200, 185, 162, 0.5);
}

/* Title — Swiss asymmetry: large serif, flush-left */
.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-left: -0.04em; /* optical alignment */
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 2.5rem;
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-sub {
    font-size: 0.95rem;
    color: rgba(228, 223, 214, 0.65);
    font-weight: 300;
    line-height: 1.5;
    max-width: 28ch;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(200, 185, 162, 0.45);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s;
}

.hero-cta:hover { color: var(--text-mono); }


/* ------------------------------------------------------------
   LESSONS — Full-bleed light inversion
   ------------------------------------------------------------ */
.lessons-bg {
    background-color: #f0ece5;
    /* Cascade overrides: all children using var() pick these up */
    --text:       #1c1815;
    --text-dim:   #56514b;
    --text-mono:  #6b6358;
    --border:     rgba(20, 14, 8, 0.11);
    --border-mid: rgba(20, 14, 8, 0.19);
}

/* Scoped overrides for elements with hardcoded color values */
.lessons-bg p {
    color: var(--text-dim);
}

.lessons-bg .lede {
    color: var(--text);
}

.lessons-bg .gear-table {
    background: rgba(20, 14, 8, 0.03);
}

.lessons-bg .section-title {
    color: var(--text);
}

.lessons-bg .mono {
    color: var(--text-mono);
}

.lessons-bg .block-label {
    color: var(--text-dim);
}


/* ------------------------------------------------------------
   SECTION — Base Container
   ------------------------------------------------------------ */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--section-py) var(--pad-x);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4.5rem;
}

.section-num {
    font-size: 0.62rem;
    color: var(--text-dim);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--text);
}


/* ------------------------------------------------------------
   LESSONS — Two-column intro + progression
   ------------------------------------------------------------ */
.grid-two {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 4.5rem;
}

.col-intro p + p {
    margin-top: 0.75rem;
}

/* Progression steps */
.progression-steps {
    list-style: none;
}

.step {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.step:first-child {
    border-top: 1px solid var(--border);
}

.step-num {
    font-size: 0.62rem;
    color: var(--text-dim);
    padding-top: 0.15rem;
}

.step-body strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.step-body p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.65;
}


/* ------------------------------------------------------------
   NOTE ON PROGRESSION
   ------------------------------------------------------------ */
.progression-note {
    max-width: 68ch;
}

.progression-note-lede {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 1rem;
}

.progression-note p + p {
    margin-top: 0.85rem;
}

.progression-note p {
    font-size: 0.875rem;
    line-height: 1.75;
}


/* ------------------------------------------------------------
   PRICING BLOCK
   ------------------------------------------------------------ */
.pricing-block {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.pricing-header {
    max-width: 72ch;
}

.pricing-lede {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.pricing-total {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--text);
}

.pricing-context {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.75;
}


/* ------------------------------------------------------------
   SPEC GRID — Borderless-outer, inner-ruled cells
   ------------------------------------------------------------ */
.grid-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Each cell carries its own top + left border;
       the container's right + bottom close the grid */
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.spec-block {
    padding: 2rem;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.spec-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 0.65rem;
}

.spec-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.9rem;
    letter-spacing: 0.03em;
    font-weight: 400;
}

.spec-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.65;
}


/* ------------------------------------------------------------
   LOCATIONS
   ------------------------------------------------------------ */
.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.location-item {
    padding: 1.75rem 2rem 1.75rem 0;
    border-right: 1px solid var(--border);
}

.location-item:last-child {
    border-right: none;
}

.loc-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.loc-coord {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.loc-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.55;
}


/* ------------------------------------------------------------
   FIT SECTION
   ------------------------------------------------------------ */
.fit-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: start;
}

.fit-list {
    list-style: none;
    margin-top: 0.25rem;
}

.fit-list li {
    font-size: 0.83rem;
    color: var(--text-dim);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}

.fit-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-dim);
    opacity: 0.4;
}

.fit-note {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-style: italic;
}


/* ------------------------------------------------------------
   GEAR ADVISORY
   ------------------------------------------------------------ */
.gear-required {
    border-left: 2px solid var(--border-mid);
    padding-left: 1.1rem;
    margin-bottom: 2rem;
}

.gear-required-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.07em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.gear-required p {
    font-size: 0.83rem;
    line-height: 1.65;
    color: var(--text-dim);
}

.gear-advisory > p {
    max-width: 68ch;
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.gear-progression-label {
    display: block;
    margin-top: 2rem;
}

.gear-table {
    border: 1px solid var(--border);
    background: rgba(200, 185, 162, 0.02);
}

.gear-row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.gear-row:last-child {
    border-bottom: none;
}

.gear-seq {
    font-size: 0.62rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.gear-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.55;
}


/* ------------------------------------------------------------
   APPLY SECTION
   ------------------------------------------------------------ */
.apply {
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.apply.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.apply-intro {
    max-width: 58ch;
    margin-bottom: 0;
}

.apply-intro p {
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* Form container */
.form-container {
    padding: 2.5rem 0;
}

.form-placeholder {
    border: 1px solid var(--border);
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(200, 185, 162, 0.015);
    text-align: center;
}

.form-placeholder p {
    font-size: 0.78rem;
    color: var(--text-dim);
    max-width: 45ch;
}

.form-fields-ref {
    font-size: 0.6rem !important;
    color: var(--text-dim);
    opacity: 0.6;
    margin-top: 0.5rem;
}

.apply-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
    border-top: 1px solid var(--border);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.5rem var(--pad-x);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo-img {
    height: 20px;
    width: auto;
    opacity: 0.55;
}

.footer-location {
    font-size: 0.6rem;
    color: var(--text-dim);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.footer-meta span {
    font-size: 0.6rem;
    color: var(--text-dim);
}

.footer-copy { opacity: 0.5; }


/* ------------------------------------------------------------
   RESPONSIVE — Tablet (≤ 900px)
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    :root {
        --section-py: 5rem;
        --pad-x: 1.75rem;
    }

    .grid-two {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .location-item:nth-child(2) {
        border-right: none;
    }

    .location-item:nth-child(3),
    .location-item:nth-child(4) {
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
    }

    .location-item:nth-child(4) {
        border-right: none;
    }

    .fit-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* ------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 640px)
   ------------------------------------------------------------ */
@media (max-width: 640px) {
    :root {
        --section-py: 4rem;
        --pad-x: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.58rem;
    }

    .hero-title {
        font-size: clamp(4.5rem, 23vw, 9rem);
    }

    .hero-sub {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .lede {
        font-size: 1.15rem;
    }

    .grid-specs {
        grid-template-columns: 1fr;
        border-right: none;
        border-bottom: none;
    }

    .spec-block {
        border-right: 1px solid var(--border);
        border-bottom: none;
    }

    /* Re-close bottom on last item */
    .spec-block:last-child {
        border-bottom: 1px solid var(--border);
    }

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

    .location-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 0;
    }

    .location-item:last-child {
        border-bottom: none;
    }

    .gear-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 1rem;
    }

    .apply-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-meta {
        align-items: flex-start;
    }
}


/* ------------------------------------------------------------
   ACCESSIBILITY — Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero-video { display: none; }

    .apply {
        opacity: 1;
        transform: none;
        pointer-events: all;
        transition: none;
    }

    .nav-apply {
        opacity: 1;
        pointer-events: auto;
    }
}
