/* =========================================================
   26°N — design system
   Reference: avdoo.com (typography, palette, motion)
   ========================================================= */

/* ============== FONT LOADING ============== */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/CormorantGaramond-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/CormorantGaramond-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/CormorantGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ============== INTRO REEL (full-screen, plays on load, dismisses) ============== */
.intro-reel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #1D2D44; /* navy fallback while images load */
    overflow: hidden;
    transition: opacity 700ms ease;
}
.intro-reel.is-dismissed {
    opacity: 0;
    pointer-events: none;
}
.intro-reel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1D2D44;
    opacity: 0;
}
.intro-reel-slide.is-active { opacity: 1; }
/* Lock body scroll while intro is showing */
body.intro-active { overflow: hidden; }

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
    /* Palette — parchment base + dark navy. Restrained gold accent for the latitude mark. */
    --bg-cream: #F8F5F0;          /* Crane Lettra Pearl White — matches card stock */
    --bg-cream-alt: #F8F5F0;      /* alias — same as parchment */
    --bg-dark: #1D2D44;           /* Pantone 533 C — editorial gray-navy */
    --text-dark: #1D2D44;         /* navy ink on parchment */
    --text-mid: #5C6678;          /* muted navy-gray */
    --text-light: #F8F5F0;        /* parchment on navy */
    --text-light-mid: #B8B1A3;    /* muted parchment */
    --accent-gold: #A88A4E;
    --accent-navy: #1D2D44;
    --taupe: #938d83;
    --hairline: rgba(29, 45, 68, 0.14);
    --hairline-light: rgba(245, 240, 232, 0.18);

    /* Type */
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Motion (avdoo's signature easing) */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --t-fast: 250ms;
    --t-med: 500ms;
    --t-slow: 1000ms;

    /* Scale */
    --max: 1440px;
    --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-cream); color: var(--text-dark); }
body {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(17px, 1.15vw, 19px);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--t-fast) var(--ease); }
a:hover { opacity: 0.6; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* ============== TYPE SCALE ============== */
.t-eyebrow {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: clamp(11px, 0.85vw, 13px);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-mid);
}
.t-eyebrow--light { color: var(--text-light-mid); }

.t-display {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(56px, 9vw, 144px);
    line-height: 0.95;
    letter-spacing: -0.01em;
}
.t-h1 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(40px, 5.6vw, 84px);
    line-height: 1.05;
    letter-spacing: -0.005em;
}
.t-h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.15;
}
.t-h3 {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: clamp(13px, 0.95vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.t-body {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(17px, 1.15vw, 19px);
    line-height: 1.6;
}
.t-body--light { color: var(--text-light); }
.t-italic { font-style: italic; font-weight: 300; }

/* ============== LAYOUT ============== */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 10vw, 144px) 0; }

/* ============== NAV ============== */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px var(--gutter);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(251, 247, 236, 0); /* transparent over the cream hero */
    transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
    color: var(--text-dark);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(251, 247, 236, 0.94);
    color: var(--text-dark);
    border-bottom-color: var(--hairline);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.nav-brand {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 28px;
    letter-spacing: 0.04em;
}
.nav-brand .deg { font-feature-settings: "sups"; }
.nav-links {
    display: flex; gap: clamp(18px, 2.5vw, 36px);
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.18em;
}
.nav-links a { display: inline-block; }

/* ============== HERO (typographic) ============== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: var(--bg-cream);
}

/* Solid background — no gradients or fades */
.hero-aurora {
    position: absolute; inset: 0; z-index: 0;
    background: var(--bg-cream);
}
.hero-inner {
    position: relative; z-index: 1;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 80px; padding-bottom: 120px;
}
.hero-eyebrow {
    margin-bottom: clamp(36px, 6vw, 72px);
}
.hero-headline {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(56px, 10vw, 168px);
    line-height: 0.94;
    letter-spacing: -0.012em;
    color: var(--text-dark);
    max-width: 1100px;
}
.hero-headline__line {
    display: block;
}
.hero-meta--type {
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px;
    display: flex; justify-content: space-between; align-items: end;
    color: var(--text-mid);
    font-family: var(--font-ui);
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    pointer-events: none;
}
.hero-coord { font-feature-settings: "tnum"; }

