:root {
  --bar-height: 4.2rem;
  --footer-height: 2.6rem;
  --night: #080d0f;
  --night-soft: #101918;
  --pine: #172922;
  --parchment: #e9d2a2;
  --parchment-deep: #d4b176;
  --ink: #211b15;
  --ink-muted: #58483a;
  --gold: #cda451;
  --gold-bright: #e6c779;
  --copper: #93652d;
  --cream: #f5ecd3;
  --display: "Cinzel", Georgia, serif;
  --heading: "Cormorant Garamond", Georgia, serif;
  --body: "Crimson Pro", Georgia, serif;
  --border-gold: 1px solid rgba(205, 164, 81, 0.52);
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.52);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  background: var(--night);
  font-family: var(--body);
  font-size: 1.16rem;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

canvas,
canvas:focus,
canvas:focus-visible {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  color: var(--ink);
  background: var(--parchment);
}

.skip-link:focus {
  top: 0.7rem;
}

.site-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: grid;
  min-height: var(--footer-height);
  place-items: center;
  padding: 0.45rem clamp(0.85rem, 3vw, 2rem);
  color: rgba(245, 236, 211, 0.76);
  border-top: 1px solid rgba(205, 164, 81, 0.28);
  background: rgba(8, 13, 15, 0.88);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}

.site-notice p {
  max-width: 74rem;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  height: var(--bar-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.2rem);
  border-bottom: var(--border-gold);
  background: rgba(8, 13, 15, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  padding: 0;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  background: rgba(8, 13, 15, 0.38);
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.brand:not(:disabled):hover {
  transform: translateY(-2px);
  color: #fff4bd;
  border-color: var(--gold-bright);
  background: rgba(205, 164, 81, 0.16);
  box-shadow: 0 0 0 1px rgba(230, 199, 121, 0.22), 0 10px 26px rgba(0, 0, 0, 0.28);
}

.brand:disabled {
  cursor: default;
  opacity: 0.72;
}

.is-direct-browse .brand {
  color: #101918;
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 0 1px rgba(230, 199, 121, 0.35), 0 0 22px rgba(230, 199, 121, 0.34);
}

.is-direct-browse .brand:not(:disabled):hover {
  color: #080d0f;
  background: linear-gradient(135deg, #f4dda0, #d6a94f);
  box-shadow: 0 0 0 1px rgba(245, 236, 211, 0.45), 0 0 30px rgba(230, 199, 121, 0.48);
}

.journal-trigger {
  padding: 0.52rem 1.05rem;
  color: var(--gold-bright);
  border: var(--border-gold);
  background: rgba(8, 13, 15, 0.33);
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease;
}



.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.journal-trigger:hover {
  border-color: var(--gold-bright);
  background: rgba(205, 164, 81, 0.16);
}

.journal-trigger.has-unread-scroll {
  animation: journalPulse 1.1s ease-in-out infinite;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(230, 199, 121, 0.55);
}

@keyframes journalPulse {
  0%, 100% {
    background: rgba(205, 164, 81, 0.16);
    box-shadow: 0 0 0 0 rgba(230, 199, 121, 0.48);
  }

  50% {
    background: rgba(205, 164, 81, 0.31);
    box-shadow: 0 0 0 7px rgba(230, 199, 121, 0);
  }
}

.game-shell {
  position: fixed;
  top: var(--bar-height);
  right: 0;
  bottom: var(--footer-height);
  left: 0;
  isolation: isolate;
  background: var(--night);
  -webkit-user-select: none;
  user-select: none;
}

#world-map {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: #080d0f;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

#world-map:focus,
#world-map:focus-visible {
  outline: 0;
}

#world-map.is-browse-clickable {
  cursor: pointer;
}

.is-direct-browse #open-journal,
.is-direct-browse .game-toast {
  display: none;
}

.game-toast {
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.5rem);
  left: 50%;
  z-index: 2;
  max-width: min(570px, calc(100% - 2rem));
  padding: 0.65rem 1.25rem;
  color: #d8cba9;
  border: var(--border-gold);
  background: rgba(8, 13, 15, 0.76);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 220ms ease;
}

.compact-browse-entry {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--footer-height) + 0.8rem);
  left: 1rem;
  z-index: 18;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.75rem 0.8rem;
  color: #3e2b1b;
  border: 1px solid rgba(229, 195, 99, 0.78);
  background: rgba(245, 236, 211, 0.97);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

