/* The ordinary pages under the scroll story (film, how it works, FAQ, waitlist), the header, footer,
   cookie banner and film dialog. Shared with privacy.html. The scroll story's own styles stay in index.html. */

:root {
    --bg: #050506;
    --panel: #0d0d10;
    --line: rgba(255, 255, 255, 0.10);
    --cream: #fff6ed;
    --text: #d1d5db;
    --soft: #9ca3af;
    --accent: #10e07a;
    --error: #ff8a8a;
    --gutter: 60px;
}
@media (max-width: 760px) { :root { --gutter: 20px; } }

/* ---------- header (fixed over the story, solid once the pages start) ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 40;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px var(--gutter);
    height: 70px;
    transition: background 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.site-header.solid {
    background: rgba(5, 5, 6, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
}
.site-header .brand { color: #fff; text-decoration: none; }

/* ---------- page layer: covers the story's fixed canvases ---------- */
.page-layer {
    position: relative;
    z-index: 30;
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}
#content { border-top: 1px solid var(--line); }
/* normal pointer, text selection and focus outlines in the pages (the story hides the pointer) */
.page-layer, .page-layer *, dialog, dialog *, .cookie-banner, .cookie-banner * {
    cursor: auto !important;
    user-select: text;
}
.page-layer a, .page-layer button, .page-layer summary, .page-layer label, .page-layer select,
.page-layer input[type="checkbox"], .page-layer input[type="radio"],
dialog button, .cookie-banner button, .cookie-banner a, .site-header a, .slide a, .slide button {
    cursor: pointer !important;
}
.page-layer input[type="email"], .page-layer input[type="text"] { cursor: text !important; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.sec {
    max-width: 1180px;
    margin: 0 auto;
    padding: 120px var(--gutter);
}
.sec + .sec { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .sec { padding: 72px var(--gutter); } }

.eyebrow {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--soft); font-weight: 400; margin-bottom: 18px;
}
.sec-title {
    font-family: 'Italiana', serif;
    font-weight: 400;
    font-size: clamp(42px, 6vw, 80px);
    line-height: 1.02;
    letter-spacing: 1px;
    color: var(--cream);
    margin-bottom: 28px;
}
.lead { font-size: 18px; line-height: 1.7; max-width: 640px; color: var(--text); }
.fine { font-size: 12.5px; line-height: 1.6; color: var(--soft); margin-top: 18px; max-width: 760px; }
.fine a, .lead a, .faq a, .legal a, .field-help a { color: var(--cream); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid var(--cream);
    background: var(--cream); color: #000;
    font: 600 11px 'Outfit', sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.25s, background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(255, 246, 237, 0.55); }
