/* Tarven — public site. Dark iron & ember with gold. */
:root {
  --bg: #0c0b0a;
  --bg-2: #12100e;
  --surface: #17140f;
  --surface-2: #1f1a14;
  --border: #33291f;
  --border-2: #4a3b2b;
  --text: #ece4d6;
  --muted: #a3968a;
  --gold: #d9a441;
  --gold-2: #f2cf7c;
  --ember: #c65a2e;
  --ok: #79b26f;
  --warn: #d9a441;
  --bad: #d65c4c;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:root { color-scheme: dark; } /* native form controls, pickers and scrollbars match the dark page */ /* the rule above would otherwise override the hidden attribute */
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .92em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow, .narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.break { word-break: break-all; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 6px; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 20px; align-content: start; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .7em 1.35em; border-radius: 6px; border: 1px solid #e0b152;
  background: linear-gradient(180deg, #e6b556, #b8812a); color: #1a1208;
  font: 600 .95rem/1.1 var(--sans); letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 164, 65, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { color: #1a1208; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(217, 164, 65, .28), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: rgba(12, 11, 10, .35); color: var(--text); border-color: rgba(236, 228, 214, .35); box-shadow: none; backdrop-filter: blur(4px); }
.btn-ghost:hover { color: #fff; border-color: var(--gold-2); background: rgba(217, 164, 65, .1); box-shadow: none; }
.btn-danger { background: #8e2f24; border-color: #b8453a; color: #fff; box-shadow: none; }
.btn-danger:hover { color: #fff; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-lg { padding: .9em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; font-size: .92rem; letter-spacing: .03em; }
.link-arrow::after { content: ' →'; transition: margin .15s; }
.link-arrow.back::after { content: ''; }
.link-arrow.back::before { content: '← '; }

/* ---------- header ---------- */
.announce { background: linear-gradient(90deg, #5b2513, #8a3a1c, #5b2513); color: #fbe7cf; text-align: center; font-size: .9rem; padding: 7px 16px; position: relative; z-index: 31; }
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: rgba(12, 11, 10, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(74, 59, 43, .5); transition: background .3s, border-color .3s; }
.page-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.page-home .site-header.is-solid { background: rgba(12, 11, 10, .92); border-color: rgba(74, 59, 43, .5); }
.page-home .announce + .site-header { top: 34px; }
.page-home .announce + .site-header.is-solid { top: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.3rem/1 var(--display); letter-spacing: .18em; color: var(--text); text-transform: uppercase; }
.brand:hover { color: var(--gold-2); }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 500; }
.site-nav a:not(.btn) { color: #d8cdbd; position: relative; padding: 6px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: #fff; }
.site-nav a[aria-current]:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-sep { width: 1px; height: 22px; background: var(--border-2); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: rgba(12, 11, 10, .98); border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 12px; }
  .nav-sep { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- flashes ---------- */
.flashes { padding-top: 18px; }
.page-home .flashes { position: absolute; top: calc(var(--header-h) + 12px); left: 0; right: 0; z-index: 20; }
.flash { padding: 12px 16px; border-radius: 8px; margin: 0 0 12px; border: 1px solid; font-size: .95rem; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-success { background: rgba(121, 178, 111, .12); border-color: rgba(121, 178, 111, .45); color: #cfe8c9; }
.flash-error { background: rgba(214, 92, 76, .12); border-color: rgba(214, 92, 76, .5); color: #f3c7c0; }
.flash-warn { background: rgba(217, 164, 65, .12); border-color: rgba(217, 164, 65, .45); color: #f3dfb2; }
.flash-info { background: rgba(120, 150, 200, .12); border-color: rgba(120, 150, 200, .4); color: #d2dcf0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media, .hero-media > * { position: absolute; inset: 0; }
.hero-media { z-index: -1; background: #07090c; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-slides .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 2.2s ease; }
.hero-slides .hero-slide.is-active { opacity: 1; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-shade { background:
  linear-gradient(180deg, rgba(8,7,6,.55) 0%, rgba(8,7,6,.05) 30%, rgba(8,7,6,.15) 60%, var(--bg) 100%),
  radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(0,0,0,.55) 100%); }
.hero-content { position: relative; text-align: center; padding: calc(var(--header-h) + 40px) 0 110px; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.hero-title {
  font: 900 clamp(3.6rem, 13vw, 9.5rem)/0.9 var(--display); letter-spacing: .12em; margin: 0 0 18px;
  background: linear-gradient(180deg, #fff3d6 0%, #f0c46a 45%, #a86b1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(217, 164, 65, .18));
  padding-left: .12em; /* balance letter-spacing */
}
.hero-tagline { font: 400 clamp(1.15rem, 2.3vw, 1.55rem)/1.45 var(--serif); max-width: 640px; margin: 0 auto 32px; color: #f1e8da; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(12, 11, 10, .6); border: 1px solid rgba(217, 164, 65, .35); color: var(--text); font-size: .92rem; backdrop-filter: blur(6px); }
.hero-badge:hover { border-color: var(--gold-2); color: #fff; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(236, 228, 214, .5); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Placeholder "flyover" scene used until a real video or screenshots are assigned */
.hero-scene { overflow: hidden; }
.hero-scene > * { position: absolute; inset: 0; }
.scene-sky { background: radial-gradient(ellipse at 70% 30%, #3b2a40 0%, #1d1a2c 35%, #0b0d17 75%), #0b0d17; }
.scene-sky::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 88%, rgba(198, 90, 46, .45), transparent 55%); }
.hero-scene > .scene-moon { width: 120px; height: 120px; inset: 16% 16% auto auto; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff6e0, #e9d3a4 55%, #b99a63); box-shadow: 0 0 80px 20px rgba(242, 207, 124, .25); opacity: .9; animation: moondrift 60s ease-in-out infinite alternate; }
@keyframes moondrift { to { transform: translate(-30px, 18px); } }
.hero-scene > .scene-layer { width: max(112%, 1500px); max-width: none; height: auto; inset: auto auto 0 50%; translate: -50% 0; }
.hero-scene > .scene-far { bottom: 22%; animation: pan 70s ease-in-out infinite alternate; opacity: .9; }
.hero-scene > .scene-mid { bottom: 8%; animation: pan 45s ease-in-out infinite alternate-reverse; }
.hero-scene > .scene-near { bottom: -2%; animation: pan 30s ease-in-out infinite alternate; }
@keyframes pan { from { transform: translateX(-2.5%) scale(1.02); } to { transform: translateX(2.5%) scale(1.06); } }
.scene-fog { background: url('../img/placeholders/fog.svg') repeat-x; background-size: 1600px 100%; opacity: .35; mix-blend-mode: screen; }
.hero-scene > .scene-fog { inset: auto 0; height: 30%; -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }
.hero-scene > .scene-fog-1 { top: 45%; animation: fog 90s linear infinite; }
.hero-scene > .scene-fog-2 { top: 62%; opacity: .45; animation: fog 60s linear infinite reverse; }
@keyframes fog { to { background-position: 1600px 0; } }
.scene-embers { width: 100%; height: 100%; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2, .section-title { position: relative; padding-left: 18px; }
.section-head h2::before, .section-title::before { content: ''; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 2px; background: linear-gradient(var(--gold-2), var(--ember)); }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--border-2); border-radius: var(--radius); text-align: center; }

.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); color: var(--text); }
.news-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 16px 18px 20px; }
.news-card h3 { font-size: 1.05rem; margin: 8px 0 0; }
.news-card-lead { grid-row: span 2; }
.news-card-lead .news-card-img { aspect-ratio: auto; flex: 1; min-height: 240px; }
.news-card-lead h3 { font-size: 1.5rem; }
.news-card-lead p { color: var(--muted); margin: 10px 0 0; }
.news-grid > .news-card:nth-child(4) { grid-column: 2 / span 2; flex-direction: row; }
.news-grid > .news-card:nth-child(4) .news-card-img { width: 40%; aspect-ratio: auto; }
.meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); letter-spacing: .03em; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(217, 164, 65, .14); color: var(--gold-2); font: 600 .7rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-lead { grid-column: 1 / -1; grid-row: auto; }
  .news-grid > .news-card:nth-child(4) { grid-column: auto; flex-direction: column; }
  .news-grid > .news-card:nth-child(4) .news-card-img { width: auto; aspect-ratio: 16/9; }
}
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-2); }
.intro-frame::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0,0,0,.6); pointer-events: none; }
.intro-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; gap: 32px; } }

.section-features { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature-img { aspect-ratio: 16 / 10; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { padding: 20px 22px 0; color: var(--gold-2); }
.feature .prose-sm { padding: 0 22px 20px; color: #cfc4b4; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.section-showcase { padding-bottom: 60px; overflow: hidden; }
.showcase { display: flex; gap: 14px; overflow-x: auto; padding: 4px max(16px, (100vw - var(--wrap)) / 2) 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.showcase-item { position: relative; flex: 0 0 auto; width: min(460px, 78vw); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; border: 1px solid var(--border); }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.showcase-item:hover img { transform: scale(1.05); }
.ph-label { position: absolute; top: 10px; left: 10px; font: 600 .65rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,.6); color: var(--muted); padding: 5px 8px; border-radius: 4px; }

.section-cta { text-align: center; background:
  radial-gradient(ellipse at 50% 0%, rgba(198, 90, 46, .18), transparent 60%), var(--bg-2); border-top: 1px solid var(--border); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 28px 0 34px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px 22px; display: grid; gap: 6px; justify-items: center; }
.steps span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--display); color: #1a1208; background: linear-gradient(180deg, #e6b556, #b8812a); margin-bottom: 6px; }
.steps em { color: var(--muted); font-style: normal; font-size: .92rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- page head ---------- */
.page-head { position: relative; padding: 70px 0 44px; border-bottom: 1px solid var(--border); overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 20% 0%, rgba(198, 90, 46, .12), transparent 55%), var(--bg-2); }
.page-head.has-banner { padding: 140px 0 50px; }
.page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.page-head.has-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,11,10,.3), var(--bg) 96%); }
.page-head h1 { margin: 0; }
.lead { font: 400 1.25rem/1.5 var(--serif); color: #d9cfbf; margin: 10px 0 0; max-width: 720px; }

/* ---------- prose ---------- */
.prose { font: 400 1.14rem/1.72 var(--serif); color: #e5dccd; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--gold); color: #cfc4b4; font-style: italic; }
.prose img { border-radius: 8px; margin: 1.4em 0; }
.prose pre { background: var(--surface); padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .85rem; }
.prose a { text-decoration: underline; text-decoration-color: rgba(242, 207, 124, .4); text-underline-offset: 3px; }
.prose > :first-child { margin-top: 0; }
.prose-sm { font-size: .98rem; }
.prose-sm ul, .prose-sm ol { padding-left: 1.2em; }
figure.embed { margin: 1.6em 0; }
figure.embed img, figure.embed video { width: 100%; border-radius: 8px; margin: 0; }
figure.embed figcaption { font: .88rem var(--sans); color: var(--muted); margin-top: 8px; text-align: center; }
.article-foot { margin-top: 40px; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.with-aside.aside-left > aside { order: 0; }
.aside-gallery { display: grid; gap: 12px; }
.aside-gallery img { border-radius: 8px; border: 1px solid var(--border); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
@media (max-width: 920px) { .with-aside { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-2); color: #d8cdbd; font-size: .88rem; }
.chips a span { color: var(--muted); margin-left: 4px; }
.chips a:hover { border-color: var(--gold); color: #fff; }
.chips a[aria-current] { background: var(--gold); border-color: var(--gold); color: #1a1208; font-weight: 600; }
.chips a[aria-current] span { color: #4a3510; }

.post-list { display: grid; gap: 18px; }
.post-row { display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: border-color .2s, transform .2s; }
.post-row:hover { border-color: var(--border-2); color: var(--text); transform: translateY(-2px); }
.post-row-img { border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; }
.post-row-img img { width: 100%; height: 100%; object-fit: cover; }
.post-row h2 { font-size: 1.35rem; margin: 10px 0 8px; }
.post-row p { color: var(--muted); }
@media (max-width: 700px) { .post-row { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-card { display: grid; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
@media (max-width: 760px) { .more-grid { grid-template-columns: 1fr; } }

/* ---------- media gallery ---------- */
.featured-video { margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow); background: #000; }
.featured-video video { width: 100%; }
.featured-video .caption { padding: 10px 16px; margin: 0; background: var(--surface); color: var(--muted); }
.featured-video.yt { aspect-ratio: 16 / 9; }
.featured-video iframe { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery-item { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.08); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: .85rem; opacity: 0; transition: opacity .25s; }
.gallery-item:hover .gallery-caption, .gallery-item:focus .gallery-caption { opacity: 1; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.8); }
.play::after { content: ''; position: absolute; left: 25px; top: 19px; border: 13px solid transparent; border-left: 20px solid #fff; border-right: 0; }

/* ---------- cards, facts, pills ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h2 { font-size: 1.3rem; }
.card-warn { border-color: rgba(217, 164, 65, .5); background: linear-gradient(180deg, rgba(217,164,65,.08), var(--surface)); }
.card-danger { border-color: rgba(214, 92, 76, .35); }
.empty-card { text-align: center; padding: 40px 24px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 .72rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-2); }
.pill-signups_open { background: rgba(121, 178, 111, .16); color: #b9e0b1; border-color: rgba(121, 178, 111, .4); }
.pill-live, .pill-live_signups { background: rgba(198, 90, 46, .2); color: #ffc1a3; border-color: rgba(198, 90, 46, .55); }
.pill-announced { background: rgba(217, 164, 65, .14); color: var(--gold-2); border-color: rgba(217, 164, 65, .4); }
.pill-mine { background: rgba(120, 150, 200, .14); color: #c9d6f0; border-color: rgba(120, 150, 200, .35); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0 0; }
.facts div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.facts dt { font: 600 .7rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: .92rem; }
.facts-lg { margin-bottom: 30px; }
.playtest-list { display: grid; gap: 18px; margin-bottom: 40px; }
.playtest-card { display: grid; grid-template-columns: 260px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .2s, transform .2s; }
.playtest-card:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.playtest-card-img img { width: 100%; height: 100%; object-fit: cover; }
.playtest-card-body { padding: 20px; }
.playtest-card h3 { font-size: 1.35rem; margin: 12px 0 6px; }
.playtest-card p { color: var(--muted); }
@media (max-width: 700px) { .playtest-card { grid-template-columns: 1fr; } .playtest-card-img { aspect-ratio: 16/8; } }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.signup-card { position: sticky; top: calc(var(--header-h) + 20px); }
.status { display: inline-block; font-weight: 600; text-transform: capitalize; }
.status-accepted { color: var(--ok); }
.status-pending { color: var(--gold-2); }
.status-waitlisted { color: #c9b5f0; }
.status-declined, .status-withdrawn { color: var(--muted); }
p.status { font: 700 1.5rem var(--display); margin: 0 0 6px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: #d8cdbd; }
.form label small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { margin-top: 4px; accent-color: var(--gold); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: 7px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
input[type="checkbox"], input[type="radio"] { width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .18); }
input:user-invalid { border-color: var(--bad); }
.strength { height: 4px; border-radius: 2px; background: var(--border); position: relative; overflow: hidden; }
.strength::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--c, var(--bad)); transition: width .2s, background .2s; }
.cf-turnstile { min-height: 65px; }

.auth { display: grid; place-items: center; padding: 60px 16px 80px; min-height: calc(100vh - 280px); background: radial-gradient(ellipse at 50% 0%, rgba(198, 90, 46, .14), transparent 55%); }
.auth-card { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 36px 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; }
.auth-card details { margin-top: 20px; }
.user-code { font: 700 2rem/1.2 ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: .18em; color: var(--gold-2); text-align: center; margin: 18px 0; }
.user-code-input { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.device-list .actions-cell { text-align: right; }
.icon-mail { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(217,164,65,.14); position: relative; }
.icon-mail::before { content: ''; position: absolute; inset: 20px 16px; border: 2px solid var(--gold-2); border-radius: 3px; }
.icon-mail::after { content: ''; position: absolute; left: 22px; top: 18px; width: 17px; height: 17px; border: 2px solid var(--gold-2); border-top: 0; border-left: 0; transform: rotate(45deg); }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }
.card { overflow-x: auto; }
.status-list { list-style: none; padding: 0; margin: 0 0 16px; }
.status-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.status-list li.ok strong { color: var(--ok); }
.status-list li.no strong { color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 600 .72rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--border-2); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--border); }

.download-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 18px; }
.download-form { display: grid; gap: 10px; justify-items: end; max-width: 320px; }
@media (max-width: 700px) { .download-card { grid-template-columns: 1fr; } .download-form { justify-items: stretch; } }

/* ---------- polls ---------- */
.poll-list { display: grid; gap: 20px; }
.poll-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.poll-card h3 { font-size: 1.3rem; margin: 10px 0 6px; }
.poll-card h3 a { color: var(--text); }
.poll-option { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.poll-option:hover { border-color: var(--gold); }
.poll-option:has(input:checked) { border-color: var(--gold); background: rgba(217, 164, 65, .08); }
.poll-option input { accent-color: var(--gold); width: 18px; height: 18px; }
.poll-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.poll-results { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.poll-results li { position: relative; display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; isolation: isolate; }
.poll-results .bar { position: absolute; inset: 0; z-index: -1; }
.poll-results .bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgba(217,164,65,.28), rgba(217,164,65,.12)); transition: width 1s ease; }
.poll-results li.mine { border-color: var(--gold); }
.poll-results .pct { font-weight: 600; color: var(--gold-2); }
.poll-preview { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #090807; padding: 50px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; color: #cfc4b4; padding: 3px 0; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { margin-top: 12px; max-width: 380px; font-size: .9rem; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- lightbox ---------- */
/* Each part has a fixed cell, so hiding the arrows (single image) never shifts the picture into an arrow column. */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 4, 3, .94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: minmax(0, 1fr); align-items: center; }
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox figure { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100%; padding: 20px 0; }
.lightbox-next { grid-column: 3; grid-row: 1; }
.lightbox img, .lightbox video { max-height: 82vh; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow); }
.lightbox figcaption { color: #d8cdbd; text-align: center; font-size: .95rem; padding: 0 12px; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; opacity: .7; height: 100%; }
.lightbox button:hover { opacity: 1; }
.lightbox-close { position: absolute; top: 10px; right: 18px; height: auto !important; z-index: 1; }
@media (max-width: 640px) {
  /* Phones: the picture uses the full width; arrows float over its edges (swipe also works). */
  .lightbox { grid-template-columns: minmax(0, 1fr); }
  .lightbox figure { grid-column: 1; padding: 56px 8px 20px; }
  .lightbox-prev, .lightbox-next { position: absolute; top: 50%; translate: 0 -50%; height: 52px !important; width: 44px; font-size: 2rem; background: rgba(0, 0, 0, .45) !important; border-radius: 8px; z-index: 1; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox img, .lightbox video { max-height: 72vh; }
}

.error-page { padding: 120px 0; }
.error-code { font: 900 5rem/1 var(--display); color: var(--gold); opacity: .35; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
