/* =========================================================
   OffMarket — Design System
   Black-dominant canvas, silver type, gold as the only accent.
   ========================================================= */

:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --charcoal: #121212;
  --charcoal-2: #171717;

  --silver-bright: #ece9e3;
  --silver: #c7c5c0;
  --silver-mid: #b4b4b4;
  --silver-grey: #8a8a8a;
  --silver-faint: #5c5c5c;

  --gold-1: #c6a052;
  --gold-2: #d4af37;
  --gold-gradient: linear-gradient(120deg, var(--gold-1), var(--gold-2));
  --gold-dark: #7a5c1c; /* AA-safe gold for text on light sections */

  --ivory: #f5f2ea;
  --ink: #14120d; /* near-black text for light sections */

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui,
    "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 400ms;
  --dur-med: 700ms;
  --dur-slow: 1100ms;

  --gutter: clamp(24px, 6vw, 96px);
  --section-pad: clamp(72px, 12vw, 160px);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--silver);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Unified grade so sourced photography reads as one collection */
img.graded {
  filter: sepia(9%) saturate(84%) brightness(0.93) contrast(1.06);
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.08;
  color: var(--silver-bright);
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--black);
  color: var(--gold-2);
  padding: 12px 20px;
  z-index: 999;
  border: 1px solid var(--gold-2);
  transform: translateY(-76px);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

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

/* ---------- Charcoal noise texture ---------- */
.texture {
  position: relative;
  background: var(--charcoal);
}
.texture--black {
  background: var(--black);
}
.texture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
.texture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.035), transparent 60%);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
}

.section-inner {
  padding-block: var(--section-pad);
}

.hairline {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
  border: none;
}

.hairline--left {
  width: 64px;
  height: 1px;
  background: var(--gold-gradient);
  border: none;
  margin-bottom: 28px;
}

/* ---------- Corner-frame: signature gold viewfinder marks, repeated every section ---------- */
.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
}
.corner-frame::before {
  top: 88px;
  left: var(--gutter);
  border-top: 1px solid var(--gold-2);
  border-left: 1px solid var(--gold-2);
}
.corner-frame::after {
  bottom: 32px;
  right: var(--gutter);
  border-bottom: 1px solid var(--gold-2);
  border-right: 1px solid var(--gold-2);
}
.corner-frame--light::before,
.corner-frame--light::after {
  border-color: var(--gold-dark);
  opacity: 0.6;
}
.hero.corner-frame::before {
  top: 108px;
}
@media (max-width: 640px) {
  .corner-frame::before,
  .corner-frame::after {
    width: 15px;
    height: 15px;
  }
  .corner-frame::before {
    top: 68px;
  }
  .corner-frame::after {
    bottom: 20px;
  }
  .hero.corner-frame::before {
    top: 90px;
  }
}

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 18px;
}

.headline-lg {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.mission-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold-gradient);
  padding: 16px 32px;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  box-shadow: 0 8px 30px -10px rgba(212, 175, 55, 0.5);
}
.btn-gold:hover,
.btn-gold:focus-visible {
  transform: scale(1.015) translateY(-1px);
  box-shadow: 0 12px 40px -8px rgba(212, 175, 55, 0.65);
}
.btn-gold svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast) var(--ease);
}
.btn-gold:hover svg {
  transform: translateX(3px);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  transition: background var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease);
}
.nav.is-scrolled {
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.nav__mark {
  display: flex;
  align-items: center;
  gap: 11px;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__mark:hover {
  transform: scale(1.03);
}
.nav__mark img {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}
.nav__wordmark {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.3px;
  color: var(--silver-bright);
  font-weight: 700;
}
.nav__wordmark em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 9px 20px;
  border-radius: 2px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__cta:hover {
  background: var(--gold-2);
  color: var(--black);
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero__media {
  position: absolute;
  inset: -6% -2%;
  z-index: 0;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 800px at 4% 100%, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.74) 42%, rgba(0, 0, 0, 0.32) 72%, transparent 100%),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.5) 32%,
      rgba(0, 0, 0, 0.15) 58%,
      rgba(0, 0, 0, 0.55) 100%
    );
  z-index: 1;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 22vw rgba(0, 0, 0, 0.75);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(56px, 10vh, 120px);
  max-width: 900px;
}
.hero__eyebrow-space {
  height: 4px;
}
.hero__headline {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  color: var(--silver-bright);
}
.hero__headline span {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero.is-loaded .hero__headline span {
  opacity: 1;
  transform: translateY(0);
}
.hero__mission {
  margin-top: 26px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease) 0.8s, transform 1s var(--ease) 0.8s;
}
.hero.is-loaded .hero__mission {
  opacity: 1;
  transform: translateY(0);
}
.hero__cta {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease) 1.05s, transform 1s var(--ease) 1.05s;
}
.hero.is-loaded .hero__cta {
  opacity: 1;
  transform: translateY(0);
}
.hero__scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--gold-2));
  opacity: 0.7;
}
.hero__scroll-cue::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  animation: cue-drop 2.4s var(--ease) infinite;
}
@keyframes cue-drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(36px);
    opacity: 0;
  }
}

