/* Rogue30 Members Club: site styles. Self-hosted fonts, no outside requests. */
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --bg: #0c0c0e;
  --bg-2: #141417;
  --bg-3: #1c1c20;
  --line: #2c2c32;
  --text: #f3f1ed;
  --muted: #b9b6b0;        /* 9.4:1 on --bg */
  --red: #e2242f;          /* logo red, for marks and large type */
  --red-ink: #ff5a63;      /* text-safe red on dark, 5.9:1 */
  --red-btn: #c41a24;      /* white on this = 6.0:1 */
  --cream: #f3efe8;
  --ink: #141417;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; font-size: 1.0625rem; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
p a, li a, td a { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, blockquote, .who .n, .steps li::before { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em { font-style: italic; color: var(--red-ink); }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--cream); color: var(--ink); padding: .7rem 1rem; font-weight: 500; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.kicker { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--red); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: var(--radius); font-family: var(--sans); font-weight: 500; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: #a3141d; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(243, 241, 237, .55); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.btn-lg { min-height: 56px; padding: .9rem 1.8rem; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 12, 14, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand-name { font-family: var(--sans); font-weight: 400; font-size: 1.05rem; letter-spacing: .3em; text-transform: uppercase; line-height: 1.1; }
.brand-name small { display: block; font-size: .64rem; letter-spacing: .28em; color: var(--muted); margin-top: 4px; }
.header-cta { display: flex; gap: .5rem; }
.header-cta .btn { min-height: 44px; padding: .5rem 1rem; font-size: .76rem; }
@media (max-width: 680px) { .lbl-long { display: none; } .brand-name small { display: none; } .brand-name { font-size: .9rem; letter-spacing: .22em; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; padding: 7rem 0 4.5rem; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 12, 14, .55) 0%, rgba(12, 12, 14, .72) 45%, rgba(12, 12, 14, .96) 100%), linear-gradient(90deg, rgba(12, 12, 14, .85) 0%, rgba(12, 12, 14, .2) 70%); }
.hero-inner { max-width: 50rem; }
.hero .lead { font-size: 1.2rem; color: #e4e1db; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.2rem; padding: 0; list-style: none; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-meta li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin-right: .6rem; vertical-align: middle; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.8rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* ---------- The room (who you meet) ---------- */
.room-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pull { margin: 0 0 1.6rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; }
.pull p { margin: 0; }
.who { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.who li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.who .n { font-family: var(--serif); font-size: 1.5rem; color: var(--red-ink); }
.who strong { display: block; font-weight: 500; font-size: 1.12rem; letter-spacing: .02em; }
.who span.d { color: var(--muted); font-size: .98rem; }
.photo-frame { position: relative; margin: 0; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(.9); }
.photo-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--red); border-radius: var(--radius); z-index: -1; }
.credit { font-size: .78rem; color: var(--muted); margin-top: .6rem; letter-spacing: .04em; }
@media (max-width: 880px) { .room-grid { grid-template-columns: 1fr; } .photo-frame::before { display: none; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--bg); padding: 2rem 1.6rem 2.2rem; min-height: 220px; display: flex; flex-direction: column; }
.pillar .tag { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red-ink); margin-bottom: auto; padding-bottom: 2.4rem; }
.pillar h3 { margin-bottom: .35rem; }
.pillar p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } .pillar .tag { padding-bottom: 1.2rem; } }

/* ---------- Events gallery ---------- */
.events-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.events-top .section-head { margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: .8rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.gallery button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .5s ease; filter: saturate(.85); }
.gallery button:hover img { transform: scale(1.04); filter: saturate(1); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem .9rem; background: linear-gradient(transparent, rgba(8, 8, 10, .92)); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.g1 { grid-column: span 7; grid-row: span 2; } .g2 { grid-column: span 5; grid-row: span 2; }
.g3, .g4, .g5, .g6 { grid-column: span 3; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .g1 { grid-column: span 2; } .g2 { grid-column: span 2; } .g3, .g4, .g5, .g6 { grid-column: span 1; } }

/* ---------- Testimonial ---------- */
.quote-band { margin: 0; position: relative; text-align: center; padding: clamp(4.5rem, 9vw, 7.5rem) 0; overflow: hidden; isolation: isolate; }
.quote-band .bg { position: absolute; inset: 0; z-index: -2; }
.quote-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 12, .86); }
.quote-band blockquote { margin: 0 auto; max-width: 52rem; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.25; }
.quote-band blockquote p { margin: 0; }
.quote-band .mark { display: block; font-family: var(--serif); font-size: 4.5rem; line-height: .6; color: var(--red); margin-bottom: 1rem; }
.quote-band figcaption { margin-top: 1.6rem; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); filter: grayscale(.15); }
.founder .role { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red-ink); margin-bottom: .4rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.facts li { border: 1px solid var(--line); padding: .45rem .9rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 380px; } }

