﻿/* ==========================================================================
   SUREWIN CLUB - THE INVITATION
   Obsidian, gold, and light. Nothing rounded. No shadows.
   ========================================================================== */

/* Self-hosted fonts (latin, variable) - no third-party CDN */
@font-face{font-family:'Cinzel';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/cinzel-latin-var.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/cormorant-garamond-latin-var.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300 700;font-display:swap;src:url('../fonts/cormorant-garamond-italic-latin-var.woff2') format('woff2');}

:root {
  --obsidian: #0a0a0c;
  --charcoal: #101013;
  --card: #0f0f12;
  --gold: #c8a951;
  --gold-deep: #9c7a2f;
  --gold-hi: #ecd589;
  --champagne: #ecd589;
  --bone: #ede7d6;
  --muted: #9c9582;
  --faint: #8f8a7e;
  --emerald: #0F3B2E;
  --gold-dim: rgba(200, 169, 81, 0.35);
  --gold-faint: rgba(200, 169, 81, 0.15);
  --line: rgba(200, 169, 81, 0.22);
  --line-soft: rgba(200, 169, 81, 0.12);
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-utility: 'Cinzel', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { background: var(--obsidian); }

body {
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, canvas { max-width: 100%; display: block; }

a { color: var(--bone); text-decoration: none; }

::selection { background: rgba(200, 169, 81, 0.28); color: #f4eeda; }

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

/* Dark UA baseline + engraved scrollbar */
html { color-scheme: dark; scrollbar-color: rgba(200, 169, 81, 0.35) #0a0a0c; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0c; }
::-webkit-scrollbar-thumb { background: rgba(200, 169, 81, 0.3); border: 3px solid #0a0a0c; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 169, 81, 0.5); }

/* ---------- Type utilities ---------- */

.cinzel {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 300;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

.utility {
  font-family: var(--font-utility);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.t-bone { color: var(--bone); }
.t-gold { color: var(--gold); }
.t-goldhi { color: var(--gold-hi); }

/* ---------- Hairlines and diamond ornament ---------- */

.hairline {
  position: relative;
  height: 1px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hairline-diamond::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg) scale(var(--ds, 1));
}

/* ---------- Cold open ---------- */

#cold-open {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
}

#cold-open video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#enter-link {
  position: absolute;
  bottom: 40px;
  right: 48px;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  padding: 8px 4px;
}

#enter-link { letter-spacing: 0.3em; }
#enter-link::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 7px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s ease 0.25s;
}
#enter-link.visible {
  opacity: 1;
  pointer-events: auto;
}
#enter-link.visible::after { transform: scaleX(1); }

#cold-open.hidden, #preloader.hidden { display: none; }

/* engraved loading ring over the seal film (hero pass-A progress) */
#seal-ring {
  position: absolute;
  bottom: 44px;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translateX(-50%) rotate(-90deg);
  pointer-events: none;
}
#seal-ring circle {
  fill: none;
  stroke: rgba(200, 169, 81, 0.16);
  stroke-width: 1.5;
}
#seal-ring #seal-ring-bar {
  stroke: rgba(200, 169, 81, 0.9);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.3s linear;
}

/* ---------- Preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.preloader-mark { color: var(--gold); }

.preloader-track {
  width: 220px;
  height: 1px;
  background: var(--gold-faint);
}

#preloader-bar {
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Nav ---------- */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding: 18px 48px;
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-faint);
}

.nav-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  padding-bottom: 3px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-links a.nav-request { color: var(--gold); }

.auth-link { display: none; }

/* ---------- Mobile nav ritual: seal button + obsidian menu ---------- */

#seal-menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(10, 10, 12, 0.6);
  color: var(--gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.4s ease, color 0.4s ease;
}
#seal-menu-btn .smb-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
}
#seal-menu-btn.open { background: var(--gold); color: var(--obsidian); }

#seal-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 10, 12, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#seal-menu.open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