/* ---------- Problem section: three-facet editorial breakdown ---------- */
.problem-facets {
  padding-block: var(--section-pad);
}
.problem-facets__head {
  max-width: 680px;
  margin-bottom: clamp(56px, 9vw, 104px);
}
.problem-facets__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) {
  .problem-facets__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}
.facet {
  position: relative;
  transition-delay: calc(var(--i, 0) * 130ms);
}
@media (min-width: 900px) {
  .facet {
    padding-inline: 44px;
  }
  .facet:first-child {
    padding-left: 0;
  }
  .facet:last-child {
    padding-right: 0;
  }
  .facet + .facet {
    border-left: 1px solid rgba(212, 175, 55, 0.16);
  }
}
.facet__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1;
  margin-bottom: 22px;
  color: rgba(212, 175, 55, 0.38);
  transition: color 320ms var(--ease);
}
@supports (-webkit-text-stroke: 1px transparent) {
  .facet__num {
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.7);
  }
}
.facet:hover .facet__num {
  color: var(--gold-2);
  -webkit-text-stroke: 0;
}
.facet__title {
  font-size: clamp(1.3rem, 2.1vw, 1.55rem);
  color: var(--ivory);
  margin-bottom: 14px;
  line-height: 1.28;
}
.facet__copy {
  color: var(--silver-mid);
  font-size: 16px;
  line-height: 1.65;
  max-width: 38ch;
}

/* ---------- The Principle: answers "what stops someone screenshotting it" ---------- */
.principle {
  background: var(--charcoal-2);
  padding-block: var(--section-pad);
  text-align: center;
}
.principle__inner {
  max-width: 720px;
  margin-inline: auto;
}
.principle__copy {
  margin-top: 22px;
  margin-inline: auto;
  max-width: 52ch;
  color: var(--silver-mid);
  font-size: 17px;
  line-height: 1.65;
}
.principle__facts {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
}
@media (max-width: 640px) {
  .principle__facts {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}
.principle__facts span {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-2);
}
.principle__facts span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
}

/* ---------- How it works (sticky mechanic) ---------- */
.how {
  background: var(--black);
  padding-top: var(--section-pad);
  scroll-margin-top: 70px;
}
.how__intro {
  padding-inline: var(--gutter);
  margin-bottom: clamp(40px, 8vh, 96px);
}
.how__stage {
  display: flex;
  flex-direction: column;
}
@media (min-width: 980px) {
  .how__stage {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.how__steps {
  order: 2;
  position: relative;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 14vh, 340px);
  padding-top: 32px;
  padding-bottom: clamp(40px, 8vh, 100px);
}
@media (min-width: 980px) {
  .how__steps {
    order: initial;
    gap: clamp(120px, 30vh, 340px);
    padding-top: 0;
  }
}
/* Gold spine: connects the four steps down the left edge, dots light up as each step activates */
.how__steps::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) - 26px);
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.4) 6%, rgba(212, 175, 55, 0.4) 94%, transparent);
}
.how__step {
  position: relative;
  max-width: 440px;
  opacity: 0.28;
  transition: opacity var(--dur-med) var(--ease);
}
.how__step.is-active {
  opacity: 1;
}
.how__step::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--black);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.how__step.is-active::before {
  background: var(--gold-2);
  border-color: var(--gold-2);
  box-shadow: 0 0 14px 2px rgba(212, 175, 55, 0.6);
}
@media (max-width: 640px) {
  .how__steps::before,
  .how__step::before {
    display: none;
  }
}
.how__step-num {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  display: block;
}
.how__step h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  max-width: 20ch;
}

