:root {
  --bg: #0a0a0b;
  --bg-raised: #121214;
  --line: rgba(236, 230, 218, 0.12);
  --text: #ece6da;
  --muted: #9a958c;
  --brass: #c19a5b;
  --brass-soft: rgba(193, 154, 91, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.4vw, 58px); }
h3 { font-size: 26px; }
em { font-style: italic; color: var(--brass); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--brass-soft); }
.btn-solid { background: var(--brass); color: #0a0a0b; }
.btn-solid:hover { background: #d4ae6e; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.wordmark span { color: var(--brass); }
.nav-links { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 11px 20px; }

/* Scroll-scrubbed hero */
.scrub { position: relative; height: 520vh; }
.scrub-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrub-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,10,11,0.55) 0%, transparent 18%, transparent 78%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}
.scrub-copy {
  position: absolute;
  left: 50%;
  top: 16vh;
  transform: translate(-50%, 16px);
  width: min(720px, calc(100% - 2 * var(--gutter)));
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scrub-copy.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.scrub-copy .lede { color: var(--muted); letter-spacing: 0.08em; margin-top: 18px; }
.scrub-copy .btn { margin-top: 28px; }
.scrub-copy-side {
  left: var(--gutter);
  bottom: auto;
  top: 50%;
  transform: translate(0, calc(-50% + 16px));
  width: min(360px, 30vw);
  text-align: left;
}
.scrub-copy-side.is-on { transform: translate(0, -50%); }
.scrub-copy-side p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }

.scrub-progress {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: 1px;
  height: 140px;
  transform: translateY(-50%);
  background: var(--line);
}
.scrub-progress span {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--brass);
}
.scrub-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.4s;
}
.scrub-loading.is-done { opacity: 0; }

