@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,200..900,0..100;1,9..144,200..900,0..100&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --parchment: #f1e6cb;
    --parchment-warm: #ead8b1;
    --parchment-deep: #d9c294;
    --parchment-edge: #b89c66;
    --ink: #1d1610;
    --ink-soft: #4a3a26;
    --ink-faded: #7a6a4f;
    --cenote: #15999b;
    --cenote-deep: #0e6d75;
    --cenote-mist: #b4d8d3;
    --sienna: #a85a32;
    --moss: #5e6b3d;

    --serif: 'Fraunces', 'Times New Roman', serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    --gutter: clamp(1.25rem, 4vw, 3rem);
    --max: 1480px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--parchment);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 380;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 50% 40%, rgba(255,250,235,0.5) 0%, rgba(241,230,203,0) 60%),
        radial-gradient(ellipse at 80% 90%, rgba(168,90,50,0.10) 0%, rgba(241,230,203,0) 50%),
        radial-gradient(ellipse at 10% 80%, rgba(80,60,30,0.08) 0%, rgba(241,230,203,0) 50%);
}

/* Subtle paper grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.18;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.10  0 0 0 0 0.05  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */

.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-faded);
    font-weight: 500;
}

.display {
    font-family: var(--serif);
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 280;
    font-style: italic;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 350; }

.section-title {
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 320;
    font-style: italic;
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.025em;
}

.section-num {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-faded);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}
.section-num::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: var(--ink-faded);
    display: inline-block;
}

p { max-width: 60ch; }
.lede {
    font-variation-settings: 'opsz' 60, 'wght' 350;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    line-height: 1.45;
    color: var(--ink-soft);
}

.dropcap::first-letter {
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 380;
    font-style: italic;
    font-size: 4.4em;
    float: left;
    line-height: 0.85;
    padding: 0.05em 0.15em 0 0;
    color: var(--sienna);
}

/* Decorative rule */
.rule {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ink-faded) 30%, var(--ink-faded) 70%, transparent);
    opacity: 0.4;
}

/* ---- Top Nav ---- */

.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(to bottom, rgba(241,230,203,0.92), rgba(241,230,203,0.0));
    backdrop-filter: blur(2px);
    transition: background 0.3s ease;
}
.topnav.scrolled {
    background: rgba(241,230,203,0.94);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.topnav.dark {
    background: linear-gradient(to bottom, rgba(15,12,8,0.55), transparent);
    color: var(--parchment);
}
.topnav.dark.scrolled {
    background: rgba(20,15,10,0.85);
    color: var(--parchment);
    border-bottom-color: rgba(255,255,255,0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--serif);
    font-variation-settings: 'opsz' 144, 'wght' 360, 'SOFT' 100;
    font-style: italic;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
    line-height: 1;
}
.brand-mark {
    width: 38px;
    height: auto;
    flex-shrink: 0;
    display: block;
    transition: transform 0.4s ease;
}
.brand:hover .brand-mark { transform: rotate(-4deg); }
.brand-text { display: inline-block; }
.brand small {
    font-family: var(--mono);
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-top: 0.15rem;
    opacity: 0.6;
}
@media (max-width: 540px) {
    .brand-mark { width: 30px; }
    .brand { font-size: 1.05rem; }
}

.topnav nav ul {
    list-style: none;
    display: flex;
    gap: clamp(1.2rem, 2.4vw, 2.4rem);
    align-items: center;
}
.topnav nav a {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    position: relative;
    padding: 0.4rem 0;
    transition: opacity 0.2s ease;
}
.topnav nav a:hover { opacity: 0.55; }
.topnav nav a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: currentColor;
}
.lang-pill {
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.4rem 0.85rem !important;
    opacity: 0.85;
}

/* Hamburger toggle (hidden until small breakpoint) */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: inherit;
    cursor: pointer;
    z-index: 60;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { background: rgba(0,0,0,0.06); }
