/* Fedora — Clash Display · oxblood + gold foil + bone palette */

:root {
  --brand-oxblood: #3B0A0A;
  --brand-gold: #D4AF37;
  --brand-gold-dim: rgba(212, 175, 55, 0.4);
  --brand-bone: #EFE9DD;
  --brand-ink: #0E0A08;
  --brand-ink-soft: #1C1410;
  --brand-smoke: rgba(14, 10, 8, 0.6);
  --brand-line: rgba(212, 175, 55, 0.18);
  --brand-line-bone: rgba(239, 233, 221, 0.12);
}

/* ============ BASE ============ */
body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--brand-ink);
  color: var(--brand-bone);
  cursor: none; /* Custom cursor replaces native */
}

h1, h2, h3, .nav__logo span, .t-eyebrow {
  font-family: "Clash Display", system-ui, sans-serif;
}

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--brand-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out-expo),
              height 0.25s var(--ease-out-expo),
              background 0.25s;
}

.cursor__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid var(--brand-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: width 0.4s var(--ease-out-expo),
              height 0.4s var(--ease-out-expo),
              opacity 0.3s,
              border-color 0.3s;
}

/* Cursor states */
body.cursor--hover .cursor__dot {
  width: 14px;
  height: 14px;
  background: var(--brand-gold);
}

body.cursor--hover .cursor__ring {
  width: 60px;
  height: 60px;
  opacity: 0.9;
  border-color: var(--brand-gold);
}

body.cursor--text .cursor__ring {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  opacity: 0.9;
}

/* ============ FILM GRAIN ============ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-drift 0.8s steps(2) infinite;
}

@keyframes grain-drift {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 40% 60%; }
  50%  { background-position: 80% 20%; }
  75%  { background-position: 20% 80%; }
  100% { background-position: 0% 0%; }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(14, 10, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--brand-line);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-4);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bone);
}

.nav__links {
  display: flex;
  gap: var(--s-7);
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--brand-bone);
  opacity: 0.55;
  transition: opacity var(--d-1), color var(--d-1);
}

.nav__links a:hover {
  opacity: 1;
  color: var(--brand-gold);
}

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__logo {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  font-family: "Clash Display", system-ui, sans-serif;
  font-weight: 500;
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0; /* Square — art deco */
  transition: background var(--d-2), color var(--d-2), border-color var(--d-2),
              transform var(--d-3) var(--ease-out-expo);
  will-change: transform;
  position: relative;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--brand-gold);
  opacity: 0;
  transition: opacity var(--d-2);
}

.btn:hover::after {
  opacity: 0.6;
}

.btn--primary {
  background: var(--brand-gold);
  color: var(--brand-ink);
}

.btn--primary:hover {
  background: var(--brand-bone);
  color: var(--brand-ink);
}

.btn--ghost {
  border: 1px solid var(--brand-line);
  color: var(--brand-bone);
  padding-block: calc(var(--s-4) - 1px);
}

.btn--ghost:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.btn--link {
  background: none;
  padding: var(--s-3) 0;
  color: var(--brand-bone);
  opacity: 0.7;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--brand-gold-dim);
}