/* Scroll cue */
.hero-scroll {
    position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--text-mid);
    pointer-events: auto;
}
.hero-scroll__line {
    width: 1px; height: 56px;
    background: linear-gradient(to bottom, transparent, var(--text-mid));
}
.hero-scroll__label {
    font-family: var(--font-ui); font-size: 10px;
    letter-spacing: 0.32em; text-transform: uppercase;
}
.hero-scroll:hover .hero-scroll__line { animation: scrollPulse 1.4s var(--ease) infinite; }
@keyframes scrollPulse {
    0%   { transform: scaleY(1);    transform-origin: top; }
    50%  { transform: scaleY(0.4);  transform-origin: top; }
    100% { transform: scaleY(1);    transform-origin: top; }
}

/* Legacy carousel rules — retained so style-guide.html keeps working */
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: none;
}
.hero-slide.is-active { opacity: 1; }
.hero-meta {
    position: absolute; left: var(--gutter); bottom: 28px; right: var(--gutter);
    display: flex; justify-content: space-between; align-items: end;
    pointer-events: none;
    z-index: 2;
}
.hero-meta .counter { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }

/* ============== MANIFESTO (navy band) ============== */
.manifesto {
    padding: clamp(96px, 14vw, 192px) 0 clamp(72px, 10vw, 128px);
    background: var(--bg-dark);
    color: var(--text-light);
}
.manifesto-inner {
    max-width: 880px;
}
.manifesto-eyebrow {
    margin-bottom: clamp(28px, 4vw, 44px);
    color: var(--text-light-mid);
}
.manifesto-body {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(26px, 3.2vw, 44px);
    line-height: 1.28;
    letter-spacing: -0.005em;
    color: var(--text-light);
    margin-bottom: clamp(40px, 6vw, 64px);
}
.manifesto-body em {
    font-style: italic;
    font-weight: 400;
}

/* Arrow link */
.arrow-link {
    font-family: var(--font-ui); font-weight: 400;
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: inherit;
    display: inline-flex; align-items: center; gap: 12px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 8px;
    opacity: 0.85;
}
.arrow-link::after {
    content: "→";
    transition: transform var(--t-fast) var(--ease);
}
.arrow-link:hover { opacity: 1; }
.arrow-link:hover::after { transform: translateX(6px); }

/* ============== INTERIOR PAGE — HERO ============== */
.page-hero {
    background: var(--bg-cream);
    padding: clamp(140px, 18vw, 240px) 0 clamp(24px, 3vw, 48px);
}
.page-hero-inner { max-width: var(--max); }
.page-hero-eyebrow { margin-bottom: clamp(28px, 4vw, 40px); }
.page-headline {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(48px, 8.5vw, 144px);
    line-height: 0.95;
    letter-spacing: -0.012em;
    color: var(--text-dark);
    max-width: 1100px;
}
.page-headline span { display: block; }

/* ============== INTERIOR PAGE — PROSE ============== */
.prose {
    background: var(--bg-cream);
    padding: clamp(32px, 4vw, 64px) 0 clamp(56px, 7vw, 96px);
}
.prose-inner { max-width: 880px; }
.prose-section-label { margin-bottom: clamp(28px, 4vw, 44px); }
.prose-paragraph {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(22px, 2.6vw, 36px);
    line-height: 1.32;
    letter-spacing: -0.005em;
    color: var(--text-dark);
}
.prose-paragraph + .prose-paragraph { margin-top: clamp(28px, 4vw, 44px); }
.prose-paragraph em { font-style: italic; font-weight: 400; }

