/* Rafiki cinematic template: shared base for the home page and every inner page.
   Extracted verbatim from index.html (step 3, 2026-10-14). Home-only rules (slides, statue
   framing, story dashes) stay inline in index.html; inner-page rules are at the end. */
/* the two fonts, self-hosted (assets/fonts, SIL Open Font License, see the OFL-*.txt there): Italiana 400 and
   Outfit 300-600 (one variable file per subset), the latin + latin-ext files Google Fonts serves (2026-10-15) */
@font-face {
    font-family: 'Italiana'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/assets/fonts/italiana-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit'; font-style: normal; font-weight: 300 600; font-display: swap;
    src: url('/assets/fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit'; font-style: normal; font-weight: 300 600; font-display: swap;
    src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* the universal reset sits in the base layer: on the home page that changes nothing (it only
   competes with the browser defaults), on the inner pages it lets the Tailwind utilities keep
   their spacing (Tailwind's own layers would otherwise lose to an unlayered reset).
   Engines without @layer (Chrome < 99) drop it: they get the same reset from assets/legacy-base.css,
   which the stage gate loads for them before this file. Old phones read this file too, so: no inset
   (Chrome 87) and no :is() (Chrome 88) in rules they need. */
@layer base {
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
}


html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    min-height: 0;   /* the 900vh story is the footer's margin-top; the footer then follows in normal flow */
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
}

* { cursor: none !important; }

::-webkit-scrollbar { display: none; width: 0; }

#webgl {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    outline: none;
}
.cursor-inner {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}
.cursor-outer {
    position: fixed; top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background 0.3s;
}
.cinematic-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;          /* clicks pass through to canvas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 60px 40px 60px;
    box-sizing: border-box;
}
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; z-index: 20;
    pointer-events: auto;
    padding: 20px 0;
}
.brand { font-size: 14px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
    color: #ffffff; text-decoration: none;
    font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 500; transition: color 0.3s;
}
.nav-link:hover { color: #ffffff; }
.nav-dot { width: 3px; height: 3px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; }
.contact-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    background: #ffffff; color: #000000;
    text-decoration: none;
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}
.btn-circle {
    display: inline-block; width: 6px; height: 6px;
    border: 1px solid #000000; border-radius: 50%; background: transparent;
}
.contact-btn:hover { transform: scale(1.05); background: #f0f0f0; }
.slide-title {
    font-family: 'Italiana', serif;
    font-size: 116px;
    line-height: 1.0;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff6ed;
}
.slide-desc {
    font-size: 16px; line-height: 1.7; font-weight: 300;
    color: #d1d5db; letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.4s;
}
.slide.active .slide-desc { opacity: 1; transform: translateY(0); }

.slide-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    filter: blur(12px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide.active .slide-title .char { opacity: 1; transform: translateY(0); filter: blur(0); }

.grid-horizontal-line {
    position: fixed; top: 70px; left: 0; right: 0;
    width: 100%; height: 1px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 5; pointer-events: none;
}
.grid-lines {
    position: fixed; top: 0; left: 40px; right: 40px;
    width: calc(100% - 80px); height: 100vh;
    display: flex; justify-content: space-between;
    z-index: 5; pointer-events: none;
}
.grid-line {
    position: relative; width: 1px; height: 100%;
    background: rgba(255, 255, 255, 0.12);
}
.grid-line:nth-child(3) { margin-top: 70px; height: calc(100vh - 70px); }
.grid-dot {
    position: absolute; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}

/* ---------- Step 2: Rafiki content ---------- */
.brand { color: #ffffff; text-decoration: none; }
.nav-link:hover { color: #c9a84c; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.contact-btn { background: #c9a84c; color: #000000; }
.contact-btn:hover { background: #d6b862; }

.slide-kicker {
    font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 3px; color: #c9a84c;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 30px; border-radius: 30px;
    font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}
.pill:hover { transform: scale(1.04); }
.pill-gold { background: #c9a84c; color: #000000; }
.pill-gold:hover { background: #d6b862; }
.pill-outline { border: 1px solid rgba(255, 255, 255, 0.5); color: #ffffff; }
.pill-outline:hover { border-color: #c9a84c; color: #c9a84c; }

.slide-links a, .footer-col a {
    color: #c9a84c; text-decoration: none;
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
}
.slide-links a:hover { color: #e3c574; }

.menu-btn, .menu-close {
    display: none; background: none; border: 0; color: #ffffff;
    font-size: 22px; line-height: 1; padding: 6px;
}
.mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60;
    background: #000000;
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.pill) { font-family: 'Italiana', serif; font-size: 34px; color: #fff6ed; text-decoration: none; }
.mobile-menu .pill { margin-top: 14px; }
.mobile-menu .menu-close { display: block; position: absolute; top: 18px; right: 24px; }

/* ---------- Footer (in normal flow, after the 900vh story) ---------- */
.site-footer {
    /* in normal flow at the end of the page (the home page adds its 900vh story above it) */
    position: relative; z-index: 30;
    background: linear-gradient(180deg, #0a0a0e 0%, #040405 100%);
    border-top: 1px solid rgba(201, 168, 76, 0.35);
    padding: 56px 60px 28px;
    font-family: 'Outfit', sans-serif; color: #d1d5db;
    user-select: text;
}
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
.footer-logo { width: 84px; height: auto; filter: invert(1); margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 1.65; font-weight: 300; max-width: 340px; }
.footer-col .footer-label {
    margin-top: 14px; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 3px; color: #c9a84c;
}
.footer-col h3 {
    font-family: 'Italiana', serif; font-weight: 400; font-size: 26px;
    color: #fff6ed; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 300; }
.footer-col a { font-size: 11px; }
.footer-col a:hover, .footer-bottom a:hover { color: #e3c574; }
.footer-icons { display: flex; align-items: flex-start; gap: 14px; }
.footer-icons img { width: 32px; height: 32px; object-fit: contain; transition: transform 0.3s; }
.footer-icons a:hover img { transform: scale(1.1); }
.footer-bottom {
    margin-top: 60px; padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex; justify-content: space-between; gap: 20px;
    font-size: 12px; letter-spacing: 0.5px; color: #9ca3af;
}
.footer-bottom a { color: #9ca3af; text-decoration: none; margin-left: 24px; }

/* ---------- Narrow desktop: keep the header on one line ---------- */
.brand, .contact-btn, .nav-link { white-space: nowrap; }
@media (max-width: 1279.98px) { .header-nav { gap: 12px; } }
@media (max-width: 1099.98px) {
    .header-nav { display: none; }
    .menu-btn { display: block; }
}

/* ---------- Mobile ---------- */
@media (max-width: 899.98px) {
    * { cursor: auto !important; }
    a, button { cursor: pointer !important; }
    .cursor-inner, .cursor-outer { display: none; }
    .cinematic-container { padding: 0 24px 24px 24px; }
    .header-nav, .header-actions .contact-btn { display: none; }
    .menu-btn { display: block; }

    .slide-title { font-size: 56px; }
    .slide-desc { font-size: 14px; }

    .site-footer { padding: 40px 24px 24px; }
    .footer-cols { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; }
    .footer-bottom a { margin: 0 24px 0 0; }
}

/* first load: titles stay hidden until the script has split them into letters (html.stage-ready; on the
   home page html.titles-split, which comes before the 3D stage is ready), so the raw text never flashes
   on screen (on the home page all four titles would show at once) */
html:not(.stage-ready):not(.titles-split) .slide-title { opacity: 0; }

/* =====================================================================
   Inner pages (body.inner-page): built by build-pages.mjs from templates/page.html.
   The original Tailwind stylesheet still loads before this file for the content layout.
   ===================================================================== */

/* Tailwind's preflight would restyle the shared header, menu and footer; put back the home page's values */
.inner-page .cinematic-container, .inner-page .mobile-menu, .inner-page .site-footer { line-height: normal; }
/* while the WebGL stage loads, a bronze glow instead of a black page (the canvas covers it once drawn) */
html:has(.inner-page), .inner-page { background: radial-gradient(120% 90% at 30% 35%, #3b200f 0%, #160b05 45%, #000000 80%) fixed #000000; }
.inner-page .site-footer img { display: inline; vertical-align: baseline; max-width: none; }
.inner-page .site-footer h3 { letter-spacing: normal; }
.inner-page .menu-btn, .inner-page .menu-close { font-family: Arial; appearance: auto; }

/* inner pages use the normal mouse pointer everywhere (the custom rings stay on the home page only) */
.inner-page, .inner-page * { cursor: auto !important; }
.inner-page :is(a, button, summary, label, select, [role="button"]),
.inner-page :is(a, button, summary) * { cursor: pointer !important; }
.inner-page :is(input, textarea) { cursor: text !important; }
.inner-page :is(input[type="date"], input[type="checkbox"], input[type="radio"]) { cursor: pointer !important; }

/* header: a dark band fades in once the page has scrolled, so the content never runs under bare links */
.inner-page .main-header { position: relative; }
.inner-page .cinematic-container::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 70px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62));
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.inner-page.scrolled .cinematic-container::before { opacity: 1; }

/* the current page in the nav: gold, with a gold dot under it */
.nav-link[aria-current="page"] { color: #c9a84c; position: relative; }
.nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: -9px;
    width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #c9a84c;
}
.mobile-menu a[aria-current="page"] { color: #c9a84c; }

/* ---------- Hero: full viewport, stage behind it, grid lines over it ---------- */
.hero {
    position: relative; z-index: 4;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 120px 60px 15vh;
    overflow: hidden;
}
.hero-inner { max-width: 1120px; }
.hero .slide-title { margin-bottom: 26px; }
.hero .slide-title--long { font-size: 80px; line-height: 1.05; }
.hero .slide-desc { max-width: 640px; }
.hero .slide-kicker, .hero .slide-desc {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero .slide-kicker { transition-delay: 0.1s; }
.hero .slide-desc { transition-delay: 0.4s; }
.hero.active .slide-kicker, .hero.active .slide-desc { opacity: 1; transform: translateY(0); }
.hero.active .slide-title .char { opacity: 1; transform: translateY(0); filter: blur(0); }
.hero .slide-title, .hero .slide-desc, .hero .slide-kicker {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 0, 0, 0.75);
}
.hero .slide-kicker svg { display: inline; width: 12px; height: 12px; vertical-align: -1px; }
.title-word { display: inline-block; white-space: nowrap; }   /* the per-letter spans may only wrap between words */

/* the original hero image (or the tours video, or a blog article's cover) as a dim full-bleed backdrop */
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
/* the tours clip has black bars baked into the file, about 100 px on each side of its 1280 px width
   (measured as the column average over six frames): scale it 1.22 about the centre so the picture
   reaches both edges (needs >= 1.185; holds at every aspect ratio, a narrower screen only crops more) */
.hero-media video.pillarboxed { transform: scale(1.22); }
.hero-media::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.75) 80%, #000000 100%);
}
.scroll-hint {
    position: absolute; left: 50%; bottom: 26px;
    font-size: 18px; color: rgba(255, 255, 255, 0.65);
    animation: scroll-hint 2.4s ease-in-out infinite;
}
@keyframes scroll-hint {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* past the hero a veil calms the stage under the long text (above the canvas, below grid lines and content) */
.inner-page::before {
    content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.inner-page.past-hero::before { opacity: 1; }

/* ---------- Content on the stage ---------- */
.page-content {
    /* re-theme the original Tailwind tokens for the dark stage, gold as the only accent */
    --background: transparent;
    --card: rgba(8, 8, 10, 0.66);   /* text boxes: dark enough to read over the shader */
    --border: rgba(255, 255, 255, 0.12);
    --input: rgba(255, 255, 255, 0.18);
    --primary: #c9a84c; --primary-foreground: #000000; --ring: #c9a84c;
    --foreground: #ffffff; --muted-foreground: #d1d5db;
    --secondary: rgba(255, 255, 255, 0.06); --secondary-foreground: #ffffff;
    --accent: rgba(255, 255, 255, 0.06); --accent-foreground: #ffffff;
    --sage: #c9a84c;
    --shadow-soft: none;
    --gradient-sand: transparent;
    position: relative; z-index: 6;
    box-sizing: content-box;
    max-width: 1120px; margin: 0 auto; padding: 24px 60px 120px;
    font-family: 'Outfit', sans-serif; font-weight: 300; color: #d1d5db;
}
.page-content, .page-content * { user-select: text; }
.page-content strong, .page-content b, .page-content .font-semibold { font-weight: 600; }

/* the original section wrappers carry their own max-width and gutters: the content column sets them now */
.page-content section[class*="mx-auto"], .page-content > div[class*="mx-auto"] {
    max-width: none; padding-left: 0; padding-right: 0;
}
.page-content .article-body { padding-left: 0; padding-right: 0; }   /* articles keep their reading width (max-w-3xl) */
.page-content > * + * { margin-top: 24px; }
/* full-width bands of the original (bg-secondary, bg-card sections) become hairline panels */
.page-content > section[class*="bg-"] {
    background: rgba(8, 8, 10, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px;
    padding: 56px 48px;
}
.page-content > section[class*="bg-"] > [class*="mx-auto"] { padding-left: 0; padding-right: 0; }
.page-content .rounded-2xl, .page-content .rounded-xl { border-radius: 16px; }
.page-content .bg-card { background-color: rgba(8, 8, 10, 0.66); border-color: rgba(255, 255, 255, 0.12); }

/* headings: Italiana everywhere; section titles 48px, card and sub titles 28px */
.page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content .font-display {
    font-family: 'Italiana', serif; font-weight: 400; letter-spacing: 1px; color: #fff6ed;
}
.page-content h2 { font-size: 48px; line-height: 1.1; }
.page-content h3,
.page-content article h2, .page-content .bg-card h2, .page-content a h2, .page-content li h2 { font-size: 28px; line-height: 1.2; }
.page-content .article-body h2 { font-size: 36px; }
.page-content summary.font-display { font-size: 22px; line-height: 1.3; }

/* small uppercase labels gold */
.page-content .uppercase { color: #c9a84c; letter-spacing: 3px; font-weight: 600; }
.page-content .uppercase.text-primary-foreground { color: #000000; }

/* links: gold; standalone text links get the arrow */
.page-content a { transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s; }
.page-content a.text-primary, .page-content a.underline, .page-content a[class*="hover:text-primary"] { color: #c9a84c; }
.page-content a.text-primary:hover { color: #e3c574; }
.page-content a.link-arrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; text-decoration: none; }
.page-content a.link-arrow::after { content: " →"; }
.page-content a.link-arrow svg { display: none; }
/* small standalone links get a taller tap area */
.page-content a.link-arrow, .page-content .article-body > a:first-child { padding-top: 8px; padding-bottom: 8px; }
.page-content a.bg-card:hover, .page-content a.rounded-2xl:hover { border-color: rgba(201, 168, 76, 0.6); }

/* buttons: primary = gold pill, secondary = outlined pill, like the home page's slide-1 buttons */
.page-content a.btn-gold, .page-content button.btn-gold,
.page-content a.btn-outline, .page-content button.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 30px; border-radius: 30px; box-shadow: none;
    font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; line-height: 1.2;
    transition: transform 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.page-content a.btn-gold, .page-content button.btn-gold { background: #c9a84c; color: #000000; border: 0; }
.page-content a.btn-gold:hover, .page-content button.btn-gold:hover { background: #d6b862; transform: scale(1.04); }
.page-content a.btn-outline, .page-content button.btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); color: #ffffff; }
.page-content a.btn-outline:hover, .page-content button.btn-outline:hover { border-color: #c9a84c; color: #c9a84c; transform: scale(1.04); }

/* images */
.page-content img { border-radius: 12px; }
.page-content .overflow-hidden > img, .page-content .overflow-hidden > picture > img, .page-content .rounded-full img { border-radius: 0; }
.page-content iframe { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; filter: grayscale(0.4) invert(0.9) hue-rotate(180deg); }

/* tables: hairline borders */
.page-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page-content th, .page-content td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); text-align: left; }
.page-content th { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: #c9a84c; }

/* FAQ: details panels with the gold + */
.page-content details { border-color: rgba(255, 255, 255, 0.12); }
.page-content details summary { list-style: none; cursor: pointer; }
.page-content details summary::-webkit-details-marker { display: none; }
.page-content details summary [aria-hidden="true"] { color: #c9a84c; font-family: 'Outfit', sans-serif; font-size: 22px; line-height: 1; }
.page-content details[open] { background: rgba(255, 255, 255, 0.035); }

/* forms: dark fields, hairline borders, gold focus ring (no backend: they do not submit) */
.page-content input, .page-content textarea, .page-content select {
    background: rgba(255, 255, 255, 0.04); color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; padding: 12px 14px;
    font-family: 'Outfit', sans-serif; font-size: 14px;
}
.page-content input:focus, .page-content textarea:focus, .page-content select:focus {
    outline: none; border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.35);
}

/* shared-ride booking dialog (ride-booking.js); appended to <body>, so outside .page-content */
.ride-dialog {
    width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
    margin: auto; padding: 0; overflow: auto;
    background: #0b0b0d; color: #d1d5db; color-scheme: dark;
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
    font-family: 'Outfit', sans-serif; font-weight: 300; line-height: 1.5;
}
.ride-dialog, .ride-dialog * { user-select: text; }
.ride-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.ride-form, .ride-done { position: relative; padding: 40px 40px 32px; }
.ride-close { position: absolute; top: 14px; right: 16px; padding: 8px; background: none; border: 0; color: #ffffff; font-size: 18px; line-height: 1; }
.ride-dialog .slide-kicker { margin-bottom: 12px; }
.ride-route, .ride-ref { font-family: 'Italiana', serif; font-weight: 400; font-size: 34px; line-height: 1.15; color: #fff6ed; margin-bottom: 6px; }
.ride-price { font-size: 13px; color: #c9a84c; margin-bottom: 24px; }
.ride-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ride-grid > label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: #c9a84c;
}
.ride-optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: #9ca3af; }
.ride-wide { grid-column: 1 / -1; }
.ride-grid .ride-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ride-dialog input, .ride-dialog select, .ride-dialog textarea {
    width: 100%; background: rgba(255, 255, 255, 0.05); color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; padding: 12px 14px;
    font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: normal; text-transform: none;
}
.ride-dialog option { background: #0b0b0d; color: #ffffff; }
.ride-dialog textarea { resize: vertical; }
.ride-dialog input:focus, .ride-dialog select:focus, .ride-dialog textarea:focus { outline: none; border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.35); }
.ride-total { margin-top: 18px; font-size: 15px; color: #ffffff; }
/* departure time: five pills with their hours; a gold count shows when others already go at that time */
.ride-slots-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.ride-slots-field legend {
    margin-bottom: 6px; padding: 0;
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: #c9a84c;
}
.ride-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ride-slot {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 66px; padding: 8px 4px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); text-align: center; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.ride-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ride-slot-name { font-size: 13px; font-weight: 500; color: #ffffff; text-transform: none; letter-spacing: 0; }
.ride-slot-hours { font-size: 11px; font-weight: 400; color: #d1d5db; letter-spacing: 0.3px; text-transform: none; white-space: nowrap; }
.ride-slot-going { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; color: #c9a84c; text-transform: none; min-height: 13px; }
.ride-slot:hover { border-color: rgba(201, 168, 76, 0.6); }
.ride-slot.has-riders { border-color: rgba(201, 168, 76, 0.45); }
.ride-slot:has(input:checked) { border-color: #c9a84c; background: rgba(201, 168, 76, 0.16); }
.ride-slot:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.35); }
.ride-slot-note { margin-top: 8px; font-size: 13px; color: #e3c574; min-height: 0; }
.ride-slot-note:empty { display: none; }
.ride-departure-fill { color: #e3c574; }
.ride-error { margin-top: 12px; font-size: 13px; color: #fca5a5; }
.ride-error a, .ride-done a { color: #c9a84c; text-decoration: underline; }
.ride-done a.ride-whatsapp { margin: 8px 0 6px; color: #000000; text-decoration: none; }   /* under the reference: the request, prefilled for WhatsApp */
.ride-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ride-actions .pill { border: 0; font-family: 'Outfit', sans-serif; }
.ride-actions .pill-outline { border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; }
.ride-actions .pill:disabled { opacity: 0.6; transform: none; }
.ride-done p { margin-top: 10px; font-size: 15px; }
.ride-summary { color: #ffffff; }
/* /rides/pool: the same time slots, hidden field, error line and "Request sent" panel inside the page's own form */
.pool-form .ride-slots-field legend { margin-bottom: 4px; font-size: inherit; font-weight: 500; text-transform: none; letter-spacing: normal; color: inherit; }
.pool-form .ride-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pool-form .ride-error { margin-top: 0; }
.page-content .pool-done { padding: 32px; }
.pool-done-kicker { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: #c9a84c; margin-bottom: 12px; }
.page-content .pool-done .ride-ref { font-size: 34px; }
.pool-done .ride-actions .pill { cursor: pointer; }
.pool-open.has-pools { border-style: solid; color: inherit; }
.pool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pool-list li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid rgba(201, 168, 76, .2); }
.pool-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.pool-when { font-weight: 600; }
.pool-seats { font-size: 12px; opacity: .75; }

/* scroll reveal (cinematic-shell.js adds .in) */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.inner-page .site-footer { margin-top: 0; }

@media (max-width: 899.98px) {
    .hero { padding: 110px 24px 14vh; }
    .hero .slide-title--long { font-size: 40px; }
    .page-content { padding: 16px 24px 80px; }
    .page-content h2 { font-size: 34px; }
    .page-content h3,
    .page-content article h2, .page-content .bg-card h2, .page-content a h2, .page-content li h2 { font-size: 24px; }
    .page-content .article-body h2 { font-size: 28px; }
    .page-content > section[class*="bg-"] { padding: 36px 20px; }
    .page-content section.py-16 { padding-top: 40px; padding-bottom: 40px; }
    .ride-form, .ride-done { padding: 32px 20px 24px; }
    .ride-grid > label:not(.ride-short) { grid-column: 1 / -1; }   /* date and seats share a row, the rest full width */
    .ride-slots { grid-template-columns: repeat(3, 1fr); }   /* 3 + 2 on a phone */
    .ride-slot-name { font-size: 12px; }
    .ride-route, .ride-ref { font-size: 26px; padding-right: 28px; }
}
.page-content .not-found { display: flex; justify-content: center; padding: 8px 0 64px; }   /* 404.html: the "Go home" button */
/* the deploy build (build-dist.mjs) wraps each photo in <picture> for its WebP: the wrapper takes no box of its own,
   so the <img> lays out exactly as without it */
picture { display: contents; }
picture > source { display: none; }   /* else the empty <source> becomes a grid or flex item of its own */