.nav-toggle .bars {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    width: 16px;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
    content: '';
    display: block;
    height: 1.5px;
    width: 100%;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.menu-open .nav-toggle .bars::before { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav-toggle .bars span    { opacity: 0; }
.menu-open .nav-toggle .bars::after  { transform: translateY(-4.5px) rotate(-45deg); }
.nav-toggle .label-open  { display: inline; }
.nav-toggle .label-close { display: none; }
.menu-open .nav-toggle .label-open  { display: none; }
.menu-open .nav-toggle .label-close { display: inline; }

/* Tablet — drop supplementary items so the bar breathes */
@media (max-width: 1000px) {
    .topnav nav ul { gap: 1.1rem; }
    .topnav .nav-supplementary { display: none; }
}

/* Narrow tablet — hide Acquire and the brand subtitle */
@media (max-width: 750px) {
    .topnav .nav-secondary { display: none; }
    .brand small { display: none; }
}

/* Phone — collapse to hamburger drawer */
@media (max-width: 540px) {
    .nav-toggle { display: inline-flex; }
    .brand small { display: none; }

    .topnav nav {
        position: fixed;
        inset: 0;
        background: var(--parchment);
        padding: 6rem var(--gutter) 3rem;
        z-index: 55;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
        overflow-y: auto;
    }
    .topnav.dark nav { background: rgba(20,15,10,0.97); }
    .topnav.menu-open nav { transform: translateX(0); }

    .topnav nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
    }
    .topnav .nav-supplementary,
    .topnav .nav-secondary { display: list-item; }
    .topnav nav a {
        font-family: var(--serif);
        font-variation-settings: 'opsz' 144, 'wght' 320, 'SOFT' 100;
        font-style: italic;
        font-size: 2rem;
        letter-spacing: 0;
        text-transform: none;
        color: var(--ink);
    }
    .topnav.dark nav a { color: var(--parchment); }
    .topnav nav a.lang-pill {
        font-family: var(--mono);
        font-style: normal;
        font-size: 0.78rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        padding: 0.55rem 1rem !important;
        margin-top: 0.5rem;
    }
    .topnav nav a.active::after { display: none; }

    body.menu-open { overflow: hidden; }
}

/* ---- COVER (index) ---- */

.cover {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem var(--gutter) 4rem;
    color: var(--parchment);
    overflow: hidden;
    isolation: isolate;
}
.cover-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: saturate(0.7) contrast(1.05) brightness(0.85);
}
.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(15,12,8,0.15) 0%, rgba(15,12,8,0.55) 60%, rgba(15,12,8,0.78) 100%),
        linear-gradient(180deg, rgba(20,15,10,0.45) 0%, rgba(15,12,8,0.55) 100%);
}
.cover::after {
    content: '';
    position: absolute;
    inset: 1.2rem;
    border: 1px solid rgba(241,230,203,0.18);
    pointer-events: none;
    z-index: 0;
}

.cover-corner {
    position: absolute;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.55;
    z-index: 1;
}
.cover-corner.tl { top: 2rem; left: 2rem; }
.cover-corner.tr { top: 2rem; right: 2rem; text-align: right; }
.cover-corner.bl { bottom: 2rem; left: 2rem; }
.cover-corner.br { bottom: 2rem; right: 2rem; text-align: right; }

