/* ==========================================================================
   VARIANTE 3: ATELIER CINEMA
   Centered Quiet Gallery · 21:9 Cinemascope Showreel · Warm Obsidian + Serif Accent
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("./fonts/inter-200.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/inter-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("./fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0C0B0A;
  --bg-alt: #12110F;
  --ivory: #f5f0eb;
  --wood: #a89279;
  --sand: #c9a88c;
  --moss: #5a7a6b;
  --line: rgba(201, 168, 140, 0.22);
  --line-hi: rgba(201, 168, 140, 0.68);
  --line-soft: rgba(201, 168, 140, 0.12);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;
  --t: 700ms ease-in-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ivory); }
body { margin: 0; font-family: var(--font-sans); font-weight: 300; font-size: 15px; line-height: 1.8; background: var(--bg); color: var(--ivory); -webkit-font-smoothing: antialiased; padding-bottom: 64px; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--sand); }
.wrap { width: min(100% - 4rem, 1140px); margin-inline: auto; }
.narrow { width: min(100% - 4rem, 780px); }

/* Variant Switcher */
.variant-switcher {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 600;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(12, 11, 10, 0.94); border: 1px solid var(--line-hi); border-radius: 3px;
  backdrop-filter: blur(12px); font-size: 11px; letter-spacing: 0.08em;
}
.vs-label { padding: 4px 10px; color: var(--wood); border-right: 1px solid var(--line); }
.vs-item { padding: 5px 12px; color: var(--wood); border-radius: 2px; transition: background-color 250ms ease, color 250ms ease; white-space: nowrap; }
.vs-item:hover { color: var(--ivory); }
.vs-item.is-current { background: var(--ivory); color: var(--bg); }

/* Centered Symmetrical Header */
.atelier-header { position: sticky; top: 0; z-index: 100; height: 76px; background: rgba(12, 11, 10, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.header-row { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand-logo { height: 16px; width: auto; fill: var(--ivory); }
.nav-side { display: flex; gap: 28px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wood); }
.nav-right { justify-content: flex-end; align-items: center; }
.nav-side a { transition: color var(--t); }
.nav-side a:hover { color: var(--ivory); }
.nav-anfrage { color: var(--ivory); padding: 7px 16px; border: 1px solid var(--line); border-radius: 2px; transition: background-color var(--t), border-color var(--t); }
.nav-anfrage:hover { background: var(--moss); border-color: var(--moss); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 30px; border-radius: 2px; font-size: 12px; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t), filter var(--t); }
.btn-fill { background: var(--ivory); color: var(--bg); }
.btn-fill:hover { background: var(--moss); color: var(--ivory); filter: brightness(0.95); }
.btn-line { background: transparent; border-color: var(--line); color: var(--ivory); }
.btn-line:hover { border-color: var(--line-hi); }

/* Hero */
.hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line-soft); }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 24px; font-size: 11px; letter-spacing: 0.16em; color: var(--sand); }
.hero h1 { margin: 0 0 24px; font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 200; line-height: 1.15; letter-spacing: 0.01em; max-width: 18ch; }
.hero-sub { margin: 0 0 36px; font-size: 15px; color: var(--wood); max-width: 58ch; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 52px; }

/* 21:9 Cinemascope Showreel Frame */
.scope-frame { position: relative; display: block; width: 100%; aspect-ratio: 21 / 9; padding: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: #000; cursor: pointer; transition: border-color var(--t); }
.scope-frame:hover { border-color: var(--line-hi); }
.scope-frame video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.72) saturate(0.82); transition: filter var(--t); }
.scope-frame:hover video { filter: brightness(0.92) saturate(0.96); }
.scope-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: rgba(12, 11, 10, 0.80); border-top: 1px solid var(--line-soft); font-size: 11px; letter-spacing: 0.14em; color: var(--wood); }
.scope-play { color: var(--ivory); }

.hero-facts { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-size: 11px; letter-spacing: 0.12em; color: var(--wood); }

