/* Sobha Odyssey 2027 — Home, after the reveal
   Design source: Figma "Landing page revised" (1440 wide). Sizes use the 1440 frame as reference. */

@font-face { font-family: "Japan Ramen"; src: url("assets/fonts/japan-ramen.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Ringside Wide"; src: url("assets/fonts/ringside-wide-325.otf") format("opentype"); font-weight: 325; font-display: swap; }
@font-face { font-family: "Ringside Wide"; src: url("assets/fonts/ringside-wide-350.otf") format("opentype"); font-weight: 350; font-display: swap; }
@font-face { font-family: "Ringside Regular"; src: url("assets/fonts/ringside-regular.otf") format("opentype"); font-weight: 325; font-display: swap; }
@font-face { font-family: "Jonova"; src: url("assets/fonts/jonova.ttf") format("truetype"); font-display: swap; }

@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --ox { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --oy { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

:root {
  --red-900: #2e0000;
  --red-800: #530101;
  --red-700: #5e0404;
  --red-600: #7b0404;
  --red-glow: #be0f10;
  --sun: #f31b1b;
  --crimson: #ad0000;
  --ink: #292929;
  --paper: #ecebe7;
  --gold-1: #faf2b8;
  --gold-2: #c69d3f;
  --gold-3: #e3c76b;
  --gold: linear-gradient(90deg, var(--gold-1) 0%, var(--gold-2) 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --pad: clamp(20px, 4.93vw, 71px);
  --f-display: "Japan Ramen", "Ringside Wide", system-ui, sans-serif;
  --f-wide: "Ringside Wide", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Ringside Regular", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Jonova", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--red-800);
  color: #fff;
  font-family: var(--f-body);
  font-weight: 325;
  font-size: 16px;
  line-height: 1.32;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, figure { margin: 0; padding: 0; }
ol { list-style: none; }
::selection { background: var(--gold-2); color: var(--red-900); }
:focus-visible { outline: 1px solid var(--gold-3); outline-offset: 4px; }

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

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--f-wide);
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.gold-text {
  background-image: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: .01em;
}

/* split text */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform, opacity, filter; }
.gold-split .ch {
  background-image: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-split] .ch {
  opacity: 0;
  transform: translate3d(0, .42em, 0) rotate(4deg);
  filter: blur(10px);
  transition:
    opacity 1s var(--ease-soft),
    transform 1.3s var(--ease-out),
    filter 1.1s var(--ease-soft);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 32ms);
}
.is-in [data-split] .ch, [data-split].is-in .ch { opacity: 1; transform: none; filter: blur(0); }
[data-scrub] .ch { opacity: 0; transition: none; }

/* fade-rise for blocks */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease-soft), transform 1.3s var(--ease-out), filter 1.1s var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in, .is-in > [data-reveal], .hero.is-in [data-reveal] { opacity: 1; transform: none; filter: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 12px 0 16px;
  font-family: var(--f-wide);
  font-weight: 350;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  border-radius: 2px;
}
.btn::before { /* gold hairline border */
  content: "";
  position: absolute; inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(250, 242, 184, .9), rgba(198, 157, 63, .35)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.btn::after { /* fill sweep */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .7s var(--ease-out);
}
.btn__star { width: 22px; height: 22px; transition: transform 1s var(--ease-out), filter .5s; }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .btn:focus-visible { color: var(--red-900); }
.btn:hover .btn__star, .btn:focus-visible .btn__star { transform: rotate(180deg) scale(1.1); filter: brightness(.35) sepia(1) hue-rotate(-30deg) saturate(6); }
.btn span { transition: color .5s; }

.btn--red { color: var(--crimson); }
.btn--red::before { background: linear-gradient(120deg, rgba(173, 0, 0, .9), rgba(173, 0, 0, .3)) border-box; }
.btn--red::after { background: var(--crimson); }
.btn--red:hover, .btn--red:focus-visible { color: #fff; }
.btn--red:hover .btn__star, .btn--red:focus-visible .btn__star { filter: brightness(0) invert(1); }

/* ---------- intro veil ---------- */
.intro {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* painted from the very first frame, before any script runs, so the banner never flashes through */
  background: linear-gradient(180deg, #420101, #1d0000);
}
.intro.is-leaving { background: none; }
.intro__canvas, .intro__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__fallback { background: radial-gradient(120% 90% at 50% 50%, #3a0000, #1a0000); transition: opacity 1.2s var(--ease-soft); }
.intro__mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.intro__logo {
  width: clamp(96px, 11vw, 150px);
  opacity: 0;
  filter: blur(14px);
  transform: scale(.92);
  animation: introLogo 1.5s var(--ease-out) .15s forwards;
}
.intro__line {
  width: 1px; height: 64px;
  background: linear-gradient(var(--gold-1), transparent);
  transform: scaleY(0); transform-origin: top;
  animation: introLine 1.2s var(--ease-out) .55s forwards;
}
@keyframes introLogo { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes introLine { to { transform: scaleY(1); } }
.intro.is-leaving .intro__mark { transition: opacity 1s var(--ease-soft), filter 1s, transform 1.4s var(--ease-out); opacity: 0; filter: blur(12px); transform: scale(1.06); }
.intro.is-gone { display: none; }
html.no-intro .intro { display: none; }

/* ---------- header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: 180px;
  pointer-events: none;
  transition: transform .8s var(--ease-out);
}
.nav__bar {
  position: absolute; inset: 0 0 auto 0;
  height: 72px;
  background: linear-gradient(rgba(46, 0, 0, .78), rgba(46, 0, 0, .55));
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(227, 199, 107, .14);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .6s var(--ease-soft), transform .8s var(--ease-out), background .6s;
}
.nav__inner {
  position: relative;
  height: 100%;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}
.nav__group {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 107px;
  padding-top: 30px;
  pointer-events: auto;
  transition: height .8s var(--ease-out), padding .8s var(--ease-out);
}
.nav__group--l { padding-right: clamp(24px, 4vw, 64px); }
.nav__group--r { padding-left: clamp(24px, 4vw, 64px); }
.nav__group::after { /* gold hairline fading away from the logo */
  content: "";
  position: absolute; bottom: 0; height: 1px;
  left: 0; right: 0;
  background: linear-gradient(90deg, rgba(198, 156, 61, .07), rgba(251, 243, 187, .49));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.6s var(--ease-out) .35s, opacity .6s;
}
.nav__group--r::after { background: linear-gradient(90deg, rgba(251, 243, 187, .49), rgba(198, 156, 61, .07)); transform-origin: left; }
.is-ready .nav__group::after { transform: scaleX(1); }
.nav__link {
  position: relative;
  font-family: var(--f-wide);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .9s var(--ease-soft), transform 1s var(--ease-out), color .4s;
  transition-delay: calc(.15s + var(--i, 0) * 70ms);
}
.is-ready .nav__link { opacity: .92; transform: none; }
.nav__link::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 5px; height: 5px;
  background: url("assets/img/sparkle.svg") center / contain no-repeat;
  transform: translate(-50%, 4px) scale(0);
  transition: transform .5s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="true"] { opacity: 1; color: var(--gold-1); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: translate(-50%, 4px) scale(1); }
.nav__logo {
  display: block;
  margin-top: 29px;
  width: 132px;
  pointer-events: auto;
  transform-origin: 50% 0;
  transition: transform .9s var(--ease-out), margin .9s var(--ease-out);
}
.nav__logo img { width: 100%; transition: filter .6s; }
.nav__logo img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.nav__logo { position: relative; opacity: 0; filter: blur(10px); transition: transform .9s var(--ease-out), opacity 1.2s var(--ease-soft), filter 1.2s var(--ease-soft); }
.is-ready .nav__logo { opacity: 1; filter: none; }
.nav__menu { display: none; }

/* compact state, after the hero */
.nav.is-compact .nav__bar { opacity: 1; transform: none; }
.nav.is-compact .nav__group { height: 72px; padding-top: 0; }
.nav.is-compact .nav__group::after { opacity: 0; }
.nav.is-compact .nav__logo { transform: translateY(-17px) scale(.38); }
.nav.is-hidden { transform: translateY(-80px); }
.nav.is-hidden .nav__logo { transform: translateY(-40px) scale(.38); }

/* light state, over paper */
.nav.is-light .nav__bar { background: linear-gradient(rgba(236, 235, 231, .86), rgba(236, 235, 231, .7)); border-bottom-color: rgba(41, 41, 41, .1); }
.nav.is-light .nav__link { color: var(--ink); }
.nav.is-light .nav__link:hover { color: var(--crimson); }
.nav.is-light .nav__logo img + img { opacity: 1; }
.nav.is-light .nav__logo img:first-child { opacity: 0; }
.nav.is-light .nav__menu span { background: var(--ink); }
.nav.is-light .nav__menu { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(100vh, 780px);
  height: 100vh;
  max-height: 1040px;
  overflow: hidden;
  overflow: clip;
  background: linear-gradient(180deg, #530101 0%, #7b0404 58%, #730303 82%, #7b0404 100%);
}
.hero__glow {
  position: absolute;
  left: 13.8%; top: 11%;
  width: 72.4%; height: 70%;
  border-radius: 50%;
  background: var(--red-glow);
  opacity: .3;
  filter: blur(100px);
}
.hero__video {
  position: absolute;
  left: -2.7%; top: -157px;
  width: 145.3%; height: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  object-fit: cover;
  opacity: .3;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero__embers, .story__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__art { position: absolute; inset: 0; pointer-events: none; }
.layer { position: absolute; will-change: transform; }
.hero__sun {
  left: 45.8%; top: -2%;
  width: min(49vw, 760px);
  opacity: 0;
  transform: scale(1.08);
  filter: blur(18px) saturate(1.3);
  transition: opacity 2s var(--ease-soft), filter 2.2s var(--ease-soft), transform 2.6s var(--ease-out);
}
.hero__ronin {
  left: 57.4%; top: 48.7%;
  width: min(25.8vw, 400px);
  opacity: 0;
  transform: translate3d(8%, 10%, 0) scale(.94);
  filter: blur(12px) brightness(1.6);
  transition: opacity 1.4s var(--ease-soft) .55s, filter 1.4s var(--ease-soft) .55s, transform 1.8s var(--ease-out) .55s;
}
.hero__branch {
  left: 72%; top: 81%;
  width: min(36.3vw, 560px);
  opacity: 0;
  transition: opacity 2s var(--ease-soft) .9s;
}
.hero.is-in .hero__sun { opacity: 1; transform: none; filter: none; }
.hero.is-in .hero__ronin { opacity: 1; transform: none; filter: none; }
.hero.is-in .hero__branch { opacity: .9; }
.hero__ronin-glow {
  position: absolute; inset: 20% 10% 0;
  background: radial-gradient(closest-side, rgba(255, 60, 30, .45), transparent);
  filter: blur(20px);
  mix-blend-mode: screen;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .45; transform: scale(.92); } }

.hero__content {
  position: relative;
  z-index: 2;
  padding: 218px var(--pad) 0;
  max-width: 640px;
  box-sizing: content-box;
}
.hero__eyebrow { --d: .2s; }
.hero__title { margin-top: 6px; }
.hero__title .l1 { display: block; font-size: 35px; line-height: 1.6; }
.hero__title .l2 { display: block; font-size: clamp(56px, 5.4vw, 78px); line-height: .98; margin-top: -2px; }
.hero__title.shine .l1, .hero__title.shine .l2 {
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 252, 230, .95) 48%, transparent 58%), var(--gold);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 160% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s var(--ease-io) 1s infinite;
}
@keyframes shine { 0% { background-position: 160% 0, 0 0; } 32%, 100% { background-position: -60% 0, 0 0; } }
.hero__body { margin-top: 18px; max-width: 390px; --d: .9s; }
.hero__cta { margin-top: 26px; --d: 1.05s; }

.countdown {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 44px;
}
.cd {
  position: relative;
  width: 132px; height: 167px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 42px;
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-soft), transform 1.3s var(--ease-out);
  transition-delay: calc(1.1s + var(--i) * 110ms);
}
.hero.is-in .cd { opacity: 1; transform: none; }
.cd__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cd__frame rect { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); transition-delay: calc(1.2s + var(--i) * 140ms); }
.hero.is-in .cd__frame rect { stroke-dashoffset: 0; }
.cd__num {
  position: relative;
  height: 1em;
  width: 2.2ch;
  overflow: hidden;
  font-family: var(--f-serif);
  font-size: 77px;
  line-height: 1;
  text-align: center;
}
.cd__num span {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .9s var(--ease-out), opacity .7s var(--ease-soft), filter .7s;
}
.cd__num span.out { transform: translateY(-60%); opacity: 0; filter: blur(6px); }
.cd__num span.pre { transform: translateY(60%); opacity: 0; filter: blur(6px); transition: none; }
.cd__label { margin-top: 12px; font-family: var(--f-wide); font-size: 12px; letter-spacing: .06em; }
.cd__sep {
  display: grid;
  gap: 12px;
  width: 30px;
  justify-items: center;
  opacity: 0;
  transition: opacity 1s 1.6s;
}
.hero.is-in .cd__sep { opacity: 1; }
.cd__sep i {
  width: 9px; height: 9px;
  background: url("assets/img/sparkle.svg") center / contain no-repeat;
  animation: twinkle 2s ease-in-out infinite;
}
.cd__sep i + i { animation-delay: 1s; }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.7) rotate(45deg); } }