.cover-inner {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}
.cover-eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 1.8rem;
}
.cover-eyebrow span {
    display: inline-block;
    padding: 0 0.6em;
}
.cover-title {
    font-variation-settings: 'opsz' 144, 'wght' 220, 'SOFT' 100;
    font-style: italic;
    font-size: clamp(3.5rem, 11vw, 9rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
}
.cover-title .amp {
    font-style: italic;
    color: var(--cenote-mist);
    font-variation-settings: 'opsz' 144, 'wght' 280, 'SOFT' 100;
}
.cover-tagline {
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    margin-top: 1.4rem;
    opacity: 0.85;
    font-variation-settings: 'opsz' 60, 'wght' 320;
}

.cover-langs {
    margin-top: 3.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(241,230,203,0.4);
    border-radius: 999px;
    padding: 0.35rem;
    background: rgba(15,12,8,0.25);
    backdrop-filter: blur(6px);
}
.cover-langs a {
    padding: 0.85rem 2rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all 0.3s ease;
    position: relative;
}
.cover-langs a:hover {
    background: rgba(241,230,203,0.95);
    color: var(--ink);
}

.cover-meta {
    margin-top: 2.5rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.55;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- HERO (cenotes one-pager) ---- */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    padding: 9rem var(--gutter) 5rem;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}
/* Topographic ambience behind hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(ellipse at 78% 35%, rgba(168,90,50,0.10), transparent 55%),
        radial-gradient(ellipse at 12% 80%, rgba(14,109,117,0.08), transparent 55%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'><g fill='none' stroke='%23000' stroke-width='0.7' opacity='0.06'><ellipse cx='620' cy='420' rx='560' ry='320'/><ellipse cx='620' cy='420' rx='480' ry='270'/><ellipse cx='620' cy='420' rx='400' ry='220'/><ellipse cx='620' cy='420' rx='320' ry='170'/><ellipse cx='620' cy='420' rx='240' ry='130'/><ellipse cx='620' cy='420' rx='160' ry='90'/><ellipse cx='620' cy='420' rx='90' ry='55'/></g></svg>");
    background-size: cover, cover, 130% 130%;
    background-position: center, center, 78% 38%;
    background-repeat: no-repeat;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}
.hero-text { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }
.hero h1 {
    font-variation-settings: 'opsz' 144, 'wght' 240, 'SOFT' 100;
    font-style: italic;
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.025em;
}
.hero h1 em {
    font-style: italic;
    color: var(--cenote-deep);
    font-variation-settings: 'opsz' 144, 'wght' 320, 'SOFT' 100;
    display: block;
}
.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 1px solid var(--ink-faded);
    padding-left: 1.4rem;
}
.hero-meta dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.2rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}
.hero-meta dt { text-transform: uppercase; opacity: 0.55; }
.hero-meta dd { color: var(--ink); }

.hero-plate {
    position: relative;
    background: var(--parchment-warm);
    border: 1px solid var(--parchment-edge);
    padding: 1rem 1rem 0.6rem;
    box-shadow:
        0 1px 0 rgba(0,0,0,0.03),
        24px 32px 80px -32px rgba(60,40,15,0.45);
    transform: rotate(-1.2deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    max-width: 620px;
    margin-left: auto;
}
.hero-plate:hover { transform: rotate(0deg); }
.hero-plate img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
    user-select: none;
    -webkit-user-drag: none;
}
.hero-plate figcaption {
    margin-top: 0.8rem;
    padding-bottom: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faded);
}
.hero-plate figcaption .frontispiece {
    font-family: var(--serif);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-variation-settings: 'opsz' 60, 'wght' 380;
}
/* Decorative tape */
.hero-plate::before, .hero-plate::after {
    content: '';
    position: absolute;
    width: 70px; height: 18px;
    background: rgba(196,165,110,0.6);
    border-left: 1px solid rgba(140,110,60,0.35);
    border-right: 1px solid rgba(140,110,60,0.35);
    pointer-events: none;
}
.hero-plate::before { top: -8px; left: 14%; transform: rotate(-6deg); }
.hero-plate::after  { top: -8px; right: 14%; transform: rotate(5deg); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-plate { transform: none; max-width: 100%; }
    .hero-plate:hover { transform: none; }
}

.hero-scrollcue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-faded);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.hero-scrollcue::after {
    content: '';
    width: 1px;
    height: 3rem;
    background: var(--ink-faded);
    animation: scroll-pulse 2.4s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 0.8; }
}

@media (max-width: 760px) {
    .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Section primitives ---- */

.section {
    padding: clamp(5rem, 10vw, 9rem) var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
}
.section-head .lede { padding-bottom: 0.6rem; }

@media (max-width: 760px) {
    .section-head { grid-template-columns: 1fr; }
}

/* ---- The Peninsula (map) ---- */

.peninsula {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(168,90,50,0.06), transparent 60%),
        var(--parchment-warm);
    border-top: 1px solid var(--parchment-edge);
    border-bottom: 1px solid var(--parchment-edge);
}
.peninsula-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 2816 / 1536;
    margin-top: 1rem;
}
.peninsula-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: contrast(1.04);
    user-select: none;
    -webkit-user-drag: none;
}

