@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/anton-latin-400-normal-Byf51wtH.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal-C38fXH4l.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500-normal-Cerq10X2.woff2') format('woff2');
}

:root {
  --red-deep: #7a1218;
  --red-dark: #5c0d12;
  --gold: #f5cc34;
  --gold-soft: #ffe08a;
  --cream: #fff6e3;
  --cream-dim: rgba(255, 246, 227, 0.78);
  --glass: rgba(255, 246, 227, 0.08);
  --glass-border: rgba(245, 204, 52, 0.45);
}

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

html, body { height: 100%; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--red-dark);
  color: var(--cream);
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 42%, var(--red-deep) 0%, var(--red-dark) 62%, #47090d 100%);
}

#weave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.9s ease 0.15s;
}

.eyebrow.in { opacity: 1; }

.headline {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(46px, 9.5vw, 118px);
  line-height: 1.04;
  letter-spacing: 0.015em;
  margin: 18px 0 0;
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.headline .ch {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.35em) scale(1.06);
}

.headline .ch.in {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 0.45s ease, filter 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.headline .word { display: inline-block; white-space: nowrap; }
.headline .gap { display: inline-block; width: 0.28em; }

.subline {
  margin-top: 22px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 34em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.subline.in { opacity: 1; transform: none; }

.cta {
  pointer-events: auto;
  margin-top: 40px;
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease, background 0.25s ease, border-color 0.25s ease;
}

.cta.in { opacity: 1; transform: none; }
.cta:hover, .cta:focus-visible { background: rgba(245, 204, 52, 0.16); border-color: var(--gold); }

.motion-toggle {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cream-dim);
  background: var(--glass);
  border: 1px solid rgba(255, 246, 227, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.motion-toggle:hover { color: var(--cream); border-color: var(--glass-border); }
.motion-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.motion-toggle[aria-pressed="false"] .dot { background: rgba(255, 246, 227, 0.35); }

@media (max-width: 640px) {
  .eyebrow { font-size: 11px; }
  .subline { margin-top: 18px; }
  .cta { margin-top: 32px; }
  .br-wide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow, .subline, .cta { transition: none; }
  .headline .ch, .headline .ch.in { transition: none; filter: none; transform: none; }
}

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px;
  border: 1px solid rgba(255, 246, 227, 0.35);
  display: flex; justify-content: center; padding-top: 8px;
  opacity: 0; transition: opacity 1s ease 0.5s;
}
.scroll-cue.in { opacity: 0.8; }
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--gold); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(10px); opacity: 0.25; } }

.meet {
  position: relative;
  padding: clamp(56px, 10vh, 120px) clamp(16px, 4vw, 56px);
  background: linear-gradient(180deg, #47090d 0%, #2a0509 38%, #1a0307 100%);
}

.panel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  height: clamp(440px, 74vh, 680px);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: radial-gradient(90% 100% at 70% 55%, #2b070c 0%, #12030500 100%), #0d0204;
  border: 1px solid rgba(245, 204, 52, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 246, 227, 0.06);
  touch-action: pan-y;
}

.panel-copy { position: relative; z-index: 3; padding: 0 0 0 clamp(28px, 6vw, 84px); pointer-events: none; }
.panel-title {
  font-family: 'Anton', Impact, sans-serif; font-weight: 400;
  font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: 0.015em;
  color: var(--cream);
}
.panel-text { margin-top: 18px; max-width: 24em; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.65; color: var(--cream-dim); }

.figure-wrap {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 3% 0 0;
}
.fig {
  position: absolute; left: 50%; bottom: 0;
  height: 92%; aspect-ratio: 703 / 1315;
  transform: translateX(-50%);
  will-change: transform;
}
.fig img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; will-change: transform; }
.fig-neck { position: absolute; left: 25%; top: 38.5%; width: 30%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #d2c0a8 0%, #b9a58c 60%, #a8957e 100%); pointer-events: none; }
.fig-head { transform-origin: 40% 43%; }
.fig-body { transform-origin: 50% 70%; }
.fig-base { filter: saturate(0.92) brightness(0.82) drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.fig-lit {
  filter: saturate(1.2) brightness(1.55) contrast(1.05);
  -webkit-mask-image: radial-gradient(circle var(--sr, 170px) at var(--sx, -999px) var(--sy, -999px), #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
  mask-image: radial-gradient(circle var(--sr, 170px) at var(--sx, -999px) var(--sy, -999px), #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
  opacity: var(--so, 0);
}
.spot {
  position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
}
.spot::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: var(--sd, 300px); height: var(--sd, 300px);
  margin: calc(var(--sd, 300px) / -2) 0 0 calc(var(--sd, 300px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 214, 0.95) 0%, rgba(255, 224, 138, 0.55) 28%, rgba(245, 204, 52, 0.16) 55%, rgba(245, 204, 52, 0) 72%);
  mix-blend-mode: screen;
  opacity: calc(var(--so, 0) * 0.85);
  transform: translate3d(var(--gx, -999px), var(--gy, -999px), 0);
}

@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 640px; }
  .panel-copy { padding: 40px 28px 0; }
  .figure-wrap { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}

/* ---- crumpled letter section ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.note {
  position: relative;
  padding: 0 clamp(16px, 4vw, 56px) clamp(64px, 11vh, 130px);
  background: linear-gradient(180deg, #1a0307 0%, #12030500 100%), #1a0307;
}
.note-panel {
  max-width: 1180px; margin: 0 auto;
  border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: clamp(460px, 76vh, 700px);
  background: radial-gradient(90% 100% at 30% 55%, #2b070c 0%, #12030500 100%), #0d0204;
  border: 1px solid rgba(245, 204, 52, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 246, 227, 0.06);
}
.note-stage {
  position: relative; justify-self: center; align-self: center;
  width: min(100%, 480px); aspect-ratio: 0.82; margin: 24px 0;
  cursor: pointer; outline: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.note-stage:focus-visible { box-shadow: 0 0 0 2px var(--gold); border-radius: 20px; }
#noteCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.note-hint {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-dim); pointer-events: none; white-space: nowrap;
  transition: opacity 0.4s ease;
}
.note-stage.is-open .note-hint { opacity: 0; }
.note-copy { padding: 0 clamp(28px, 6vw, 84px) 0 0; }
.note-fallback { display: none; }
.note-stage.no-gl #noteCanvas { display: none; }
.note-stage.no-gl .note-fallback {
  display: block; position: absolute; inset: 6% 8%; padding: 8% 9%; border-radius: 6px;
  background: linear-gradient(135deg, #fffaf0, #f6ead0); color: #3b1a1c; font-size: 15px; line-height: 1.6;
  border-top: 10px solid #7a1218; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.note-fallback h3 { font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 30px; color: #7a1218; margin-bottom: 14px; letter-spacing: .015em; }
.note-fallback p { margin-bottom: 12px; }
@media (max-width: 760px) {
  .note-panel { grid-template-columns: 1fr; }
  .note-copy { padding: 0 28px 40px; order: -1; padding-top: 40px; }
  .note-stage { width: min(86%, 380px); margin: 0 0 32px; }
}