.how__visual-wrap {
  order: 1;
  position: relative;
}
@media (min-width: 980px) {
  .how__visual-wrap {
    order: initial;
  }
}
.how__visual {
  position: static;
  height: auto;
  padding-block: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 980px) {
  .how__visual {
    position: sticky;
    top: 0;
    height: 100svh;
    padding-block: 0;
  }
}
.how__stage-frame {
  position: relative;
  width: min(300px, 62vw);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 4px;
  background: linear-gradient(160deg, #0d0d0d, #060606);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
}
@media (min-width: 980px) {
  .how__stage-frame {
    width: min(420px, 78vw);
  }
}

.code-display {
  display: flex;
  gap: 10px;
  z-index: 4;
  perspective: 260px;
}
.code-digit {
  width: clamp(30px, 7vw, 44px);
  height: clamp(46px, 10vw, 64px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  color: transparent;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transform-origin: 50% 100%;
  transform: rotateX(-85deg);
  position: relative;
}
.code-digit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.06);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
/* Mechanical snap: each digit flips into place like a counter, not a fade */
.how__stage-frame.step-1 .code-digit {
  animation: digit-snap 0.46s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.how__stage-frame.step-1 .code-digit:nth-child(1) { animation-delay: 0.02s; }
.how__stage-frame.step-1 .code-digit:nth-child(2) { animation-delay: 0.09s; }
.how__stage-frame.step-1 .code-digit:nth-child(3) { animation-delay: 0.16s; }
.how__stage-frame.step-1 .code-digit:nth-child(4) { animation-delay: 0.23s; }
.how__stage-frame.step-1 .code-digit:nth-child(5) { animation-delay: 0.30s; }
.how__stage-frame.step-1 .code-digit:nth-child(6) { animation-delay: 0.37s; }
@keyframes digit-snap {
  0% {
    opacity: 0;
    transform: rotateX(-85deg);
  }
  55% {
    opacity: 1;
    transform: rotateX(0deg);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}
/* Settled state once assembled — holds through step 2, no replay */
.how__stage-frame.step-2 .code-digit {
  opacity: 1;
  transform: rotateX(0deg);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.how__stage-frame.step-3 .code-digit,
.how__stage-frame.step-4 .code-digit {
  opacity: 0;
  transform: rotateX(85deg);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.how__stage-frame.step-1 .code-digit::before {
  opacity: 1;
}

.code-caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver-grey);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.how__stage-frame.step-1 .code-caption,
.how__stage-frame.step-2 .code-caption {
  opacity: 1;
}

.share-lines {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.how__stage-frame.step-2 .share-lines {
  opacity: 1;
}
.share-lines svg {
  width: 100%;
  height: 100%;
}
.share-lines circle,
.share-lines line {
  stroke: rgba(212, 175, 55, 0.55);
}
.share-lines .node {
  fill: var(--gold-2);
}
.share-lines line {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.9s var(--ease);
}
.how__stage-frame.step-2 .share-lines line {
  stroke-dashoffset: 0;
}
.share-lines line:nth-child(1) {
  transition-delay: 0.05s;
}
.share-lines line:nth-child(2) {
  transition-delay: 0.18s;
}
.share-lines line:nth-child(3) {
  transition-delay: 0.31s;
}

.unlock-portfolio {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.unlock-portfolio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}
.unlock-portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Vault doors: the "unlock" is a physical opening, not a fade */
.vault-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 3;
  background: linear-gradient(160deg, #141414, #070707);
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}
.vault-door--left {
  left: 0;
  border-right: 1px solid rgba(212, 175, 55, 0.4);
}
.vault-door--right {
  right: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.4);
}
.how__stage-frame.step-3 .vault-door--left,
.how__stage-frame.step-4 .vault-door--left {
  transform: translateX(-100%);
}
.how__stage-frame.step-3 .vault-door--right,
.how__stage-frame.step-4 .vault-door--right {
  transform: translateX(100%);
}
.vault-flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.6), transparent 62%);
  opacity: 0;
}
.how__stage-frame.step-3 .vault-flash {
  animation: vault-flash 0.85s ease-out;
}
@keyframes vault-flash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

.track-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.3s;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
}
.how__stage-frame.step-4 .track-overlay {
  opacity: 1;
}
.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--silver-bright);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 6px;
}
.track-row span:last-child {
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}

