@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --void: #05070a;
  --ink: #0b0f15;
  --chrome: #c9d6e3;
  --ice: #8fc3ee;
  --gold: #d4ae5c;
  --gold-hi: #f6dc9a;
  --gold-lo: #8a6a26;
  --text: #ece6da;
  --muted: #9aa3ad;
  --line: rgba(212, 174, 92, .28);
  --display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--text); font: 400 17px/1.65 var(--body); overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
.defs { position: absolute; }
::selection { background: var(--gold); color: var(--void); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
/* No text caret or I-beam outside fields; the hand on everything clickable */
html, body { caret-color: transparent; -webkit-tap-highlight-color: transparent; }
input, textarea, select, [contenteditable] { caret-color: auto; }
a[href], button, [role="button"], label[for], summary, select { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
button, .btn-gold, .btn-ghost, .topnav, .mark, .skip-link { -webkit-user-select: none; user-select: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--void); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.eyebrow { margin: 0 0 18px; font: 600 12px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.02; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(40px, 6vw, 84px); }

/* Buttons */
.btn-gold, .btn-ghost { font: 600 13px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.btn-gold { padding: 17px 28px; color: var(--void); background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); border: 0; box-shadow: 0 0 0 1px rgba(246,220,154,.4), 0 14px 40px -12px rgba(212,174,92,.6); transition: transform .3s, box-shadow .3s; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(246,220,154,.7), 0 22px 50px -12px rgba(212,174,92,.8); }
.btn-ghost { padding: 12px 18px; color: var(--text); background: rgba(5,7,10,.45); border: 1px solid rgba(236,230,218,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .3s, color .3s; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.intro[hidden] { display: none; }
.intro.is-leaving { opacity: 0; visibility: hidden; }
.intro__video { width: 100%; height: 100%; object-fit: cover; }
.intro__controls { position: absolute; right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.intro__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.intro__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.sound-icon { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.sound-icon::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .2s; }
[aria-pressed="true"] .sound-icon::after { opacity: 1; }

/* Top bar */
.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); background: linear-gradient(180deg, rgba(5,7,10,.75), rgba(5,7,10,0)); transition: background .4s; }
.topbar.is-solid { background: rgba(5,7,10,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212,174,92,.12); }
.mark svg { width: 84px; height: 28px; }
.topnav { display: flex; gap: 28px; margin-left: auto; }
.topnav a { font: 600 12px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 14px 0; transition: color .3s; }
.topnav a:hover { color: var(--gold-hi); }
.replay, .motion { padding: 10px 14px; font-size: 11px; }
.motion { margin-left: 4px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__loop, .hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__still { z-index: -3; }
.hero__loop { opacity: 0; transition: opacity 1.2s; }
.hero__loop.is-playing { opacity: 1; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(5,7,10,.92) 0%, rgba(5,7,10,.7) 30%, rgba(5,7,10,0) 58%),
  linear-gradient(0deg, rgba(5,7,10,.96) 0%, rgba(5,7,10,.55) 30%, rgba(5,7,10,0) 55%),
  radial-gradient(120% 70% at 50% 110%, rgba(5,7,10,.9), transparent 60%); }
.hero__copy { padding: 0 var(--gutter) clamp(72px, 12vh, 140px); max-width: 760px; }
.hero h1 { font-size: clamp(52px, 7.4vw, 124px); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; line-height: .92; filter: drop-shadow(0 4px 24px rgba(0,0,0,.6));
  background: linear-gradient(180deg, #fff6dd 0%, var(--gold-hi) 30%, var(--gold) 62%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-line { display: block; }
.hero__sum { margin: 26px 0 0; display: flex; align-items: baseline; gap: .4em; font: 300 clamp(26px, 3.4vw, 44px)/1 var(--display); color: var(--chrome); }
.hero__sum i { font-style: normal; color: var(--gold); font-size: .75em; opacity: .85; }
.hero__sum b { font-weight: 500; color: var(--gold-hi); }
.lede { max-width: 560px; margin: 22px 0 34px; color: #cfd6dd; font-size: clamp(16px, 1.4vw, 19px); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 54px; background: linear-gradient(180deg, transparent, var(--gold)); }
.hero__scroll span { position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-hi); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(50px); opacity: 0 } }

/* Twenty-two */
.twentytwo { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(90px, 14vw, 180px) var(--gutter); background: radial-gradient(80% 60% at 75% 50%, rgba(143,195,238,.07), transparent 70%), var(--void); }
.tt__text p { color: #c9cfd6; max-width: 520px; }
.tt__steps { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 22px; font: 300 22px/1.2 var(--display); color: var(--chrome); }
.tt__steps b { display: block; font-size: 64px; font-weight: 300; color: var(--gold-hi); line-height: 1; }
.tt__hint { font-size: 13px; letter-spacing: .08em; color: var(--muted) !important; }
.tt__stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 760px; justify-self: center; }
#lattice { width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.tt__readout { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 300 clamp(64px, 12vw, 150px)/1 var(--display); color: var(--gold-hi); text-shadow: 0 0 40px rgba(212,174,92,.45); pointer-events: none; }

/* Builds */
.builds { padding: clamp(90px, 12vw, 160px) var(--gutter); border-top: 1px solid rgba(212,174,92,.12); background: linear-gradient(180deg, var(--void), var(--ink)); }
.pillars { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--ink); padding: 40px 30px 46px; position: relative; overflow: hidden; transition: background .5s; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform .6s; }
.pillar:hover { background: #0e141c; }
.pillar:hover::before { transform: scaleX(1); }
.pillar__num { display: block; font: 300 88px/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 26px; }
.pillar h3 { font-size: 34px; margin-bottom: 12px; color: var(--text); }
.pillar p { margin: 0; color: #b9c1c9; font-size: 15.5px; }

/* Principles */
.principles { position: relative; padding: clamp(100px, 14vw, 190px) var(--gutter); overflow: hidden; isolation: isolate; }
.texture { position: absolute; inset: 0; z-index: -1; background: url("/media/texture.webp") center / cover no-repeat; opacity: .22; mask-image: radial-gradient(70% 80% at 80% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 80% at 80% 50%, #000 20%, transparent 75%); }
.principles__inner { max-width: 780px; }
.plist { list-style: none; padding: 0; margin: 46px 0 0; border-top: 1px solid var(--line); }
.plist li { padding: 22px 0; border-bottom: 1px solid var(--line); color: #c9cfd6; }
.plist b { font: 500 24px/1.2 var(--display); color: var(--gold-hi); margin-right: 10px; }

/* Borrowers */
.borrowers { padding: clamp(90px, 12vw, 160px) var(--gutter); border-top: 1px solid rgba(212,174,92,.12); background: radial-gradient(70% 80% at 85% 30%, rgba(212,174,92,.08), transparent 70%), var(--ink); }
.borrowers__inner { max-width: 860px; }
.borrowers__lede { color: #c9cfd6; max-width: 640px; margin: 24px 0 34px; }
.borrowers__list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.borrowers__list li { background: var(--ink); padding: 24px 24px 26px; color: #b9c1c9; font-size: 15.5px; }
.borrowers__list b { display: block; font: 500 24px/1.2 var(--display); color: var(--gold-hi); margin-bottom: 8px; }
.borrowers__fine { margin: 22px 0 0; font-size: 13px; color: var(--muted); max-width: 560px; }
.signin { padding: 11px 18px; min-height: 40px; font-size: 11px; }
.footer__link { color: var(--chrome); text-underline-offset: 4px; }

/* Footer */
.footer { padding: 60px var(--gutter) calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(212,174,92,.14); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; color: var(--muted); font-size: 13px; }
.footer p { margin: 0; }
.footer__mark { width: 66px; height: 22px; }
.platform { margin-left: auto !important; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.m20r1 { color: var(--chrome); font-weight: 600; letter-spacing: .2em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Phone and tablet */
@media (max-width: 900px) {
  .topnav { display: none; }
  .motion { margin-left: auto; }
  .twentytwo { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .hero__veil { background: linear-gradient(0deg, rgba(5,7,10,.97) 0%, rgba(5,7,10,.8) 45%, rgba(5,7,10,.1) 75%); }
  .hero__still, .hero__loop { object-position: 50% 30%; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .hero__still, .hero__loop { top: 64px; bottom: auto; height: auto; aspect-ratio: 16 / 9; transform: scale(1.12); transform-origin: 50% 0; object-position: 50% 50%; }
  .hero__veil { background: linear-gradient(180deg, rgba(5,7,10,0) 0, rgba(5,7,10,0) calc(64px + 46vw), rgba(5,7,10,1) calc(64px + 62vw)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .borrowers__list { grid-template-columns: 1fr; }
  .replay { display: none; }
  .tt__steps b { font-size: 48px; }
  .intro__controls { left: 16px; right: 16px; justify-content: space-between; }
  .platform { margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__loop { display: none; }
}