/* ============== NAVY POSITION BAND ============== */
.band-statement {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: clamp(96px, 14vw, 192px) 0;
}
.band-statement-inner { max-width: 1100px; }
.band-statement-eyebrow { margin-bottom: clamp(28px, 4vw, 44px); }
.band-statement-quote {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(36px, 5.6vw, 84px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--text-light);
}
.band-statement-quote .t-italic { font-style: italic; font-weight: 300; }

/* ============== CADENCE / FACTS STRIP ============== */
.cadence {
    background: var(--bg-cream);
    padding: clamp(72px, 10vw, 144px) 0 clamp(96px, 12vw, 160px);
    border-top: 1px solid var(--hairline);
}
.cadence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 56px);
    margin-bottom: clamp(48px, 7vw, 80px);
    align-items: start;
}
.cadence-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cadence-item { border-top: 1px solid var(--hairline); padding-top: clamp(20px, 3vw, 28px); }
.cadence-figure {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(36px, 4.8vw, 64px);
    line-height: 1;
    color: var(--text-dark);
    margin-bottom: clamp(14px, 2vw, 22px);
}
.cadence-label { color: var(--text-mid); }
.cadence-note {
    margin-top: clamp(8px, 1vw, 14px);
    margin-bottom: clamp(28px, 4vw, 44px);
    max-width: 720px;
}
.prose-inline-link {
    color: inherit;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.prose-inline-link:hover { opacity: 0.6; }

/* ============== UNIVERSE — neat grid on navy ============== */
.universe-section {
    background: var(--bg-dark);
    padding: clamp(96px, 14vw, 192px) 0 clamp(120px, 16vw, 224px);
}
.universe-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.6vw, 24px);
    align-items: start;
}

.u-tile {
    position: relative;
    overflow: hidden;
    background: var(--bg-cream);     /* parchment placeholder against navy */
    aspect-ratio: 4 / 5;             /* default: rectangle (portrait) */
    grid-column: auto;
    transform: none;                  /* override inline rotation/offset from earlier collage version */
    transition: transform 280ms var(--ease);
}
.u-tile:hover { transform: scale(1.01); z-index: 5; }

/* Variants — square placeholders for macro details */
.u-tile--small { aspect-ratio: 1 / 1; }
.u-tile--feat,
.u-tile--tall,
.u-tile--wide { aspect-ratio: 4 / 5; }

.u-tile-image {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}

.u-tile-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 16px 20px 18px;
    background: var(--bg-dark);
    color: var(--text-light);
    transform: translateY(100%);
    transition: transform 280ms var(--ease);
    display: flex; flex-direction: column; gap: 4px;
}
.u-tile:hover .u-tile-caption { transform: translateY(0); }
.u-tile-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.2;
    color: var(--text-light);
}
.u-tile-detail { color: var(--text-light-mid); }

@media (max-width: 900px) {
    .universe-collage { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .universe-collage { grid-template-columns: 1fr; gap: 16px; }
}

/* ============== PICTURE ROLL (horizontal film strip) ============== */
.picture-roll {
    background: var(--bg-cream);
    padding: clamp(56px, 8vw, 96px) 0;
    overflow: hidden;
}
.picture-roll-header {
    margin-bottom: clamp(24px, 3vw, 36px);
}
.picture-roll-track {
    display: flex;
    gap: clamp(12px, 1.4vw, 20px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 var(--gutter) 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.picture-roll-track::-webkit-scrollbar { display: none; }
.picture-roll-item {
    flex: 0 0 auto;
    width: clamp(260px, 28vw, 440px);
    aspect-ratio: 3 / 4;
    background: var(--bg-dark);
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
}

/* ============== CONTACT BLOCKS ============== */
.contact-section {
    background: var(--bg-cream);
    padding: clamp(56px, 8vw, 112px) 0 clamp(96px, 12vw, 160px);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(40px, 5vw, 72px);
}
.contact-block {
    border-top: 1px solid var(--hairline);
    padding-top: clamp(20px, 3vw, 28px);
}
.contact-block-label {
    margin-bottom: clamp(18px, 2.5vw, 28px);
    color: var(--text-mid);
}
.contact-block-line {
    display: block;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.25;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: clamp(14px, 2vw, 22px);
}
a.contact-block-line { border-bottom: 0; }
a.contact-block-line:hover { opacity: 0.6; }
.contact-block-note {
    font-family: var(--font-display);
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--text-mid);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============== PRINCIPALS' RECORD (Partners) ============== */
.record {
    background: var(--bg-cream);
    padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 10vw, 128px);
}
.record-eyebrow {
    margin-bottom: clamp(28px, 4vw, 44px);
    color: var(--text-mid);
}
.record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 40px);
    align-items: start;
}
.record-item {
    min-width: 0;
    border-top: 1px solid var(--hairline);
    padding-top: clamp(18px, 2.4vw, 24px);
    text-align: center;
}
.record-figure {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1;
    letter-spacing: -0.005em;
    color: var(--text-dark);
    margin-bottom: clamp(10px, 1.6vw, 16px);
    font-variant-numeric: tabular-nums;
}
.record-label { color: var(--text-mid); }