.sm-inner { text-align: center; padding: 32px 24px; width: 100%; max-width: 420px; }
.sm-mark {
  display: block;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--bone);
  margin-bottom: 42px;
}
.sm-links { display: flex; flex-direction: column; gap: 26px; }
.sm-link {
  font-size: 21px;
  letter-spacing: 0.24em;
  color: var(--bone);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}
#seal-menu.open .sm-link { opacity: 1; transform: none; }
#seal-menu.open .sm-link:nth-child(1) { transition-delay: 0.08s; }
#seal-menu.open .sm-link:nth-child(2) { transition-delay: 0.16s; }
#seal-menu.open .sm-link:nth-child(3) { transition-delay: 0.24s; }
#seal-menu.open .sm-link:nth-child(4) { transition-delay: 0.32s; }
#seal-menu.open .sm-link:nth-child(5) { transition-delay: 0.4s; }
.sm-link:active, .sm-link:hover { color: var(--gold); }
.sm-rule { margin: 40px auto; max-width: 220px; }
.sm-request {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 15px 30px;
}
@media (prefers-reduced-motion: reduce) {
  #seal-menu, .sm-link { transition: none; }
}

/* ---------- Sections: shared ---------- */

section { position: relative; }

.charcoal { background: var(--charcoal); }

.scrub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scrub-mobile {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scrub-mobile video,
.scrub-mobile .mobile-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.section-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

/* ---------- 1. Hero ---------- */

#hero {
  height: 100vh;
  overflow: hidden;
}

.static-hero {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(64vh, 80vw);
  height: auto;
}

.hero-content {
  position: absolute;
  top: 12vh;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 78px);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  white-space: nowrap;
}

.hero-sub { margin-top: 26px; }

.hero-sub .eyebrow {
  margin-top: 16px;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.4em;
}

.hero-whisper {
  position: absolute;
  bottom: 9vh;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--champagne);
  pointer-events: none;
  opacity: 0;
}

.hero-whisper-tag {
  font-size: clamp(26px, 3.4vw, 42px);
  color: var(--gold-hi);
}

/* ---------- 2. Story ---------- */

#story {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18vh 24px;
  max-width: 760px;
}

.story-headline {
  font-size: clamp(24px, 3.4vw, 44px);
  color: var(--champagne);
  margin-bottom: 9vh;
}

.story-line {
  font-size: clamp(21px, 2.4vw, 29px);
  line-height: 1.75;
  margin-bottom: 4.5vh;
  color: var(--bone);
}

.story-line-final {
  color: var(--champagne);
  margin-top: 3vh;
}

/* ---------- 3. Macro ---------- */

#macro {
  height: 100vh;
  overflow: hidden;
}

.macro-captions {
  position: absolute;
  bottom: 11vh;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.macro-caption {
  position: absolute;
  left: 0;
  right: 0;
  color: var(--bone);
  opacity: 0;
  font-size: clamp(19px, 1.8vw, 28px);
  letter-spacing: 0.4em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 26px rgba(0, 0, 0, 0.8);
}

.macro-caption::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 86vw);
  height: 300%;
  background: radial-gradient(ellipse at center, rgba(10, 10, 12, 0.55) 0%, transparent 70%);
  z-index: -1;
}

/* ---------- 4. Table ---------- */

#table { background: var(--obsidian); }

#table .section-video {
  object-fit: contain;
}


#table {
  min-height: 100vh;
  background: var(--obsidian);
}

.table-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.table-line {
  font-size: clamp(26px, 3vw, 40px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 26px rgba(0, 0, 0, 0.8);
  color: var(--bone);
  text-align: center;
  padding: 0 24px;
}

/* ---------- 4b. Squeeze ---------- */

#squeeze {
  height: 100vh;
  overflow: hidden;
  background: var(--obsidian);
}

.squeeze-caption {
  position: absolute;
  bottom: 10vh;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(26px, 3.4vw, 46px);
  color: var(--champagne);
  opacity: 0;
  pointer-events: none;
}

