:root {
  --ink: #050505;
  --black-glass: rgba(5, 5, 5, .88);
  --gold: #d6a839;
  --gold-light: #f3df9a;
  --ivory: #fffaf0;
  --muted: #d8d1c5;
  --line: rgba(214, 168, 57, .52);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--ivory); }
body { font-family: "Montserrat", system-ui, sans-serif; }
button, a { font: inherit; }
button { color: inherit; }

.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto auto; }
.backdrop { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: radial-gradient(circle at 72% 40%, #b99555, #342516 34%, #070706 72%); }
.backdrop-image { position: absolute; inset: -4%; background-image: url('/pearl-world-hero.png'); background-size: cover; background-position: 66% center; transform: scale(1.03); animation: drift 30s ease-in-out infinite alternate; }
.backdrop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.backdrop-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.34) 39%, rgba(0,0,0,.03) 69%, rgba(0,0,0,.26) 100%), linear-gradient(180deg, rgba(0,0,0,.28), transparent 28%, transparent 72%, rgba(0,0,0,.75)); }
.film-grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }

.site-header { min-height: 108px; padding: 18px clamp(24px, 4.8vw, 78px); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: rgba(0,0,0,.93); border-bottom: 1px solid rgba(214,168,57,.18); z-index: 5; }
.brand { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; min-width: 0; }
.monogram { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font: 600 2.35rem/1 "Cormorant Garamond", serif; box-shadow: inset 0 0 0 5px #050505, inset 0 0 0 6px rgba(214,168,57,.45); }
.brand-copy { display: grid; gap: 4px; }
.brand-name { color: var(--gold-light); font: 600 clamp(1.35rem, 2vw, 2rem)/1 "Cormorant Garamond", serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand-line { color: var(--gold); font-size: .66rem; letter-spacing: .23em; text-transform: uppercase; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 42px); }
.main-nav a { color: inherit; text-decoration: none; padding: 12px 0; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.main-nav a:not(.nav-cta):hover, .main-nav a:not(.nav-cta):focus-visible { color: var(--gold-light); }
.main-nav .nav-cta { border: 1px solid var(--gold); border-radius: 999px; padding: 14px 28px; color: var(--gold-light); transition: background .25s, color .25s; }
.main-nav .nav-cta:hover, .main-nav .nav-cta:focus-visible { background: var(--gold); color: #090805; }
.menu-button { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; }
.menu-button span { display: block; height: 1px; background: var(--gold-light); margin: 8px 0; }

.stage { min-height: 0; padding: clamp(30px, 5vh, 72px) clamp(20px, 6vw, 92px) 26px; display: grid; grid-template-columns: auto minmax(0, 540px) 1fr auto; align-items: center; gap: 16px; }
.story-card { grid-column: 2; position: relative; min-height: 520px; padding: clamp(30px, 4vw, 54px); border: 1px solid rgba(214,168,57,.38); border-radius: 24px; background: linear-gradient(135deg, rgba(5,5,5,.96), rgba(10,10,9,.79)); box-shadow: 0 28px 90px rgba(0,0,0,.48); backdrop-filter: blur(14px); display: flex; flex-direction: column; }
.chapter-line { display: flex; align-items: center; gap: 8px; font-size: .92rem; letter-spacing: .08em; }
.chapter-number { color: var(--gold-light); }
.chapter-total { color: #d4d1c9; }
.chapter-rule { height: 1px; flex: 1; margin-left: 16px; background: rgba(255,255,255,.17); overflow: hidden; }
.chapter-rule i { display: block; height: 100%; width: 16.666%; background: var(--gold); transition: transform .65s cubic-bezier(.22,.75,.2,1); transform-origin: left; }
.slides { flex: 1; display: grid; align-items: center; }
.slide { grid-area: 1/1; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .55s ease, transform .55s ease; }
.slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; }
.slide h1 { margin: 0; max-width: 11ch; color: var(--gold-light); font: 500 clamp(2.6rem, 4vw, 4.15rem)/.94 "Cormorant Garamond", serif; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.slide h1 span { display: block; margin-top: 12px; color: var(--ivory); font-size: .72em; }
.ornament { width: 150px; height: 1px; margin: 27px 0; background: linear-gradient(90deg, var(--gold), transparent); position: relative; }
.ornament::after { content: "✦"; position: absolute; left: 72px; top: 50%; transform: translate(-50%,-50%); padding: 0 8px; background: #080807; color: var(--gold); font-size: .65rem; }
.slide p:not(.eyebrow) { max-width: 39ch; margin: 0 0 28px; color: #f4f0e8; font-size: 1rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.action { min-height: 54px; border: 1px solid var(--gold); border-radius: 8px; padding: 0 22px; background: transparent; color: var(--ivory); cursor: pointer; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, background .2s, color .2s; }
.action.primary { background: linear-gradient(100deg, #c79328, #f0cc6b); color: #080704; border-color: transparent; }
.action:hover, .action:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.progress { display: flex; gap: 14px; padding-top: 22px; }
.progress button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.57); cursor: pointer; transition: width .25s, background .25s; }
.progress button.active { width: 28px; border-radius: 99px; background: var(--gold-light); }
.arrow { width: 50px; height: 50px; flex: 0 0 auto; border: 1px solid var(--gold); border-radius: 50%; background: rgba(0,0,0,.76); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.arrow:hover, .arrow:focus-visible { background: var(--gold); color: #000; transform: scale(1.05); }
.arrow svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.arrow-left { grid-column: 1; }
.arrow-right { grid-column: 4; }

.journey-rail { margin: 0 clamp(20px, 3.4vw, 54px); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(5,5,5,.87); border: 1px solid rgba(214,168,57,.24); border-radius: 14px; backdrop-filter: blur(14px); overflow: hidden; }
.journey-rail a { color: inherit; text-decoration: none; border-right: 1px solid rgba(214,168,57,.36); background: transparent; text-align: left; padding: 24px 26px; display: grid; grid-template-columns: 50px 1fr; gap: 16px; cursor: pointer; transition: background .25s; }
.journey-rail a:last-child { border-right: 0; }
.journey-rail a:hover, .journey-rail a:focus-visible { background: rgba(214,168,57,.10); }
.rail-icon { color: var(--gold); font: 500 2.1rem/1 "Cormorant Garamond", serif; }
.journey-rail strong, .journey-rail small, .journey-rail em { display: block; }
.journey-rail strong { color: var(--gold-light); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.journey-rail small { margin: 7px 0 12px; color: #eee8df; font-size: .76rem; line-height: 1.45; }
.journey-rail em { color: var(--gold); font-size: .72rem; font-style: normal; letter-spacing: .07em; text-transform: uppercase; }
.hero-footer { min-height: 56px; padding: 12px clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: center; gap: 24px; background: rgba(0,0,0,.94); border-top: 1px solid rgba(214,168,57,.25); }
.hero-footer p { margin: 0; color: var(--gold-light); font: 500 .77rem/1.4 "Cormorant Garamond", serif; letter-spacing: .25em; text-align: center; text-transform: uppercase; }
.motion-toggle { position: absolute; right: clamp(18px, 4vw, 62px); border: 0; background: transparent; color: #cbc5b8; cursor: pointer; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
@keyframes drift { from { transform: scale(1.03) translate3d(0,0,0); } to { transform: scale(1.09) translate3d(-1.3%, -.7%, 0); } }

@media (max-width: 1100px) {
  .brand-line { display: none; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: .72rem; }
  .stage { grid-template-columns: auto minmax(0, 520px) 1fr auto; padding-inline: 28px; }
  .journey-rail { grid-template-columns: repeat(2, 1fr); }
  .journey-rail a:nth-child(2) { border-right: 0; }
  .journey-rail a:nth-child(-n+2) { border-bottom: 1px solid rgba(214,168,57,.36); }
}

@media (max-width: 760px) {
  .hero { min-height: 100svh; grid-template-rows: auto 1fr auto; }
  .site-header { min-height: 82px; padding: 13px 18px; }
  .monogram { width: 48px; height: 48px; font-size: 2rem; }
  .brand-name { font-size: 1.15rem; white-space: normal; }
  .menu-button { display: block; }
  .main-nav { position: absolute; z-index: 10; top: 82px; left: 0; right: 0; padding: 20px; display: none; align-items: stretch; flex-direction: column; background: rgba(0,0,0,.97); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: left; padding: 13px 10px; }
  .main-nav .nav-cta { text-align: center; }
  .stage { padding: 22px 16px 18px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: end; }
  .story-card { grid-column: 1/-1; min-height: min(610px, calc(100svh - 180px)); padding: 28px 24px 26px; border-radius: 18px; }
  .slide h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .slide p:not(.eyebrow) { font-size: .94rem; }
  .arrow { position: absolute; z-index: 4; top: 50%; width: 42px; height: 42px; }
  .arrow-left { left: 7px; }
  .arrow-right { right: 7px; }
  .progress { justify-content: center; }
  .journey-rail { display: none; }
  .hero-footer { min-height: 58px; padding: 11px 72px 11px 18px; justify-content: flex-start; }
  .hero-footer p { font-size: .59rem; text-align: left; letter-spacing: .16em; }
  .motion-toggle { right: 18px; }
  .backdrop-image { background-position: 64% center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