.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(113, 4, 4, 0), #7b0404 70%);
  pointer-events: none;
}
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-family: var(--f-wide);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s 2s;
}
.hero.is-in .hero__scroll { opacity: 1; }
.hero__scroll i {
  position: relative;
  width: 1px; height: 46px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute; left: 0; top: -50%;
  width: 1px; height: 50%;
  background: linear-gradient(transparent, var(--gold-1));
  animation: drip 2.2s var(--ease-io) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- story (pinned): cards pile in from the left, text from the right, then paper dissolves in ---------- */
.story {
  position: relative;
  height: 620vh;
  background: linear-gradient(180deg, #7b0404 0%, #6c0303 40%, #7b0404 100%);
}
.story__stage {
  position: sticky; top: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  overflow: clip;
}
.story__sun {
  position: absolute;
  left: 50%; top: 14%;
  width: 159px; height: 159px;
  margin-left: -79.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #ff3a2a 0%, var(--sun) 45%, #d30f12 100%);
  box-shadow: 0 0 80px 10px rgba(243, 27, 27, .28), 0 0 260px 40px rgba(190, 15, 16, .25);
  will-change: transform;
}
.story__branch { right: -4%; top: -3%; width: min(36vw, 520px); opacity: .95; }
.story__crane { width: 220px; opacity: .9; }
.story__crane--a { left: 0; top: 24%; }
.story__crane--b { left: 0; top: 34%; width: 170px; }
.story__waves {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 46%;
  background: url("assets/img/waves.svg") center top / 100% auto repeat-y;
  -webkit-mask-image: linear-gradient(transparent, #000 55%);
  mask-image: linear-gradient(transparent, #000 55%);
  opacity: .6;
}
.story__head {
  position: absolute; z-index: 3;
  left: 50%; top: 38%;
  width: min(640px, 90vw);
  transform: translateX(-50%);
  text-align: center;
  will-change: transform, opacity, filter;
}
.story__title { margin-top: 14px; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.08; }
.story__panel {
  position: absolute; z-index: 3;
  left: 57%; top: 50%;
  width: min(38vw, 560px);
  transform: translateY(-50%);
}
.story__panel > * { opacity: 0; will-change: transform, opacity, filter; }
.story__panel .story__title { font-size: clamp(30px, 3.2vw, 46px); }
.story__lede { margin-top: 22px; max-width: 517px; line-height: 1.32; }
.story__controls { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.story__counter { font-family: var(--f-body); font-size: 14px; letter-spacing: .06em; min-width: 70px; }
.story__counter b { display: inline-block; font-weight: inherit; color: var(--gold-1); }
.arrow-btn {
  position: relative;
  width: 73px; height: 40px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .5);
  display: grid; place-items: center;
  overflow: hidden;
  transition: border-color .4s, background .5s, opacity .4s;
}
.arrow-btn svg { width: 22px; transition: transform .6s var(--ease-out); }
.arrow-btn:hover { border-color: var(--gold-1); background: rgba(250, 242, 184, .08); }
.arrow-btn--next:hover svg { transform: translateX(5px); }
.arrow-btn--prev:hover svg { transform: translateX(-5px); }
.arrow-btn[disabled] { opacity: .3; pointer-events: none; }

.deck {
  --dw: min(28vw, 410px);
  position: absolute; z-index: 2;
  left: 31%;
  top: calc(53% - var(--dw) * .6667);
  width: var(--dw);
  aspect-ratio: 3 / 4;
  transform: translateX(-50%);
  perspective: 1400px;
}
.deck__tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.card {
  position: absolute; inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #1c0000;
  box-shadow: 0 40px 80px -30px rgba(20, 0, 0, .8), 0 0 0 1px rgba(250, 242, 184, .16);
  opacity: 0;
  will-change: transform, opacity, filter;
  transform-origin: 50% 100%;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 0, 0, .05) 30%, rgba(20, 0, 0, .55) 62%, rgba(18, 0, 0, .96) 100%); }
.card__glare { position: absolute; inset: 0; background: radial-gradient(60% 50% at var(--gx, 30%) var(--gy, 20%), rgba(255, 240, 200, .22), transparent 70%); mix-blend-mode: soft-light; pointer-events: none; }
.card__rim { position: absolute; inset: 10px; border: 1px solid rgba(250, 242, 184, .22); border-radius: 12px; pointer-events: none; }
.card__tag {
  position: absolute; top: 22px; left: 22px;
  padding: 7px 12px 6px;
  border-radius: 20px;
  background: rgba(30, 0, 0, .55);
  border: 1px solid rgba(250, 242, 184, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-wide); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px 30px; text-align: center; }
.card__date { display: block; font-family: var(--f-wide); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.card__title { margin-top: 10px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.15; text-transform: uppercase; }
.card__line { margin-top: 10px; font-size: 16px; color: rgba(255, 255, 255, .86); }

/* the paper that dissolves in over the red */
.paper-bg {
  background-color: var(--paper);
  background-image: url("assets/img/paper.webp");
  background-size: 1440px auto;
  background-repeat: repeat;
}
.story__veil, .story__paper, .story__veilfallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.story__paper { opacity: 0; }
.story__veilfallback { background-color: var(--paper); opacity: 0; }
.story__inkbranch { position: absolute; z-index: 6; left: -2%; top: 3%; width: min(36vw, 523px); opacity: 0; will-change: transform, opacity; pointer-events: none; }
.story__paperhead {
  position: absolute; z-index: 6;
  left: 50%; top: clamp(110px, 20vh, 182px);
  width: min(900px, 92vw);
  transform: translateX(-50%);
  text-align: center;
  color: #000;
  pointer-events: none;
}
.story__paperhead .eyebrow { opacity: 0; }
.story__papertitle { margin-top: 24px; font-size: clamp(40px, 4.2vw, 60px); line-height: 1.13; color: #111; }
.story__papertitle .ch { opacity: 0; }
.story__papertitle .gold-split .ch { background-image: linear-gradient(90deg, #d8b45a, #a87b22); }

/* ---------- pages (paper) — measured from the Figma frame ---------- */
.paper-wrap { position: relative; z-index: 1; color: var(--ink); }
.paper-wrap::before { /* paper starts where the pinned stage ends, continuing its texture */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  top: var(--overlap, 0px);
  z-index: -1;
  background-color: var(--paper);
  background-image: url("assets/img/paper.webp");
  background-size: 1440px auto;
  background-position: 0 calc(var(--stage-h, 0px) * -1);
}
.pages { position: relative; padding: 0 var(--pad) 40px; }
.rows { position: relative; max-width: 1146px; margin: 0 auto; }
.rows::after, .row::before {
  content: "";
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 54%, rgba(0, 0, 0, 0));
  opacity: .22;
  transform: scaleX(0);
  transition: transform 1.8s var(--ease-out);
}
.row::before { top: 0; }
.rows::after { bottom: 0; }
.row.is-in::before, .rows.is-in::after { transform: scaleX(1); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 22.25% 38.57% 1fr;
  grid-template-areas: "num art text";
  align-items: center;
  height: 410px;
}
.row:nth-child(even) { grid-template-columns: 28.53% 6.63% 38.57% 1fr; grid-template-areas: "text . art num"; }
.row__num {
  grid-area: num;
  margin-left: -11px;
  font-family: var(--f-display);
  font-size: clamp(120px, 13.9vw, 200px);
  line-height: 1;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.4s var(--ease-soft), transform 1.6s var(--ease-out), color .6s;
  user-select: none;
}
.row:nth-child(even) .row__num { margin: 0; text-align: right; transform: translateX(40px); }
.row.is-in .row__num { opacity: .1; transform: none; }
.row__art {
  grid-area: art;
  position: relative;
  width: 100%;
  aspect-ratio: 442 / 432;
  mix-blend-mode: multiply;
}
.row__ink {
  position: absolute; inset: 0;
  --ox: var(--sx, 50%); --oy: var(--sy, 50%);
  -webkit-mask-image: radial-gradient(circle at var(--ox) var(--oy), #000 calc(var(--r) - 13%), transparent var(--r));
  mask-image: radial-gradient(circle at var(--ox) var(--oy), #000 calc(var(--r) - 13%), transparent var(--r));
  transition: --r 2.4s var(--ease-out), --ox 2.4s var(--ease-out), --oy 2.4s var(--ease-out), filter 2s var(--ease-soft);
  filter: blur(6px) saturate(.6);
}
.row__ink img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease-out); }
.row.is-in .row__ink { --r: 71%; --ox: 50%; --oy: 50%; filter: none; }
.row:hover .row__ink img { transform: scale(1.04); }
.row__text { grid-area: text; }
.row:nth-child(even) .row__text { text-align: right; }
.row__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.45vw, 35px); line-height: 1.2; text-transform: uppercase; color: var(--ink); transition: color .5s; }
.row__desc { margin-top: 12px; max-width: 234px; line-height: 1.32; }
.row:nth-child(even) .row__desc { margin-left: auto; max-width: 171px; }
.row__text .btn { margin-top: 24px; }
.row:hover .row__title { color: var(--crimson); }
.row:hover .row__num { color: var(--crimson); }
.row .btn { height: 38px; min-width: 173px; justify-content: space-between; padding: 0 14px 0 16px; }

/* ---------- footer ---------- */
.foot {
  position: relative;
  min-height: 600px;
  padding: 90px var(--pad) 0;
  text-align: center;
  overflow: hidden;
  overflow: clip;
}
.foot__inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.foot__logo { width: 132px; }
.foot__note { margin-top: 26px; font-family: var(--f-wide); font-size: 12px; line-height: 21px; text-transform: uppercase; color: #000; }
.foot__legal { margin-top: 18px; font-family: var(--f-wide); font-size: 10px; line-height: 21px; text-transform: uppercase; color: rgba(0, 0, 0, .46); }
.foot__legal a:hover { color: var(--crimson); }
.foot__ink {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: none;
  margin: -40px calc(var(--pad) * -1) 0;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, #000 var(--m, 0%), transparent calc(var(--m, 0%) + 18%));
  mask-image: linear-gradient(90deg, #000 var(--m, 0%), transparent calc(var(--m, 0%) + 18%));
}

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor__ring {
  position: absolute;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(250, 242, 184, .9);
  border-radius: 50%;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background .4s, opacity .4s;
}
.cursor__dot { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--gold-1); }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(250, 242, 184, .12); }
.cursor.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0;
  z-index: 60;
  display: grid;
  align-content: center;
  padding: 90px 28px 40px;
  background: radial-gradient(120% 80% at 100% 0%, #7b0404, #3a0000 70%);
  clip-path: circle(0% at calc(100% - 44px) 36px);
  transition: clip-path .9s var(--ease-io);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
.menu a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0;
  font-family: var(--f-display);
  font-size: clamp(28px, 8vw, 40px);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(250, 242, 184, .14);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease-soft), transform .8s var(--ease-out);
}
.menu a small { font-family: var(--f-wide); font-size: 11px; color: var(--gold-3); }
.menu.is-open a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 60ms); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .nav__link { font-size: 11px; }
  .nav__group--l { padding-right: 24px; }
  .nav__group--r { padding-left: 24px; }
}

