:root {
  color-scheme: dark;
  --bg: #101417;
  --panel: #191f22;
  --panel-hover: #20272a;
  --line: #384043;
  --ink: #f9f4e9;
  --text: #ced1cb;
  --muted: #a5ada9;
  --gold: #daba86;
  --paper: #f1e7d3;
  font: 16px/1.52 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.video-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--gold); }
button { color: inherit; }
button, summary { cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #ffe1a2; outline-offset: 4px; }
[hidden] { display: none !important; }

.skip {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  padding: .75rem 1.2rem;
  background: var(--paper);
  color: #161d20;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, main, .footer-inner {
  width: min(1170px, calc(100% - 72px));
  margin-inline: auto;
}
.mast-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: .88rem;
  font-weight: 730;
  letter-spacing: .19em;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a { font-size: .9rem; text-decoration: none; }
.main-nav [aria-current] { color: var(--gold); }
.universe-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: .65rem 1.05rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--paper);
  color: #202627;
  font-weight: 650;
}
.universe-link:hover { background: #ffe8ba; color: #101417; }

.intro { padding-top: clamp(43px, 6vw, 72px); }
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
}
h1 { font-size: clamp(3.2rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.15rem, 4.1vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.7vw, 1.8rem); }
.dek {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}
.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.chapters a { padding-block: 6px; text-decoration: none; }
.chapters span { margin-right: .55rem; color: var(--gold); font-size: .74rem; font-weight: 650; letter-spacing: .1em; }
main > section { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: 24px; }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { display: flex; gap: 16px; align-items: baseline; }
.section-number { color: var(--gold); font-family: inherit; font-size: .7em; }
.section-heading > p {
  max-width: 760px;
  margin: 13px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
}
.section-heading .section-note { color: var(--muted); font-size: .86rem; }

.space-grid, .guide-grid { display: grid; gap: 24px; }
.space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.space-card, .guide-card { min-width: 0; }
.media-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 5px;
  background: #252a2b;
  color: #fff;
  text-decoration: none;
}
.media-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .25s ease;
}
.media-link::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #060c12a6, transparent 44%);
  content: "";
  pointer-events: none;
}
.media-link:hover img { transform: scale(1.02); }
.play-mark {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #f4e4cacc;
  border-radius: 50%;
  background: #101417da;
  color: #fff7e7;
  box-shadow: 0 3px 22px #0005;
  transform: translate(-50%, -50%);
  transition: background .18s ease, color .18s ease;
}
.play-mark svg { width: 23px; height: 23px; margin-left: 3px; fill: currentColor; }
.media-link:hover .play-mark { background: var(--paper); color: #202627; }
.media-caption, .media-duration {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 3px;
  background: #101417e8;
  color: #fff7e7;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
}
.media-caption { left: 12px; }
.media-duration { right: 12px; font-variant-numeric: tabular-nums; }
.tour-mark {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border: 1px solid #ead4ae80;
  border-radius: 3px;
  background: #101417e8;
  color: #fff7e7;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .03em;
}
.space-body { padding: 20px 0 0; }
.space-body p { margin: 9px 0 17px; color: var(--muted); line-height: 1.58; }
.enter-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #998160;
  border-radius: 4px;
  color: var(--paper);
  font-size: .9rem;
  text-decoration: none;
}
.enter-link:hover { background: #daba8614; border-color: var(--gold); }
.arrow-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }

#how-it-works { margin-top: 12px; }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 30px 22px; }
.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  scroll-margin-top: 20px;
}
.guide-card .media-link { border: 0; border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; }
.guide-card .play-mark { width: 52px; height: 52px; }
.guide-card .play-mark svg { width: 20px; height: 20px; }
.guide-body { padding: 19px 19px 18px; }
.guide-meta { margin: 0 0 10px; color: var(--gold); font-size: .68rem; letter-spacing: .14em; font-weight: 650; }
.guide-body h3 { font-size: 1.43rem; line-height: 1.16; letter-spacing: -.02em; }
.guide-description { margin: 13px 0 0; color: var(--text); font-size: .9rem; line-height: 1.62; }
.guide-note { margin: 11px 0 0; padding-left: 10px; border-left: 2px solid #a18b67; color: var(--muted); font-size: .79rem; line-height: 1.55; }
.guide-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.download-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted); font-size: .8rem; }
.download-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.guide-chapters { margin-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; }
.guide-chapters summary { padding-top: 12px; color: var(--gold); }
.guide-chapters ul { display: grid; gap: 10px; margin: 12px 0 2px; padding: 0; list-style: none; }
.guide-chapters a { display: inline-flex; gap: 9px; align-items: flex-start; line-height: 1.5; text-decoration: none; color: var(--text); }
.guide-chapters a:hover { color: var(--gold); }
.chapter-play { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 4px; fill: currentColor; color: var(--gold); }