/* Sections */
.section { padding: clamp(96px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.atelier { border-top: 0; }
.display { max-width: 16ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose p { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.prose p:first-child { color: var(--text); font-size: 20px; }
.prose-sm { color: var(--muted); max-width: 42ch; margin-top: 24px; }

.steps {
  list-style: none;
  padding: 0;
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.steps li { padding: 36px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { display: block; font-family: var(--serif); font-size: 18px; color: var(--brass); margin-bottom: 28px; }
.steps p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* Form */
.form { display: grid; gap: 22px; }
.form label { display: grid; gap: 8px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea {
  font: inherit;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--brass); }
.form .btn { justify-self: start; margin-top: 8px; }
.form-note { margin: 0; min-height: 1.5em; color: var(--brass); font-size: 14px; }
/* Off-screen spam trap on the sign-up form: people never see it, bots fill it in and Netlify drops those entries */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .wordmark { font-size: 16px; color: var(--text); }
/* Policy links under the footer, and the way home from the policy pages */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-links a, .footer-home { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-home:hover { color: var(--brass); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .scrub-copy-side {
    left: 50%;
    top: auto;
    bottom: 10vh;
    width: calc(100% - 2 * var(--gutter));
    text-align: center;
    transform: translate(-50%, 16px);
  }
  .scrub-copy-side.is-on { transform: translate(-50%, 0); }
  .scrub-progress { display: none; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 16px; letter-spacing: 0.14em; white-space: nowrap; }
  .nav-cta { padding: 9px 14px; font-size: 10px; letter-spacing: 0.14em; white-space: nowrap; }
  .hide-sm { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0 0; border-left: 0; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrub-copy, .scrub-copy-side { transition: none; }
}

/* ---------- Oxblood accents (from the Sterling Sabre logo) ---------- */
:root {
  --oxblood: #7a1d2b;
  --oxblood-deep: #3a0e16;
  --oxblood-dark: #1a080c;
  --oxblood-glow: rgba(122, 29, 43, 0.35);
}
/* section dividers: oxblood fading in and out around a brass centre */
.section { border-top: 0; position: relative; }
.section:not(.atelier)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--oxblood) 20%, var(--brass) 50%, var(--oxblood) 80%, transparent);
  opacity: 0.8;
}
/* warm glow behind the atelier copy */
.atelier { background: radial-gradient(ellipse 75% 95% at 85% 40%, rgba(122,29,43,0.5), transparent 72%); }
/* process: deep oxblood band, numerals on oxblood medallions */
.process { background: linear-gradient(180deg, #2e0d14, #1c080d 70%, #120609); }
.steps { border-top-color: rgba(122, 29, 43, 0.6); }
.steps li + li { border-left-color: rgba(122, 29, 43, 0.45); }
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9a2a3a, var(--oxblood-deep));
  box-shadow: inset 0 0 0 1px rgba(193, 154, 91, 0.55), 0 6px 18px rgba(0, 0, 0, 0.5);
}
/* buttons */
.btn-ghost:hover { background: var(--oxblood); border-color: var(--brass); }
.btn-solid:hover { background: #d4ae6e; box-shadow: 0 0 0 4px var(--oxblood-glow); }
/* scroll progress */
.scrub-progress span { background: linear-gradient(var(--oxblood), var(--brass)); }
/* commission: oxblood panel so the call to action stands out */
.circle { background: radial-gradient(ellipse 90% 120% at 15% 50%, #4a1420, var(--oxblood-dark) 60%, var(--bg)); }
.form input, .form textarea { border-bottom-color: rgba(193, 154, 91, 0.28); }
/* footer */
.footer { border-top: 1px solid rgba(122, 29, 43, 0.6); background: var(--oxblood-dark); }

/* ---------- Opening headline sits over the spinning SS ---------- */
.scrub-copy:not(.scrub-copy-side) :is(h1, .eyebrow, .lede) { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }

/* ---------- Spinning 3D SS monogram (rendered by js/ss-spin.js) ---------- */
.ss-spin { display: block; pointer-events: none; }
.ss-spin canvas { display: block; }
/* behind the opening headline, faint enough that the small text over it stays readable */
.ss-spot-hero { position: absolute; left: 50%; top: 50%; width: min(440px, 82vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; opacity: 0.22; }
/* beside the commission form */
.ss-spot-commission { width: 230px; aspect-ratio: 1; margin-top: 24px; margin-left: -16px; }
/* footer and nav, next to the wordmark */
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.ss-spot-footer { width: 44px; height: 44px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.ss-spot-nav { width: 40px; height: 40px; margin: -8px 0; }
@media (max-width: 560px) { .ss-spot-nav { width: 30px; height: 30px; } .wordmark { gap: 6px; } .ss-spot-commission { width: 170px; } }

/* ---------- Gloss & depth: polished gold, lacquered oxblood, layered light ---------- */
:root {
  --gold-polish: linear-gradient(160deg, #f7e6b4 0%, #d8b06a 22%, #a87a35 48%, #e2c07d 70%, #fff1c9 86%, #b58944 100%);
  --gold-text: linear-gradient(175deg, #fbecc0 10%, #d6ad65 45%, #9c7031 70%, #e9c98a 95%);
  --lacquer-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 38%);
}
/* page background has a little light falling on it instead of flat black */
body { background: radial-gradient(ellipse 120% 70% at 50% -10%, #17131a 0%, var(--bg) 60%) fixed, var(--bg); }

/* gold type: polished metal instead of a flat fill */
em, .eyebrow, .wordmark > span:last-child {
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* text-shadow would paint over gradient text, so the gold words get their depth from a drop shadow */
em { text-shadow: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)); }
.step-num { color: #f3dca0; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
h1, h2 { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.55); }

/* buttons: polished gold bar and glass ghost */
.btn { position: relative; overflow: hidden; border-radius: 2px; transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s; }
.btn-solid {
  background: var(--gold-polish); border-color: #e6c886; color: #1a0f05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 0 rgba(90, 55, 15, 0.45), 0 10px 26px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(122, 29, 43, 0.35);
}
.btn-solid:hover { background: var(--gold-polish); filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(90, 55, 15, 0.45), 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 0 4px var(--oxblood-glow); }
.btn-solid::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-18deg); transition: left 0.7s ease;
}
.btn-solid:hover::after { left: 130%; }
.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}
/* ghost buttons fill with the same polished gold as the solid ones on hover */
.btn-ghost:hover {
  background: var(--gold-polish); border-color: #e6c886; color: #1a0f05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 0 rgba(90, 55, 15, 0.45), 0 10px 26px rgba(0, 0, 0, 0.55);
}

/* nav: smoked glass with a bright top edge and a gold hairline underneath */
.nav.is-solid {
  background: linear-gradient(180deg, rgba(30, 24, 28, 0.82), rgba(10, 10, 11, 0.9));
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(193, 154, 91, 0.25), 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* section dividers: a bright glint in the middle */
.section:not(.atelier)::before { opacity: 1; box-shadow: 0 0 14px rgba(193, 154, 91, 0.35); }

/* atelier: deeper glow with a soft shadow pool */
.atelier {
  background:
    radial-gradient(ellipse 45% 60% at 82% 38%, rgba(190, 60, 75, 0.28), transparent 70%),
    radial-gradient(ellipse 75% 95% at 85% 40%, rgba(122, 29, 43, 0.55), transparent 72%),
    radial-gradient(ellipse 60% 80% at 10% 100%, rgba(0, 0, 0, 0.6), transparent 70%);
}

/* process: lacquered band — sheen on top, shadow at the edges */
.process {
  background: var(--lacquer-sheen), radial-gradient(ellipse 80% 60% at 50% 0%, rgba(160, 40, 58, 0.45), transparent 70%), linear-gradient(180deg, #2e0d14, #1c080d 70%, #120609);
  box-shadow: inset 0 40px 60px -40px rgba(0, 0, 0, 0.85), inset 0 -40px 60px -40px rgba(0, 0, 0, 0.9);
}
.steps li { position: relative; }
.step-num {
  background: radial-gradient(circle at 34% 26%, #ffd2d8 0%, #c2475a 9%, #8e2235 32%, #4a1019 70%, #26070d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 180, 0.65), inset 0 -6px 10px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(193, 154, 91, 0.18), 0 10px 22px rgba(0, 0, 0, 0.6);
}

/* commission: lacquered panel with a diagonal reflection */
.circle { overflow: hidden; background: var(--lacquer-sheen), radial-gradient(ellipse 90% 120% at 15% 50%, #5a1826, var(--oxblood-dark) 60%, var(--bg)); }
.circle::after {
  content: ""; position: absolute; inset: -20% -10%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.045) 46%, rgba(255, 255, 255, 0.015) 52%, transparent 60%);
}
.circle > .wrap { position: relative; z-index: 1; }
.form input:focus, .form textarea:focus { box-shadow: 0 1px 0 rgba(193, 154, 91, 0.9), 0 10px 18px -12px rgba(193, 154, 91, 0.6); }

/* footer: deep lacquer with a lit top edge */
.footer { background: linear-gradient(180deg, #2a0b12, var(--oxblood-dark) 55%, #0d0406); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

/* ---------- Piano-black gloss: black reads as polished lacquer, not flat paint ---------- */
:root {
  --piano:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 18%),
    linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.055) 34%, rgba(255, 255, 255, 0.015) 41%, transparent 47%, transparent 66%, rgba(255, 255, 255, 0.035) 72%, transparent 77%),
    radial-gradient(ellipse 110% 80% at 30% -10%, #232027 0%, #0c0b0e 48%, #030304 100%);
}
body { background: var(--piano) fixed, #030304; }
/* nav: glossy black bar with a lit top edge and a reflection along it */
.nav.is-solid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 45%, rgba(0, 0, 0, 0) 46%),
    linear-gradient(180deg, rgba(26, 24, 28, 0.9), rgba(4, 4, 5, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 0 rgba(193, 154, 91, 0.3), 0 14px 34px rgba(0, 0, 0, 0.65);
}
/* atelier: lacquer reflections over the black, under the oxblood glow */
.atelier {
  background:
    radial-gradient(ellipse 45% 60% at 82% 38%, rgba(190, 60, 75, 0.28), transparent 70%),
    radial-gradient(ellipse 75% 95% at 85% 40%, rgba(122, 29, 43, 0.55), transparent 72%),
    linear-gradient(105deg, transparent 8%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.015) 27%, transparent 33%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 25%);
  box-shadow: inset 0 -60px 80px -50px rgba(0, 0, 0, 0.9);
}
/* hero: deeper blacks with a soft gloss at the top of the frame */
.scrub-vignette {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 14%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.55) 0%, transparent 18%, transparent 78%, #030304 100%),
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
}

/* ---------- Sabre Circle (members sign-up) ---------- */
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 42ch; }
.perks li { position: relative; padding-left: 22px; color: var(--text); }
.perks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold-polish); box-shadow: 0 0 6px rgba(230, 200, 130, 0.5); }
.form-fine { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Phone header: SS at the left edge, name centred between it and the Join button ---------- */
/* the SS box is sized so the monogram itself matches the Join button's height */
@media (max-width: 900px) {
  .nav { gap: 0; }
  .nav .wordmark { flex: 1; position: relative; justify-content: center; padding-left: 38px; }
  .nav .ss-spot-nav { position: absolute; left: -6px; top: 50%; width: 50px; height: 50px; transform: translateY(-50%); margin: 0; }
}

/* ---------- Atelier: buttons under the story ---------- */
.prose-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Gold buttons: the shine sweeps across on its own every few seconds to draw the eye, and again on hover */
@keyframes btn-shine { 0%, 66% { left: -60%; } 100% { left: 130%; } }
@keyframes btn-shine-once { from { left: -60%; } to { left: 130%; } }
.btn-solid::after { transition: none; animation: btn-shine 2.4s ease-in-out infinite; }
.btn-solid:hover::after { animation: btn-shine-once 0.7s ease forwards; }
.nav-cta::after { animation-delay: 1.2s; }
.btn-solid:disabled::after { animation: none; }