/* .pin is a 0-sized anchor at (--x, --y); children position around it */
.pin {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: 0; height: 0;
    z-index: 2;
    --delay: 0s;
    opacity: 0;
    transition: opacity 0.6s ease;
    transition-delay: var(--delay);
}
.peninsula.in-view .pin {
    opacity: 1;
}
.pin-mark {
    position: absolute;
    width: 14px; height: 14px;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
}
.pin-mark::before, .pin-mark::after {
    content: '';
    position: absolute;
    background: var(--ink);
    width: 100%; height: 1.5px;
    top: 50%; left: 0;
    transform-origin: center;
    transition: background 0.3s ease;
}
.pin-mark::before { transform: translateY(-50%) rotate(45deg); }
.pin-mark::after  { transform: translateY(-50%) rotate(-45deg); }
.pin:hover .pin-mark::before,
.pin:hover .pin-mark::after { background: var(--cenote-deep); }

/* Default: label + coord stacked BELOW the mark, horizontally centered */
.pin-label,
.pin-coord {
    position: absolute;
    white-space: nowrap;
    pointer-events: none;
}
.pin-label {
    font-family: var(--serif);
    font-variation-settings: 'opsz' 60, 'wght' 460, 'SOFT' 30;
    font-size: clamp(0.78rem, 1vw, 1rem);
    letter-spacing: 0.02em;
    color: var(--ink);
    text-shadow: 0 0 8px var(--parchment-warm), 0 0 4px var(--parchment-warm);
    top: 0.55rem;
    left: 0;
    transform: translateX(-50%);
    text-align: center;
}
.pin-coord {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--ink-faded);
    opacity: 0.7;
    top: 1.85rem;
    left: 0;
    transform: translateX(-50%);
    text-align: center;
}

/* Direction variants — label/coord placement around the mark */
.pin.dir-right .pin-label {
    top: 0; left: 0.65rem; right: auto;
    transform: translateY(-115%);
    text-align: left;
}
.pin.dir-right .pin-coord {
    top: 0; left: 0.65rem; right: auto;
    transform: translateY(15%);
    text-align: left;
}
.pin.dir-left .pin-label {
    top: 0; right: 0.65rem; left: auto;
    transform: translateY(-115%);
    text-align: right;
}
.pin.dir-left .pin-coord {
    top: 0; right: 0.65rem; left: auto;
    transform: translateY(15%);
    text-align: right;
}
.pin.dir-above .pin-label {
    top: -1.85rem; left: 0;
    transform: translateX(-50%);
    text-align: center;
}
.pin.dir-above .pin-coord {
    top: -0.65rem; left: 0;
    transform: translateX(-50%);
    text-align: center;
}

/* Region labels — no mark, label centered exactly on (--x, --y) */
.pin.region .pin-mark { display: none; }
.pin.region .pin-label {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'wght' 320, 'SOFT' 100;
    font-size: clamp(0.95rem, 1.3vw, 1.4rem);
    color: var(--ink-soft);
    letter-spacing: 0.03em;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 10px var(--parchment-warm), 0 0 6px var(--parchment-warm);
}
.pin.region .pin-coord { display: none; }
.pin.region.faint .pin-label {
    opacity: 0.55;
    font-size: clamp(0.8rem, 1.05vw, 1.1rem);
}

.peninsula-legend {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faded);
    border-top: 1px solid var(--parchment-edge);
    padding-top: 1.2rem;
}

/* ---- What is a Cenote (cross-section) ---- */

.what-is {
    background: var(--parchment);
}
.what-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.what-image {
    position: sticky;
    top: 6rem;
    border: 1px solid var(--parchment-edge);
    background: var(--parchment-warm);
    padding: 1.2rem;
    box-shadow:
        0 1px 0 rgba(0,0,0,0.03),
        20px 30px 60px -30px rgba(60,40,15,0.35);
}
.what-image img { width: 100%; height: auto; display: block; }
.what-image figcaption {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-top: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.what-text { display: grid; gap: 2.4rem; }
.what-text h3 {
    font-variation-settings: 'opsz' 144, 'wght' 320, 'SOFT' 100;
    font-style: italic;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--cenote-deep);
}
.what-text .term {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sienna);
    display: block;
    margin-bottom: 0.4rem;
}
.what-text p + p { margin-top: 1rem; }

@media (max-width: 760px) {
    .what-grid { grid-template-columns: 1fr; }
    .what-image { position: static; }
}