@media (max-width: 900px) {
    .record-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .record-grid { grid-template-columns: 1fr; }
}

/* ============== EXPERTISE PILLARS ============== */
.pillars {
    background: var(--bg-cream);
    padding: clamp(56px, 8vw, 112px) 0;
}
.pillar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
    padding: clamp(56px, 8vw, 112px) 0;
    border-top: 1px solid var(--hairline);
}
.pillar:last-child { border-bottom: 1px solid var(--hairline); }
.pillar--reverse .pillar-text { order: 2; }
.pillar--reverse .pillar-image { order: 1; }

.pillar-eyebrow { margin-bottom: clamp(20px, 3vw, 32px); color: var(--text-mid); }
.pillar-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(32px, 4.8vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.005em;
    color: var(--text-dark);
    margin-bottom: clamp(20px, 3vw, 32px);
}
.pillar-title em { font-style: italic; font-weight: 400; }
.pillar-title-sub {
    display: block;
    font-style: normal;
    font-size: 0.55em;
    letter-spacing: 0.01em;
    color: var(--text-mid);
    margin-top: 8px;
}
.pillar-body {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.55;
    color: var(--text-dark);
}
.pillar-body em { font-style: italic; }

.pillar-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--bg-dark); /* solid navy placeholder */
}

@media (max-width: 768px) {
    .pillar { grid-template-columns: 1fr; gap: 28px; }
    .pillar--reverse .pillar-text { order: 1; }
    .pillar--reverse .pillar-image { order: 2; }
    .cadence-grid { grid-template-columns: 1fr; }
}

/* ============== SELECTED WORKS ============== */
.works {
    background: var(--bg-cream);
    padding: clamp(72px, 10vw, 144px) 0 clamp(96px, 12vw, 160px);
    border-top: 1px solid var(--hairline);
}
.works-header {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: clamp(36px, 5vw, 56px);
}
.works-counter { color: var(--text-mid); }

.works-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--bg-dark); /* solid navy placeholder until photos arrive */
}
.works-slide {
    position: absolute; inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    /* Instant cut — no fade. Per atmosphere-reel spec. */
}
.works-slide.is-active { opacity: 1; }

.works-caption {
    margin-top: clamp(24px, 3vw, 36px);
    display: flex; justify-content: space-between; align-items: end;
    flex-wrap: wrap; gap: 12px;
}
.works-caption-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.2;
    color: var(--text-dark);
}
.works-caption-place { color: var(--text-mid); }

@media (max-width: 768px) {
    .works-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .works-stage { aspect-ratio: 4 / 5; }
    .works-caption { flex-direction: column; align-items: flex-start; }
}

