@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #070b12;
  --navy: #0c1420;
  --steel: #aeb8c2;
  --mist: #e7e4dc;
  --gold: #f0a33a;
  --hot: #ffd27a;
  --line: rgba(240,163,58,.32);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--mist); background: var(--ink); font-family: var(--sans); font-size: 16px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 4.5vw; background: linear-gradient(to bottom, rgba(4,7,12,.92), rgba(4,7,12,0)); }
.sigil { display: flex; gap: 14px; align-items: center; font: 700 .78rem/1 var(--serif); letter-spacing: .22em; }
.sigil-blade { display: block; width: 4px; height: 33px; background: linear-gradient(#fff3cc, var(--gold) 55%, #63421d); clip-path: polygon(50% 0,100% 16%,68% 82%,100% 88%,50% 100%,0 88%,32% 82%,0 16%); filter: drop-shadow(0 0 8px rgba(240,163,58,.55)); }
.nav { display: flex; gap: 34px; align-items: center; font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold); transition: .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after { left: 0; right: 0; }
.menu-toggle { display: none; color: var(--mist); border: 0; background: none; text-transform: uppercase; letter-spacing: .14em; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 130px 7vw 90px; isolation: isolate; background: url('assets/backgrounds/hero-ocean.png') 60% center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 28vh; z-index: -1; background: linear-gradient(transparent, var(--ink)); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,6,11,.92) 0%, rgba(3,6,11,.72) 28%, rgba(3,6,11,.08) 62%); }
.hero-copy { width: min(680px, 54vw); }
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .29em; text-transform: uppercase; }
h1, h2, blockquote { font-family: var(--serif); }
.hero h1 { margin: 0; font-size: clamp(4rem, 8.7vw, 9.3rem); line-height: .72; letter-spacing: -.075em; text-transform: uppercase; text-shadow: 0 8px 30px rgba(0,0,0,.42); }
.hero h1 span { display: block; }
.hero .h1-mid { margin: .16em 0 .11em .5em; color: var(--gold); font-size: .42em; font-style: italic; letter-spacing: .08em; }
.ticker { display: inline-block; margin: 28px 0 0; padding: 9px 18px 8px; border: 1px solid var(--line); color: var(--hot); font: 700 .9rem/1 var(--serif); letter-spacing: .2em; background: rgba(4,8,13,.52); transform: skewX(-8deg); }
.hero-line { margin: 24px 0 30px; color: rgba(231,228,220,.74); font-family: var(--serif); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; letter-spacing: .03em; }
.blade-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.blade-button { position: relative; display: inline-grid; place-items: center; min-width: 190px; min-height: 54px; padding: 13px 34px; color: #15100a; background: linear-gradient(120deg,#8c5e24 0%,#f5b84f 22%,#ffe4a3 48%,#bd7929 70%,#68431d 100%); font: 800 .72rem/1 var(--serif); letter-spacing: .11em; text-transform: uppercase; clip-path: polygon(17px 0, calc(100% - 17px) 0,100% 50%,calc(100% - 17px) 100%,17px 100%,0 50%); box-shadow: 0 12px 36px rgba(240,163,58,.16); transition: transform .2s ease, filter .2s ease; }
.blade-button::before, .blade-button::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; background: #33200e; transform: translateY(-50%) rotate(45deg); }
.blade-button::before { left: 7px; } .blade-button::after { right: 7px; }
.blade-button:hover, .blade-button:focus-visible { transform: translateY(-3px); filter: brightness(1.12); outline: none; }
.blade-button--dark { color: var(--mist); background: linear-gradient(120deg,#1b2734,#4e5a64 34%,#151e28 68%,#080d13); box-shadow: inset 0 0 0 1px rgba(226,231,232,.23); }
.blade-button--dark::before,.blade-button--dark::after { background: var(--gold); }
.scroll-mark { position: absolute; right: 4.5vw; bottom: 34px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.45); font-size: .62rem; letter-spacing: .24em; writing-mode: vertical-rl; }
.scroll-mark span { width: 1px; height: 58px; background: linear-gradient(var(--gold),transparent); }

.creed { position: relative; min-height: 90vh; display: grid; grid-template-columns: .35fr 1.45fr 1fr; gap: 6vw; align-items: center; padding: 12vw 8vw; background: radial-gradient(circle at 82% 28%,rgba(72,93,111,.14),transparent 32%), linear-gradient(135deg,#070a10,#0b121b 60%,#07090d); }
.creed::before { content: ""; position: absolute; inset: 7% 4%; border: 1px solid rgba(189,201,210,.08); clip-path: polygon(0 0,100% 0,100% 89%,93% 100%,0 100%); }
.section-number { align-self: start; color: rgba(240,163,58,.28); font: 500 clamp(4rem,10vw,9rem)/1 var(--serif); }
.creed h2, .finale h2, .oath h2 { margin: 0; font-size: clamp(2.8rem,5.4vw,6.7rem); line-height: .98; letter-spacing: -.045em; text-transform: uppercase; }
.creed-card { padding: 34px 0 34px 35px; border-left: 1px solid var(--line); color: rgba(231,228,220,.7); line-height: 1.75; }
.text-link { display: inline-flex; gap: 10px; margin-top: 22px; color: var(--hot); font-family: var(--serif); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.lore-window { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
.lore-image { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,8,12,.2),rgba(5,8,12,.75)), url('assets/backgrounds/lore-hall.png') center / cover no-repeat; transform: scale(1.02); }
.lore-window::before, .lore-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(var(--ink),transparent 18%,transparent 78%,var(--ink)); pointer-events:none; z-index:1; }
.lore-plaque { position: relative; z-index: 2; width: min(600px,80vw); margin-left: auto; margin-right: 8vw; padding: 46px 50px; background: rgba(5,9,14,.83); border: 1px solid rgba(240,163,58,.3); box-shadow: 0 28px 90px rgba(0,0,0,.38); clip-path: polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px); }
.lore-plaque blockquote { margin: 0; font-size: clamp(1.55rem,2.8vw,2.8rem); line-height: 1.3; }
.lore-plaque > p:last-child { color: var(--gold); font-family: var(--serif); }

.contract { min-height: 78vh; display: grid; place-items: center; padding: 100px 7vw; text-align: center; background: radial-gradient(circle at center,rgba(203,128,35,.12),transparent 38%), #060a10; }
.contract h2 { margin: 0 0 40px; font-size: clamp(2.8rem,5vw,5.6rem); text-transform: uppercase; }
.copy-blade { position: relative; width: min(880px,88vw); min-height: 108px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; padding: 22px 44px; color: var(--mist); border: 0; cursor: pointer; background: linear-gradient(90deg,#2a1b0d,#946022 16%,#313b43 18%,#111921 80%,#86541e 83%,#2a1b0d); clip-path: polygon(32px 0,calc(100% - 32px) 0,100% 50%,calc(100% - 32px) 100%,32px 100%,0 50%); }
.copy-blade:hover { filter: brightness(1.14); }
.copy-label { color: var(--hot); font: 700 .75rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.copy-blade code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(231,228,220,.78); font-size: .9rem; }
.copy-status { color: rgba(231,228,220,.5); font-size: .8rem; letter-spacing: .06em; }

.finale { min-height: 84vh; display: grid; place-items: center; align-content: center; gap: 25px; padding: 120px 7vw; text-align: center; background: linear-gradient(rgba(4,7,11,.54),rgba(4,7,11,.9)), url('assets/backgrounds/hero-ocean.png') center 56% / cover no-repeat; }
.finale-mark { color: var(--gold); font-size: 3rem; text-shadow: 0 0 30px var(--gold); }
.blade-actions--center { justify-content: center; margin-top: 24px; }
footer { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 5vw; color: rgba(231,228,220,.38); border-top: 1px solid rgba(255,255,255,.07); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }

.lore-hero { position: relative; min-height: 88vh; display: grid; align-items: end; padding: 120px 8vw 10vh; background: linear-gradient(90deg,rgba(4,7,11,.4),rgba(4,7,11,.18)),url('assets/backgrounds/lore-hall.png') center / cover no-repeat; }
.lore-hero-copy { position: relative; z-index: 2; }
.lore-hero h1 { margin: 0; font-size: clamp(4rem,8vw,9rem); line-height: .88; letter-spacing: -.06em; text-transform: uppercase; }
.lore-hero-copy > p:last-child { margin-top: 22px; color: var(--gold); font-family: var(--serif); font-size: 1.2rem; }
.story { display: grid; grid-template-columns: .45fr 1fr; gap: 8vw; width: min(1120px,86vw); margin: 0 auto; padding: 14vw 0; }
.story-rule { position: relative; min-height: 100%; border-right: 1px solid var(--line); color: rgba(240,163,58,.32); font: 500 clamp(5rem,11vw,10rem)/1 var(--serif); }
.story-rule::after { content:""; position:absolute; top:140px; right:-5px; width:9px; height:9px; background:var(--gold); transform:rotate(45deg); }
.story-body { max-width: 700px; font-family: Georgia,serif; font-size: clamp(1.15rem,1.8vw,1.45rem); line-height: 1.85; color: rgba(231,228,220,.73); }
.story-body .lead { color: var(--mist); font-size: 1.28em; }
.story-signoff { margin-top: 50px; color: var(--mist); }
.story-signoff strong { color: var(--gold); font-family: var(--serif); }
.oath { min-height: 86vh; display: grid; place-items: center; align-content: center; gap: 34px; padding: 100px 7vw; text-align: center; background: radial-gradient(circle at 50% 45%,rgba(240,163,58,.12),transparent 34%),#070a0f; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none} }

@media (max-width: 800px) {
  .topbar { height: 66px; padding: 0 20px; background: rgba(5,8,13,.88); }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; display: none; padding: 20px; gap: 24px; justify-content: center; background: rgba(5,8,13,.96); border-top: 1px solid rgba(255,255,255,.08); }
  .nav.is-open { display:flex; }
  .hero { min-height: 100svh; padding: 110px 24px 70px; align-items: end; background-position: 68% center; }
  .hero-shade { background: linear-gradient(0deg,rgba(3,6,11,.95),rgba(3,6,11,.12) 70%); }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(3.35rem,17vw,6.3rem); line-height:.76; }
  .hero-line { font-size: 1rem; }
  .blade-actions { gap: 12px; }
  .blade-button { min-width: 100%; }
  .scroll-mark { display:none; }
  .creed { grid-template-columns: 1fr; gap: 35px; min-height: auto; padding: 110px 24px; }
  .section-number { position:absolute; top:60px; right:25px; }
  .creed h2,.finale h2,.oath h2 { font-size:clamp(2.5rem,11vw,4.5rem); }
  .creed-card { padding: 25px 0 0; border-left:0; border-top:1px solid var(--line); }
  .lore-window { min-height: 92vh; align-items:end; padding-bottom: 40px; }
  .lore-image { background-position: 28% center; }
  .lore-plaque { width: calc(100% - 32px); margin:0 auto; padding:34px 28px; }
  .copy-blade { grid-template-columns:1fr; padding:26px 35px; }
  .copy-blade code { font-size:.72rem; }
  footer { flex-direction:column; text-align:center; }
  .lore-hero { min-height:80svh; padding:100px 24px 70px; background-position:35% center; }
  .lore-hero h1 { font-size:clamp(3.2rem,16vw,5.5rem); }
  .story { grid-template-columns:1fr; gap:40px; width:calc(100% - 48px); padding:110px 0; }
  .story-rule { min-height:auto; border-right:0; border-bottom:1px solid var(--line); padding-bottom:25px; }
  .story-rule::after { top:auto; bottom:-5px; right:20px; }
}