/* ---- The Ring of Cenotes ---- */

.ring {
    background: var(--parchment-warm);
    border-top: 1px solid var(--parchment-edge);
    border-bottom: 1px solid var(--parchment-edge);
    overflow: hidden;
}
.ring-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ring-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.ring-stage[data-empty] {
    background: var(--parchment-deep);
    border: 1px dashed var(--ink-faded);
    color: var(--ink-faded);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.ring-stage[data-empty]::after {
    content: '◌  Chicxulub overlay — pending image';
}
.ring-callout {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    border-top: 1px solid var(--parchment-edge);
    padding-top: 2rem;
}
.ring-callout .stat {
    display: grid;
    gap: 0.4rem;
}
.ring-callout .num {
    font-variation-settings: 'opsz' 144, 'wght' 280, 'SOFT' 100;
    font-style: italic;
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1;
    color: var(--cenote-deep);
}
.ring-callout .label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faded);
}

/* ---- Gallery ---- */

.gallery {
    background: var(--parchment);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(0.6rem, 1.2vw, 1.4rem);
    margin-top: clamp(2rem, 4vw, 3.5rem);
}
.plate {
    position: relative;
    overflow: hidden;
    background: var(--parchment-warm);
    border: 1px solid var(--parchment-edge);
    cursor: zoom-in;
    aspect-ratio: 3 / 4;
}
.plate img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.05);
    transition: transform 0.9s ease, filter 0.5s ease;
}
.plate:hover img { transform: scale(1.05); filter: saturate(1.05) contrast(1.05); }
.plate-tag {
    position: absolute;
    bottom: 0.6rem; left: 0.6rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--parchment);
    background: rgba(15,12,8,0.65);
    padding: 0.3rem 0.55rem;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.plate:hover .plate-tag { opacity: 1; transform: translateY(0); }

/* Editorial mosaic — 26 plates over 12 cols */
.plate:nth-child(12n+1) { grid-column: span 5; aspect-ratio: 4/5; }
.plate:nth-child(12n+2) { grid-column: span 4; aspect-ratio: 1/1; }
.plate:nth-child(12n+3) { grid-column: span 3; aspect-ratio: 3/4; }
.plate:nth-child(12n+4) { grid-column: span 4; aspect-ratio: 1/1; }
.plate:nth-child(12n+5) { grid-column: span 5; aspect-ratio: 4/3; }
.plate:nth-child(12n+6) { grid-column: span 3; aspect-ratio: 3/4; }
.plate:nth-child(12n+7) { grid-column: span 6; aspect-ratio: 5/4; }
.plate:nth-child(12n+8) { grid-column: span 3; aspect-ratio: 3/4; }
.plate:nth-child(12n+9) { grid-column: span 3; aspect-ratio: 3/4; }
.plate:nth-child(12n+10){ grid-column: span 4; aspect-ratio: 1/1; }
.plate:nth-child(12n+11){ grid-column: span 5; aspect-ratio: 4/3; }
.plate:nth-child(12n+0) { grid-column: span 4; aspect-ratio: 4/5; }

@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(6, 1fr); }
    .plate { grid-column: span 3 !important; aspect-ratio: 3/4 !important; }
    .plate:nth-child(5n+1) { grid-column: span 6 !important; aspect-ratio: 4/3 !important; }
}

/* ---- Lightbox ---- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15,12,8,0.94);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: fade-up 0.4s ease;
}
.lightbox-meta {
    position: absolute;
    bottom: 1.5rem; left: 0; right: 0;
    text-align: center;
    color: var(--parchment);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.7;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(241,230,203,0.3);
    color: var(--parchment);
    width: 3rem; height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--mono);
    transition: all 0.2s ease;
}
.lightbox-nav:hover { background: rgba(241,230,203,0.1); border-color: var(--parchment); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }
.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: var(--parchment);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }

/* ---- Acquire (Plate V) ---- */

.acquire {
    background: var(--parchment);
    border-top: 1px solid var(--parchment-edge);
}
.acquire-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
}
.tenet { display: grid; gap: 0.6rem; }
.tenet .roman {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sienna);
}
.tenet h3 {
    font-variation-settings: 'opsz' 144, 'wght' 320, 'SOFT' 100;
    font-style: italic;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 0.3rem;
}
.tenet p { color: var(--ink-soft); }

