/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, svg { display: block; }
a { color: inherit; }

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:          #0A0A0A;
  --bg-card:     #111111;
  --bg-card-2:   #141414;
  --text:        #F5F0E8;
  --text-dim:    #A09890;
  --text-faint:  #6A6460;
  --accent:      #D4A017;
  --accent-glow: rgba(212,160,23,.18);
  --accent-dim:  rgba(212,160,23,.08);
  --border:      #242424;
  --border-mid:  #1E1E1E;
  --serif:       'DM Sans', system-ui, sans-serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --max-w:       1120px;
  --pad-x:       clamp(20px, 6vw, 80px);
}

/* ─── BASE ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── FOCUS ──────────────────────────────────────────── */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── SKIP LINK ──────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: #080808;
  padding: 10px 22px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ─── FILM GRAIN ─────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 900;
  pointer-events: none;
  opacity: .042;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain .45s steps(2) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, -6%); }
  50%  { transform: translate(-7%, 2%); }
  75%  { transform: translate(4%, -4%); }
  100% { transform: translate(2%, 6%); }
}

/* ─── STICKY HEADER ──────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background .5s ease,
    border-color .5s ease,
    backdrop-filter .5s ease,
    opacity .4s ease,
    transform .4s ease;
  transform: translateY(-100%);
  opacity: 0;
}
.site-header.revealed {
  transform: translateY(0);
  opacity: 1;
}
.site-header.opaque {
  background: rgba(10,10,10,.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px) saturate(1.2);
}
.header-logo img {
  height: 32px;
  width: auto;
}
.header-logo img[src=""] { display: none; }
.logo-fallback {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
  white-space: nowrap;
  display: none;
}
.logo-fallback span { color: var(--accent); }

/* Header nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.header-join:hover { background: var(--accent); color: var(--bg); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.toggle-bar {
  width: 20px;
  height: 1.5px;
  background: var(--text-dim);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 199;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 0 var(--pad-x) 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-mid);
  letter-spacing: .04em;
  transition: color .2s;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--text); }

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--pad-x) 80px;
  overflow: hidden;
}

/* Subtle radial glow */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(212,160,23,.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Film scan lines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,.012) 2px,
    rgba(255,255,255,.012) 3px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-logo-wrap {
  margin-bottom: 36px;
}
.hero-logo {
  width: min(260px, 64vw);
  height: auto;
}

.hero-rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: .55;
  margin-bottom: 32px;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-tagline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(.88rem, 1.8vw, 1rem);
  color: var(--text-dim);
  font-weight: 300;
  max-width: 440px;
  line-height: 1.85;
  margin-bottom: 40px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  background: var(--accent);
  color: #080808;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .2s;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(212,160,23,.28);
  background: #dba81a;
}
.btn-gold svg { flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .25s;
}
.btn-ghost:hover {
  border-color: rgba(212,160,23,.5);
  color: var(--accent);
  transform: translateY(-3px);
}
.btn-ghost svg { flex-shrink: 0; }

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .38;
  transition: opacity .4s;
}
.scroll-cue.hidden { opacity: 0; }
.scroll-cue-text {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1px solid var(--text-faint);
  border-radius: 11px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 3px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  animation: dotScroll 2s ease-in-out infinite;
}
@keyframes dotScroll {
  0%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: .2; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION COMMONS ────────────────────────────────── */
.section-pad {
  padding: clamp(72px, 9vw, 128px) var(--pad-x);
}
.inner { max-width: var(--max-w); margin: 0 auto; }

.s-label {
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
}

.s-heading {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin-bottom: 36px;
}

/* ─── FADE-IN ─────────────────────────────────────────── */
.fi {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.fi.in { opacity: 1; transform: none; }
.fi-d1 { transition-delay: .1s; }
.fi-d2 { transition-delay: .2s; }
.fi-d3 { transition-delay: .3s; }
.fi-d4 { transition-delay: .4s; }

/* ─── ABOUT ──────────────────────────────────────────── */
#about {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-body {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: #BDB7AE;
  max-width: 700px;
  line-height: 2;
  font-weight: 300;
}

/* ─── VALUES ─────────────────────────────────────────── */
#values {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 52px;
  border: 1px solid var(--border);
}

.value-card {
  background: var(--bg-card-2);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.value-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.value-card:hover { background: #161616; }
.value-card:hover::after { transform: scaleX(1); }

.value-num {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(212,160,23,.09);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.value-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: .5;
  margin-bottom: 14px;
  transition: opacity .3s;
}
.value-card:hover .value-icon { opacity: .9; }

.value-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.value-body {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ─── JOIN ───────────────────────────────────────────── */
#join {
  text-align: center;
  border-bottom: 1px solid var(--border);
}

#join .s-heading {
  border-left: none;
  padding-left: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.join-sub {
  color: var(--text-dim);
  font-size: .95rem;
  max-width: 420px;
  margin: -16px auto 44px;
  font-weight: 300;
}

.join-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── CONTACT ────────────────────────────────────────── */
#contact {
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  margin-top: 52px;
}

.ci-label {
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.ci-value {
  font-size: .92rem;
  color: #C8C2B8;
  line-height: 1.85;
}
.ci-value a {
  text-decoration: none;
  color: #C8C2B8;
  transition: color .2s;
}
.ci-value a:hover { color: var(--accent); }

/* Contact + social combined */
.contact-social {
  display: flex;
  align-items: center;
  gap: 24px 32px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.contact-social-label {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* ─── SOCIAL ─────────────────────────────────────────── */
.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.soc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color .25s, color .25s, transform .25s, background .25s;
}
.soc-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-4px);
}
.soc-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── SISTER BRANDS ──────────────────────────────────── */
.sister-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px var(--pad-x);
}
.sister-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px 28px;
  flex-wrap: wrap;
}
.sister-eyebrow {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
  white-space: nowrap;
}
.sister-sep {
  width: 1px; height: 18px;
  background: var(--border);
  flex-shrink: 0;
}
.sister-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
}
.sister-link {
  font-size: .78rem;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: .01em;
  position: relative;
  transition: color .2s;
}
.sister-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s;
}
.sister-link:hover { color: var(--text-dim); }
.sister-link:hover::after { width: 100%; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border-mid);
  padding: 26px var(--pad-x);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: .74rem;
  color: var(--text-faint);
}
.footer-copy a {
  text-decoration: none;
  color: var(--text-faint);
  transition: color .2s;
}
.footer-copy a:hover { color: var(--accent); }
.footer-logo img {
  height: 22px;
  width: auto;
  opacity: .5;
  filter: grayscale(1);
  transition: opacity .2s, filter .2s;
}
.footer-logo:hover img { opacity: .9; filter: none; }

/* ─── BACK TO TOP ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 300;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .2s, color .2s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.back-to-top svg { width: 16px; height: 16px; fill: currentColor; }

/* ─── REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .scroll-dot { animation: none; }
  .toggle-bar { transition: none; }
  .fi { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-join { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .join-btns { flex-direction: column; }
  .join-btns a { justify-content: center; }
  .sister-sep { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo { display: none; }
  .values-grid { gap: 0; }
  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 400px) {
  .hero-tagline { font-size: 1.85rem; }
}

/* ─── SELECTION ──────────────────────────────────────── */
::selection {
  background: rgba(212,160,23,.25);
  color: var(--text);
}