/* ---------- 5. Method ---------- */

#method { overflow: hidden; }

/* The assembly film is an object tableau: its own full-screen scene.
   Height is fixed by the viewport, so the pin math is stable before
   the film loads. Full 16:9 frame, never cropped. */
#assembly {
  min-height: 100vh;
  background: var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#assembly .section-video {
  width: 100%;
  height: 100vh;
  object-fit: contain;
}

.method-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 14vh 24px 12vh;
  text-align: center;
}

.method-lede {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.7;
  color: var(--bone);
  margin-bottom: 8vh;
}

.callout { padding: 6vh 0; }

.callout-number {
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--champagne);
  line-height: 1.1;
  white-space: nowrap;
}

.callout-label {
  margin-top: 14px;
  color: var(--gold);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

.method-line {
  margin-top: 10vh;
  font-size: clamp(21px, 2.4vw, 28px);
  color: var(--bone);
}

/* ---------- 5b. The Standard ---------- */

#standard { background: var(--obsidian); }

.standard-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14vh 24px;
}

.standard-label {
  text-align: center;
  color: var(--gold);
  margin-bottom: 7vh;
  font-size: 12px;
  letter-spacing: 0.4em;
}

.tenet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  position: relative;
}

/* Live-site corner pieces: eight short gold strokes framing the box */
.tenet-grid::before {
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold));
  background-position:
    left top, left top, right top, right top,
    left bottom, left bottom, right bottom, right bottom;
  background-size:
    16px 1px, 1px 16px, 16px 1px, 1px 16px,
    16px 1px, 1px 16px, 16px 1px, 1px 16px;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.tenet {
  position: relative;
  overflow: hidden;
  background: var(--obsidian);
  padding: 42px 34px;
  text-align: center;
  transition: background 0.8s ease;
}

.tenet::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(236, 213, 137, 0.09), transparent);
  transform: skewX(-14deg);
  pointer-events: none;
  transition: left 0s;
}

.tenet:hover, .tenet:active {
  background: #12100b;
}

.tenet:hover::after, .tenet:active::after {
  left: 130%;
  transition: left 1.1s ease;
}

.tenet:hover .tenet-num, .tenet:active .tenet-num { color: var(--gold-hi); }
.tenet:hover .tenet-title, .tenet:active .tenet-title { color: var(--gold-hi); }
.tenet .tenet-num, .tenet .tenet-title { transition: color 0.6s ease; }

.tenet-num {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.tenet-title {
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--bone);
  line-height: 1.3;
  margin-bottom: 12px;
}

.tenet-text {
  font-size: 17px;
  color: #c9c3b2;
  line-height: 1.65;
}

/* ---------- 6. Invitation ---------- */

#invitation {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070708;
}

.invitation-inner {
  text-align: center;
  padding: 20vh 24px;
}

.invitation-headline {
  font-size: clamp(24px, 3.2vw, 42px);
  color: var(--bone);
}

.invitation-seats {
  margin-top: 5vh;
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--gold);
  letter-spacing: 0.3em;
}

.invitation-note {
  margin-top: 6vh;
  color: rgba(237, 234, 226, 0.55);
}

/* ---------- 7. Request ---------- */

#request {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16vh 24px 14vh;
}

.request-inner {
  text-align: center;
  max-width: 620px;
  width: 100%;
}

#request-form { max-width: 460px; margin-left: auto; margin-right: auto; }

.request-crest {
  width: min(380px, 74vw);
  margin: 0 auto 5vh;
}

.request-scarcity {
  color: var(--muted);
  line-height: 2.1;
  margin-bottom: 5vh;
  white-space: nowrap;
}
@media (max-width: 640px) { .request-scarcity { white-space: normal; } }

.request-scarcity .t-gold { color: var(--gold); }

.request-headline {
  font-weight: 500;
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: 0.08em;
  color: var(--bone);
  margin-bottom: 2.5vh;
}