.cta-row {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--parchment-edge);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-row .note {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faded);
}
.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.05rem 1.6rem;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--parchment);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.cta:hover {
    background: var(--cenote-deep);
    border-color: var(--cenote-deep);
    transform: translateY(-2px);
}
.cta::after {
    content: '→';
    transition: transform 0.25s ease;
}
.cta:hover::after { transform: translateX(4px); }

@media (max-width: 760px) {
    .acquire-grid { grid-template-columns: 1fr; }
    .cta-row { justify-content: flex-start; }
}

/* ---- Press (Plate VI) ---- */

.press {
    background: var(--parchment-warm);
    border-top: 1px solid var(--parchment-edge);
    border-bottom: 1px solid var(--parchment-edge);
}
.press-list { display: grid; gap: 1.4rem; }
.press-card {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr auto;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    background: var(--parchment);
    border: 1px solid var(--parchment-edge);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03), 16px 22px 50px -30px rgba(60,40,15,0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}
.press-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink-faded);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 24px 30px 70px -30px rgba(60,40,15,0.4);
}
.press-card .outlet {
    font-variation-settings: 'opsz' 144, 'wght' 320, 'SOFT' 100;
    font-style: italic;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    line-height: 1;
    color: var(--ink);
}
.press-card .headline {
    font-family: var(--serif);
    font-variation-settings: 'opsz' 60, 'wght' 380;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--ink-soft);
    line-height: 1.35;
}
.press-card .date {
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-top: 0.4rem;
}
.press-card .read {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sienna);
    white-space: nowrap;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}
.press-card:hover .read { color: var(--cenote-deep); }

@media (max-width: 760px) {
    .press-card {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .press-card .read { justify-self: start; }
}

/* ---- Contact / Colophon (Plate VII) ---- */

.contact {
    background: var(--parchment);
    text-align: center;
}
.contact-inner {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 2.4rem;
    justify-items: center;
}
.contact h2 {
    font-variation-settings: 'opsz' 144, 'wght' 240, 'SOFT' 100;
    font-style: italic;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}
.contact h2 em {
    color: var(--cenote-deep);
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'wght' 320, 'SOFT' 100;
}
.contact .lede { color: var(--ink-soft); margin: 0 auto; }

.contact-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 520px;
    border-top: 1px solid var(--parchment-edge);
    border-bottom: 1px solid var(--parchment-edge);
    padding: 1.6rem 0;
}
.contact-lines a {
    display: grid;
    gap: 0.3rem;
    transition: color 0.2s ease;
}
.contact-lines a:hover { color: var(--cenote-deep); }
.contact-lines .label {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faded);
}
.contact-lines .value {
    font-variation-settings: 'opsz' 60, 'wght' 380;
    font-size: clamp(0.95rem, 1.3vw, 1.2rem);
    color: var(--ink);
}

.colophon {
    margin-top: 2rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-faded);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.colophon::before, .colophon::after {
    content: '';
    width: 1.5rem;
    height: 1px;
    background: var(--ink-faded);
}

@media (max-width: 540px) {
    .contact-lines { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */

.site-foot {
    background: var(--parchment-warm);
    border-top: 1px solid var(--parchment-edge);
    padding: 4rem var(--gutter) 2.5rem;
    margin-top: 0;
}
.foot-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.foot-inner h4 {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-bottom: 1rem;
    font-weight: 500;
}
.foot-brand {
    font-variation-settings: 'opsz' 144, 'wght' 280, 'SOFT' 100;
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.8rem;
}
.foot-tagline { font-style: italic; color: var(--ink-soft); max-width: 30ch; }
.foot-inner ul { list-style: none; display: grid; gap: 0.6rem; }
.foot-inner ul a {
    font-family: var(--serif);
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.foot-inner ul a:hover { border-bottom-color: var(--ink); }
.foot-bar {
    max-width: var(--max);
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--parchment-edge);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faded);
}

@media (max-width: 760px) {
    .foot-inner { grid-template-columns: 1fr 1fr; }
}

/* ---- Reveal animations ---- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
