@import url("ui/tokens.css");

:root {
  color-scheme: dark;
  --ink: var(--ftt-color-canvas);
  --ink-soft: var(--ftt-color-panel);
  --paper: var(--ftt-color-text);
  --muted: var(--ftt-color-muted);
  --gold: var(--ftt-color-accent);
  --gold-bright: var(--ftt-color-accent-hover);
  --line: var(--ftt-color-divider);
  --serif: var(--ftt-font-editorial);
  --sans: var(--ftt-font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #0d1315; background: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 14px 20px; color: #101719; background: var(--gold-bright); }
.skip-link:focus { top: 12px; }
.container { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }
.section-space { padding: clamp(82px, 9vw, 136px) 0; }
.eyebrow { display: inline-block; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.eyebrow-rule { display: flex; align-items: center; gap: 15px; }
.eyebrow-rule::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.display-title { max-width: 880px; margin: 20px 0 0; font: 400 clamp(2.8rem, 5vw, 5.7rem)/1.09 var(--serif); letter-spacing: -.055em; }
.display-title em { color: var(--gold); font-style: normal; }
.fine-print { margin: 20px 0 0; color: #918e86; font-size: .77rem; line-height: 1.55; }

.site-header { position: absolute; z-index: 30; top: 0; right: 0; left: 0; border-bottom: 1px solid rgba(234, 221, 195, .16); background: linear-gradient(180deg, rgba(6, 11, 13, .85), rgba(6, 11, 13, .32)); }
.header-inner { display: flex; align-items: center; gap: 36px; height: 84px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.brand-lockup { width: clamp(185px, 19vw, 242px); height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 37px); margin-left: auto; }
.main-nav a, .header-status { font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; }
.main-nav a { color: #dfd9cc; transition: color .2s ease; }
.main-nav a:hover { color: var(--gold-bright); }
.header-status { padding: 11px 13px; border: 1px solid var(--line); color: var(--gold); }
.menu-toggle { display: none; }

.hero { position: relative; display: flex; align-items: center; min-height: 790px; min-height: min(900px, 100svh); overflow: hidden; background: #172125; }
.hero-art, .hero-vignette { position: absolute; inset: 0; }
.hero-art { background: url("assets/red.webp") 62% 42% / cover no-repeat; transform: scale(1.02); }
.hero-vignette { background: linear-gradient(90deg, rgba(5, 10, 12, .99) 0%, rgba(5, 10, 12, .88) 30%, rgba(5, 10, 12, .25) 68%, rgba(5, 10, 12, .15) 100%), linear-gradient(0deg, rgba(5, 10, 12, .75), transparent 32%); }
.hero-layout { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: inherit; padding-top: 100px; padding-bottom: 100px; }
.hero-copy { max-width: 700px; }
.hero h1 { margin: 28px 0 28px; font: 400 clamp(4.6rem, 8.5vw, 8.6rem)/.97 var(--serif); letter-spacing: -.075em; text-shadow: 0 5px 30px rgba(0, 0, 0, .22); }
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.hero-copy p { max-width: 540px; margin: 0 0 34px; color: #e0dace; font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.7; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-align: center; text-transform: uppercase; transition: color .2s, background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: #181714; background: var(--gold); }
.button-gold:hover { background: var(--gold-bright); }
.button-outline { color: var(--paper); background: rgba(8, 13, 14, .28); }
.button-outline:hover { background: rgba(201, 170, 115, .14); }
.hero-art-credit { align-self: flex-end; margin-bottom: 20px; color: #e6dfd0; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-foot { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; border-top: 1px solid rgba(237, 229, 212, .18); }
.hero-foot-inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; color: #c4bdaf; font-size: .65rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }

.prologue { background: radial-gradient(circle at 16% 18%, #1e2929, #0d1416 56%); }
.prologue-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(50px, 10vw, 160px); }
.prologue-story { padding-left: 34px; border-left: 1px solid var(--line); }
.prologue-story p { color: #d2ccbf; font-size: 1.09rem; line-height: 1.85; }
.prologue-story p:last-of-type { margin-bottom: 24px; }
.lore { background: #151c1d; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lore-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(54px, 9vw, 140px); }
.lore-intro p { max-width: 530px; margin: 30px 0 0; color: #d0c9bc; font-size: 1.08rem; line-height: 1.8; }
.lore-beats { border-top: 1px solid var(--line); }
.lore-beats article { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.lore-beats article > span { color: var(--gold); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.lore-beats h3 { margin: 12px 0 8px; font: 400 1.7rem/1.15 var(--serif); }
.lore-beats p { margin: 0; color: #bfb9ae; font-size: .92rem; line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 11px; padding-bottom: 6px; border-bottom: 1px solid var(--gold); color: var(--gold-bright); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.text-link span { display: block; width: 13px; height: 1px; background: currentColor; transition: width .2s; }
.text-link:hover span { width: 24px; }

.game { background: #1b1f1e; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 50px; }
.section-heading > p { max-width: 395px; margin: 0 0 8px; color: #cac4b8; font-size: 1.04rem; line-height: 1.75; }
.game-board { display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--line); }
.lane-visual { display: flex; flex-direction: column; justify-content: space-between; min-height: 505px; padding: 42px; overflow: hidden; background: radial-gradient(circle at 51% 53%, #3c3b30, #172021 60%, #11181a); }
.lane-visual-label { color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.lanes { display: flex; align-items: center; justify-content: center; min-height: 170px; }
.lane-count { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; width: clamp(95px, 10vw, 145px); height: clamp(95px, 10vw, 145px); border: 1px solid rgba(228, 202, 156, .63); border-radius: 50%; color: var(--gold-bright); font: 400 clamp(2.7rem, 4vw, 4.7rem)/1 var(--serif); box-shadow: 0 0 40px rgba(201, 170, 115, .08) inset; }
.lane-count small { margin-top: 7px; color: #d1c6b4; font: 700 .58rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.lane-count.one { background: rgba(201, 170, 115, .13); }
.lane-path { width: clamp(24px, 5vw, 84px); height: 1px; background: linear-gradient(90deg, rgba(201, 170, 115, .4), var(--gold)); }
.lane-visual p { max-width: 320px; margin: 0; color: #cfc8b8; line-height: 1.6; }
.game-decisions { display: grid; grid-template-rows: repeat(3, 1fr); background: #11191a; }
.game-decisions article { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-content: center; padding: 25px 40px; border-bottom: 1px solid var(--line); }
.game-decisions article:last-child { border-bottom: 0; }
.game-decisions article > span { grid-row: span 2; color: var(--gold); font: 400 1.06rem var(--serif); }
.game-decisions h3 { margin: 0 0 9px; font: 400 1.45rem var(--serif); }
.game-decisions p { max-width: 440px; margin: 0; color: #bfb9ae; font-size: .91rem; line-height: 1.6; }

.heroes { background: #0e1517; }
.heroes-heading .display-title { max-width: 850px; }
.hero-showcase { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(330px, .52fr); min-height: 540px; border: 1px solid var(--line); overflow: hidden; }
.showcase-image-wrap { position: relative; min-height: 540px; background: #1c2729; overflow: hidden; }
.showcase-image-wrap::after { position: absolute; inset: 45% 0 0; content: ""; pointer-events: none; background: linear-gradient(0deg, rgba(9, 15, 17, .55), transparent); }
.showcase-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.image-caption { position: absolute; z-index: 1; bottom: 23px; left: 26px; padding: 10px 12px; border: 1px solid rgba(237, 229, 212, .55); background: rgba(9, 15, 17, .6); color: #e4ddcf; font-size: .61rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.showcase-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4vw, 56px); background: linear-gradient(155deg, #25302e, #151d1e); }
.showcase-index { color: var(--gold); font: 400 1rem var(--serif); letter-spacing: .1em; }
.showcase-epithet { margin-top: 42px; color: var(--gold-bright); font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.showcase-copy h3 { margin: 14px 0 23px; font: 400 clamp(2.7rem, 3.7vw, 4.5rem)/1 var(--serif); letter-spacing: -.05em; }
.showcase-copy p { margin: 0; color: #d7d0c3; font-size: 1.02rem; line-height: 1.8; }
.showcase-detail { align-self: flex-start; margin-top: 35px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.hero-tab { display: flex; align-items: baseline; gap: 12px; min-height: 76px; padding: 23px 19px; border: 0; border-right: 1px solid var(--line); color: var(--paper); background: #111b1c; text-align: left; cursor: pointer; transition: background .2s ease; }
.hero-tab:last-child { border-right: 0; }
.hero-tab:hover { background: #263230; }
.hero-tab[aria-selected="true"] { background: #3b352b; }
.hero-tab span { color: var(--gold); font-size: .64rem; }
.hero-tab strong { font: 400 clamp(.95rem, 1.5vw, 1.35rem) var(--serif); }

.interlude { position: relative; display: flex; align-items: center; min-height: 660px; overflow: hidden; background: #202322; }
.interlude-art { position: absolute; inset: 0; background: url("assets/goldilocks.webp") 62% 47% / cover no-repeat; }
.interlude::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(7, 12, 14, .97), rgba(7, 12, 14, .82) 32%, rgba(7, 12, 14, .13) 82%), linear-gradient(0deg, rgba(7, 12, 14, .75), transparent 38%); }
.interlude-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.interlude h2 { max-width: 620px; margin: 22px 0 24px; font: 400 clamp(3rem, 5.2vw, 5.8rem)/1.08 var(--serif); letter-spacing: -.06em; }
.interlude p { max-width: 510px; margin: 0; color: #e2dace; font-size: 1.08rem; line-height: 1.8; }

.development { background: radial-gradient(circle at 80% 35%, #22302c, #111719 60%); }
.development-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(70px, 12vw, 180px); }
.development-copy > p { max-width: 540px; color: #cbc5ba; font-size: 1.07rem; line-height: 1.8; }
.status-list { margin-top: 30px; border-top: 1px solid var(--line); }
.status-list div { display: flex; justify-content: space-between; gap: 25px; padding: 19px 0; border-bottom: 1px solid var(--line); font-size: .79rem; }
.status-list span { color: var(--muted); }
.status-list strong { color: var(--gold-bright); font-weight: 600; text-align: right; }

.site-footer { background: #0a1012; border-top: 1px solid var(--line); }
.footer-upper { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 50px; padding-bottom: 46px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-mark { width: 43px; height: 43px; }
.footer-brand div { display: flex; flex-direction: column; gap: 6px; }
.footer-brand strong { font: 400 1.35rem var(--serif); }
.footer-brand div span { color: var(--muted); font-size: .79rem; }
.back-top { padding-bottom: 5px; border-bottom: 1px solid var(--gold); color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-lower { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); color: #8f938b; font-size: .72rem; }

.play-panel { border: 1px solid var(--line); border-top: 0; background: #11191a; }
.play-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 24px 28px 19px; border-bottom: 1px solid var(--line); }
.play-heading p { max-width: 460px; margin: 0; color: #aaa79e; font-size: .78rem; line-height: 1.5; text-align: right; }
.play-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: 26px 28px 30px; }
.play-body p { margin: 0; color: #d4cec2; font: 400 1.15rem/1.6 var(--serif); }
.play-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.play-tags li { padding: 8px 12px; border: 1px solid var(--line); color: var(--gold-bright); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lanes-five .lane-count { width: clamp(64px, 6.4vw, 100px); height: clamp(64px, 6.4vw, 100px); font-size: clamp(1.8rem, 2.8vw, 3.2rem); }
.lanes-five .lane-count small { font-size: .5rem; letter-spacing: .08em; }
.lanes-five .lane-path { width: clamp(10px, 2vw, 34px); }
.tug-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #11191a; }
.tug-steps article { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 28px 30px; border-right: 1px solid var(--line); }
.tug-steps article:last-child { border-right: 0; }
.tug-steps article > span { grid-row: span 2; color: var(--gold); font: 400 1.06rem var(--serif); }
.tug-steps h3 { margin: 0 0 9px; font: 400 1.45rem var(--serif); }
.tug-steps p { margin: 0; color: #bfb9ae; font-size: .91rem; line-height: 1.6; }

.more-heroes { margin: 26px 0 0; color: var(--gold-bright); font: 400 1.25rem/1.5 var(--serif); }

@media (max-width: 1120px) {
  .header-status { display: none; }
  .hero-showcase { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
  .hero-tab { padding: 22px 12px; }
}
@media (max-width: 960px) {
  .play-body { grid-template-columns: 1fr; }
  .tug-steps { grid-template-columns: 1fr; }
  .tug-steps article { border-right: 0; border-bottom: 1px solid var(--line); }
  .tug-steps article:last-child { border-bottom: 0; }
  .container { width: min(100% - 40px, 680px); }
  .header-inner { height: 72px; gap: 16px; }
  .brand-lockup { width: clamp(160px, 47vw, 186px); }
  .menu-toggle { display: flex; min-height: 44px; flex-direction: row; align-items: center; gap: 10px; margin-left: auto; padding: 10px 0 10px 10px; border: 0; color: var(--paper); background: transparent; cursor: pointer; }
  .menu-label { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .menu-lines { display: flex; flex-direction: column; gap: 5px; }
  .menu-lines span { display: block; width: 23px; height: 1px; background: var(--gold); }
  .main-nav { display: none; position: absolute; top: 72px; right: 0; left: 0; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); background: #101719; }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 0; }
  .hero { min-height: 750px; align-items: end; }
  .hero-art { background-position: 84% center; }
  .hero-vignette { background: linear-gradient(0deg, rgba(5, 10, 12, .98), rgba(5, 10, 12, .78) 42%, rgba(5, 10, 12, .08) 90%); }
  .hero-layout { min-height: 750px; align-items: end; padding-top: 190px; padding-bottom: 108px; }
  .hero h1 { font-size: clamp(4rem, 12vw, 6.3rem); }
  .hero-art-credit { display: none; }
  .prologue-grid, .lore-layout, .development-grid { grid-template-columns: 1fr; gap: 36px; }
  .prologue-story { padding-left: 20px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 600px; margin-top: 22px; }
  .game-board, .hero-showcase { grid-template-columns: 1fr; }
  .lane-visual { min-height: 360px; }
  .showcase-image-wrap { min-height: 390px; max-height: 520px; }
  .showcase-copy { min-height: 315px; }
  .hero-tabs { grid-template-columns: repeat(3, 1fr); }
  .hero-tab:nth-child(3) { border-right: 0; }
  .hero-tab:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .interlude-art { background-position: 60% center; }
}
@media (max-width: 560px) {
  .lanes-five .lane-count { width: clamp(36px, 12vw, 50px); height: clamp(36px, 12vw, 50px); font-size: 1.5rem; }
  .lanes-five .lane-count small { font-size: .38rem; letter-spacing: .04em; }
  .lanes-five .lane-path { flex: 0 0 clamp(6px, 2vw, 8px); }
  .play-heading { display: block; padding: 22px; }
  .play-heading p { margin-top: 9px; text-align: left; }
  .play-body { padding: 22px; }
  .tug-steps article { grid-template-columns: 33px 1fr; padding: 23px 20px; }
  .container { width: calc(100% - 36px); }
  .section-space { padding: 78px 0; }
  .brand-wordmark { font-size: .96rem; }
  .hero { min-height: 730px; }
  .hero-layout { min-height: 730px; padding-bottom: 118px; }
  .hero h1 { font-size: clamp(3.6rem, 13.8vw, 4.8rem); }
  .hero-copy p { font-size: .97rem; }
  .button-row { align-items: stretch; }
  .button { width: 100%; }
  .hero-foot-inner { flex-direction: column; gap: 5px; font-size: .58rem; }
  .display-title { font-size: clamp(2.55rem, 11vw, 4rem); }
  .lane-visual { min-height: 290px; padding: 24px; }
  .lane-count { width: 82px; height: 82px; font-size: 2.2rem; }
  .lane-count small { font-size: .44rem; }
  .lane-path { width: 16px; }
  .game-decisions article { grid-template-columns: 33px 1fr; padding: 23px 20px; }
  .showcase-image-wrap { min-height: 290px; height: 64vw; }
  .showcase-copy { min-height: 290px; padding: 27px; }
  .showcase-epithet { margin-top: 22px; }
  .hero-tabs { grid-template-columns: repeat(2, 1fr); }
  .hero-tab { min-height: 65px; padding: 17px 13px; }
  .hero-tab:nth-child(3) { border-right: 1px solid var(--line); }
  .hero-tab:nth-child(2), .hero-tab:nth-child(4) { border-right: 0; }
  .hero-tab:nth-child(4) { border-bottom: 1px solid var(--line); }
  .hero-tab:nth-child(5) { grid-column: span 2; }
  .interlude { min-height: 610px; align-items: end; }
  .interlude-art { background-position: 57% center; }
  .interlude::after { background: linear-gradient(0deg, rgba(7, 12, 14, .98), rgba(7, 12, 14, .75) 48%, rgba(7, 12, 14, .06) 91%); }
  .interlude-inner { padding-top: 185px; padding-bottom: 60px; }
  .interlude h2 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .footer-upper, .footer-lower { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Keep the unfinished siege mechanism outside Tortoise's portrait. */
.tortoise-portrait { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #1c2729; }
.tortoise-portrait[hidden], #showcase-image[hidden] { display: none; }

.tortoise-portrait svg { display: block; width: 100%; height: 100%; overflow: hidden; }

@media (min-width: 961px) {
  .hero-showcase:has(#tortoise-portrait:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(330px, 1fr); }
}