/* Centered Chapters */
.chapter { padding: 120px 0; border-bottom: 1px solid var(--line-soft); }
.chapter-alt { background: var(--bg-alt); }
.chapter-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 64px; }
.ch-num { font-size: 11px; letter-spacing: 0.16em; color: var(--sand); }
.v-rule { width: 1px; height: 36px; background: var(--line); margin: 18px 0 22px; }
.chapter-head h2 { margin: 0 0 18px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 200; line-height: 1.25; }
.chapter-head p { margin: 0; color: var(--wood); max-width: 58ch; }

/* Trio Columns */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trio article { padding: 40px 32px; border-right: 1px solid var(--line-soft); text-align: center; transition: background-color var(--t); }
.trio article:last-child { border-right: 0; }
.trio article:hover { background: rgba(245, 240, 235, 0.025); }
.trio span { font-size: 10px; letter-spacing: 0.16em; color: var(--sand); }
.trio h3 { margin: 16px 0 12px; font-size: 20px; font-weight: 300; }
.trio p { margin: 0; font-size: 14px; color: var(--wood); }

/* Gallery 2x2 */
.gallery-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
.g-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: #000; cursor: pointer; transition: border-color var(--t); }
.g-frame:hover { border-color: var(--line-hi); }
.g-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.76) saturate(0.84); transition: filter var(--t); }
.g-frame:hover img { filter: brightness(0.95) saturate(0.98); }
.g-play { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; font-size: 11px; letter-spacing: 0.12em; background: rgba(12, 11, 10, 0.80); border: 1px solid var(--line); border-radius: 2px; transition: background-color var(--t), border-color var(--t); }
.g-frame:hover .g-play { background: var(--moss); border-color: var(--moss); }
.g-item h3 { margin: 20px 0 4px; font-size: 20px; font-weight: 300; }
.g-meta { margin: 0 0 8px; font-size: 10px; letter-spacing: 0.14em; color: var(--sand); }
.g-desc { margin: 0; font-size: 14px; color: var(--wood); }

/* Equipment */
.eq-list { margin: 0; border-top: 1px solid var(--line-soft); }
.eq-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.eq-list dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }
.eq-list dd { margin: 0; font-size: 14px; color: var(--wood); }

/* Form */
.atelier-form { display: flex; flex-direction: column; gap: 24px; padding: 40px; border: 1px solid var(--line); border-radius: 2px; background: rgba(245, 240, 235, 0.02); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px; font-size: 12px; color: var(--wood); cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t); }
.chip.is-active { background: var(--moss); border-color: var(--moss); color: var(--ivory); }
.af-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.atelier-form input, .atelier-form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; color: var(--ivory); transition: border-color var(--t); }
.atelier-form input:focus, .atelier-form textarea:focus { outline: none; border-bottom-color: var(--moss); }
.af-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 8px; }
.af-direct { margin: 0; font-size: 12px; color: var(--wood); }
.af-direct a:hover { color: var(--ivory); }
.form-status { padding: 12px 16px; border: 1px solid var(--moss); background: rgba(90, 122, 107, 0.14); font-size: 12px; text-align: center; }

/* Footer & Modal */
.atelier-footer { padding: 36px 0; font-size: 11px; letter-spacing: 0.1em; color: var(--wood); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row div { display: flex; gap: 20px; }
.modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 7, 6, 0.94); }
.modal-dialog { position: relative; width: min(100%, 980px); background: var(--bg); border: 1px solid var(--line); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.modal-header h3 { margin: 0; font-size: 14px; font-weight: 300; }
.modal-meta { margin: 2px 0 0; font-size: 11px; color: var(--wood); }
.modal-close { background: transparent; border: 1px solid var(--line); padding: 6px 12px; font-size: 11px; cursor: pointer; }
.modal-player { background: #000; aspect-ratio: 16 / 9; }
.modal-player video { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .header-row { grid-template-columns: 1fr; justify-items: center; }
  .nav-side { display: none; }
  .trio, .gallery-2, .eq-list > div, .af-2 { grid-template-columns: 1fr; }
  .trio article { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .scope-overlay span:first-child, .scope-overlay span:last-child { display: none; }
  .chapter { padding: 72px 0; }
}