@media (max-width: 899px) {
  .nav { height: 72px; }
  .nav__bar { opacity: 1; transform: none; background: linear-gradient(rgba(46, 0, 0, .0), rgba(46, 0, 0, 0)); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-compact .nav__bar { background: linear-gradient(rgba(46, 0, 0, .8), rgba(46, 0, 0, .6)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: rgba(227, 199, 107, .14); }
  .nav.is-light.is-compact .nav__bar { background: rgba(236, 235, 231, .85); }
  .nav__inner { grid-template-columns: 1fr auto; align-items: center; }
  .nav__group { display: none; }
  .nav__logo, .nav.is-compact .nav__logo, .nav.is-hidden .nav__logo { margin-top: 0; width: 54px; transform: none; justify-self: start; }
  .nav__logo { margin-top: 6px !important; }
  .nav__menu {
    display: inline-flex; align-items: center; gap: 12px;
    pointer-events: auto;
    font-family: var(--f-wide); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    opacity: 0; transition: opacity 1s .4s;
    position: relative; z-index: 70;
  }
  .is-ready .nav__menu { opacity: 1; }
  .nav__menu i { display: grid; gap: 6px; width: 24px; }
  .nav__menu span { display: block; height: 1px; background: #fff; transition: transform .6s var(--ease-out); }
  .menu-open .nav__menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .nav__menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .menu-open .nav { transform: none; }
  .menu-open .nav__menu { color: #fff; }
  .menu-open .nav__menu span { background: #fff; }
  .nav.is-hidden { transform: translateY(-80px); }

  .hero { height: auto; min-height: 100svh; max-height: none; padding-bottom: 10px; display: flex; flex-direction: column; }
  .hero__content { order: 1; }
  .hero__art { order: 2; }
  .hero__fade { height: 120px; }
  .hero__content { padding-top: 110px; max-width: none; }
  .hero__title .l1 { font-size: 24px; }
  .hero__title .l2 { font-size: clamp(44px, 12.5vw, 60px); }
  .hero__body { max-width: 330px; font-size: 15px; }
  .hero__art {
    position: relative; width: min(100%, 600px); height: auto; aspect-ratio: 1 / 1.28; margin: 10px auto 0; inset: auto;
    -webkit-mask-image: linear-gradient(#000 62%, transparent 96%);
    mask-image: linear-gradient(#000 62%, transparent 96%);
  }
  .hero__sun { left: 6%; top: 0; width: 98%; }
  .hero__ronin { left: 30%; top: 40%; width: 56%; }
  .hero__branch { left: 48%; top: 74%; width: 64%; }
  .countdown { margin-top: 34px; }
  .cd { width: 27vw; max-width: 110px; height: auto; aspect-ratio: 132 / 167; border-radius: 30px; }
  .cd__num { font-size: clamp(40px, 12vw, 60px); }
  .cd__label { font-size: 10px; margin-top: 6px; }
  .cd__sep { width: 4vw; gap: 8px; }
  .cd__sep i { width: 6px; height: 6px; }
  .hero__scroll { display: none; }
  .hero__glow { filter: blur(60px); }

  .hero__video { left: -60%; width: 220%; top: auto; bottom: 2%; }

  .story { height: 580vh; }
  .story__stage { height: 100svh; min-height: 560px; }
  .story__sun { top: 9%; width: 110px; height: 110px; margin-left: -55px; }
  .story__branch { width: 70vw; right: -22%; top: -2%; }
  .story__crane { display: none; }
  .story__head { top: 30%; }
  .story__title { font-size: clamp(30px, 8.4vw, 38px); }
  .deck { --dw: min(56vw, 36svh, 380px); left: 50%; top: 11%; touch-action: pan-y; }
  .card__body { padding: 16px 14px 18px; }
  .card__title { font-size: clamp(16px, 4.6vw, 20px); }
  .card__line { font-size: 13px; }
  .card__tag { top: 14px; left: 14px; font-size: 9px; padding: 5px 9px 4px; }
  .story__panel {
    left: 24px; right: 24px; width: auto;
    top: calc(11% + min(56vw, 36svh, 380px) * 1.3333 + 26px);
    transform: none;
    text-align: center;
  }
  .story__panel .eyebrow { font-size: 11px; }
  .story__panel .story__title { font-size: clamp(24px, 6.6vw, 30px); margin-top: 8px; }
  .story__lede { margin: 12px auto 0; font-size: 14px; max-width: 340px; }
  .story__controls { justify-content: center; margin-top: 18px; }
  .story__waves { height: 30%; }
  .story__inkbranch { width: 72vw; top: 2%; }
  .story__paperhead { top: 22%; }
  .story__papertitle { font-size: clamp(28px, 8.2vw, 38px); margin-top: 16px; }

  .pages { padding: 0 22px 60px; }
  .row, .row:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "num" "text";
    height: auto;
    padding: 40px 0 50px;
    text-align: center;
  }
  .row__num, .row:nth-child(even) .row__num { margin: -60px 0 0; text-align: center; font-size: 84px; position: relative; z-index: -1; transform: translateY(20px); }
  .row__art { width: min(78vw, 360px); justify-self: center; }
  .row__text, .row:nth-child(even) .row__text { text-align: center; margin-top: -26px; }
  .row__desc, .row:nth-child(even) .row__desc { margin: 12px auto 0; max-width: 260px; }
  .foot { min-height: 0; padding-top: 70px; }
  .foot__note { font-size: 11px; }
  .foot__ink { width: 160vw; margin: 10px 0 0 -30vw; }
}



/* tablets in portrait: keep the blast to the artwork's size */
@media (min-width: 600px) and (max-width: 899px) {
  .hero__video { left: -20%; width: 140%; bottom: 0; }
}

/* phones turned sideways: the second fold goes side by side and fits the short screen */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  .hero__art { width: min(100%, 110svh); }
  .story__stage { min-height: 0; }
  .story__sun { top: 6%; width: 90px; height: 90px; margin-left: -45px; }
  .story__head { top: 26%; }
  .story__title { font-size: 28px; }
  .deck { --dw: min(26vw, 56svh); left: 27%; top: calc(54% - var(--dw) * .6667); }
  .story__panel { left: 50%; right: 5%; top: 52%; transform: translateY(-50%); text-align: left; }
  .story__panel .story__title { font-size: 24px; }
  .story__lede { margin: 10px 0 0; font-size: 13px; max-width: 360px; }
  .story__controls { justify-content: flex-start; margin-top: 12px; }
  .story__paperhead { top: 12%; }
  .story__papertitle { font-size: 28px; margin-top: 10px; }
  .story__inkbranch { width: 36vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .intro { display: none; }
}