.btn--link:hover {
  opacity: 1;
  color: var(--brand-gold);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn__gem {
  width: 7px;
  height: 7px;
  background: var(--brand-ink);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.btn--ghost .btn__gem,
.btn--link .btn__gem {
  background: var(--brand-gold);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-ink);
  padding-top: 80px; /* nav height */
}

.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.deco-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Fedora hat — anchored right */
.hero__hat {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: clamp(360px, 52vw, 760px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.82;
  filter: drop-shadow(0 -40px 80px rgba(212, 175, 55, 0.08));
}

.hat-svg {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero__hat {
    right: -12%;
    width: 80vw;
    opacity: 0.35;
  }
}

@media (max-width: 480px) {
  .hat-svg {
    transform: scale(0.85) translateX(-20px);
    transform-origin: right bottom;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--s-10);
  max-width: 820px;
}

.hero__eyebrow {
  color: var(--brand-gold);
  display: block;
  margin-bottom: var(--s-6);
  opacity: 0;
}

.hero__h1 {
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: clamp(2.25rem, 11vw, 9.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-7);
  max-width: 16ch;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line--gold {
  color: var(--brand-gold);
  font-style: italic;
  white-space: nowrap;
}

.hero__lead {
  font-size: clamp(var(--t-base), 1.5vw, var(--t-lg));
  max-width: 50ch;
  line-height: 1.7;
  color: rgba(239, 233, 221, 0.72);
  margin-bottom: var(--s-7);
  opacity: 0;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  opacity: 0;
}

/* Vertical marquee right edge */
.hero__marquee {
  position: absolute;
  right: var(--s-5);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 60vh;
  overflow: hidden;
}

.marquee-v {
  height: 100%;
  overflow: hidden;
}

.marquee-v__track {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  animation: marquee-v 22s linear infinite;
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-bone);
  opacity: 0.28;
}

.marquee-v__track span:nth-child(even) {
  color: var(--brand-gold);
  opacity: 0.6;
}

@keyframes marquee-v {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (max-width: 700px) {
  .hero__marquee { display: none; }
}

/* ============ STORY ============ */
.story {
  padding-block: var(--s-10);
  background: var(--brand-ink-soft);
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
  position: relative;
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-9);
  align-items: start;
  margin-bottom: var(--s-9);
}

@media (max-width: 768px) {
  .story__grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
}

.story__eyebrow {
  color: var(--brand-gold);
  display: block;
  margin-bottom: var(--s-5);
}

.story__h {
  max-width: 18ch;
  color: var(--brand-bone);
}

.story__h em {
  color: var(--brand-gold);
  font-style: italic;
}

.story__body {
  font-size: var(--t-lg);
  line-height: 1.72;
  color: rgba(239, 233, 221, 0.7);
  margin-bottom: var(--s-5);
}

.story__body:last-child {
  margin-bottom: 0;
}

.story__rule {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.8;
}

.story__rule svg {
  width: 100%;
  height: auto;
}

/* ============ MEMBERS ============ */
.members {
  padding-block: var(--s-10);
  background: var(--brand-ink);
}

.members__header {
  margin-bottom: var(--s-9);
}

.members__eyebrow {
  color: var(--brand-gold);
  display: block;
  margin-bottom: var(--s-5);
}

.members__h {
  max-width: 20ch;
  color: var(--brand-bone);
}

.members__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--brand-line);
  border: 1px solid var(--brand-line);
  margin-bottom: var(--s-10);
}

.pillar {
  background: var(--brand-ink);
  padding: var(--s-7);
  transition: background var(--d-2);
  position: relative;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  opacity: 0;
  transition: opacity var(--d-2);
}

.pillar:hover {
  background: var(--brand-ink-soft);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-5);
}

.pillar__icon svg {
  width: 100%;
  height: auto;
}

.pillar__h {
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-bone);
  margin-bottom: var(--s-3);
}

.pillar p {
  font-size: var(--t-base);
  line-height: 1.65;
  color: rgba(239, 233, 221, 0.6);
}

/* Gold foil quote */
.members__statement {
  border-top: 1px solid var(--brand-line);
  padding-top: var(--s-8);
}

.members__quote {
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-gold);
  text-align: center;
  max-width: 26ch;
  margin: 0 auto;

  /* Gold foil mask reveal */
  background: linear-gradient(
    100deg,
    var(--brand-gold) 0%,
    #F7E98E 30%,
    var(--brand-gold) 50%,
    #B8941E 70%,
    var(--brand-gold) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

@keyframes gold-shimmer {
  0%   { background-position: 300% 0; }
  100% { background-position: -100% 0; }
}

/* ============ APPLY ============ */
.apply {
  padding-block: var(--s-10);
  background: var(--brand-oxblood);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow */
.apply::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.apply__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-10);
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .apply__row {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
}

.apply__eyebrow {
  color: var(--brand-gold);
  display: block;
  margin-bottom: var(--s-5);
}

.apply__h {
  color: var(--brand-bone);
  margin-bottom: var(--s-5);
}

.apply__h em {
  color: var(--brand-gold);
  font-style: italic;
}

.apply__sub {
  font-size: var(--t-base);
  line-height: 1.7;
  color: rgba(239, 233, 221, 0.65);
  max-width: 38ch;
  margin-bottom: var(--s-7);
}

.apply__ornament {
  width: 40px;
  height: 180px;
  opacity: 0.5;
}

.apply__ornament svg {
  width: 100%;
  height: auto;
}

/* Form */
.apply__form {
  display: grid;
  gap: var(--s-4);
}

.apply__form label {
  display: grid;
  gap: var(--s-2);
}

.apply__form label span {
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  opacity: 0.8;
}

.apply__form input,
.apply__form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: var(--s-3) 0 var(--s-4);
  color: var(--brand-bone);
  font: inherit;
  font-size: var(--t-base);
  transition: border-color var(--d-1);
  outline: none;
  font-family: "Georgia", "Times New Roman", serif;
}