.compact-browse-entry span {
  display: block;
  color: #69513a;
  font-size: 0.92rem;
  line-height: 1.18;
}

.compact-browse-entry .button {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.62rem;
}

.overline,
.label {
  margin-bottom: 0.8rem;
  color: #795226;
  font-family: var(--display);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.64rem 1.25rem;
  border: 1px solid var(--gold);
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.primary:hover {
  background: var(--gold-bright);
}

.button.secondary {
  color: #613d1b;
  background: transparent;
}

.text-button {
  padding: 0.18rem 0;
  color: #68431d;
  border: 0;
  border-bottom: 1px solid rgba(105, 65, 28, 0.48);
  background: transparent;
  font-family: var(--display);
  font-size: 0.59rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

dialog {
  color: var(--ink);
  border: 1px solid #b18747;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 244, 212, 0.65), transparent 32rem),
    repeating-linear-gradient(125deg, rgba(81, 53, 18, 0.035), rgba(81, 53, 18, 0.035) 1px, transparent 1px, transparent 5px),
    var(--parchment);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

dialog::backdrop {
  background: rgba(3, 7, 8, 0.76);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: sticky;
  top: 0;
  z-index: 3;
  display: block;
  width: 2.45rem;
  height: 2.45rem;
  margin: 0 0 -2.45rem auto;
  color: #68431d;
  border: 0;
  background: rgba(233, 210, 162, 0.88);
  font-size: 2rem;
  line-height: 1;
}

.entry-choice-dialog:focus,
.entry-choice-dialog:focus-visible {
  outline: none;
}

.entry-choice-dialog {
  width: min(760px, calc(100% - 1.2rem));
  padding: 0;
  overflow: hidden;
  border: 3px solid #6e481b;
  background:
    linear-gradient(135deg, rgba(255, 241, 188, .96), rgba(196, 139, 60, .9)),
    #d59d55;
  box-shadow:
    inset 0 0 0 4px rgba(83, 46, 15, .65),
    0 22px 80px rgba(0, 0, 0, .8);
  image-rendering: auto;
}

.entry-choice-dialog::before {
  position: absolute;
  inset: 7px;
  pointer-events: none;
  content: "";
  border: 2px solid rgba(83, 48, 17, .62);
  box-shadow: none;
}

.entry-panel-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(250px, .72fr);
  gap: 10px;
  padding: 14px;
}

.entry-portrait,
.entry-copy-panel {
  min-height: 245px;
  border: 2px solid #5d3513;
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 248, 207, .8), transparent 42%),
    linear-gradient(135deg, #f5dc96, #c9853d);
  box-shadow:
    inset 0 0 0 2px #f3c35b,
    inset 0 0 18px rgba(63, 35, 12, .35);
}

.entry-portrait {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(87, 32, 26, .45), transparent 36%),
    radial-gradient(circle at 54% 48%, rgba(255, 215, 94, .36), transparent 34%),
    #291c16;
}

.entry-portrait::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(100deg, rgba(28, 9, 14, .9), rgba(28, 9, 14, .15) 32%, transparent 48%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: screen;
}

.entry-portrait-glow {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 225, 135, .5);
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 172, 64, .9), transparent 10%),
    linear-gradient(145deg, rgba(20, 18, 20, .35), rgba(255, 228, 142, .18));
}

.entry-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 22px 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 250, 217, .95), transparent 46%),
    repeating-linear-gradient(0deg, rgba(95, 59, 21, .055), rgba(95, 59, 21, .055) 1px, transparent 1px, transparent 6px),
    #efd38e;
}

.entry-choice-dialog .overline {
  color: #6a421b;
  font-family: var(--display);
  font-size: .58rem;
  letter-spacing: .1em;
}

.entry-choice-dialog h1 {
  margin: .2rem 0 .55rem;
  color: #3f2412;
  font-family: var(--heading);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: .98;
  text-shadow: 0 1px rgba(255, 239, 174, .9);
}

.entry-choice-dialog p:not(.overline) {
  max-width: 320px;
  margin: 0 0 1rem;
  color: #3e2b1b;
  font-family: Georgia, serif;
  font-size: .96rem;
  line-height: 1.25;
}

.entry-loading {
  display: grid;
  gap: .45rem;
  margin-top: .35rem;
}