.rf-optional { opacity: 0.6; }

#request-form {
  margin-top: 6vh;
  text-align: left;
}

.hp-field { display: none; }

.form-field { margin-bottom: 32px; }

.form-field label {
  display: block;
  color: var(--gold);
  margin-bottom: 10px;
}

.form-field input, .form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold-dim);
  color: var(--bone);
  font-family: var(--font-serif);
  font-size: 19px;
  padding: 8px 2px;
}

.form-field textarea { resize: none; min-height: 64px; }

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form-intro {
  text-align: center;
  color: #c9c3b2;
  font-size: 21px;
  line-height: 1.7;
  margin-bottom: 5vh;
}

.form-note {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin-top: 24px;
  font-size: 16px;
}

.form-note a { color: var(--gold); }

#request-success {
  margin-top: 6vh;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--champagne);
}

/* ---------- Page hero (editorial sub-pages) ---------- */

main.editorial {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.page-hero {
  text-align: center;
  padding: 150px 0 40px;
}

.page-eyebrow {
  color: var(--gold);
  margin-bottom: 26px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.08em;
  color: var(--bone);
  line-height: 1.08;
}

.page-title .t-gold { color: var(--champagne); }

.page-sub {
  font-style: italic;
  color: var(--muted);
  font-size: clamp(19px, 3vw, 25px);
  margin: 18px auto 0;
  max-width: 540px;
}

.page-hero .hairline { margin-top: 42px; }

/* ---------- Editorial prose ---------- */

.prose {
  max-width: 640px;
  margin: 0 auto;
  padding: 4vh 0 6vh;
}

.prose .lead {
  font-size: clamp(22px, 3.2vw, 27px);
  font-weight: 400;
  color: var(--bone);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 50px;
}

.prose h2 {
  font-family: var(--font-utility);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 8vh 0 3vh;
}

.prose p {
  margin-bottom: 24px;
  color: #d8d2c2;
  font-size: 20px;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.prose p .t-gold { color: var(--champagne); }

.prose blockquote {
  margin: 8vh auto;
  max-width: 560px;
  text-align: center;
  font-style: italic;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.5;
  color: var(--champagne);
  position: relative;
  padding: 34px 0;
}

.prose blockquote::before, .prose blockquote::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.prose blockquote::before { top: 0; }
.prose blockquote::after { bottom: 0; }

/* numbered principles */

.principle {
  padding: 36px 0;
}

.principle .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

.principle h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3.2vw, 26px);
  letter-spacing: 0.04em;
  color: var(--bone);
  margin-bottom: 16px;
  line-height: 1.3;
}

.principle p {
  color: #d2ccbc;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  margin-bottom: 0;
  font-size: 20px;
}

/* ---------- Members gate ---------- */

.gate-card {
  position: relative;
  max-width: 420px;
  margin: 4vh auto 0;
  border: 1px solid var(--line);
  background: rgba(15, 15, 18, 0.6);
  padding: 40px 34px;
  text-align: left;
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold));
  background-position:
    left top, left top, right top, right top,
    left bottom, left bottom, right bottom, right bottom;
  background-size:
    16px 1px, 1px 16px, 16px 1px, 1px 16px,
    16px 1px, 1px 16px, 16px 1px, 1px 16px;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.prose .gate-note {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 20px 0 0;
  font-size: 16px;
}

.prose .vault-label {
  margin: 10vh 0 4vh;
  text-align: center;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.4em;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 4vh;
}

.vault {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.6), rgba(12, 12, 14, 0.6));
  padding: 34px 30px;
  transition: border-color 0.7s ease;
}

.vault::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 0%, transparent 40%, rgba(10, 10, 12, 0.5));
  pointer-events: none;
}

.vault:hover { border-color: var(--line); }

.vault .lock {
  width: 22px;
  height: 22px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
}

.vault h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin-bottom: 8px;
}

.vault p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

.vault .tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-utility);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold-faint);
  padding: 4px 10px;
}

