/* Henerals: folded metal, navy field, warm ivory, restrained brass light. */
:root { --ink: #0b1c28; --navy: #102a3c; --steel: #294859; --ivory: #f0eee2; --brass: #d5b579; --muted: #b0c0c9; }
body { background: var(--ink); color: var(--ivory); }
body > nav { background: #0b1c28e8; backdrop-filter: blur(18px); border-color: #92b4c21a; gap: 30px; padding-inline: max(24px, calc((100vw - 1240px) / 2)); }
body > nav .brand-mark { width: 44px; height: 44px; }
.nav-links { gap: 22px; margin-left: auto; }
.nav-links a { color: #c9d3d8; transition: color .15s; }
.nav-links a:hover { color: #f0d7a4; }
.brand { font-size: 29px; }
.primary, .play-link { border: 1px solid #edd4a1; border-radius: 5px; background: linear-gradient(120deg, #eed4a2, #cfa869); box-shadow: inset 0 1px #fff7dd88, 0 4px 18px #030f1730; transition: box-shadow .2s, transform .2s; }
.primary:hover, .play-link:hover { transform: translateY(-2px); box-shadow: inset 0 1px #fff7dd, 0 6px 28px #bc955529; }
.primary { padding: 15px 23px; gap: 16px; min-height: 54px; }
.primary svg { width: 22px; height: 22px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #f0ce8d; outline-offset: 5px; }
.home-page { overflow: clip; }
.home-page h2 { font: 700 clamp(38px, 4vw, 56px)/1.02 'Barlow Condensed', sans-serif; letter-spacing: -.015em; margin: 0 0 24px; }
.home-page p { color: var(--muted); }
.text-link { display: inline-flex; gap: 16px; align-items: center; text-decoration: none; border-bottom: 1px solid #d5b57970; padding: 8px 0; }
.text-link svg { width: 22px; height: 22px; }
.landing-hero { --light-x: 65%; --light-y: 40%; position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 12px; min-height: 740px; max-width: 1360px; padding: 58px 60px 90px; margin: auto; }
.hero-light { pointer-events: none; position: absolute; inset: -100px -100px 0; z-index: -1; background: radial-gradient(ellipse 48% 65% at var(--light-x) var(--light-y), #35526748, transparent 85%), radial-gradient(ellipse 45% 50% at 90% 55%, #ad8a3520, transparent 80%); }
.hero-content { position: relative; z-index: 2; animation: field-arrival .65s ease-out both; }
@keyframes field-arrival { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-origin { font-size: 16px; margin: 0 0 28px; color: var(--brass) !important; }
.landing-hero h1 { font: 700 clamp(70px, 7.7vw, 110px)/.94 'Barlow Condensed', sans-serif; letter-spacing: -.025em; margin: 0 0 30px; text-wrap: balance; }
.hero-description { max-width: 445px; font-size: 20px; line-height: 1.6; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.hero-access { font-size: 14px; line-height: 1.6; margin: 24px 0 0; }
.battle-stage { position: relative; height: 560px; width: 100%; min-width: 0; }
.battle-perspective { perspective: 1100px; position: absolute; inset: 0 -35px; display: grid; place-items: center; }
.battle-board { position: relative; width: 100%; max-width: 610px; aspect-ratio: 9/8; background: #213849; border: 17px solid #294354; border-bottom-width: 32px; border-radius: 9px; transform: translateY(var(--board-rise, 0px)) rotateX(calc(49deg + var(--board-lean, 0deg))) rotateZ(calc(-26deg + var(--board-turn, 0deg))); transform-style: preserve-3d; box-shadow: 0 3px #6d8390, 0 12px #11212d, 0 16px #08131c, -24px 56px 60px #020e18b3, inset 0 0 0 1px #74858c; }
.battle-squares { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(8, 1fr); transform-style: preserve-3d; border: 1px solid #172b35; }
.battle-square { display: block; background: #9caaac; border: 1px solid #70869166; position: relative; transform-style: preserve-3d; }
.battle-square.shade { background: #69818d; }
.battle-piece { position: absolute; inset: 16% 14%; display: block; transform-style: preserve-3d; }
.battle-foot { position: absolute; inset: 0; background: linear-gradient(135deg, #e8e6d9, #999c91); border: 1px solid #f0ede1; border-radius: 2px; box-shadow: 2px 5px 5px #10253770; transform: translateZ(2px); }
.battle-face { position: absolute; inset: -10% 0 5%; background: linear-gradient(130deg, #fffdf1, #dfdbc9 50%, #a7aea9); border: 1px solid #faf6e7; border-bottom: 3px solid #979f99; border-radius: 3px 3px 1px 1px; color: #193447; display: grid; place-items: center; transform-origin: bottom; transform: translateZ(3px) rotateX(-62deg); backface-visibility: hidden; }
.battle-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at var(--light-x, 65%) var(--light-y, 40%), #ffffff30, transparent 70%); }
.battle-face svg { width: 78%; height: 78%; }
.concealed .battle-foot { background: #243f50; border-color: #527080; }
.concealed .battle-face { color: #9db0b9; background: linear-gradient(135deg, #466779, #183243 75%); border-color: #6d8390; border-bottom-color: #122c3e; }
.board-signature { position: absolute; top: calc(100% + 6px); left: 0; right: 0; text-align: center; font: 700 14px/1 'Barlow Condensed', sans-serif; color: #b8c5cb; letter-spacing: .06em; }
.battle-files { position: absolute; display: grid; grid-template-columns: repeat(9, 1fr); top: -15px; left: 0; right: 0; font: 9px/1 Barlow, sans-serif; text-align: center; color: #a4b9c3; }
.table-halo { position: absolute; width: 130%; height: 75%; top: 10%; left: -15%; background: radial-gradient(ellipse, #4c68772b, transparent 65%); }
.stage-caption { position: absolute; bottom: 0; right: 5%; color: #92a9b6; font-size: 13px; display: flex; align-items: center; gap: 14px; }
.caption-line { width: 40px; height: 1px; background: #af9862; }
.tempo-section { max-width: 1240px; margin: 0 auto; padding: 44px 0; border-block: 1px solid #8ba4ae2b; display: grid; grid-template-columns: 1fr 1.8fr; gap: 50px; }
.tempo-intro h2 { font-size: 34px; margin: 0 0 18px; }
.tempo-intro a { font-size: 15px; }
.tempo-options { display: grid; grid-template-columns: repeat(3, 1fr); }
.tempo-choice { position: relative; display: flex; flex-direction: column; color: var(--ivory); text-decoration: none; padding: 0 28px; border-left: 1px solid #8ba4ae2b; transition: background .2s; }
.tempo-choice:hover { background: #30526330; }
.tempo-name { font-size: 18px; }
.tempo-time { display: flex; align-items: baseline; gap: 8px; font: 700 54px/1.2 'Barlow Condensed', sans-serif; margin: 3px 0 8px; white-space: nowrap; }
.tempo-time small { font: 400 16px/1 Barlow, sans-serif; color: #b7c6cf; }
.tempo-description { font-size: 14px; color: #a0b6c3; }
.tempo-choice > svg { position: absolute; top: 2px; right: 24px; width: 18px; color: var(--brass); }
.rank-discovery { max-width: 1240px; margin: auto; padding: 120px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.rank-intro p { max-width: 420px; margin-bottom: 26px; }
.rank-exhibit { min-width: 0; }
.rank-choices { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; min-height: 245px; background: radial-gradient(ellipse at 50% 75%, #bca97d14, transparent 65%); }
.rank-choice { font: inherit; position: relative; border: 0; background: transparent; color: #9bafbb; min-width: 0; padding: 0 0 18px; cursor: pointer; }
.rank-choice > span { display: block; font-size: 16px; margin-top: 12px; }
.rank-choice.active { color: #efd6a7; }
.rank-choice::after { content: ''; position: absolute; width: 30px; height: 2px; background: #d7b77f; bottom: 0; left: calc(50% - 15px); transform: scaleX(0); transition: transform .2s; }
.rank-choice.active::after { transform: scaleX(1); }
.sculpture { display: block; width: 170px; height: 170px; max-width: 100%; margin: 0 auto; transform: rotate(-5deg); transition: transform .35s ease; overflow: visible; }
.rank-choice:hover .sculpture, .rank-choice.active .sculpture { transform: translateY(-12px) rotate(-3deg); }
.rank-insight { min-height: 128px; margin: 28px 0 0; border-top: 1px solid #9ab2bd2b; padding-top: 24px; display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.insight-symbol { color: var(--brass); }
.insight-symbol svg { width: 40px; height: 40px; }
.rank-insight h3 { font-size: 19px; line-height: 1.2; margin: 0 0 9px; font-weight: 600; }
.rank-insight p { font-size: 15px; line-height: 1.6; margin: 0; max-width: 450px; }
.learn-section { padding: 96px max(24px, calc((100vw - 1240px) / 2)); background: #163246; box-shadow: inset 0 1px #b9cbd51c; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-intro > p { max-width: 390px; margin: 0 0 24px; }
.learn-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin: 46px 0 28px; }
.learn-path h3 { font: 700 27px/1.1 'Barlow Condensed', sans-serif; margin: 28px 0 16px; }
.learn-path p { font-size: 16px; margin: 0; }
.lesson-art { height: 106px; width: 170px; }
.formation-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; transform: perspective(300px) rotateX(25deg) rotateZ(-6deg); }
.formation-art span { background: linear-gradient(130deg, #e5e0cb, #adbcbf); border: 1px solid #e5e0cb; box-shadow: 0 4px #778d93; border-radius: 2px; }
.formation-art .gap { background: transparent; border: 1px solid #6c8999; box-shadow: none; }
.move-art { display: flex; align-items: end; width: 210px; }
.move-art span { width: 70px; height: 70px; border: 1px solid #728b96; display: grid; place-items: center; }
.move-art span:nth-child(2) { color: #183345; background: #dedfce; border-bottom: 5px solid #9caeaf; }
.move-art svg { width: 45px; height: 45px; }
.move-art .move-target { border: 2px solid #dec58e; background: #bb9d5226; color: var(--brass); }
.flag-art .sculpture { width: 170px; height: 170px; max-width: none; transform: scale(.7) rotate(5deg); transform-origin: top left; margin: 0; }
.together-section { max-width: 1120px; margin: auto; padding: 110px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.together-section p { max-width: 435px; }
.platform-note { font-size: 14px; margin-top: 22px; }
.together-graphic { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; gap: 50px; background: radial-gradient(ellipse, #32556754, transparent 70%); }
.friend-emblem { width: 122px; height: 144px; border-radius: 7px; padding: 20px; display: grid; place-items: center; position: relative; box-shadow: 8px 20px 25px #020c1550; }
.friend-emblem svg { width: 100%; }
.friend-emblem.ivory { background: linear-gradient(120deg, #f1edd9, #c4cbbf); color: #19374a; transform: rotate(-12deg) translateY(-28px); border-bottom: 5px solid #8eaaa9; }
.friend-emblem.navy { background: linear-gradient(120deg, #405f71, #1b3546); color: #e2cc9b; transform: rotate(12deg) translateY(25px); border: 1px solid #6e8897; border-bottom: 5px solid #192e3d; }
.connection-line { position: absolute; width: 70%; height: 100px; border: 1px solid #bc9b5866; border-radius: 50%; transform: rotate(-15deg); }
.connection-badge { position: absolute; width: 42px; height: 42px; padding: 10px; display: grid; place-items: center; color: var(--brass); border: 1px solid #9f875952; background: #132a3b; border-radius: 50%; }
.connection-badge svg { width: 24px; height: 24px; }
.home-journal { max-width: 1240px; margin: auto; padding: 50px 0 100px; }
.home-journal .section-intro { align-items: center; }
.home-journal .section-intro > a { display: flex; align-items: center; gap: 16px; }
.home-journal .section-intro > a svg { width: 20px; }
.field-notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.field-notes-grid .article-card { display: block; padding: 28px 0; border-color: #809ba836; }
.field-notes-grid .mini-rank { display: grid; align-items: center; height: 105px; margin-bottom: 14px; }
.field-notes-grid .mini-rank svg { width: 72px; height: 72px; color: #bfaa79; }
.field-notes-grid .article-card h3 { font-size: 28px; max-width: 280px; }
.field-notes-grid .article-card h3 a { color: var(--ivory); text-decoration: none; }
.field-notes-grid .article-card h3 a:hover { color: var(--brass); }
.field-notes-grid .article-card p { font-size: 16px; }
.roots-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: center; max-width: 1060px; padding: 30px 0 120px; margin: auto; }
.roots-section p { max-width: 520px; }
.roots-mark { display: grid; place-items: center; }
.roots-mark img { width: 250px; height: 250px; border-radius: 20%; transform: rotate(-7deg); box-shadow: 0 35px 55px #020d1650; }
.closing-section { text-align: center; padding: 86px 24px 95px; background: radial-gradient(ellipse at 50% 100%, #35576b88, transparent 70%), #142e41; border-top: 1px solid #9db9c327; }
.closing-section h2 { font-size: clamp(56px, 6.4vw, 88px); margin-bottom: 16px; }
.closing-section p { margin: 0 0 28px; }
.closing-secondary { display: block; margin: 24px auto 0; width: fit-content; font-size: 14px; }
footer { background: #091922; border-color: #809ba829; }
.footer-choice { appearance: none; border: 0; background: none; color: #e4c58a; font: inherit; padding: 0; text-decoration: underline; cursor: pointer; }
.analytics-panel { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: end; width: min(680px, calc(100vw - 40px)); padding: 22px; background: #173345; color: #e9e8dc; border: 1px solid #b18646; box-shadow: 0 12px 32px #07131ccc; }
.analytics-panel[hidden] { display: none; }
.analytics-panel h2 { margin: 0 0 8px; font-size: 28px; }
.analytics-panel p { margin: 0; color: #d4dddd; font-size: 16px; }
.analytics-panel a, .analytics-notice code { color: #e4c58a; }
.analytics-status:not(:empty) { margin-top: 10px; color: #e4c58a; }
.analytics-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.analytics-actions button { white-space: nowrap; }
.analytics-actions .secondary { border: 1px solid #e4c58a; background: transparent; color: #e9e8dc; padding: 12px 18px; font: 700 16px/1 'Barlow Condensed', sans-serif; cursor: pointer; }
.analytics-actions button:focus-visible, .footer-choice:focus-visible { outline: 3px solid #f4dcae; outline-offset: 3px; }
.analytics-actions button:disabled { opacity: .55; cursor: not-allowed; }
.page-head { padding-block: 55px; }
.page-head h1 { line-height: .97; }
.rank-chip { border-radius: 4px; background: #173345; }
.rank-strip { gap: 12px; }
.callout, .transfer-note { background: #173345; border-left-width: 3px; border-radius: 0 8px 8px 0; }
.prose { max-width: 800px; }
.prose h2 { font-size: 38px; }
.article-list .article-card { border-color: #809ba840; }
.download-mark { border-radius: 20%; padding: 0; overflow: hidden; }
.mode-table thead { background: #c9ad78; }
@media (max-width: 1300px) {
  .tempo-section, .rank-discovery, .home-journal { margin-inline: 40px; }
  .landing-hero { padding-inline: 40px; min-height: 680px; }
  .battle-stage { height: 510px; }
  .battle-perspective { inset-inline: -10px; }
  .together-section, .roots-section { margin-inline: 70px; }
}
@media (max-width: 1050px) {
  body > nav { gap: 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .landing-hero { grid-template-columns: 1fr 1fr; min-height: 650px; padding-top: 70px; }
  .landing-hero h1 { font-size: 83px; }
  .hero-description { font-size: 18px; }
  .battle-stage { height: 430px; }
  .tempo-section { grid-template-columns: .8fr 1.5fr; gap: 20px; }
  .tempo-choice { padding-inline: 20px; }
  .tempo-choice > svg { display: none; }
  .rank-discovery { gap: 35px; }
  .sculpture { width: 145px; height: 145px; }
  .learn-path { gap: 30px; }
  .together-section, .roots-section { gap: 45px; margin-inline: 40px; }
}
@media (max-width: 780px) {
  body > nav { padding-inline: 18px; gap: 12px; }
  body > nav .brand-mark { width: 36px; height: 36px; }
  .brand { font-size: 25px; }
  .brand b { display: block; }
  .mobile-links { margin-left: 0; }
  .landing-hero { grid-template-columns: 1fr; padding: 54px 24px 26px; gap: 12px; min-height: auto; }
  .landing-hero h1 { font-size: clamp(68px, 11vw, 100px); margin-bottom: 24px; }
  .hero-origin { margin-bottom: 24px; font-size: 14px; }
  .hero-description { max-width: 480px; font-size: 18px; margin-bottom: 24px; }
  .hero-actions { gap: 25px; }
  .hero-access { margin-top: 20px; font-size: 13px; }
  .battle-stage { height: clamp(335px, 63vw, 480px); margin-top: 5px; }
  .battle-perspective { inset: -20px 0 0; }
  .battle-board { width: 84%; max-width: 490px; border-width: 12px; border-bottom-width: 24px; transform: rotateX(45deg) rotateZ(-22deg); }
  .board-signature { font-size: 11px; }
  .battle-files { top: -11px; font-size: 7px; }
  .stage-caption { font-size: 12px; right: 6%; bottom: 3px; }
  .tempo-section { grid-template-columns: 1fr; gap: 28px; margin: 0 24px; padding: 36px 0; }
  .tempo-intro { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
  .tempo-intro h2 { font-size: 30px; margin: 0; }
  .tempo-intro a { font-size: 13px; max-width: 88px; }
  .tempo-choice { padding-inline: 15px; }
  .tempo-choice:first-child { padding-left: 0; border: 0; }
  .tempo-choice:last-child { padding-right: 0; }
  .tempo-time { font-size: 47px; }
  .tempo-description { font-size: 12px; max-width: 110px; line-height: 1.4; }
  .tempo-name { font-size: 16px; }
  .rank-discovery { grid-template-columns: 1fr; margin: 0 24px; padding: 76px 0 64px; gap: 22px; }
  .home-page h2 { font-size: 43px; }
  .tempo-intro h2 { font-size: 30px; }
  .rank-intro p { font-size: 17px; }
  .rank-choices { min-height: 210px; max-width: 570px; margin: auto; }
  .rank-choices .sculpture { width: 120px; height: auto; aspect-ratio: 1; }
  .rank-insight { min-height: 120px; margin-top: 22px; }
  .learn-section { padding: 64px 24px; }
  .section-intro { display: block; }
  .section-intro > p { max-width: 440px; font-size: 17px; }
  .learn-path { grid-template-columns: 1fr; gap: 40px; margin: 38px 0 28px; }
  .learn-path article { display: grid; grid-template-columns: 110px 1fr; gap: 0 26px; align-items: start; }
  .learn-path h3 { margin: 0 0 12px; font-size: 26px; }
  .learn-path p { grid-column: 2; font-size: 15px; }
  .lesson-art { grid-row: span 2; transform-origin: top left; width: 110px; height: 84px; }
  .formation-art { gap: 5px; }
  .move-art { width: 110px; height: 64px; }
  .move-art span { width: 37px; height: 42px; }
  .move-art svg { width: 28px; height: 28px; }
  .flag-art .sculpture { transform: scale(.66) rotate(5deg); }
  .together-section { grid-template-columns: 1fr; margin: 0 24px; padding: 64px 0; gap: 15px; }
  .together-graphic { max-width: 450px; width: 100%; height: 230px; margin: auto; }
  .together-section p { font-size: 17px; }
  .together-section .platform-note { font-size: 13px; }
  .home-journal { margin: 0 24px; padding: 30px 0 54px; }
  .home-journal .section-intro > a { font-size: 16px; margin-bottom: 25px; }
  .field-notes-grid { grid-template-columns: 1fr; gap: 0; }
  .field-notes-grid .article-card { display: grid; grid-template-columns: 60px 1fr; gap: 24px; }
  .field-notes-grid .mini-rank { height: 76px; margin: 0; }
  .field-notes-grid .mini-rank svg { width: 54px; height: 54px; }
  .field-notes-grid .article-card h3 { font-size: 27px; max-width: none; }
  .field-notes-grid .article-card p { font-size: 15px; }
  .roots-section { grid-template-columns: 1fr; margin: 0 24px; padding: 30px 0 75px; gap: 42px; }
  .roots-mark { justify-items: start; }
  .roots-mark img { width: 165px; height: 165px; }
  .closing-section { padding-block: 64px; }
  .closing-section h2 { font-size: 60px; }
  footer { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .analytics-panel { left: 10px; right: 10px; bottom: 10px; width: auto; grid-template-columns: 1fr; padding: 18px; }
  .analytics-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .analytics-actions button { width: 100%; }
}
@media (max-width: 370px) {
  body > nav .brand { gap: 6px; font-size: 23px; }
  body > nav .brand-mark { width: 30px; height: 30px; }
  .play-link { font-size: 13px; padding-inline: 9px; }
  .mobile-links summary { font-size: 14px; padding-inline: 5px; }
  .landing-hero, .learn-section { padding-inline: 20px; }
  .landing-hero h1 { font-size: 67px; }
  .hero-actions { gap: 18px; }
  .hero-actions .primary { padding-inline: 16px; }
  .hero-actions .text-link { font-size: 15px; }
  .battle-stage { height: 290px; }
  .tempo-section, .rank-discovery, .together-section, .home-journal, .roots-section { margin-inline: 20px; }
  .tempo-time { font-size: 43px; gap: 5px; }
  .tempo-choice { padding-inline: 10px; }
  .rank-choices .sculpture { width: 105px; height: auto; }
  .flag-art .sculpture { width: 145px; height: 145px; }
  .learn-path article { grid-template-columns: 88px 1fr; gap: 0 20px; }
  .lesson-art { width: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .primary:hover, .play-link:hover { transform: none; }
  .battle-board { transform: rotateX(45deg) rotateZ(-22deg); }
}