/* ============== QUIET MARK BAND ============== */
.band {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: clamp(112px, 16vw, 200px) var(--gutter);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.band::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(168, 138, 78, 0.12) 0%, rgba(168, 138, 78, 0) 60%);
    pointer-events: none;
}
.band-inner {
    position: relative; z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
}
.band-mark {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(140px, 28vw, 380px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--text-light);
    display: block;
}
.band-mark .deg {
    font-feature-settings: "sups";
    color: var(--accent-gold);
}
.band-sub {
    margin-top: clamp(20px, 3vw, 32px);
    color: var(--text-light-mid);
}

/* ============== TAGLINE ============== */
.gate-cap {
    text-align: center;
    padding: clamp(72px, 10vw, 128px) var(--gutter);
    background: var(--bg-cream);
}
.gate-cap .t-h2 { font-style: italic; font-weight: 300; color: var(--text-dark); }
.gate-cap__sub { margin-top: 22px; }

/* Legacy gate (kept for any other page that references it) */
.gate {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    background-size: cover;
    background-position: center;
    background-color: #2a2520;
}

/* ============== FOOTER ============== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: clamp(48px, 6vw, 72px) var(--gutter);
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-top: 1px solid rgba(240, 235, 222, 0.08);
}
.footer-row {
    max-width: var(--max); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer a:hover { opacity: 0.6; }
.footer-contact-block {
    display: flex; flex-direction: column; gap: 6px;
}
.footer .footer-contact {
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 13px;
}
.footer-address {
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 11px;
    color: var(--text-light-mid);
}
.footer .footer-mark {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--text-light);
}
.footer .footer-mark .deg { color: var(--accent-gold); }
.footer .footer-meta { color: var(--text-light-mid); font-size: 11px; letter-spacing: 0.10em; }

/* Circular seal mark */
.seal {
    width: 116px; height: 116px;
    color: var(--text-light);
    flex: 0 0 auto;
}
.seal text { font-family: 'Cormorant Garamond', serif; }

/* ============== STYLE GUIDE ============== */
.sg-row { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--hairline); align-items: center; }
.sg-row .label { font-family: var(--font-ui); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--text-mid); }
.sg-swatch { display: flex; align-items: center; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.sg-chip { width: 64px; height: 64px; border-radius: 2px; border: 1px solid var(--hairline); }
.sg-meta { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.08em; }
.sg-meta .name { display: block; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }
.sg-meta .hex { display: block; color: var(--text-mid); margin-top: 4px; }
.sg-section-title { padding-top: 64px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); margin-bottom: 24px; }

/* small placeholder caption — used in the carousel mockup */
.placeholder-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 14px var(--gutter);
    font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(240,235,222,0.85);
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
    z-index: 3;
}

/* ============== MOBILE ============== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
    .footer-row { flex-direction: column; align-items: flex-start; gap: 18px; }
    .sg-row { grid-template-columns: 1fr; gap: 8px; }

    .hero-inner { padding-top: 96px; padding-bottom: 140px; }
    .hero-headline { max-width: none; }
    .hero-meta--type {
        flex-direction: column; align-items: flex-start; gap: 6px;
        bottom: 28px;
    }
    .hero-scroll { bottom: 96px; }
    .manifesto { padding: clamp(72px, 18vw, 120px) 0; }
}
@media (min-width: 769px) {
    .nav-mobile-toggle { display: none; }
}

/* ============== SPLASH OVERLAY — full-page film reel on first load ============== */
.splash {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 900ms cubic-bezier(0.65, 0, 0.35, 1);
    will-change: opacity;
}
.splash.is-out  { opacity: 0; pointer-events: none; }
.splash.is-gone { display: none; }
.splash-grid {
    position: absolute; inset: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
}
.splash-cell {
    background-color: #0c1421;
    background-size: cover;
    background-position: center;
    transition: none;     /* instant cuts within each cell */
    image-rendering: -webkit-optimize-contrast;
}
/* Centered brand mark over the grid */
.splash-mark {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(24px, 3vw, 44px);
    background: rgba(29, 45, 68, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 50%;
}
.splash-mark__seal {
    width: clamp(180px, 22vw, 320px);
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    .splash-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, 1fr); }
    .splash-mark { padding: 18px 28px; }
}