/* ---------- Sub-page closing CTA ---------- */

.cta-closer {
  text-align: center;
  padding: 40px 0 70px;
}

.cta-closer .scarcity {
  color: var(--muted);
  line-height: 2.1;
  margin-top: 26px;
}

.cta-closer .scarcity .t-gold { color: var(--gold); }

.close-mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 36px);
  margin: 30px 0 0;
}

.cta-outline {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 16px 34px;
  transition: background 0.6s ease, color 0.6s ease;
}

.cta-outline:hover {
  background: var(--gold);
  color: var(--obsidian);
}

/* ---------- Legal documents ---------- */

.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 20vh 28px 8vh;
}

.doc .page-eyebrow { text-align: center; }

.doc h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  text-align: center;
  line-height: 1.15;
}

.doc .updated {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin-top: 14px;
}

.doc .hairline { margin: 5vh auto; }

.doc h2 {
  font-family: var(--font-utility);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6vh 0 2vh;
}

.doc p, .doc li {
  color: #d8d2c2;
  margin-bottom: 18px;
  font-size: 19px;
}

.doc ul { padding-left: 24px; }

.doc li { margin-bottom: 10px; }

.doc a { color: var(--gold); }

.doc strong { font-weight: 500; color: var(--bone); }

.doc .callout {
  border: 1px solid var(--gold-dim);
  padding: 24px 26px;
  margin: 4vh 0;
  color: #d8d2c2;
}

/* ---------- Seal pages (thank-you / 404) ---------- */

.seal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20vh 28px 12vh;
}

.seal-page .seal { width: 84px; margin: 4vh auto; }

.seal-page h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1.2;
}

.seal-page .hairline { margin: 5vh auto; }

.seal-page .msg {
  max-width: 520px;
  margin: 0 auto;
  font-size: clamp(19px, 2.6vw, 23px);
  color: #d8d2c2;
}

.seal-page .msg .t-gold { color: var(--champagne); }

.seal-page .scarcity {
  margin-top: 6vh;
  color: var(--muted);
  line-height: 2.1;
}

.seal-page .scarcity .t-gold { color: var(--gold); }

/* ---------- Reveal on scroll (sub-pages) ---------- */

.reveal-io {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-io.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */

#footer {
  background: var(--obsidian);
  text-align: center;
  padding: 10vh 24px 7vh;
  border-top: 1px solid transparent;
}

.footer-heritage {
  margin-top: 6vh;
  color: var(--gold);
}

.footer-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  margin-top: 26px;
}

.footer-brands a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.footer-brands a:hover { color: var(--gold); }

.footer-disclaimer {
  max-width: 620px;
  margin: 4vh auto 0;
  color: rgba(237, 234, 226, 0.62);
  font-size: 15px;
  line-height: 1.7;
}

.footer-legal { margin-top: 3vh; }

.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--gold); }
.footer-legal .dot { color: var(--gold-deep); margin: 0 8px; }

.footer-line {
  margin-top: 4vh;
  color: rgba(237, 234, 226, 0.7);
}

.footer-meta {
  margin-top: 18px;
  color: rgba(237, 234, 226, 0.58);
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .scrub-canvas { display: none; }
  .scrub-mobile { display: block; }
  #nav { padding: 12px 18px; justify-content: space-between; text-align: left; flex-wrap: nowrap; }
  .nav-mark { font-size: 13px; }
  .nav-links { display: none; }
  #seal-menu-btn { display: inline-flex; }
  #enter-link { right: 24px; bottom: 28px; }
  #hero, #macro, #squeeze { height: 100svh; }
  .locked-grid, .tenet-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 26vh; }

  /* Films with edge detail show the whole 16:9 frame on phones: the crest
     macro (so the S and N of SUREWIN aren't cropped) and the squeeze (the
     hands and card). The hero coin stays filled (centered). */
  #macro-mobile video,
  #squeeze-mobile video { object-fit: contain; background: var(--obsidian); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal-io { opacity: 1; transform: none; transition: none; }
}

