:root {
 --ink: #241712;
 --muted: #6A5548;
 --cream: #FAF3E7;
 --paper: #FFF8EE;
 --caramel: #C98B4E;
 --line: #D8C7AC;
 --radius: 21px;
}

html { scroll-padding-top: 24px; }
body { -webkit-font-smoothing: antialiased; }
body[data-page] { background: var(--cream); color: var(--ink); }
h1, h2, h3 { font-family: Grotesk, system-ui, sans-serif; font-weight: 600; }
h1, h2 { letter-spacing: -1px; }
em { color: #8A5A2C; }
svg.nav-icon, .study-rail svg, .art-symbol svg, .closing-mark svg {
 fill: none;
 stroke: currentColor;
 stroke-width: 1.5;
 stroke-linecap: round;
 stroke-linejoin: round;
}

body .header.brand-header {
 height: auto;
 max-width: 1600px;
 margin: auto;
 padding: 23px 42px;
 gap: 30px;
 justify-content: space-between;
 background: #241712;
 border: 0;
 color: #FFF8EE;
}
.brand-header .brand { gap: 23px; min-width: 0; }
.brand-header .brand img {
 width: 104px;
 height: 104px;
 box-shadow: 0 0 0 1px #C98B4E66, 0 10px 24px #1B110C66;
}
.brand-header .brand > span { white-space: normal; min-width: 0; }
.brand-header .brand-emblem { position: relative; display: block; flex: none; line-height: 0; }
.brand-name {
 display: flex;
 align-items: baseline;
 gap: 13px;
 font: 700 64px/.95 Display, sans-serif;
 letter-spacing: 1px;
 text-transform: uppercase;
}
.brand-name > span:last-child { color: #C98B4E; }
.brand-header .brand small { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .8px; color: #D8C7AC; }
.brand-tools { display: grid; justify-items: end; gap: 12px; }
.brand-tools p { color: #D8C7AC; font-size: 10px; line-height: 1.9; letter-spacing: 2px; text-align: right; }
.brand-tools strong { color: #EFE3CF; font-weight: 500; }
#steam-toggle { min-height: 32px; padding: 4px 10px; border: 1px solid #8A7260; border-radius: 8px; background: #3A271D; color: #EFE3CF; font: inherit; font-size: 11px; }

.site-workspace { display: grid; grid-template-columns: 225px minmax(0, 1fr); max-width: 1600px; margin: auto; background: #241712; }
.study-rail { display: flex; flex-direction: column; padding: 30px 19px 25px; color: #D8C7AC; }
.rail-heading { margin: 0 14px 13px; font-size: 9px; letter-spacing: 1.4px; }
.study-rail #navigation { display: grid; gap: 8px; }
.study-rail #navigation a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid transparent; border-radius: 13px; text-decoration: none; font-size: 13px; }
.study-rail #navigation a svg { width: 19px; height: 19px; flex: none; }
.study-rail #navigation a[aria-current] { background: #C98B4E; border-color: #D9A066; color: #241712; font-weight: 600; }
.study-rail #navigation a:hover { background: #3A271D; color: #FFF8EE; }
.study-rail #navigation a[aria-current]:hover { background: #D9A066; color: #241712; }
.rail-note { position: relative; overflow: hidden; margin: 42px 4px 30px; padding: 21px 18px 22px; border-radius: 19px; background: #3A271D; color: #FAF3E7; }
.rail-note:after { content: ''; position: absolute; width: 115px; height: 115px; right: -64px; top: 30px; border: 1px solid #C98B4E35; border-radius: 50%; box-shadow: 0 0 0 19px #C98B4E0b, 0 0 0 38px #C98B4E08; pointer-events: none; }
.focus-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 19px; border-radius: 10px; color: #241712; background: #C98B4E; }
.focus-icon svg { width: 20px; height: 20px; }
.rail-note strong { position: relative; z-index: 1; display: block; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.4px; }
.rail-note p { margin-top: 12px; font-size: 10px; line-height: 1.8; color: #D8C7AC; }
.navigation-controls { margin-top: auto; }
.study-rail .header-learning { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 0; color: #D8C7AC; border-radius: 8px; font-size: 12px; }
.study-rail .header-learning[aria-current] { color: #FFF8EE; background: #3A271D; }
.site-content { min-width: 0; background: var(--cream); color: var(--ink); border-top-left-radius: 30px; overflow: hidden; }
.study-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 42px; border-bottom: 1px solid var(--line); }
.study-topbar > span { display: flex; align-items: center; gap: 8px; color: #6A5548; font-size: 12px; }
.study-topbar i { width: 6px; height: 6px; border-radius: 50%; background: #C98B4E; }
.track-control { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.track-control label { font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
.track-control select { max-width: 255px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: #4A3526; font-size: 12px; }
body .site-content main { max-width: none; margin: 0; padding: 38px 42px 25px; }
.site-content footer { max-width: none; margin: 16px 42px 0; padding: 20px 0; border-top-color: var(--line); }
.footer-top .brand > span { font-family: Grotesk, sans-serif; font-size: 17px; letter-spacing: -.4px; }
.footer-top .brand small { font-size: 10px; }
.footer-bottom { flex-wrap: wrap; gap: 16px 24px; }
.footer-bottom p { flex-basis: 100%; }
body .site-content .footer-bottom p,
body .site-content .footer-bottom > span,
body .site-content .footer-bottom a { color: #6A5548; }
.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 1.4px; }
.button { min-height: 46px; padding: 12px 17px; border-radius: 13px; font-size: 13px; gap: 15px; }
.button.dark { background: #241712; color: #FFF8EE; }
.button.dark:hover { background: #4A3526; }
.text-link { font-size: 13px; }
.page-heading { max-width: 900px; padding: 0 0 28px; }
.page-heading h1 { margin: 14px 0 15px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.15; letter-spacing: -1.8px; }
.page-heading > p { font-size: 14px; line-height: 1.8; }
body .site-content .page-heading > p,
body .site-content .page-heading .eyebrow,
.site-content .interactive-root > .micro,
.site-content .arena-intro > p,
.site-content main > .strategy-note { color: #6A5548; }
body .site-content .page-heading em { color: #8A5A2C; }
body .site-content .play-tabs a { background: #FFF8EE; border-color: #D8C7AC; color: #6A5548; }
body .site-content .play-tabs a[aria-current] { background: #C98B4E; border-color: #C98B4E; color: #241712; }
.section { padding: 30px 0; }
.section-heading { align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { font-size: 25px; letter-spacing: -1px; }
.section-heading > span { font-size: 11px; color: #6A5548; }

.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 36px; min-height: 0; padding: 0 0 36px; }
.hero-copy > .eyebrow { max-width: max-content; padding: 6px 12px; border: 1px solid #D8C7AC; border-radius: 30px; background: #FFF8EE99; font-size: 9px; letter-spacing: .7px; }
.hero h1 { font-size: clamp(40px, 4.4vw, 67px); line-height: 1.06; letter-spacing: -3px; margin: 22px 0; }
.hero h1 em { font-weight: 400; }
.hero p { max-width: 370px; font-size: 14px; line-height: 1.8; }
.hero .actions { margin-top: 25px; gap: 12px; }
.hero-proof { align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 25px; font-size: 10px; }
.hero-proof span { max-width: none; }
.hero-proof span + span { padding-left: 12px; border-left: 1px solid #D8C7AC; }
.hero-proof b { display: inline; font-size: inherit; font-weight: 600; }
.hero-visual { position: relative; padding: 0; isolation: isolate; }
.hero-visual:before { inset: 25px -12px 5px 25px; width: auto; height: auto; border-radius: 32px; background: #EDD3B3; transform: rotate(3deg); }
.hero-visual > img { width: 100%; height: auto; aspect-ratio: 1.18; object-fit: cover; object-position: 56% 55%; border-radius: 27px; box-shadow: 0 20px 35px -23px #24171270; }
.art-label { position: absolute; top: 20px; left: 20px; padding: 8px 12px; border-radius: 30px; background: #241712c9; color: #FFF8EE; font-size: 9px; letter-spacing: 1.3px; backdrop-filter: blur(15px); }
.art-note { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; max-width: 320px; padding: 12px 15px; border: 1px solid #E7D9C4; border-radius: 15px; background: #FFF8EE; box-shadow: 0 6px 18px #24171226; }
.art-note > div { min-width: 0; }
.art-symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: #F0DCC0; color: #6A5548; }
.art-symbol svg, .closing-mark svg { width: 24px; height: 24px; }
.art-note div > span { font-size: 8px; color: #6A5548; letter-spacing: .7px; }
.art-note strong { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -.3px; }
.catalog-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.catalog-tracks .track-grid { display: block; border-radius: 21px; background: #FFF8EE; }
.catalog-tracks .track-cover { position: relative; display: block; margin: 8px 8px 0; padding: 0; border-radius: 15px; overflow: hidden; background: #241712; }
.catalog-tracks .track-cover img { width: 100%; height: 156px; object-fit: cover; }
.course-code { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 8px; background: #FFF8EEee; color: #4A3526; font-size: 10px; font-weight: 500; }
.catalog-tracks .track-info { padding: 17px 21px 20px; }
.catalog-tracks .track-info h3 { margin: 0; font: 500 21px/1.3 Grotesk, sans-serif; letter-spacing: -.8px; }
.track-info p { margin: 9px 0 18px; font-size: 13px; line-height: 1.75; }
.course-end { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6A5548; font-size: 11px; }
.circle-link { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: #C98B4E; color: #241712; font-size: 18px; text-decoration: none; }
.feature { padding: 25px; }
.feature-icon { margin-bottom: 24px; font-family: Grotesk, sans-serif; font-size: 17px; }
.feature h3 { font: 500 22px/1.3 Grotesk, sans-serif; }
.feature p { font-size: 13px; }
.closing { margin: 24px 0; padding: 23px; border: 1px solid #D8C7AC; border-radius: 19px; background: #F5E6D0; color: #241712; gap: 16px; }
.closing h2 { font-size: 21px; line-height: 1.3; }
.closing p { margin-top: 7px; font-size: 13px; }
.closing > .button { flex: none; margin-left: auto; }
.closing-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: none; background: #EDD3B3; border-radius: 13px; color: #6A5548; }

body[data-page="course"] .page-heading { max-width: none; }
body[data-page="course"] .page-heading h1 { font-size: clamp(30px, 3.1vw, 44px); }
.course-actions { margin: -8px 0 28px; gap: 18px; }
.course-layout { grid-template-columns: minmax(0, 1.8fr) minmax(230px, .85fr); gap: 22px; }
.course-main { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: #FFF8EE; }
.video-facade { border-radius: 16px; }
.video-play { background: #24171222; }
.video-play:hover { background: #24171255; }
.video-play span { padding: 6px 12px; border-radius: 10px; background: #241712cc; }
.course-main .compact h2 { font-size: 25px; }
.lesson-open > span:nth-child(2) { font-size: 16px; line-height: 1.5; }
.lesson-open small { font-size: 12px; }
.lesson-index { display: grid; place-items: center; min-width: 32px; min-height: 32px; border-radius: 8px; background: #F5E6D0; font: 500 12px Grotesk, sans-serif; color: #6A5548; }
.side-card { background: #F5E6D0; }
.side-card h2 { font-size: 29px; line-height: 1.2; }
.side-note h3 { font: 600 25px/1.3 Grotesk, sans-serif; }
.game-card h2 { font-size: 30px; }
.game-card { border-color: #D8C7AC; }
.game-card p { font-size: 14px; }
.activity-active .header.brand-header { padding-top: 14px; padding-bottom: 14px; }
.activity-active .brand-header .brand img { width: 64px; height: 64px; }
.activity-active .brand-name { font-size: 42px; }
.activity-active .brand-tools p { display: none; }
.activity-active .study-topbar { display: none; }

.coffee-steam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.coffee-steam path { fill: none; stroke: #FAF3E7; stroke-width: 12; stroke-linecap: round; opacity: 0; filter: blur(.55px); transform-box: view-box; transform-origin: 400px 383px; }
@keyframes coffee-steam-rise {
 0% { opacity: 0; transform: translate(0, 6px) scaleX(.8); }
 20% { opacity: .52; }
 60% { opacity: .28; transform: translate(7px, -32px) scaleX(1.04); }
 100% { opacity: 0; transform: translate(-5px, -70px) scaleX(1.18); }
}
@keyframes section-arrive {
 from { opacity: 0; transform: translateY(12px); }
 to { opacity: 1; transform: translateY(0); }
}
@keyframes visual-settle { from { transform: scale(1.025); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
 .coffee-steam path { animation: coffee-steam-rise 4.8s ease-in-out infinite; }
 .coffee-steam path:nth-child(2) { animation-delay: -1.6s; }
 .coffee-steam path:nth-child(3) { animation-delay: -3.2s; }
 .steam-paused .coffee-steam path { animation-play-state: paused; }
 .hero-copy, .page-heading, .catalog-tracks .track-grid, .closing { animation: section-arrive 550ms cubic-bezier(.2,.7,.2,1) backwards; }
 .hero-visual { animation: section-arrive 700ms 80ms cubic-bezier(.2,.7,.2,1) backwards; }
 .hero-visual > img { animation: visual-settle 3.6s cubic-bezier(.2,.7,.2,1) backwards; }
 .catalog-tracks .track-grid:nth-child(2) { animation-delay: 150ms; }
 .button > span, .circle-link, .lesson-open > span:last-child { transition: transform 220ms ease; }
 .track-grid, .track-cover img, .study-rail #navigation a { transition: transform 250ms ease, background-color 200ms ease, box-shadow 250ms ease; }
 .button:active:not(:disabled) { transform: translateY(1px) scale(.98); }
 @media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled) > span { transform: translateX(3px); }
  .catalog-tracks .track-grid:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #2417120a; }
  .track-cover:hover img { transform: scale(1.025); }
  .circle-link:hover { transform: translate(2px,-2px); }
  .lesson-open:hover { background: #F5E6D0; }
 }
}
@media (prefers-reduced-motion: reduce) {
 #steam-toggle { display: none; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1250px) {
 .site-workspace { grid-template-columns: 200px minmax(0, 1fr); }
 body .site-content main { padding: 32px 30px 25px; }
 .study-topbar { padding: 22px 30px; }
 .site-content footer { margin-left: 30px; margin-right: 30px; }
 .hero { gap: 25px; }
 .hero h1 { font-size: clamp(36px, 4.3vw, 55px); letter-spacing: -2.3px; }
 .hero-visual > img { aspect-ratio: .95; }
 .course-layout { gap: 18px; }
 .course-main { padding: 20px; }
 .feature-grid { gap: 14px; }
 .feature { padding: 20px; }
}
@media (max-width: 1100px) {
 body .header.brand-header { padding: 22px 28px; }
 .brand-header .brand img { width: 92px; height: 92px; }
 .brand-name { font-size: 56px; }
 .site-workspace { display: block; }
 .site-content { border-top-left-radius: 0; }
 .study-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 28px; }
 .rail-heading, .rail-note, .study-topbar { display: none; }
 .study-rail #navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
 .study-rail #navigation a { justify-content: center; padding: 9px 12px; font-size: 12px; gap: 8px; }
 .navigation-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
 .track-control select { max-width: 300px; background: #3A271D; color: #FFF8EE; border-color: #6A5548; }
 .track-control label { color: #D8C7AC; }
 .study-rail .header-learning { padding: 8px 0; font-size: 11px; }
 .hero-visual > img { aspect-ratio: 1.18; }
}
@media (max-width: 760px) {
 .brand-header .brand { gap: 19px; }
 .brand-name { font-size: 51px; }
 .brand-header .brand small { font-size: 10px; letter-spacing: .3px; }
 .brand-tools p { display: none; }
 .course-layout { grid-template-columns: minmax(0, 1fr); }
 .course-layout > aside { display: grid; gap: 22px; }
 .course-layout .side-note { margin-top: 0; }
 .feature-grid { grid-template-columns: minmax(0, 1fr); }
 .feature-icon { margin-bottom: 15px; }
 .closing { flex-wrap: wrap; }
 .closing > .button { margin-left: 59px; }
}
@media (max-width: 620px) {
 body .header.brand-header { padding: 22px 19px; gap: 12px; flex-wrap: wrap; }
 .brand-header .brand { gap: 18px; margin: auto; }
 .brand-header .brand img { width: 88px; height: 88px; }
 .brand-name { display: grid; gap: 4px; font-size: 46px; line-height: .9; }
 .brand-name > span:first-child { font-size: 32px; letter-spacing: 3px; }
 .brand-header .brand small { margin-top: 11px; font-size: 8px; letter-spacing: .1px; }
 .brand-tools { width: 100%; justify-items: end; }
 #steam-toggle { min-height: 30px; font-size: 10px; }
 .study-rail { gap: 8px; padding: 10px 17px 12px; }
 .study-rail #navigation { gap: 4px; }
 .study-rail #navigation a { flex-direction: column; padding: 6px 3px; gap: 4px; font-size: 10px; }
 .study-rail #navigation a svg { width: 17px; height: 17px; }
 .track-control label { display: none; }
 .track-control select { max-width: 185px; padding: 8px 10px; font-size: 10px; }
 body .site-content main { padding: 25px 19px; }
 .site-content footer { margin: 8px 19px 0; font-size: 10px; }
 .footer-top .brand > span { font-size: 16px; }
 .footer-top .brand small { font-size: 8px; }
 .page-heading h1 { font-size: clamp(30px, 8.5vw, 43px); letter-spacing: -1.3px; }
 .page-heading > p { font-size: 13px; }
 .hero { display: flex; flex-direction: column; align-items: stretch; gap: 27px; padding: 0 0 15px; }
 .hero h1 { font-size: clamp(36px, 10.6vw, 58px); letter-spacing: -1.9px; }
 .hero p { font-size: 13px; }
 .hero .actions { gap: 10px; margin-top: 20px; }
 .hero .button { font-size: 11px; padding: 11px 14px; gap: 10px; }
 .hero-copy > .eyebrow { font-size: 8px; }
 .hero-proof { gap: 9px; font-size: 9px; margin-top: 20px; }
 .hero-proof span + span { padding-left: 9px; }
 .hero-visual { padding-bottom: 0; }
 .hero-visual > img { aspect-ratio: 1.65; border-radius: 21px; }
 .hero-visual:before { display: none; }
 .art-label { top: 13px; left: 13px; padding: 6px 10px; font-size: 8px; }
 .art-note {
  position: static;
  max-width: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-color: var(--line);
  border-radius: 14px;
  gap: 10px;
  background: var(--paper);
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
 }
 .art-note strong { font-size: 13px; }
 .art-note div > span { font-size: 7px; }
 .art-symbol { width: 30px; height: 30px; }
 .section-heading h2 { font-size: 21px; letter-spacing: -.8px; }
 .section-heading > span { font-size: 9px; white-space: nowrap; }
 .catalog-tracks { grid-template-columns: minmax(0, 1fr); gap: 17px; }
 .catalog-tracks .track-cover img { height: 146px; }
 .catalog-tracks .track-info { padding: 17px 18px 19px; }
 .course-end { font-size: 10px; }
 .course-main { padding: 18px; }
 .course-main .lesson { flex-wrap: wrap; gap: 0; }
 .course-main .lesson-open { flex-basis: 100%; gap: 10px; padding-bottom: 8px; }
 .course-main .lesson-check { margin-left: 42px; padding: 0 0 15px; }
 .course-main .compact h2 { font-size: 22px; }
 .course-actions .button, .course-actions .text-link { font-size: 12px; }
 .side-card { padding: 22px; }
 .side-card h2 { font-size: 27px; }
 .closing { padding: 16px; gap: 12px; }
 .closing h2 { font-size: 18px; }
 .closing-mark { width: 34px; height: 34px; }
 .closing > div { flex: 1; min-width: 0; }
 .closing > .button { margin-left: 46px; font-size: 12px; }
 .activity-active .brand-header .brand img { width: 60px; height: 60px; }
 .activity-active .brand-header .brand small { display: none; }
 .activity-active .brand-name { display: flex; font-size: 35px; gap: 7px; }
 .activity-active .brand-name > span:first-child { font-size: inherit; letter-spacing: 1px; }
 .activity-active .brand-tools { width: auto; margin-left: auto; }
}
@media print {
 body .header.brand-header, .study-rail, .study-topbar, .site-content footer, #toast { display: none; }
 .site-workspace { display: block; background: white; }
 .site-content { overflow: visible; border-radius: 0; background: white; }
 body .site-content main { padding: 0; }
}