.how__lock-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 8;
  width: 24px;
  height: 24px;
  color: var(--gold-2);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  transform: scale(0.8) rotate(-8deg);
}
.how__stage-frame.step-2 .how__lock-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
/* The shackle physically pops open first — the icon only fades once you've seen it release */
.how__stage-frame.step-3 .how__lock-icon,
.how__stage-frame.step-4 .how__lock-icon {
  opacity: 0;
  transform: scale(1) rotate(0deg) translateY(-2px);
  transition: opacity 0.4s var(--ease) 0.4s, transform 0.4s var(--ease) 0.4s;
}
.lock-shackle {
  transform-origin: 16px 10px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.how__stage-frame.step-3 .lock-shackle,
.how__stage-frame.step-4 .lock-shackle {
  transform: rotate(-40deg) translate(-1.5px, -1px);
}

/* ---------- Portfolio gallery (the one light chapter) ---------- */
.portfolio {
  padding-block: var(--section-pad);
  background: var(--ivory);
}
.portfolio__head {
  padding-inline: var(--gutter);
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.portfolio__head .eyebrow {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--gold-dark);
}
.portfolio__head h2 {
  color: var(--ink);
}
.portfolio__rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}
.portfolio__rail::-webkit-scrollbar {
  height: 6px;
}
.portfolio__rail::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 6px;
}
.portfolio__card {
  position: relative;
  flex: 0 0 auto;
  width: min(78vw, 460px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 2px;
  outline: 1px solid transparent;
  outline-offset: -1px;
  box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  transition: outline-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.portfolio__card:hover {
  outline-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 18px 40px -14px rgba(212, 175, 55, 0.35);
}
.portfolio__card picture {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.portfolio__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 1.2s var(--ease);
}
.portfolio__card:hover img {
  transform: scale(1.2);
}
.portfolio__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 45%);
}
.portfolio__caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
}
.portfolio__caption .suburb {
  color: var(--silver-bright);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.portfolio__caption .descriptor {
  color: var(--silver-grey);
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Split: agents / buyers ---------- */
.split {
  padding-top: var(--section-pad);
  padding-bottom: clamp(48px, 8vw, 100px);
}
.split__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(212, 175, 55, 0.32);
}
@media (min-width: 860px) {
  .split__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.split__col {
  background: var(--charcoal);
  padding: clamp(36px, 5vw, 64px);
  position: relative;
}
.split__icon {
  width: 22px;
  height: 22px;
  color: var(--gold-2);
  opacity: 0.75;
  margin-bottom: 18px;
}
.split__col .eyebrow {
  margin-bottom: 22px;
}
.split__line {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--silver-bright);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  max-width: 26ch;
}

/* ---------- Footer CTA ---------- */
.footer-cta {
  padding-top: clamp(60px, 10vw, 110px);
  padding-bottom: clamp(90px, 16vw, 180px);
  text-align: center;
  scroll-margin-top: 70px;
  overflow: hidden;
}
/* The brand mark, demoted from the hero: a faint watermark behind the closing invitation */
.footer-cta__mark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.footer-cta__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-cta__rays line {
  stroke: var(--gold-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.footer-cta__ring {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 1.5;
  opacity: 0.14;
  vector-effect: non-scaling-stroke;
  transform-origin: 600px 500px;
  animation: footer-mark-spin 220s linear infinite;
}
@keyframes footer-mark-spin {
  to {
    transform: rotate(360deg);
  }
}
.footer-cta__m {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.16;
  vector-effect: non-scaling-stroke;
}
.footer-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}
.footer-cta h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.footer-cta p {
  margin-top: 18px;
  color: var(--silver-mid);
  font-size: 17px;
}
.footer-cta .btn-gold {
  margin-top: 36px;
}
.footer-cta__founders {
  margin-top: 64px;
  font-size: 13px;
  color: var(--silver-grey);
  letter-spacing: 0.3px;
}
.footer-cta__founders strong {
  color: var(--silver-grey);
  font-weight: 500;
}

/* ---------- Waitlist page ---------- */
.waitlist {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding-block: calc(var(--section-pad) + 40px) var(--section-pad);
  overflow: hidden;
}
.waitlist__mark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.waitlist__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.waitlist__rays line {
  stroke: var(--gold-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.waitlist__ring {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 1.5;
  opacity: 0.16;
  vector-effect: non-scaling-stroke;
  transform-origin: 600px 500px;
  animation: footer-mark-spin 220s linear infinite;
}
.waitlist__m {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.18;
  vector-effect: non-scaling-stroke;
}
.waitlist__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 22vw rgba(0, 0, 0, 0.8);
}
.waitlist__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) {
  .waitlist__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
  }
}
.waitlist__headline {
  margin-top: 18px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  max-width: 14ch;
}
.waitlist__sub {
  margin-top: 22px;
  max-width: 44ch;
  color: var(--silver-mid);
  font-size: 17px;
  line-height: 1.65;
}
/* Form panel */
.waitlist__panel {
  position: relative;
  background: var(--charcoal);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 44px);
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.waitlist-form[hidden] {
  display: none;
}
.waitlist-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.waitlist-form__field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver-grey);
}
.waitlist-form__field input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 8px 2px 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--silver-bright);
  transition: border-color var(--dur-fast) var(--ease);
}
.waitlist-form__field input::placeholder {
  color: var(--silver-faint);
}
.waitlist-form__field input:focus {
  outline: none;
  border-bottom-color: var(--gold-2);
}
.waitlist-form__submit {
  margin-top: 8px;
  justify-content: center;
}
.waitlist-form__submit.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.waitlist-form__note {
  margin-top: -6px;
  font-size: 12.5px;
  color: var(--silver-grey);
  line-height: 1.5;
}
.waitlist-form__error {
  font-size: 13px;
  color: #d98a6b;
}
.waitlist-success {
  text-align: center;
  padding-block: 24px;
}
.waitlist-success__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--black);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.waitlist-success h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.waitlist-success p {
  margin-top: 12px;
  color: var(--silver-mid);
  font-size: 16px;
  max-width: 36ch;
  margin-inline: auto;
}