html.reduced-motion #cold-open,
html.reduced-motion #preloader { display: none; }

html.reduced-motion .scrub-canvas,
html.reduced-motion .scrub-mobile video { display: none; }

html.reduced-motion #hero .static-hero { display: block; }

html.reduced-motion .macro-caption {
  position: static;
  opacity: 1;
  margin-bottom: 20px;
}

html.reduced-motion .squeeze-caption { opacity: 1; }

html.reduced-motion .hero-whisper-intro { display: none; }
html.reduced-motion .hero-whisper-tag { opacity: 1; }

html.reduced-motion #squeeze { height: auto; padding: 20vh 0; }

html.reduced-motion .section-bg-video,
html.reduced-motion .section-video { display: none; }

html.reduced-motion #table { min-height: 60vh; }

html.reduced-motion .table-overlay { position: static; padding: 10vh 0; }

/* Screen-reader-only utility (semantic h1 on cinematic pages) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- One film stock: grain + vignette unification ---------- */
#film-grain {
  position: fixed;
  inset: -128px;
  z-index: 80;
  pointer-events: none;
  background: url('../assets/img/grain.png') repeat;
  opacity: 0.05;
  mix-blend-mode: overlay;
  animation: grain-shift 1.2s infinite;
}
@keyframes grain-shift {
  0%    { transform: translate(0, 0); animation-timing-function: step-end; }
  12.5% { transform: translate(-42px, 18px); animation-timing-function: step-end; }
  25%   { transform: translate(24px, -36px); animation-timing-function: step-end; }
  37.5% { transform: translate(-18px, -44px); animation-timing-function: step-end; }
  50%   { transform: translate(38px, 26px); animation-timing-function: step-end; }
  62.5% { transform: translate(-30px, 8px); animation-timing-function: step-end; }
  75%   { transform: translate(14px, 40px); animation-timing-function: step-end; }
  87.5% { transform: translate(-44px, -22px); animation-timing-function: step-end; }
  100%  { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  #film-grain { animation: none; }
}

/* ---------- Scene veils: one handoff grammar ---------- */
.scene-veil {
  position: absolute;
  inset: 0;
  background: var(--obsidian);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

/* ---------- Chapter rail ---------- */
#chapters {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 1s ease;
}
#chapters.on { opacity: 1; }
.ch-track {
  width: 1px;
  height: 184px;
  background: var(--gold-faint);
  position: relative;
}
.ch-diamond {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
/* each reach of the track is a link; a hairline tick marks its start */
.ch-seg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  display: block;
}
.ch-seg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 1px;
  background: var(--gold-faint);
}
.ch-seg:hover::before, .ch-seg[aria-current]::before { background: var(--gold); }
.ch-seg:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: -1px;
}
.ch-label {
  writing-mode: vertical-rl;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.35s ease, color 0.35s ease;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
}
.ch-label:hover, .ch-label:focus-visible { color: var(--champagne); outline: none; }
@media (max-width: 1023px) {
  #chapters { right: 10px; gap: 10px; }
  .ch-track { height: 170px; }
  .ch-label { font-size: 9px; letter-spacing: 0.24em; }
}
@media (prefers-reduced-motion: reduce) {
  #chapters { display: none; }
}

/* ---------- Phase 4 batch B ---------- */

/* hero epigraph: the hook line owns the screen */
#hero-veil {
  position: absolute;
  inset: 0;
  background: var(--obsidian);
  pointer-events: none;
}
@media (max-width: 767px) {
  #hero-veil { display: none; }
}
html.reduced-motion #hero-veil { display: none; }
@media (min-width: 768px) {
  .hero-whisper-intro {
    top: 47%;
    bottom: auto;
    font-size: clamp(22px, 2.6vw, 32px);
    letter-spacing: 0.03em;
  }
}

