:root {
  color-scheme: light dark;
  --paper: #f7f1e2;
  --paper-deep: #e9dfca;
  --ink: #252317;
  --muted: #615f50;
  --forest: #304b3c;
  --forest-deep: #1c3026;
  --gold: #d6a542;
  --wine: #632e38;
  --line: rgba(37, 35, 23, .22);
  --panel: rgba(255, 253, 247, .84);
  --font-ui: Aptos, "Segoe UI", sans-serif;
  --font-story: "Iowan Old Style", Baskerville, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111610;
    --paper-deep: #1a2118;
    --ink: #f4ecd8;
    --muted: #c4bda9;
    --forest: #9ab996;
    --forest-deep: #0b110c;
    --gold: #efc86f;
    --wine: #d98791;
    --line: rgba(244, 236, 216, .2);
    --panel: rgba(20, 27, 20, .88);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); line-height: 1.6; }
a { color: inherit; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 99; background: var(--panel); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 76px; padding: 1rem clamp(1rem, 5vw, 5rem); display: flex; align-items: center; gap: 2rem; position: absolute; inset: 0 0 auto; z-index: 10; color: #252317; }
.endorsement { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hkz-mark { width: 20px; height: 20px; display: grid; grid-template-columns: 6px 6px 6px; gap: 1px; align-items: end; transform: skew(-7deg); }
.hkz-mark i { height: 100%; background: currentColor; }
.hkz-mark i:first-child { height: 82%; background: #b82936; }
.hkz-mark i:nth-child(3) { height: 45%; }
.site-header nav { margin-left: auto; display: flex; gap: clamp(1rem, 2.5vw, 2.3rem); }
.site-header nav a { text-decoration: none; font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.site-header nav a:hover { color: var(--wine); }

.hero { min-height: min(960px, 100svh); padding: 9rem clamp(1.5rem, 7vw, 7rem) 5rem; display: grid; grid-template-columns: minmax(320px, .95fr) minmax(520px, 1.05fr); align-items: center; position: relative; overflow: hidden; background-image: linear-gradient(90deg, rgba(248, 243, 230, .08), rgba(248, 243, 230, .78)), url('/assets/title-bg.webp'); background-position: center; background-size: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 68%, var(--paper)); pointer-events: none; }
.hero-art { align-self: end; justify-self: center; z-index: 1; }
.hero-art img { display: block; max-height: min(760px, 78svh); max-width: 100%; filter: drop-shadow(0 26px 30px rgba(47, 47, 31, .25)); }
.hero-copy { max-width: 760px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1.2rem; color: var(--wine); font-size: .72rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .journey-section h2, .build-section h2, .act-evolution h2, .enemy-evolution h2, .world-section h2, .media-section h2, .demo-section h2, .closing-section h2 { margin: 0; font-family: var(--font-story); font-weight: 600; line-height: .88; letter-spacing: -.05em; }
.hero h1 { font-size: clamp(5rem, 9.5vw, 10rem); text-transform: uppercase; }
.hero h1 sup { margin-left: .18em; font-family: var(--font-ui); font-size: .1em; font-weight: 800; letter-spacing: 0; vertical-align: top; }
.lede { max-width: 680px; margin: 1.6rem 0 0; color: #454535; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.hero-actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .8rem 1.2rem; background: var(--forest); color: var(--paper); border: 1px solid var(--forest); text-decoration: none; font-weight: 850; }
.status { padding: .6rem .85rem; border: 1px solid rgba(37, 35, 23, .3); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.scroll-cue { position: absolute; right: clamp(1.5rem, 5vw, 5rem); bottom: 4.5rem; z-index: 3; display: flex; align-items: center; gap: .8rem; color: #454535; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.scroll-cue i { width: 44px; height: 1px; background: currentColor; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); }

.journey-section, .build-section, .act-evolution, .world-section, .media-section, .demo-section, .closing-section { scroll-margin-top: 1rem; }
.journey-section { width: min(1320px, calc(100% - 4rem)); margin: auto; padding: clamp(6rem, 11vw, 11rem) 0; display: grid; grid-template-columns: .25fr 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.section-number { color: color-mix(in srgb, var(--gold) 62%, transparent); font-family: var(--font-story); font-size: clamp(7rem, 14vw, 15rem); line-height: .65; }
.journey-section h2, .build-section h2, .act-evolution h2, .enemy-evolution h2, .world-section h2, .media-section h2, .demo-section h2, .closing-section h2 { font-size: clamp(3.6rem, 7vw, 7.5rem); }
.large-copy { max-width: 690px; color: var(--muted); font-family: var(--font-story); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.45; }
.journey-notes { border-top: 1px solid var(--line); }
.journey-notes article { display: grid; grid-template-columns: 38px 110px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.journey-notes span, .question-list span, .direction { color: var(--wine); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.journey-notes h3 { margin: 0; font-family: var(--font-story); font-size: 1.45rem; }
.journey-notes p { margin: 0; color: var(--muted); }

.build-section { padding: clamp(6rem, 10vw, 10rem) max(2rem, calc((100vw - 1320px) / 2)); background: var(--forest-deep); color: #f5edda; overflow: hidden; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.section-heading > p { max-width: 590px; margin: 0 0 .4rem; color: #c9c4b3; font-size: 1.08rem; }
.build-section .eyebrow { color: #efc86f; }
.compass { width: min(980px, 100%); margin: clamp(5rem, 8vw, 8rem) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: ". north ." "west center east" ". south ."; gap: 1rem; position: relative; }
.compass::before, .compass::after { content: ""; position: absolute; background: rgba(245, 237, 218, .18); z-index: 0; }
.compass::before { left: 50%; top: 12%; bottom: 12%; width: 1px; }
.compass::after { top: 50%; left: 12%; right: 12%; height: 1px; }
.compass-card, .compass-center { min-height: 230px; padding: 1.8rem; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(245, 237, 218, .055); border: 1px solid rgba(245, 237, 218, .24); backdrop-filter: blur(4px); }
.compass-card strong { margin: .6rem 0 .2rem; font-family: var(--font-story); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; }
.compass-card p { margin: .5rem 0 0; color: #c9c4b3; }
.compass-strength { grid-area: north; }
.compass-agility { grid-area: east; }
.compass-intelligence { grid-area: south; }
.compass-wisdom { grid-area: west; }
.compass-center { grid-area: center; align-items: center; justify-content: center; border-radius: 50%; text-align: center; transform: scale(.72); background: rgba(214, 165, 66, .12); border-color: rgba(239, 200, 111, .55); }
.compass-center span { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; }
.compass-center strong { display: block; font-family: var(--font-story); font-size: 3.5rem; line-height: .9; }
.build-note { max-width: 700px; margin: 4rem auto 0; color: #c9c4b3; text-align: center; }

.act-evolution { background: #0d100e; color: #f4ecd8; }
.act-evolution-intro { width: min(1100px, calc(100% - 4rem)); margin: auto; padding: clamp(7rem, 12vw, 12rem) 0 clamp(5rem, 8vw, 8rem); text-align: center; }
.act-evolution-intro .eyebrow { color: #efc86f; }
.act-evolution-intro > p:last-child { max-width: 760px; margin: 1.8rem auto 0; color: #c8c0ae; font-size: 1.08rem; }
.act-scroll { min-height: 300svh; display: grid; position: relative; }
.act-stage, .act-steps { grid-area: 1 / 1; }
.act-stage { height: 100svh; position: sticky; top: 0; z-index: 0; overflow: hidden; align-self: start; background: #171916; }
.act-backgrounds, .act-background, .act-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.act-background { object-fit: cover; object-position: center; opacity: 0; transform: scale(1.015); transition: opacity 1.15s ease, transform 5s ease; }
.act-background.is-active { opacity: 1; transform: scale(1); }
.act-vignette { background: linear-gradient(90deg, rgba(8, 10, 9, .82) 0%, rgba(8, 10, 9, .48) 38%, rgba(8, 10, 9, .05) 68%), linear-gradient(180deg, rgba(8, 10, 9, .35), transparent 30%, transparent 70%, rgba(8, 10, 9, .62)); }
.act-index { position: absolute; top: clamp(1.5rem, 4vw, 4rem); right: clamp(1.5rem, 4vw, 4rem); z-index: 2; display: flex; align-items: center; gap: .7rem; color: rgba(255, 255, 255, .48); font-family: var(--font-story); font-size: .8rem; }
.act-index span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; transition: color .5s ease, border-color .5s ease, background .5s ease; }
.act-index span.is-active { background: rgba(239, 200, 111, .15); border-color: #efc86f; color: #fff3ce; }
.act-index i { width: 28px; height: 1px; background: rgba(255, 255, 255, .24); }
.act-scroll-hint { position: absolute; right: clamp(1.5rem, 4vw, 4rem); bottom: clamp(1.5rem, 4vw, 4rem); z-index: 2; margin: 0; color: rgba(255, 255, 255, .62); font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.act-steps { position: relative; z-index: 1; }
.act-step { min-height: 100svh; padding: 10vh max(2rem, calc((100vw - 1320px) / 2)); display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.act-step > * { max-width: 520px; }
.act-step > span { color: #efc86f; font-size: .7rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.act-step h3 { margin: .9rem 0 1rem; font-family: var(--font-story); font-size: clamp(3.2rem, 6vw, 6.2rem); font-weight: 500; line-height: .9; letter-spacing: -.045em; text-wrap: balance; }
.act-step p { margin: 0; color: #d3cbb9; font-size: clamp(1rem, 1.6vw, 1.2rem); text-wrap: pretty; }
.act-step > span, .act-step h3, .act-step p { opacity: .5; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.act-step.is-active > span, .act-step.is-active h3, .act-step.is-active p { opacity: 1; transform: translateY(0); }

.enemy-evolution { padding: clamp(7rem, 12vw, 12rem) max(2rem, calc((100vw - 1460px) / 2)); background: #0d100e; color: #f4ecd8; border-top: 1px solid rgba(244, 236, 216, .16); }
.enemy-evolution-heading { width: min(920px, 100%); margin-bottom: clamp(4rem, 8vw, 8rem); }
.enemy-evolution-heading .eyebrow { color: #efc86f; }
.enemy-evolution-heading > p:last-child { max-width: 700px; color: #c8c0ae; font-size: 1.08rem; }
.enemy-evolution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(244, 236, 216, .2); border: 1px solid rgba(244, 236, 216, .2); }
.enemy-evolution figure { min-width: 0; margin: 0; background: #151a16; overflow: hidden; }
.enemy-art { height: clamp(440px, 50vw, 710px); display: grid; place-items: end center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .08), transparent 48%), linear-gradient(180deg, #222820, #111510); }
.enemy-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 72%, #151a16); pointer-events: none; }
.enemy-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 24px 38px rgba(0, 0, 0, .48)); transition: transform .6s ease; }
.enemy-evolution figure:hover .enemy-art img { transform: scale(1.025); }
.enemy-evolution figcaption { min-height: 230px; padding: 1.7rem; position: relative; z-index: 1; }
.enemy-evolution figcaption span { color: #efc86f; font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.enemy-evolution figcaption strong { display: block; margin: .55rem 0 .8rem; font-family: var(--font-story); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; }
.enemy-evolution figcaption p { margin: 0; color: #c8c0ae; }

.world-section { width: min(1320px, calc(100% - 4rem)); margin: auto; padding: clamp(6rem, 11vw, 11rem) 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(4rem, 10vw, 10rem); }
.world-intro { position: sticky; top: 3rem; align-self: start; }
.world-intro > p:last-child { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.question-list { border-top: 1px solid var(--line); }
.question-list article { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.question-list h3 { margin: .7rem 0; font-family: var(--font-story); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 500; line-height: 1.05; }
.question-list p { max-width: 680px; margin: 0; color: var(--muted); }

.media-section { padding: clamp(6rem, 10vw, 10rem) max(2rem, calc((100vw - 1320px) / 2)); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; background: var(--paper-deep); }
.section-copy p:last-child, .demo-copy > p { color: var(--muted); font-size: 1.06rem; }
.media-stage { aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(48, 75, 60, .88), rgba(99, 46, 56, .82)), url('/assets/title-bg.webp') center / cover; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(25, 30, 20, .18); }
.media-stage::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255, 255, 255, .22); pointer-events: none; }
.poster-copy { position: absolute; inset: 2rem; display: flex; justify-content: space-between; align-items: flex-start; color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.poster-copy strong { font-weight: 850; }
.sealed-mark { width: 180px; height: 180px; display: grid; place-items: center; position: relative; color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; text-align: center; }
.sealed-mark i { position: absolute; inset: 13px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; }
.sealed-mark span { font-family: var(--font-story); font-size: 1.15rem; line-height: 1.1; }
.play-button { position: absolute; bottom: 2rem; min-height: 44px; padding: .7rem 1rem; border: 1px solid rgba(255, 255, 255, .5); background: rgba(16, 20, 16, .58); color: #fff; font: inherit; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.play-button:disabled { cursor: not-allowed; opacity: .82; }
.media-stage iframe { width: 100%; height: 100%; border: 0; position: relative; z-index: 2; }

.demo-section { width: min(1320px, calc(100% - 4rem)); margin: auto; padding: clamp(6rem, 10vw, 10rem) 0; display: grid; grid-template-columns: .3fr 1.15fr .55fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; border-bottom: 1px solid var(--line); }
.demo-action { min-height: 180px; padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.demo-action::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 15%, transparent); }

.closing-section { width: min(980px, calc(100% - 4rem)); margin: auto; padding: clamp(7rem, 12vw, 12rem) 0; text-align: center; }
.closing-section p:not(.eyebrow) { max-width: 720px; margin: 1.8rem auto; color: var(--muted); font-size: 1.08rem; }
.closing-section a { display: inline-flex; gap: .7rem; margin-top: 1rem; color: var(--wine); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

footer { padding: 2rem clamp(1rem, 5vw, 5rem); display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; text-transform: uppercase; }
footer a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (prefers-color-scheme: dark) {
  .site-header { color: #f4ecd8; }
  .hero { background-image: linear-gradient(90deg, rgba(17, 22, 16, .15), rgba(17, 22, 16, .82)), url('/assets/title-bg.webp'); }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(8, 14, 10, .36); }
  .lede, .scroll-cue { color: var(--muted); }
  .status { border-color: var(--line); }
}

@media (max-width: 1000px) {
  .site-header nav { gap: 1rem; }
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .hero { grid-template-columns: .8fr 1.2fr; }
  .journey-section { grid-template-columns: .2fr 1fr; }
  .journey-notes { grid-column: 2; }
  .world-section, .media-section { grid-template-columns: 1fr; }
  .world-intro { position: static; }
  .enemy-evolution-grid { grid-template-columns: 1fr; }
  .enemy-art { height: min(760px, 92vw); }
  .enemy-evolution figcaption { min-height: auto; }
  .demo-section { grid-template-columns: .25fr 1fr; }
  .demo-action { grid-column: 2; min-height: 130px; }
}

@media (max-width: 720px) {
  .site-header { gap: 1rem; }
  .site-header nav { display: none; }
  .endorsement { font-size: .62rem; }
  .hero { min-height: auto; padding: 8rem 1.25rem 3rem; grid-template-columns: 1fr; background-position: 38% center; }
  .hero-copy { grid-row: 1; }
  .hero-art { grid-row: 2; margin-top: 2rem; }
  .hero-art img { max-height: 610px; }
  .hero h1 { font-size: clamp(4.1rem, 19vw, 7rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .scroll-cue { display: none; }
  .journey-section, .world-section, .demo-section { width: min(100% - 2rem, 1320px); }
  .journey-section { grid-template-columns: 1fr; gap: 2rem; }
  .section-number { font-size: 7rem; }
  .journey-notes { grid-column: auto; }
  .journey-notes article { grid-template-columns: 34px 1fr; }
  .journey-notes p { grid-column: 2; }
  .section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .build-section, .media-section { padding-inline: 1rem; }
  .compass { grid-template-columns: 1fr; grid-template-areas: "north" "east" "south" "west"; }
  .compass::before, .compass::after, .compass-center { display: none; }
  .compass-card { min-height: 210px; }
  .world-section, .media-section, .demo-section { gap: 2rem; }
  .act-evolution-intro { width: min(100% - 2rem, 1100px); }
  .act-stage { height: 82svh; top: 0; }
  .act-scroll { min-height: 246svh; }
  .act-step { min-height: 82svh; padding: 8vh 1rem; justify-content: flex-end; }
  .act-step > * { max-width: calc(100% - 2.5rem); }
  .act-step h3 { font-size: clamp(3rem, 14vw, 5rem); }
  .act-step p { padding: .15rem 0; }
  .act-vignette { background: linear-gradient(180deg, rgba(8, 10, 9, .12) 30%, rgba(8, 10, 9, .9) 78%, #0d100e); }
  .act-index { top: 1.25rem; right: 1.25rem; }
  .act-scroll-hint { display: none; }
  .enemy-evolution { padding-inline: 1rem; }
  .media-stage { width: calc(100% + 2rem); margin-left: -1rem; }
  .poster-copy { inset: 1.25rem; }
  .sealed-mark { width: 140px; height: 140px; }
  .play-button { bottom: 1.25rem; }
  .demo-section { grid-template-columns: 1fr; }
  .demo-action { grid-column: auto; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .act-background, .act-step > span, .act-step h3, .act-step p, .enemy-art img { transition: none; }
  .act-background { transform: none; }
}