.entry-progress-track {
  height: 20px;
  overflow: hidden;
  border: 2px solid #714013;
  background: #3b2314;
  box-shadow: inset 0 0 0 2px rgba(255, 216, 93, .42);
}

.entry-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background:
    linear-gradient(90deg, #177f8d, #43c3bc 55%, #f0c85d);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28);
  transition: width .18s ease;
}

#entry-progress-label {
  color: #5b3515;
  font-family: var(--display);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.entry-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: .95rem;
}

.entry-choice-actions[hidden] {
  display: none;
}

.entry-choice-actions .button {
  position: relative;
  min-height: 2.35rem;
  overflow: hidden;
  border: 2px solid #704014;
  box-shadow:
    inset 0 0 0 2px rgba(255, 222, 101, .68),
    0 2px 0 rgba(74, 40, 13, .75);
  font-size: .58rem;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.entry-choice-actions .button::after {
  position: absolute;
  inset: 2px auto 2px -45%;
  width: 36%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 247, 190, .55), transparent);
  transform: skewX(-18deg);
  transition: left .28s ease;
}

.entry-choice-actions .button:hover,
.entry-choice-actions .button:focus-visible {
  border-color: #3f2412;
  background: linear-gradient(180deg, #f0ca68, #bd8334);
  box-shadow:
    inset 0 0 0 2px rgba(255, 239, 156, .9),
    inset 0 0 14px rgba(255, 245, 188, .42),
    0 0 0 2px rgba(95, 51, 16, .42),
    0 6px 0 rgba(74, 40, 13, .64),
    0 0 22px rgba(231, 171, 68, .42);
  color: #2e180b;
  transform: translateY(-2px);
}

.entry-choice-actions .button:hover::after,
.entry-choice-actions .button:focus-visible::after {
  left: 110%;
}

.entry-choice-actions .button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 239, 156, .65),
    0 1px 0 rgba(74, 40, 13, .72);
}

.entry-choice-dialog.is-ready #entry-loading {
  display: none;
}

@media (max-width: 680px) {
  .entry-panel-frame {
    grid-template-columns: 1fr;
  }

  .entry-portrait,
  .entry-copy-panel {
    min-height: 180px;
  }
}

.journal-dialog {
  width: min(560px, calc(100% - 2rem));
  max-height: min(86vh, 720px);
  padding: clamp(1.6rem, 5vw, 2.65rem);
  overflow: auto;
}

.journal-dialog h1,
.chapter h1 {
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(2.3rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.05;
}

.empty-journal {
  margin-top: 1.35rem;
  color: var(--ink-muted);
  font-style: italic;
}

.journal-contents {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.journal-entry {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem;
  color: var(--ink);
  border: 1px solid rgba(102, 69, 31, 0.3);
  background: rgba(255, 242, 210, 0.36);
  text-align: left;
}

.journal-entry:hover {
  background: rgba(102, 69, 31, 0.08);
}

.journal-entry.is-unread {
  border-color: rgba(147, 101, 45, 0.64);
  background: rgba(205, 164, 81, 0.18);
}

.journal-entry.is-unread strong::after {
  content: "NEW";
  margin-left: 0.55rem;
  color: #8f5a20;
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}

.journal-entry strong {
  color: #613e1a;
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.journal-entry span {
  margin-top: 0.22rem;
  color: #5c4a38;
}

.chapter-dialog {
  width: min(1180px, calc(100% - 2rem));
  max-height: min(92vh, 950px);
  padding: 0;
  overflow: auto;
}

.journal-dialog,
.chapter-dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 101, 45, 0.84) rgba(94, 60, 24, 0.16);
}

.journal-dialog::-webkit-scrollbar,
.chapter-dialog::-webkit-scrollbar {
  width: 0.72rem;
}

.journal-dialog::-webkit-scrollbar-track,
.chapter-dialog::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, rgba(77, 48, 18, 0.1), rgba(255, 241, 192, 0.22), rgba(77, 48, 18, 0.1));
  border-left: 1px solid rgba(97, 61, 27, 0.18);
}