/* story: lines lift out of the dark; a gold reading rule follows */
.story-passages { position: relative; }
.story-line { overflow: hidden; }
.sl-inner { display: block; }
.story-rule {
  position: absolute;
  left: -56px;
  top: 0;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
}
@media (max-width: 1023px) {
  .story-rule { display: none; }
}

/* macro: captions rule themselves; the thesis line engraves */
.macro-caption { --rs: 0; }
.cap-rule {
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 120px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%) scaleX(var(--rs, 0));
}
.mc-ch { display: inline-block; white-space: pre; }

/* squeeze: NINE. slams with a letterpress bite and a silent gold flash */
.squeeze-caption {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 -1px 0 rgba(255, 255, 255, 0.05), 0 0 34px rgba(0, 0, 0, 0.6);
}
.squeeze-flash {
  position: absolute;
  inset: 0;
  background: var(--gold-hi);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

/* method: the engraver rules the ledger */
#method .hairline { transform-origin: left center; }

/* hero scroll cue: the black screen invites, it does not confuse */
.hero-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--champagne);
  letter-spacing: 0.5em;
  z-index: 4;
  pointer-events: none;
}
.hero-scroll-cue span {
  display: inline-block;
  animation: cue-pulse 2.6s ease-in-out infinite;
}
@keyframes cue-pulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}
@media (max-width: 767px) {
  .hero-scroll-cue { display: none; }
}
html.reduced-motion .hero-scroll-cue { display: none; }

/* ---------- PRESS THE SEAL: the performed submit ---------- */
.press-seal-wrap { text-align: center; margin-top: 34px; }
.press-seal {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 38% 32%, #221c14, #12100c 70%);
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.press-seal .ps-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.press-seal .ps-track {
  fill: none;
  stroke: rgba(200, 169, 81, 0.18);
  stroke-width: 1.5;
}
.press-seal #ps-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.press-seal .ps-medal {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: radial-gradient(circle at 40% 30%, rgba(200, 169, 81, 0.14), transparent 65%);
}
.ps-label { margin-top: 18px; color: var(--muted); }
.ps-hint { margin-top: 10px; color: var(--champagne); font-size: 17px; }
.press-seal:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }

/* Quiet alternative for anyone who cannot sustain the hold:
   appears after two abandoned attempts, submits plainly. */
.ps-plain {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(200, 169, 81, 0.4);
  padding: 0 0 3px;
  color: var(--bone-dim, rgba(237, 231, 214, 0.6));
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.ps-plain:hover, .ps-plain:focus-visible { color: var(--champagne); border-bottom-color: var(--gold); outline: none; }

/* ---------- Skip link: hidden until keyboard focus, above the gate ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 110;
  background: var(--obsidian);
  border: 1px solid var(--gold);
  padding: 10px 18px;
  color: var(--champagne);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-64px);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  outline: none;
}
main:focus { outline: none; }

/* ---------- Stroke-engraved masthead: 'engraved, not printed' as physics ---------- */
.hero-title #masthead {
  display: block;
  margin: 0 auto;
  width: clamp(250px, 44vw, 580px);
  height: auto;
  overflow: visible;
}
#masthead .mh-ltr {
  stroke: var(--gold);
  stroke-width: 8;
}
#masthead .mh-bone { fill: var(--bone); }
#masthead .mh-gold { fill: var(--gold); }

/* ---------- Phone stills: scenes that carry film on desktop keep
   their atmosphere on phones as single frames (~30KB), not video.
   The silence gets the book and its smoke; the game gets the felt. ---------- */
@media (max-width: 767px) {
  #story {
    background:
      linear-gradient(rgba(10, 10, 12, 0.5), rgba(10, 10, 12, 0.82)),
      url('../assets/img/atmosphere-still.webp') center / cover no-repeat;
  }
  #table {
    background:
      linear-gradient(rgba(10, 10, 12, 0.25), rgba(10, 10, 12, 0.6)),
      url('../assets/img/dealer-still.webp') center / cover no-repeat;
  }
}