.apply__form textarea {
  resize: vertical;
  min-height: 110px;
}

.apply__form input::placeholder,
.apply__form textarea::placeholder {
  color: rgba(239, 233, 221, 0.25);
}

.apply__form input:focus,
.apply__form textarea:focus {
  border-bottom-color: var(--brand-gold);
}

.apply__form input:focus-visible,
.apply__form textarea:focus-visible {
  outline: 1px solid var(--brand-gold);
  outline-offset: 2px;
}

.apply__form .btn--primary {
  margin-top: var(--s-3);
}

.apply__fine {
  font-size: var(--t-xs);
  color: rgba(239, 233, 221, 0.4);
  text-align: center;
  margin-top: var(--s-2);
  letter-spacing: 0.02em;
}

/* ============ ADDRESS ============ */
.address {
  padding-block: var(--s-9);
  background: var(--brand-ink-soft);
  border-top: 1px solid var(--brand-line);
}

.address__inner {
  text-align: center;
}

.address__eyebrow {
  color: var(--brand-gold);
  display: block;
  margin-bottom: var(--s-5);
}

.address__reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
}

.address__teaser {
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: clamp(var(--t-xl), 3vw, var(--t-3xl));
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--brand-bone);
  line-height: 1.4;
}

.address__hidden {
  display: block;
  font-style: italic;
  font-size: 0.65em;
  color: rgba(239, 233, 221, 0.45);
  letter-spacing: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 400;
  margin-top: var(--s-2);
}

.address__lock {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  opacity: 0.55;
}

.address__lock svg {
  width: 32px;
  height: auto;
}

.address__lock span {
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

/* ============ FOOTER ============ */
.foot {
  background: var(--brand-ink);
  border-top: 1px solid var(--brand-line);
  padding-block: var(--s-6);
}

.foot__deco {
  margin-bottom: var(--s-5);
}

.foot__deco svg {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(239, 233, 221, 0.35);
  flex-wrap: wrap;
  gap: var(--s-4);
}

.foot__meta {
  color: var(--brand-gold);
  opacity: 0.45;
}

/* ============ KINETIC HEADLINE — char-level animation ============ */
.hero__h1 .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

/* ============ MAGNETIC TARGET state ============ */
.mag-target {
  will-change: transform;
}

/* ============ GOLD FOIL SCROLL REVEAL ============ */
/* Used on .gold-reveal — mask wipes left-to-right on scroll via JS adding class */
.gold-reveal {
  /* Base state: masked */
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 0%, transparent 0%);
  mask-image: linear-gradient(90deg, black 0%, black 0%, transparent 0%);
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition: -webkit-mask-position 1.6s var(--ease-out-expo),
              mask-position 1.6s var(--ease-out-expo);
}

.gold-reveal.is-revealed {
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
}

/* ============ FOCUS STATES ============ */
.btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

a:focus-visible {
  outline: 1px solid var(--brand-gold);
  outline-offset: 2px;
}

/* ============ TOUCH DEVICES — hide custom cursor ============ */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor__dot, .cursor__ring { display: none !important; }
  body { cursor: auto; }
}

/* ============ ACCESSIBILITY — reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .marquee-v__track { animation: none; }
  .gold-reveal { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
  @keyframes gold-shimmer { to { background-position: 300% 0; } }
}