#stormy { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.stormy-content { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 38px; }
.stormy-portrait { margin: 0; }
.stormy-portrait img { width: 210px; height: 210px; border: 1px solid #88775b; border-radius: 8px; object-fit: cover; background: var(--panel); }
.stormy-copy { max-width: 680px; }
.stormy-copy .eyebrow { margin-bottom: 12px; }
.stormy-greeting { margin: 0; font-family: Georgia, Charter, "Times New Roman", serif; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 400; line-height: 1.4; letter-spacing: -.02em; }
.stormy-copy > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 86px); padding-block: 26px 34px; color: var(--muted); }
.footer-inner .brand { font-size: .74rem; }
.footer-inner nav { display: flex; gap: 22px; font-size: .83rem; }

.video-dialog {
  width: min(1000px, calc(100% - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid #8d7859;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 12px 80px #0009;
}
.video-dialog::backdrop { background: #05080bd9; }
.video-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; }
.video-heading .eyebrow { margin-bottom: 6px; font-size: .65rem; }
.video-heading h2 { font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1.25; letter-spacing: -.02em; }
.close-video { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border: 1px solid #6b716d; border-radius: 50%; background: transparent; color: var(--ink); }
.close-video:hover { color: var(--gold); background: var(--panel); }
.close-video svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 68dvh; background: #000; }
.video-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 22px 17px; }
.video-bottom p { margin: 0; color: var(--muted); font-size: .85rem; }
.video-bottom a { font-size: .85rem; color: var(--gold); }

@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .mast-inner, main, .footer-inner { width: calc(100% - 42px); }
  .main-nav { gap: 20px; }
  .stormy-content { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
  .stormy-portrait img { width: 170px; height: 170px; }
}
@media (max-width: 590px) {
  .mast-inner, main, .footer-inner { width: calc(100% - 34px); }
  .mast-inner { min-height: 70px; gap: 12px; }
  .brand { font-size: .74rem; letter-spacing: .13em; }
  .main-nav { gap: 14px; }
  .main-nav > a { font-size: .78rem; }
  .universe-link { padding-inline: .7rem; min-height: 40px; }
  .intro { padding-top: 36px; }
  .chapters { gap: 8px 19px; margin-top: 24px; }
  .chapters a { font-size: .87rem; }
  .space-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .space-body { padding-top: 16px; }
  .section-heading h2 { gap: 11px; }
  .guide-body { padding: 19px 20px 20px; }
  .guide-body h3 { font-size: 1.55rem; }
  .guide-description { font-size: .94rem; }
  .stormy-content { grid-template-columns: 1fr; gap: 24px; }
  .stormy-portrait img { width: 170px; height: 170px; }
  .footer-inner { align-items: flex-start; gap: 18px; }
  .video-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 6px; }
  .video-heading { gap: 14px; padding: 15px; }
  .video-heading .eyebrow { letter-spacing: .11em; }
  .video-bottom { padding: 13px 15px 16px; }
}
@media (max-width: 380px) {
  .mast-inner { flex-wrap: wrap; padding-block: 15px; gap: 11px 20px; }
  .main-nav { width: 100%; justify-content: space-between; }
  .main-nav > a { font-size: .84rem; }
  .chapters { gap: 8px 14px; }
  .chapters a { font-size: .8rem; }
  .chapters span { margin-right: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Public interactive demo and the existing English Stormy audio. */
.interactive-demo-callout{display:grid;grid-template-columns:minmax(0,1fr) 225px;align-items:center;gap:28px;margin:0 0 32px;padding:25px 28px;border:1px solid #9b845d;border-radius:7px;background:#1c2428}
.interactive-demo-callout h3{font-size:1.9rem}.interactive-demo-callout p:not(.eyebrow){max-width:620px;margin:12px 0 18px;color:var(--text);font-size:.92rem;line-height:1.65}.universe-callout-art{width:100%;max-height:170px;color:var(--gold)}.stormy-audio{margin-top:24px}.stormy-audio audio{display:block;max-width:100%;width:340px}.stormy-audio p{font-size:.83rem;color:var(--muted)}
@media(max-width:700px){.interactive-demo-callout{grid-template-columns:1fr;padding:22px}.universe-callout-art{display:none}}