/* ---------- Steps + form ---------- */
.apply { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps { list-style: none; margin: 1.6rem 0 2rem; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 1.4rem 3.4rem; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -.15rem; font-family: var(--serif); font-size: 1.6rem; color: var(--red-ink); }
.steps strong { display: block; font-weight: 500; letter-spacing: .03em; }
.steps span { color: var(--muted); }
.contact-lines { list-style: none; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.contact-lines strong { font-weight: 500; }
.form-card { background: var(--cream); color: var(--ink); padding: clamp(1.5rem, 3.5vw, 2.6rem); border-radius: var(--radius); }
.form-card h3 { color: var(--ink); }
.form-card a { color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 500; font-size: .9rem; letter-spacing: .04em; margin-bottom: .35rem; }
.req { color: #a3141d; }
input[type=text], input[type=tel], input[type=email], textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #77736c; border-radius: var(--radius); padding: .75rem .9rem; min-height: 50px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form-card :focus-visible { outline-color: var(--ink); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: #a3141d; }
.hint { font-size: .88rem; color: #4a4741; margin: .3rem 0 0; }
.err { color: #a3141d; font-weight: 500; font-size: .9rem; margin: .3rem 0 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9rem; letter-spacing: 0; margin: .4rem 0 1rem; }
.check input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--ink); }
.ts { margin: .5rem 0 1rem; min-height: 65px; }
.form-card .btn-red { width: 100%; }
.form-status { margin-top: 1rem; font-weight: 500; }
.form-status.ok { color: #1d6b3a; }
.form-status.bad { color: #a3141d; }
@media (max-width: 900px) { .apply { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; color: var(--text); }
dialog.lightbox::backdrop { background: rgba(5, 5, 7, .92); }
.lb-inner { background: #000; border: 1px solid var(--line); }
.lb-inner img { width: 100%; max-height: 80vh; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; background: var(--bg-2); }
.lb-bar p { margin: 0; font-size: .9rem; }
.lb-btns { display: flex; gap: .4rem; }
.lb-btns button { min-width: 44px; min-height: 44px; border: 1px solid rgba(243, 241, 237, .6); background: transparent; color: var(--text); font: 500 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; padding: 0 .9rem; border-radius: var(--radius); }

/* ---------- Footer, legal, call bar ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 6.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; gap: 1rem; align-items: center; color: var(--muted); font-size: .92rem; }
.foot-brand img { width: 110px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; font-size: .9rem; }
.copy { width: 100%; margin: 0; font-size: .82rem; color: var(--muted); }
@media (min-width: 761px) { .site-footer { padding-bottom: 3rem; } }
.legal { padding: 3.5rem 0 4.5rem; max-width: 50rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.legal h2 { font-size: 1.8rem; margin-top: 2.2rem; }
.legal .updated { color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .6rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 500; }
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(12, 12, 14, .97); border-top: 1px solid var(--line); }
  .callbar .btn { min-height: 50px; }
  html { scroll-padding-bottom: 90px; }
  .hero { min-height: 0; padding-top: 4rem; }
}

/* ---------- Scroll animations (only when JS adds .anim, so content stays visible without JS) ---------- */
.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .reveal.d1 { transition-delay: .12s; } .anim .reveal.d2 { transition-delay: .24s; } .anim .reveal.d3 { transition-delay: .36s; }
.anim .words .w { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .6s ease, transform .6s ease; }
.anim .words.in .w { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-bg img { transform: none; }
}