.site-footer {
  padding: 28px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--silver-grey);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-footer__link {
  color: var(--silver-grey);
  transition: color var(--dur-fast) var(--ease);
}
.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--gold-2);
}

/* ---------- About page: story intro ---------- */
.story-intro {
  position: relative;
  padding-block: calc(var(--section-pad) + 60px) var(--section-pad);
  background: var(--black);
  overflow: hidden;
}
/* Gold linework: concentric arcs + hairlines fanning off-canvas right, on pure black */
.story-intro__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--black);
}
.story-intro__lines {
  width: 100%;
  height: 100%;
  display: block;
}
.story-intro__lines circle,
.story-intro__lines line {
  fill: none;
  stroke: var(--gold-2);
  vector-effect: non-scaling-stroke;
}
.story-intro__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.74) 46%,
    rgba(0, 0, 0, 0.42) 72%,
    rgba(0, 0, 0, 0.12) 100%
  );
}
.story-intro > .container {
  position: relative;
  z-index: 2;
}
.story-intro .eyebrow,
.story-intro h1,
.story-intro .story-intro__lines {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.story-intro h1 {
  max-width: 18ch;
}
.story-intro__lines {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.story-intro__lines p {
  color: var(--silver-mid);
  font-size: 17px;
  max-width: 46ch;
}

/* ---------- About page: founders ---------- */
.founders {
  padding-block: var(--section-pad);
}
.founders__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(212, 175, 55, 0.32);
}
@media (min-width: 760px) {
  .founders__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.founder-card {
  background: var(--charcoal);
  padding: clamp(36px, 5vw, 56px);
}
.founder-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  background: var(--gold-gradient);
  margin-bottom: 22px;
}
.founder-card__name {
  font-size: 1.4rem;
  color: var(--silver-bright);
}
.founder-card__role {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-2);
}
.founder-card__line {
  margin-top: 16px;
  color: var(--silver-mid);
  font-size: 15px;
  max-width: 34ch;
}
.founders__closing {
  margin-top: 48px;
  padding-inline: var(--gutter);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-2);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__headline span,
  .hero__mission,
  .hero__cta,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .how__step {
    opacity: 1 !important;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .nav__cta {
    padding: 7px 14px;
    font-size: 11px;
  }
  .how__steps {
    gap: 90px;
  }
}