.journal-dialog::-webkit-scrollbar-thumb,
.chapter-dialog::-webkit-scrollbar-thumb {
  border: 2px solid rgba(233, 210, 162, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #e1bd63, #93652d 48%, #6f461e);
  box-shadow:
    inset 0 0 0 1px rgba(82, 48, 16, 0.45),
    inset 0 7px 8px rgba(255, 239, 177, 0.35);
}

.journal-dialog::-webkit-scrollbar-thumb:hover,
.chapter-dialog::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #f0cf78, #a87234 48%, #70461e);
}

.chapter-dialog::before,
.chapter-dialog::after {
  position: sticky;
  z-index: 2;
  display: block;
  height: 2.6rem;
  pointer-events: none;
  content: "";
}

.chapter-dialog::before {
  top: 0;
  margin-bottom: -2.6rem;
  background: linear-gradient(180deg, rgba(233, 210, 162, 0.98), rgba(233, 210, 162, 0));
}

.chapter-dialog::after {
  bottom: 0;
  margin-top: -2.6rem;
  background: linear-gradient(0deg, rgba(212, 177, 118, 0.98), rgba(212, 177, 118, 0));
}

.scroll-recovered-dialog {
  width: min(470px, calc(100% - 2rem));
  padding: clamp(1.45rem, 4vw, 2.25rem);
}

.scroll-recovered-dialog h2 {
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.05;
}

#scroll-recovered-message {
  margin: 0.85rem 0 1.2rem;
  color: var(--ink-muted);
}

.scroll-recovered-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chapter-scroll {
  padding: clamp(1.4rem, 5vw, 3.4rem);
}

.chapter-lead {
  max-width: 760px;
  margin: 1rem 0 clamp(2rem, 4vw, 3rem);
  color: var(--ink-muted);
  font-size: clamp(1.15rem, 2vw, 1.28rem);
}

.career-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.65fr) minmax(250px, 0.85fr);
  gap: clamp(1.8rem, 5vw, 4.2rem);
}

.role {
  position: relative;
  padding: 0 0 2rem 1.8rem;
  border-left: 1px solid rgba(108, 71, 30, 0.34);
}

.role::before {
  position: absolute;
  top: 0.35rem;
  left: -6px;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 50%;
  background: var(--copper);
}

.role:last-child {
  padding-bottom: 0;
}

.role-date,
.project-year,
.tag {
  color: #795226;
  font-family: var(--display);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role h2 {
  margin: 0.34rem 0 0.1rem;
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.role-org {
  margin-bottom: 0.55rem;
  color: #79572d;
  font-weight: 600;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credentials section {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(107, 73, 37, 0.29);
  background: rgba(250, 236, 198, 0.42);
}

.credentials h2 {
  font-family: var(--heading);
  font-size: 1.85rem;
  font-weight: 600;
}

.credentials p + p,
.credentials a {
  display: block;
  margin-top: 0.6rem;
}

.credentials a {
  color: #643e16;
  text-decoration: underline;
}

.credentials ul {
  margin: 0;
  padding-left: 1.1rem;
}

.prototype-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.prototype-card {
  display: grid;
  grid-template-columns: 74px minmax(210px, 285px) 1fr;
  gap: clamp(0.85rem, 2.5vw, 1.6rem);
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1.15rem);
  border: 1px solid rgba(102, 69, 31, 0.27);
  background: rgba(250, 236, 198, 0.42);
}

.prototype-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(102, 69, 31, 0.34);
}

.prototype-card h2 {
  margin: 0.25rem 0 0.45rem;
  color: #392618;
  font-family: var(--heading);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.05;
}

.prototype-card p:not(.tag):not(.project-year) {
  margin-top: 0.4rem;
  color: #534131;
  font-size: 1.03rem;
}

.prototype-card .text-button {
  margin-top: 0.7rem;
}

.prototype-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.7rem;
}

.prototype-actions .text-button {
  margin-top: 0;
}

.collection-title {
  margin: clamp(1.8rem, 4vw, 2.7rem) 0 1rem;
  color: #523719;
  font-family: var(--heading);
  font-size: 2.05rem;
  font-weight: 600;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.bloomberg-grid {
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 312px;
  border: 1px solid rgba(95, 65, 31, 0.32);
  background: rgba(249, 235, 199, 0.7);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(62, 38, 17, 0.15);
}

.article-card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
}

.article-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.9rem;
}

.article-card h3 {
  margin: 0.37rem 0 auto;
  font-family: var(--heading);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
}