/* ============== HERO PANEL — full-bleed image with text overlay (Home) ============== */
.hero-panel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    color: var(--text-light);
    overflow: hidden;
}
.hero-panel-scrim {
    /* Soft bottom-to-top dark gradient so headline text stays legible
       over any image while keeping the photograph dominant. */
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(29, 45, 68, 0.78) 0%,
        rgba(29, 45, 68, 0.45) 32%,
        rgba(29, 45, 68, 0.10) 60%,
        rgba(29, 45, 68, 0.00) 100%
    );
    pointer-events: none;
}
.hero-panel-inner {
    position: relative; z-index: 2;
    padding-top: clamp(60px, 8vh, 120px);
    padding-bottom: clamp(56px, 7vh, 96px);
    width: 100%;
}
.hero-panel-eyebrow {
    color: var(--text-light);
    margin-bottom: clamp(16px, 2vh, 28px);
    opacity: 0.85;
}
.hero-panel-headline {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1.05;
    letter-spacing: -0.005em;
    color: var(--text-light);
    margin: 0 0 clamp(20px, 3vh, 36px);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-panel-headline span { display: block; }
.hero-panel-meta {
    display: flex; gap: 24px;
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.72;
}
@media (max-width: 768px) {
    .hero-panel-meta { flex-direction: column; gap: 6px; }
    .hero-panel-headline { font-size: clamp(36px, 11vw, 64px); }
}

/* Slightly slower splash fade so it bleeds gently into the hero panel */
.splash {
    transition: opacity 1400ms cubic-bezier(0.65, 0, 0.35, 1) !important;
}

/* Home: nav sits transparently over dark hero photo at top. Needs three
   reinforcements to read against a variable photographic background:
     1. Light parchment text color
     2. Slightly heavier weight (Inter 500) so strokes don't disappear
     3. Soft text shadow + subtle top scrim for guaranteed contrast */
body.home .nav:not(.is-scrolled) {
    color: var(--text-light);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.32) 0%,
        rgba(0, 0, 0, 0.18) 60%,
        rgba(0, 0, 0, 0.00) 100%
    );
}
body.home .nav:not(.is-scrolled) .nav-brand,
body.home .nav:not(.is-scrolled) .nav-links a,
body.home .nav:not(.is-scrolled) .nav-mobile-toggle {
    color: var(--text-light);
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
/* Brand mark is serif — text-shadow alone is enough, no weight bump */
body.home .nav:not(.is-scrolled) .nav-brand {
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ============== MOBILE NAV — dropdown panel when .is-open ============== */
@media (max-width: 768px) {
    .nav.is-open {
        background: rgba(248, 245, 240, 0.98);
        color: var(--text-dark);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .nav.is-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 24px var(--gutter) 32px;
        gap: 20px;
        background: inherit;
        border-top: 1px solid var(--hairline);
        font-size: 14px;
    }
    .nav.is-open .nav-links a {
        color: var(--text-dark);
        padding: 6px 0;
    }
    /* On Home, when the nav is over the dark hero AND opened, give the panel
       a parchment surface so the links read cleanly (override the light-on-dark
       hero treatment for the open state) */
    body.home .nav.is-open:not(.is-scrolled) {
        background: rgba(248, 245, 240, 0.98);
        color: var(--text-dark);
    }
    body.home .nav.is-open:not(.is-scrolled) .nav-brand,
    body.home .nav.is-open:not(.is-scrolled) .nav-links a,
    body.home .nav.is-open:not(.is-scrolled) .nav-mobile-toggle {
        color: var(--text-dark);
        text-shadow: none;
        font-weight: 400;
    }
    body.home .nav.is-open:not(.is-scrolled) .nav-links a {
        font-weight: 400;
    }
}
