/* Vantrel Reserve — concept landing page. Shares the Byson design system, with a champagne-gold accent.
   One 3D card is the centre of the page: a fixed WebGL stage sits behind the copy and a camera rig films the card
   through six shots, then the card docks into the membership section and the stage turns to paper around it. */
@font-face { font-family: Manrope; src: url('assets/manrope-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #0b0c10;
  --ink-2: #121419;
  --ink-3: #1b1e25;
  --on-ink: #f4f0e8;
  --on-ink-muted: #a7a9b1;
  --ink-line: #ffffff1f;
  --gold: #e2c48f;
  --gold-soft: #f1e2c6;
  --paper: #f3f0ea;
  --card: #fbf9f5;
  --text: #121318;
  --muted: #595c65;
  --line: #d8d2c6;
  --accent: var(--gold);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
  --header: 76px;
  --wrap: min(100% - clamp(32px, 7vw, 120px), 1440px);
  --dock: 0;
  color-scheme: dark;
  font: 16px/1.6 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; color: var(--on-ink); background: var(--ink); overflow-x: clip; }
body:has(.menu[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1; letter-spacing: -.045em; }
h2 { font-size: clamp(2.3rem, 5vw, 5.2rem); line-height: .95; letter-spacing: -.055em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.035em; color: var(--gold); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .6rem 1rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; }
.skip:focus { transform: none; }
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none; }

/* ---------- The 3D stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; background:
  radial-gradient(70vw 70vw at 72% 30%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 60%),
  color-mix(in srgb, var(--paper) calc(var(--dock) * 100%), var(--ink)); }
#stage3d { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: calc(1 - var(--dock));
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, #00000080 100%); }
main, .masthead, .footer, #hots, .ticker { position: relative; z-index: 3; }
.masthead { position: fixed; }
#hots { position: fixed; inset: 0; pointer-events: none; z-index: 4; }

/* ---------- Shared bits ---------- */
.eyebrow, .section-index { font: 600 .72rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.section-index { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); border-bottom: 1px solid var(--ink-line); color: var(--on-ink-muted); font-weight: 500; }
.lede { max-width: 40ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--on-ink-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 54px; padding: .8rem 1.5rem; border: 0; border-radius: 999px; overflow: hidden; isolation: isolate; background: var(--gold); color: var(--ink); font-weight: 750; font-size: .95rem; transition: transform .5s var(--ease); }
.button::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--on-ink); transform: translateY(101%); transition: transform .55s var(--ease); }
.button:hover::before, .button:focus-visible::before { transform: none; }
.button > span[aria-hidden] { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: .8rem; transition: transform .5s var(--ease); }
.button:hover > span[aria-hidden] { transform: rotate(45deg); }
.link-underline { font-weight: 700; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.masthead { top: 0; inset-inline: 0; z-index: 50; color: var(--on-ink); transition: top .5s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
.masthead::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--ink-line); transition: opacity .4s var(--ease); }
html.at-top .masthead::before { opacity: 0; }
html.header-hidden .masthead:not(:has(.menu[open], :focus-within)) { top: calc(var(--header) * -1 - 4px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header); }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .7rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.brand small { display: block; margin-top: .3rem; font: 500 .52rem/1.3 var(--mono); letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.brand-mark { width: 28px; height: 28px; color: var(--gold); transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-90deg); }
.primary-nav { display: flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: #ffffff0d; box-shadow: inset 0 0 0 1px var(--ink-line); }
.primary-nav a { padding: .5rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 650; color: var(--on-ink-muted); transition: color .3s, background-color .3s; }
.primary-nav a:hover { color: var(--on-ink); background: #ffffff10; }
.primary-nav a.is-active { color: var(--ink); background: var(--on-ink); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.header-cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .5rem .4rem 1.1rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .86rem; font-weight: 750; transition: background-color .3s; }
.header-cta i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--gold); font-style: normal; font-size: .8rem; transition: transform .5s var(--ease); }
.header-cta:hover { background: var(--on-ink); }
.header-cta:hover i { transform: rotate(45deg); }
.menu { display: none; }
.menu summary { position: relative; z-index: 2; display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: .4rem 1.1rem; list-style: none; border-radius: 999px; background: #ffffff0d; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: .86rem; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
.menu summary i { position: relative; width: 16px; height: 8px; }
.menu summary i::before, .menu summary i::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu summary i::before { top: 0; } .menu summary i::after { top: 100%; }
.menu[open] summary { background: var(--on-ink); color: var(--ink); box-shadow: none; }
.menu[open] summary i::before { top: 50%; transform: rotate(45deg); }
.menu[open] summary i::after { top: 50%; transform: rotate(-45deg); }
.menu-panel { position: fixed; inset: 0; z-index: -1; display: grid; align-content: start; gap: 2rem; overflow: auto; padding: calc(var(--header) + 3rem) clamp(16px, 5vw, 60px) 3rem; background: var(--ink); animation: menu-in .7s var(--ease) both; }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.menu-main a { display: flex; align-items: baseline; gap: 1rem; padding: .2rem 0; border-bottom: 1px solid var(--ink-line); font-size: clamp(2.4rem, 9vw, 4.5rem); font-weight: 650; letter-spacing: -.06em; line-height: 1.05; animation: rise .9s var(--ease) both; }
.menu-main a small { font: 500 .75rem/1 var(--mono); color: var(--gold); transform: translateY(-1.6em); }
.menu-side { display: grid; gap: .7rem; color: var(--on-ink-muted); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* ---------- Hero ---------- */
.hero-content { display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; padding-top: calc(var(--header) + clamp(2rem, 7vh, 5rem)); padding-bottom: 2rem; }
.hero-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; animation: rise 1.2s .2s var(--ease) both; }
.hero-clock { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); }
.hero-clock b { color: var(--on-ink); font-weight: 600; }
.hero-copy { max-width: min(720px, 58%); }
.hero h1 { font-size: clamp(3.2rem, 8.4vw, 9.5rem); line-height: .86; letter-spacing: -.07em; margin-bottom: clamp(1.4rem, 3vh, 2.2rem); }
.hero h1 em { padding-right: .08em; }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: inline-block; animation: line-up 1.4s var(--ease) both; animation-delay: .5s; }
.line:nth-child(2) > span { animation-delay: .62s; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero .lede { margin-bottom: 2rem; animation: rise 1.2s .8s var(--ease) both; }
.hero .actions { animation: rise 1.2s .95s var(--ease) both; }
.hero-jumps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2rem, 6vh, 4rem); border-top: 1px solid var(--ink-line); animation: rise 1.2s 1.1s var(--ease) both; }
.hero-jumps a { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem 1rem 0; font-weight: 650; letter-spacing: -.02em; }
.hero-jumps a + a { padding-left: 1.2rem; border-left: 1px solid var(--ink-line); }
.hero-jumps small { font: 500 .68rem/1 var(--mono); letter-spacing: .12em; color: var(--on-ink-muted); }
.hero-jumps a > span { position: absolute; right: 1rem; top: 1.1rem; color: var(--gold); transition: transform .5s var(--ease); }
.hero-jumps a::after { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.hero-jumps a:hover::after { transform: none; }
.hero-jumps a:hover > span { transform: translate(3px, -3px); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding-block: 1.05rem; background: var(--gold); color: var(--ink); transform: rotate(-1.2deg) scale(1.03); }
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; font-size: clamp(1.3rem, 2.6vw, 2.4rem); font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.ticker-track span::after { content: '✦'; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chapters ---------- */
.chapter { min-height: 150vh; display: flex; align-items: center; padding-block: 20vh; }
.chapter-copy { max-width: 470px; }
.chapter-copy.right { margin-left: auto; }
.chapter h2 { margin-bottom: 1.4rem; }
.chapter-text { color: var(--on-ink-muted); font-size: clamp(1rem, 1.2vw, 1.15rem); max-width: 44ch; margin-bottom: 1.8rem; }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-line); }
.specs li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--ink-line); font-weight: 600; }
.specs li span:last-child { font: 500 .8rem/1.6 var(--mono); letter-spacing: .06em; color: var(--gold); text-align: right; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink-line); }
.stats div { padding: 1.1rem 1rem 0 0; }
.stats div + div { padding-left: 1rem; border-left: 1px solid var(--ink-line); }
.stats b { display: block; font-size: clamp(2.2rem, 3.8vw, 3.6rem); font-weight: 650; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats div > span { font: 500 .72rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tiers li { display: flex; align-items: baseline; gap: 1.2rem; padding: 1rem 1.2rem; border-radius: 16px; background: #ffffff08; box-shadow: inset 0 0 0 1px var(--ink-line); backdrop-filter: blur(10px); }
.tiers b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--gold); min-width: 2.6ch; }
.tiers span { color: var(--on-ink-muted); }

/* ---------- Dock: the card lands here and becomes part of the page ---------- */
.dock { --tone: color-mix(in srgb, var(--text) calc(var(--dock) * 100%), var(--on-ink)); --tone-muted: color-mix(in srgb, var(--muted) calc(var(--dock) * 100%), var(--on-ink-muted)); --tone-line: color-mix(in srgb, var(--line) calc(var(--dock) * 100%), #ffffff1f);
  min-height: 115vh; display: flex; align-items: center; padding-block: 18vh; color: var(--tone); }
.dock .wrap { width: var(--wrap); }
.dock .section-index { color: var(--tone-muted); border-color: var(--tone-line); }
.dock .chapter-text { color: var(--tone-muted); }
.dock em { color: color-mix(in srgb, #8a6a2f calc(var(--dock) * 100%), var(--gold)); }
.dock h2 { margin-bottom: 1.4rem; }
.dock-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.invite label { display: block; margin-bottom: .5rem; font: 600 .72rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tone-muted); }
.invite-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.invite input { flex: 1 1 240px; min-width: 0; min-height: 54px; padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid var(--tone-line); background: color-mix(in srgb, var(--card) calc(var(--dock) * 100%), #ffffff08); color: var(--tone); }
.invite input::placeholder { color: var(--tone-muted); }
#form-status { margin-top: .8rem; font-size: .9rem; color: var(--tone-muted); }
#form-status.ok { color: #8a6a2f; }
.dock .button::before { background: var(--text); }
.dock .button:hover { color: var(--paper); }
.slot-wrap { display: grid; justify-items: center; gap: 1.2rem; }
.card-slot { width: min(520px, 100%); aspect-ratio: 1.586; border-radius: 4.2% / 6.6%;
  box-shadow: 0 60px 90px -40px rgb(40 30 10 / calc(var(--dock) * .55)), 0 24px 40px -24px rgb(0 0 0 / calc(var(--dock) * .45)); }
.card-slot img { width: 100%; height: 100%; border-radius: inherit; }
.slot-wrap figcaption { font: 500 .72rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tone-muted); opacity: var(--dock); }

/* ---------- Hotspots, pinned to points on the 3D card ---------- */
.hot { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.hot .dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px #e2c48f2e; }
.hot .dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.hot .stem { position: absolute; left: 0; width: 1px; height: 48px; }
.hot.u .stem { bottom: 6px; background: linear-gradient(#e2c48f10, var(--gold)); }
.hot.d .stem { top: 6px; background: linear-gradient(var(--gold), #e2c48f10); }
.hot .box { position: absolute; left: 0; width: 220px; transform: translateX(var(--bx, -50%)); padding: .7rem .9rem; border-radius: 14px; background: color-mix(in srgb, var(--ink) 78%, transparent); box-shadow: inset 0 0 0 1px var(--ink-line); backdrop-filter: blur(12px); }
.hot.u .box { bottom: 56px; }
.hot.d .box { top: 56px; }
.hot small { display: block; font: 500 .62rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hot b { display: block; font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.hot span { display: block; font-size: .8rem; color: var(--on-ink-muted); line-height: 1.45; }

/* ---------- Footer ---------- */
.footer { overflow: hidden; padding-top: clamp(4rem, 8vw, 7rem); background: var(--ink); color: var(--on-ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer-grid > div p { margin-top: 1.2rem; max-width: 36ch; color: var(--on-ink-muted); font-size: .92rem; }
.footer-grid > div p a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer nav { display: flex; flex-direction: column; }
.footer nav h2 { margin-bottom: .5rem; font: 600 .7rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer nav a { padding-block: .5rem; border-bottom: 1px solid var(--ink-line); color: var(--on-ink-muted); font-size: .92rem; transition: color .3s, padding .5s var(--ease); }
.footer nav a:hover { color: var(--on-ink); padding-left: .4rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--ink-line); color: var(--on-ink-muted); font-size: .82rem; }
.footer-base a:hover { color: var(--gold); }
.footer-wordmark { display: block; margin-top: 1rem; font-size: clamp(3rem, 22vw, 22rem); font-weight: 800; letter-spacing: -.08em; line-height: .78; text-align: center; white-space: nowrap; color: transparent; background: linear-gradient(180deg, #ffffff26, #ffffff05 85%); -webkit-background-clip: text; background-clip: text; transform: translateY(.08em); user-select: none; }

/* ---------- Reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .primary-nav, .header-cta { display: none; }
  .menu { display: block; }
  .hero-copy { max-width: none; }
  .hero-content { justify-content: flex-end; padding-top: 52vh; }
  .hero-top { position: absolute; top: calc(var(--header) + 1rem); left: 0; right: 0; width: var(--wrap); margin-inline: auto; }
  .hero-jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-jumps a:nth-child(3) { padding-left: 0; border-left: 0; }
  .chapter { min-height: 165vh; align-items: flex-end; padding-block: 60vh 10vh; }
  .chapter-copy, .chapter-copy.right { margin: 0; max-width: none; padding: 1.5rem; border-radius: var(--radius); background: color-mix(in srgb, var(--ink) 72%, transparent); box-shadow: inset 0 0 0 1px var(--ink-line); backdrop-filter: blur(16px); }
  .dock-grid { grid-template-columns: 1fr; }
  .slot-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hot .box { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Sliding text bars keep moving on phones */
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-name: marquee !important; animation-duration: 80s !important; animation-iteration-count: infinite !important; animation-play-state: running !important; } }