.btn.ghost:hover { background: rgba(255, 246, 237, 0.08); }
.btn[disabled] { opacity: 0.6; transform: none; }
.play-icon {
    width: 0; height: 0;
    border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

/* ---------- film ---------- */
.film-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.film-frame video { display: block; width: 100%; height: 100%; }

/* ---------- how it works ---------- */
.steps {
    list-style: none;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    margin-top: 12px;
}
.steps li { border-top: 1px solid rgba(255, 246, 237, 0.35); padding-top: 22px; }
.step-n { font-size: 11px; letter-spacing: 3px; color: var(--soft); }
.steps h3 {
    font-family: 'Italiana', serif; font-weight: 400; font-size: 40px; color: var(--cream);
    margin: 10px 0 12px;
}
.steps p { font-size: 15.5px; line-height: 1.7; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    margin-top: 48px;
}
.gallery figure { position: relative; overflow: hidden; border-radius: 4px; background: #000; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery .g-range { grid-row: span 2; }
.gallery .g-pair { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery .g-port { aspect-ratio: 4 / 5; }
.gallery figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: space-between; gap: 12px;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    font-size: 12.5px; color: var(--cream);
}
.gallery figcaption .ai { font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
@media (max-width: 760px) {
    .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gallery .g-range { grid-row: auto; grid-column: span 2; aspect-ratio: 1 / 1; }
    .gallery .g-pair { grid-column: span 2; }
    .gallery figcaption { font-size: 11px; padding: 22px 10px 9px; flex-direction: column; gap: 2px; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 16px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 22px 0;
    font-size: 18px; font-weight: 400; color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--soft); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 15.5px; line-height: 1.75; max-width: 720px; }

/* ---------- waitlist ---------- */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; gap: 36px; } }
.join-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 36px;
}
@media (max-width: 760px) { .join-form { padding: 24px 20px; } }
.field { margin-bottom: 22px; border: 0; }
.field > label, .field > legend {
    display: block;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--soft);
    margin-bottom: 9px; font-weight: 400;
}
.field .opt { text-transform: none; letter-spacing: 0; color: #6b7280; }
.join-form input[type="email"], .join-form input[type="text"], .join-form select {
    width: 100%;
    padding: 14px 16px;
    background: #050506;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #fff;
    font: 300 16px 'Outfit', sans-serif;   /* 16px stops iOS zooming in on focus */
}
.join-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.join-form input:focus, .join-form select:focus { border-color: var(--cream); outline: none; }
.join-form input[aria-invalid="true"] { border-color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
    font-size: 14px; color: var(--text);
}
.choices input { accent-color: var(--cream); }
.choices label:has(input:checked) { border-color: var(--cream); color: var(--cream); }
.field-help { font-size: 12.5px; color: var(--soft); margin-top: 8px; line-height: 1.5; }
.field > label.consent {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 14px; line-height: 1.6; color: var(--text);
    text-transform: none; letter-spacing: 0; margin-bottom: 0;
}
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--cream); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin-top: 16px; font-size: 14px; line-height: 1.6; }
.form-status.error { color: var(--error); }
.form-done { text-align: left; }
.form-done h3 { font-family: 'Italiana', serif; font-weight: 400; font-size: 44px; color: var(--cream); margin-bottom: 12px; }
.form-done p { font-size: 15.5px; line-height: 1.7; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner {
    max-width: 1180px; margin: 0 auto;
    padding: 56px var(--gutter) 40px;
    display: grid; grid-template-columns: 1fr auto; gap: 24px 48px;
}
.site-footer .brand { font-size: 13px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: #fff; }
.site-footer p { font-size: 13px; line-height: 1.7; color: var(--soft); max-width: 620px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start; }
.site-footer nav a, .site-footer nav span { color: var(--text); font-size: 13px; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .site-footer .inner { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px;
    z-index: 60;
    max-width: 560px;
    margin-left: auto;
    padding: 20px 22px;
    background: rgba(13, 13, 16, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    font-family: 'Outfit', sans-serif;
    color: var(--text);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.cookie-banner a { color: var(--cream); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; padding: 12px 18px; }

/* ---------- film dialog ---------- */
.film-dialog {
    width: min(1200px, 94vw);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #000;
    color: #fff;
    overflow: visible;
}
.film-dialog::backdrop { background: rgba(0, 0, 0, 0.85); }
.film-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; }
.film-dialog .close {
    position: absolute; top: -44px; right: 0;
    background: none; border: 0; color: #fff;
    font: 400 12px 'Outfit', sans-serif; letter-spacing: 2px; text-transform: uppercase;
    padding: 10px 0;
}
.film-dialog .film-note { position: absolute; left: 0; bottom: -32px; font: 300 11px 'Outfit', sans-serif; color: var(--soft); letter-spacing: 1px; }

/* ---------- privacy page ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 130px var(--gutter) 90px; }
.legal h1 { font-family: 'Italiana', serif; font-weight: 400; font-size: clamp(44px, 7vw, 72px); color: var(--cream); margin-bottom: 12px; }
.legal h2 { font-size: 20px; font-weight: 400; color: var(--cream); margin: 40px 0 12px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal .tbc { color: #ffcf7a; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.legal th { font-weight: 400; color: var(--soft); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