.article-card span {
  margin-top: 0.75rem;
  color: #754c20;
  font-family: var(--display);
  font-size: 0.53rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ffm-board {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: start;
  margin-top: 1rem;
  padding: clamp(0.9rem, 2.4vw, 1.25rem);
  border: 1px solid rgba(95, 65, 31, 0.32);
  background: rgba(249, 235, 199, 0.7);
}

.ffm-board-copy h2 {
  margin: 0.32rem 0 0.55rem;
  color: #392618;
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.05;
}

.ffm-board-copy p:not(.tag) {
  color: #534131;
  font-size: 1.05rem;
}

.ffm-board-image {
  display: block;
  overflow: auto;
  border: 1px solid rgba(102, 69, 31, 0.34);
  background: rgba(35, 24, 16, 0.08);
}

.ffm-board-image img {
  width: 100%;
  height: auto;
  min-width: 720px;
  object-fit: contain;
}

.music-chapter {
  max-width: 980px;
  min-height: min(68vh, 600px);
  margin: auto;
}

.music-placeholder {
  display: grid;
  min-height: 270px;
  margin-top: 2.3rem;
  place-content: center;
  color: var(--cream);
  border: var(--border-gold);
  background:
    radial-gradient(circle, rgba(205, 164, 81, 0.16), transparent 58%),
    var(--night-soft);
  text-align: center;
}

.music-placeholder span {
  color: var(--gold);
  font-size: 3.5rem;
}

.music-placeholder p {
  color: var(--parchment);
  font-family: var(--heading);
  font-size: 1.7rem;
}

.music-placeholder strong {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.video-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.video-card {
  overflow: hidden;
  border: 1px solid rgba(102, 69, 31, 0.32);
  background: rgba(250, 236, 198, 0.5);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--night-soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h2 {
  margin: 0.85rem 0.9rem 0.12rem;
  color: #392618;
  font-family: var(--heading);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.05;
}

.video-card p {
  margin: 0 0.9rem 0.9rem;
  color: #604936;
  font-size: 1rem;
}

.gatekeeper-dialog {
  width: min(500px, calc(100% - 2rem));
  padding: clamp(1.55rem, 5vw, 2.45rem);
}

.gatekeeper-dialog h2,
.gallery-dialog h2 {
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
}

#gatekeeper-message {
  margin: 1rem 0 1.35rem;
  color: #523d2b;
  font-size: 1.08rem;
  line-height: 1.45;
}

.gatekeeper-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}


.gallery-dialog {
  width: min(1040px, calc(100% - 2rem));
  padding: clamp(1rem, 3.5vw, 2.4rem);
}

.gallery-dialog img {
  width: 100%;
  max-height: min(65vh, 680px);
  object-fit: contain;
  margin-top: 1rem;
  border: 1px solid rgba(102, 69, 31, 0.32);
  background: rgba(35, 24, 16, 0.12);
}

#gallery-caption {
  margin: 0.8rem 0;
  color: #574231;
  text-align: center;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: #725027;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .career-grid {
    display: block;
  }

  .credentials {
    margin-top: 2rem;
  }

  .prototype-card {
    grid-template-columns: 66px 210px 1fr;
  }

  .bloomberg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ffm-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --footer-height: 3.35rem;
    --compact-entry-height: 5.1rem;
  }

  .video-showcase {
    grid-template-columns: 1fr;
  }

  .site-notice {
    padding: 0.45rem 0.9rem;
    font-size: 0.64rem;
  }

  .topbar-actions {
    gap: 0.4rem;
  }

  .journal-trigger {
    padding-inline: 0.62rem;
  }

  :root {
    --bar-height: 3.9rem;
  }

  body {
    font-size: 1.06rem;
  }

  .is-direct-browse .compact-browse-entry:not(.hidden) {
    display: flex;
  }

  .is-direct-browse .game-shell {
    bottom: calc(var(--footer-height) + var(--compact-entry-height));
  }

  .game-toast {
    bottom: 1.2rem;
    padding: 0.52rem 0.75rem;
    font-size: 0.98rem;
  }

  .chapter-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .prototype-card {
    display: block;
  }

  .prototype-card img {
    margin: 0.65rem 0 0.9rem;
  }

  .article-grid,
  .bloomberg-grid {
    grid-template-columns: 1fr;
  }

  .ffm-board-image img {
    min-width: 620px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
