:root {
  --canvas: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-soft: #eef1f5;
  --ink: #263244;
  --muted: #697586;
  --line: rgba(38, 50, 68, 0.14);
  --orange: #ff7a45;
  --orange-deep: #e85d32;
  --sky: #dceaf2;
  --lime: #e6ecd7;
  --violet: #e5e2ed;
  --yellow: #f6e8cc;
  --mint: #dcece6;
  --green: #5d967f;
  --navy: #263244;
  --shadow-sm: 0 16px 36px rgba(49, 62, 82, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --shadow-md: 0 28px 68px rgba(49, 62, 82, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html {
  color-scheme: light;
  background: var(--canvas);
}

body {
  color: var(--ink);
  background: var(--canvas);
}

body::before {
  opacity: 0.48;
  background-image: linear-gradient(rgba(78, 102, 176, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 102, 176, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

::selection {
  color: var(--ink);
  background: #9ff3dc;
}

:focus-visible {
  outline-color: #6d5dfc;
}

.skip-link {
  color: #ffffff;
  background: var(--ink);
}

.home-header,
.module-header {
  background: rgba(243, 246, 255, 0.82);
  border-bottom-color: rgba(42, 54, 91, 0.12);
  box-shadow: 0 12px 28px rgba(60, 75, 126, 0.08);
  backdrop-filter: blur(18px);
}

.home-brand,
.module-brand {
  color: var(--ink);
}

.brand-mark {
  color: #15203a;
  background: linear-gradient(145deg, #fff2a6 0%, #62e8c5 48%, #5da9ff 100%);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(54, 126, 199, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.8), inset 0 -6px 12px rgba(38, 81, 157, 0.12);
}

.header-note,
.module-back,
.eyebrow,
.section-kicker,
.module-kicker,
.module-meta,
.mini-label,
.card-meta {
  color: var(--muted);
}

.eyebrow-dot {
  background: #ff6b7a;
  box-shadow: 0 0 0 0.28rem rgba(255, 107, 122, 0.14), 0 0 18px rgba(255, 107, 122, 0.34);
}

.home-intro h1 {
  color: var(--ink);
  text-shadow: 0 12px 30px rgba(68, 82, 132, 0.14);
}

.title-dot {
  color: #ff5d7d;
  text-shadow: 0 0 22px rgba(255, 93, 125, 0.28);
}

.intro-text {
  color: #3f4a67;
}

.visual-orbit {
  border-color: rgba(87, 102, 174, 0.28);
  box-shadow: none;
}

.visual-core {
  color: #17223c;
  background: linear-gradient(145deg, #fff38a 0%, #65e8be 42%, #54b8ff 72%, #8d7bff 100%);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 58px rgba(74, 91, 154, 0.24), inset 0 3px 0 rgba(255, 255, 255, 0.78), inset 0 -14px 24px rgba(73, 76, 167, 0.16);
}

.visual-core::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.5));
  box-shadow: 0 8px 14px rgba(59, 67, 122, 0.16);
}

.visual-core::after {
  background: rgba(255, 255, 255, 0.68);
}

.visual-chip {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(58, 72, 127, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.82), inset 0 -5px 10px rgba(66, 79, 137, 0.1);
}

.chip-build { color: #126a94; background: linear-gradient(145deg, #c9f7ff, #65d9ff); }
.chip-read { color: #8f4e16; background: linear-gradient(145deg, #fff4a0, #ffbd68); }
.chip-travel { color: #166a52; background: linear-gradient(145deg, #d8ff9c, #56e0b2); }
.chip-music { color: #5c3b9d; background: linear-gradient(145deg, #f2ceff, #a68dff); }

.visual-caption,
.home-footnote,
.module-footer {
  color: var(--muted);
}

.section-kicker span:first-child,
.module-kicker,
.module-meta span:first-child,
.card-meta span:first-child,
.timeline-row time {
  color: #6d5dfc;
}

/* Controlled floating bubble constellation. */
.home-page .module-section {
  padding-bottom: 1rem;
}

.home-page .module-grid {
  position: relative;
  display: block;
  height: 40rem;
  margin-top: 1.5rem;
}

.module-tile {
  --bubble-size: 14rem;
  position: absolute;
  display: flex;
  width: var(--bubble-size);
  height: var(--bubble-size);
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 1.35rem;
  overflow: hidden;
  color: var(--ink);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  box-shadow: 0 24px 48px rgba(53, 69, 124, 0.22), inset 0 3px 0 rgba(255, 255, 255, 0.72), inset 0 -16px 28px rgba(53, 69, 124, 0.15);
  transform-style: preserve-3d;
  animation: bubble-drift 5.8s ease-in-out infinite;
}

.module-tile::before {
  position: absolute;
  z-index: 1;
  top: 8%;
  left: 20%;
  width: 34%;
  height: 11%;
  content: '';
  background: rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  filter: blur(1px);
  transform: rotate(-24deg);
}

.module-tile::after {
  position: absolute;
  z-index: 1;
  bottom: 4%;
  left: 27%;
  width: 46%;
  height: 8%;
  content: '';
  background: rgba(28, 36, 69, 0.16);
  border-radius: 50%;
  filter: blur(7px);
}

.module-tile:hover,
.module-tile:focus-visible {
  z-index: 8;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 70px rgba(53, 69, 124, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.88), inset 0 -18px 30px rgba(53, 69, 124, 0.16);
  transform: scale(1.045) perspective(900px) rotateX(2deg);
  animation-play-state: paused;
}

.tile-career {
  --bubble-size: 16.5rem;
  top: 3rem;
  left: 0;
  background: linear-gradient(145deg, #9af3ff 0%, #52d8f3 50%, #5b8dff 100%);
}

.tile-thoughts {
  --bubble-size: 14.5rem;
  top: 0;
  left: 34%;
  background: linear-gradient(145deg, #ffd1f1 0%, #ff87bd 48%, #aa83ff 100%);
  animation-delay: -1.5s;
}

.tile-investing {
  --bubble-size: 13.5rem;
  top: 4.5rem;
  right: 0;
  background: linear-gradient(145deg, #fff59a 0%, #ffd254 48%, #ff8b59 100%);
  animation-delay: -3.2s;
}

.tile-library {
  --bubble-size: 14.75rem;
  bottom: 1rem;
  left: 12%;
  background: linear-gradient(145deg, #ddd3ff 0%, #ad96ff 48%, #6f81ff 100%);
  animation-delay: -2.3s;
}

.tile-travel {
  --bubble-size: 16.75rem;
  bottom: 0;
  left: 45%;
  background: linear-gradient(145deg, #d8ff8e 0%, #68e7aa 48%, #48cce2 100%);
  animation-delay: -4.2s;
}

.tile-contact {
  --bubble-size: 13.5rem;
  right: 1%;
  bottom: 4.5rem;
  background: linear-gradient(145deg, #ffd0a6 0%, #ff8c79 48%, #f25caa 100%);
  animation-delay: -0.8s;
}

@keyframes bubble-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.65rem; }
}

.module-tile .tile-art {
  position: relative;
  z-index: 3;
  width: 5.1rem;
  height: 5.1rem;
  flex: 0 0 5.1rem;
  margin: 0 0 0.75rem;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.module-tile .tile-art::before {
  position: absolute;
  z-index: -1;
  inset: 0.45rem;
  width: auto;
  height: auto;
  content: '';
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  box-shadow: 0 12px 20px rgba(40, 52, 98, 0.15);
  transform: none;
}

.module-tile .tile-art::after {
  position: absolute;
  top: auto;
  right: 0.2rem;
  bottom: 0.25rem;
  left: auto;
  width: 2rem;
  height: 0.3rem;
  content: '';
  background: rgba(31, 42, 78, 0.16);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  filter: blur(5px);
  transform: rotate(-10deg);
}

.tile-icon-main {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30%;
  box-shadow: 0 13px 24px rgba(42, 55, 105, 0.19), inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -7px 12px rgba(66, 79, 137, 0.1);
  transform: rotate(-5deg) translateZ(16px);
}

.tile-icon-main svg {
  width: 2.3rem;
  height: 2.3rem;
}

.tile-icon-mini {
  position: absolute;
  z-index: 4;
  right: -0.15rem;
  bottom: 0.05rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(44, 55, 102, 0.22);
}

.tile-icon-mini svg {
  width: 0.95rem;
  height: 0.95rem;
}

.module-tile .tile-art i,
.module-tile .tile-art b {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.tile-index {
  top: 13%;
  right: 16%;
  z-index: 4;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 16px rgba(42, 55, 105, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.module-tile > strong,
.module-tile > small {
  position: relative;
  z-index: 3;
  color: var(--ink);
  text-align: center;
}

.module-tile > strong {
  max-width: 11ch;
  padding: 0;
  font-size: 1.12rem;
}

.module-tile > small {
  max-width: 12rem;
  min-height: 0;
  margin-top: 0.28rem;
  padding: 0;
  color: rgba(24, 33, 58, 0.67);
  font-size: 0.63rem;
}

.tile-arrow {
  right: 17%;
  bottom: 12%;
  z-index: 4;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 8px 16px rgba(42, 55, 105, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.module-tile:hover .tile-arrow {
  color: var(--ink);
  background: #ffffff;
}

/* Inner pages keep the tactile material with a bright base. */
.module-back {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(51, 65, 112, 0.1), inset 0 1px 0 #ffffff;
}

.module-back:hover,
.module-back:focus-visible {
  color: var(--ink);
  background: #b9f2e2;
  border-color: #67d7b9;
}

.module-hero {
  border-bottom-color: var(--line);
}

.module-hero h1,
.module-section h2,
.timeline-row h3,
.contact-card h2,
.travel-detail h3,
.media-heading h3 {
  color: var(--ink);
  text-shadow: 0 10px 24px rgba(68, 82, 132, 0.12);
}

.module-hero h1 em,
.module-section h2 em {
  color: #6d5dfc;
}

.module-lede,
.module-page .module-section > p:not(.module-kicker):not(.disclaimer),
.timeline-row p,
.media-heading p,
.contact-card p {
  color: var(--muted);
}

.module-aside-note {
  color: var(--ink);
  background: linear-gradient(145deg, #fff49b 0%, #79eac0 56%, #72ccff 100%);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 42px rgba(53, 69, 124, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.82), inset 0 -10px 18px rgba(49, 96, 145, 0.1);
}

.module-page .module-section,
.timeline-page,
.timeline-row {
  border-color: var(--line);
}

.module-card {
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #eef3ff 78%);
  border-color: rgba(87, 102, 155, 0.16);
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  border-color: rgba(109, 93, 252, 0.38);
  box-shadow: var(--shadow-md);
}

.module-card::after {
  background: linear-gradient(90deg, #48d7bc, rgba(72, 215, 188, 0.12));
}

.module-card:nth-child(2)::after { background: linear-gradient(90deg, #ff8a66, rgba(255, 138, 102, 0.12)); }
.module-card:nth-child(3)::after { background: linear-gradient(90deg, #a58cff, rgba(165, 140, 255, 0.12)); }
.module-card:nth-child(4)::after { background: linear-gradient(90deg, #c4e858, rgba(196, 232, 88, 0.12)); }

.module-card h3,
.module-card p {
  color: var(--ink);
}

.module-card p {
  color: var(--muted);
}

.module-card-dark {
  color: #ffffff;
  background: linear-gradient(145deg, #2f3e72, #6b5ee8 54%, #d861a7 100%);
  border-color: rgba(255, 255, 255, 0.36);
}

.module-card-dark h3,
.module-card-dark p {
  color: #ffffff;
}

.module-card-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.module-card-dark .module-meta {
  color: rgba(255, 255, 255, 0.68);
}

.module-card-dark .module-meta span:first-child {
  color: #fff197;
}

.module-callout {
  color: var(--ink);
  background: linear-gradient(145deg, #d8fff2, #dbe7ff);
  border-left-color: #6d5dfc;
  box-shadow: var(--shadow-sm);
}

.module-callout .inline-link,
.inline-link {
  color: #5c4de0;
  border-color: #5c4de0;
}

.inline-link:hover {
  color: #e84f7b;
  border-color: #e84f7b;
}

.disclaimer {
  color: var(--muted);
}

.library-filter {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(51, 65, 112, 0.08), inset 0 1px 0 #ffffff;
}

.library-filter span {
  color: #6d5dfc;
}

.library-filter:hover,
.library-filter:focus-visible,
.library-filter.is-active {
  color: #ffffff;
  background: linear-gradient(145deg, #7d6cff, #e45f9c);
  border-color: transparent;
}

.library-filter.is-active span {
  color: #fff2a0;
}

.media-card {
  background: linear-gradient(145deg, #ffffff, #eef3ff 78%);
  border-color: rgba(87, 102, 155, 0.16);
  box-shadow: var(--shadow-sm);
}

.media-cover {
  color: var(--ink);
  background: linear-gradient(145deg, #baf4ff, #55c8ef 72%);
}

.media-card-film .media-cover { background: linear-gradient(145deg, #ffd49f, #ff775b 72%); }
.media-card-music .media-cover { background: linear-gradient(145deg, #eadfff, #9a83ef 72%); }
.media-card-game .media-cover { background: linear-gradient(145deg, #e9ff9f, #8bcf58 72%); }
.media-summary::after { color: #6d5dfc; }
.media-heading .card-meta { color: var(--muted); }
.media-heading h3 { color: var(--ink); }
.media-expanded { background: #f5f7ff; border-top-color: var(--line); }
.media-facts { color: #6d5dfc; }
.media-expanded > p,
.media-activity-label { color: var(--muted); }
.media-heat i { background: #e4e9f8; border-color: rgba(76, 91, 145, 0.08); }
.media-heat i[data-level='1'] { background: #c9f6dd; }
.media-heat i[data-level='2'] { background: #88e6bc; }
.media-heat i[data-level='3'] { background: #42cf9c; }
.media-heat i[data-level='4'] { background: #168467; }

.map-panel {
  color: #eafff8;
  background: linear-gradient(145deg, #26355f, #121b35 78%);
  border-color: rgba(126, 154, 255, 0.34);
  box-shadow: 0 28px 64px rgba(50, 61, 108, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.map-panel .panel-topline,
.map-panel .panel-note {
  color: #b5c2df;
}

.sample-badge {
  color: var(--ink);
  background: linear-gradient(145deg, #fff18a, #ff9a62);
}

.travel-detail {
  color: var(--ink);
  background: linear-gradient(145deg, #dcfff2, #a8eadc 52%, #b7d7ff 100%);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.travel-detail h3 {
  color: var(--ink);
  text-shadow: none;
}

.travel-detail > p,
.travel-stats span {
  color: rgba(24, 33, 58, 0.68);
}

.travel-stats {
  border-color: rgba(24, 33, 58, 0.14);
}

.category-list i {
  background: rgba(24, 33, 58, 0.14);
}

.category-list i b {
  background: linear-gradient(90deg, #6d5dfc, #e84f8d);
}

.contact-card {
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #edf2ff 78%);
  border-color: rgba(87, 102, 155, 0.16);
  box-shadow: var(--shadow-md);
}

.contact-card h2,
.contact-card p {
  color: var(--ink);
  text-shadow: none;
}

.contact-card p {
  color: var(--muted);
}

.contact-card:nth-child(2) {
  color: var(--ink);
  background: linear-gradient(145deg, #fff29e, #ffb071 48%, #ff83b4 100%);
  border-color: rgba(255, 255, 255, 0.72);
}

.contact-card:nth-child(2) h2,
.contact-card:nth-child(2) p {
  color: var(--ink);
}

.contact-email {
  color: #ffffff;
  background: linear-gradient(145deg, #5d6ae8, #8a5fe8 52%, #df5f9e);
  box-shadow: 0 12px 22px rgba(94, 82, 194, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.contact-email:hover {
  color: var(--ink);
  background: linear-gradient(145deg, #fff18a, #ff9a62);
}

.copy-email,
.link-list a {
  color: #5c4de0;
  border-color: #5c4de0;
}

.copy-status {
  color: #e84f7b;
}

.link-list a:hover {
  color: #e84f7b;
  border-color: #e84f7b;
}

@media (max-width: 900px) {
  .home-page .module-grid {
    height: 54rem;
  }

  .tile-career { --bubble-size: 14rem; top: 2rem; left: 2%; }
  .tile-thoughts { --bubble-size: 13rem; top: 5rem; right: 4%; left: auto; }
  .tile-investing { --bubble-size: 12rem; top: 19rem; right: auto; left: 5%; }
  .tile-library { --bubble-size: 13.5rem; top: 23rem; right: 2%; bottom: auto; left: auto; }
  .tile-travel { --bubble-size: 14.5rem; top: 38rem; bottom: auto; left: 1%; }
  .tile-contact { --bubble-size: 12.5rem; top: 41rem; right: 5%; bottom: auto; }
}

@media (max-width: 640px) {
  .home-page .module-grid {
    height: 37rem;
    margin-top: 1rem;
  }

  .module-tile {
    padding: 0.85rem;
  }

  .tile-career { --bubble-size: 10.6rem; top: 0.8rem; left: 0; }
  .tile-thoughts { --bubble-size: 9.8rem; top: 3.4rem; right: 0; left: auto; }
  .tile-investing { --bubble-size: 9.5rem; top: 12rem; right: auto; left: 0.3rem; }
  .tile-library { --bubble-size: 10rem; top: 14.2rem; right: 0; left: auto; }
  .tile-travel { --bubble-size: 10.8rem; top: 22.5rem; left: 0; }
  .tile-contact { --bubble-size: 9.5rem; top: 25.5rem; right: 0; left: auto; }

  .module-tile .tile-art {
    width: 3.8rem;
    height: 3.8rem;
    flex-basis: 3.8rem;
    margin-bottom: 0.45rem;
  }

  .tile-icon-main {
    width: 3.25rem;
    height: 3.25rem;
  }

  .tile-icon-main svg {
    width: 1.75rem;
    height: 1.75rem;
  }

  .tile-icon-mini {
    right: -0.05rem;
    width: 1.55rem;
    height: 1.55rem;
  }

  .tile-icon-mini svg {
    width: 0.72rem;
    height: 0.72rem;
  }

  .module-tile > strong {
    font-size: 0.94rem;
  }

  .module-tile > small {
    display: none;
  }

  .tile-index {
    top: 11%;
    right: 13%;
    width: 1.45rem;
    height: 1.45rem;
  }

  .tile-arrow {
    right: 15%;
    bottom: 10%;
    width: 1.35rem;
    height: 1.35rem;
  }
}

/* Article archives use one continuous signal line instead of repeated cards. */
@media (min-width: 901px) {
  .site-nav-links {
    gap: 1.35rem;
  }

  .site-nav-link {
    padding-inline: 0.18rem;
    font-weight: 650;
  }

  .site-nav-link::after {
    right: 0.18rem;
    left: 0.18rem;
  }
}

.writing-hero {
  grid-template-columns: minmax(0, 48rem);
}

.article-archive {
  padding-top: 3.25rem;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.15rem;
}

.archive-toolbar .module-kicker {
  margin: 0;
}

.archive-filter-state {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.archive-filter-state a {
  padding: 0.38rem 0.62rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.archive-filter-state a:hover,
.archive-filter-state a:focus-visible,
.archive-filter-state a.is-active {
  color: var(--orange-deep);
  background: #fff4ee;
  border-color: rgba(255, 122, 69, 0.42);
}

.article-signal-list {
  --signal-date-width: 8.5rem;
  --signal-node-width: 2.8rem;
  position: relative;
  border-top: 1px solid rgba(38, 50, 68, 0.2);
}

.article-signal-list::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: calc(var(--signal-date-width) + (var(--signal-node-width) / 2));
  width: 1px;
  content: '';
  background: linear-gradient(to bottom, transparent, rgba(255, 122, 69, 0.7) 8%, rgba(38, 50, 68, 0.18) 88%, transparent);
}

.article-signal {
  position: relative;
  display: grid;
  min-height: 8.5rem;
  grid-template-columns: var(--signal-date-width) var(--signal-node-width) minmax(0, 1fr) 3.25rem;
  align-items: center;
  color: var(--ink);
  border-bottom: 1px solid rgba(38, 50, 68, 0.15);
  transition: background 180ms ease;
}

.article-signal[hidden] {
  display: none;
}

.article-signal::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: calc(var(--signal-date-width) + var(--signal-node-width));
  height: 1px;
  content: '';
  background: linear-gradient(90deg, var(--orange), transparent 62%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.article-signal:hover,
.article-signal:focus-within {
  background: linear-gradient(90deg, rgba(255, 244, 238, 0.04), rgba(255, 244, 238, 0.82) 24%, rgba(255, 255, 255, 0.18));
}

.article-signal:hover::after,
.article-signal:focus-within::after {
  transform: scaleX(1);
}

.article-signal-date,
.article-date {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--mono);
  font-style: normal;
  line-height: 1;
}

.article-signal-date span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.article-signal-date strong {
  margin-top: 0.42rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.article-signal-node {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.78rem;
  height: 0.78rem;
  justify-self: center;
  background: var(--canvas);
  border: 2px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem var(--canvas);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-signal:hover .article-signal-node,
.article-signal:focus-within .article-signal-node {
  background: var(--orange);
  box-shadow: 0 0 0 0.32rem var(--canvas), 0 0 1.3rem rgba(255, 122, 69, 0.55);
  transform: scale(1.15);
}

.article-signal-cross .article-signal-node {
  background: var(--orange);
}

.article-signal-content {
  min-width: 0;
  padding: 1.3rem 1.25rem;
}

.article-signal-content h2 {
  max-width: 28ch;
  margin: 0.7rem 0 0;
  font-size: 1.75rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.article-signal-content h2 a {
  transition: color 160ms ease;
}

.article-signal-content h2 a:hover,
.article-signal-content h2 a:focus-visible {
  color: var(--orange-deep);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.article-tag {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.32rem 0.58rem;
  color: #5f6877;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(38, 50, 68, 0.16);
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.article-tag::before {
  margin-right: 0.22rem;
  content: '#';
  color: var(--orange-deep);
}

.article-tag:hover,
.article-tag:focus-visible,
.article-tag.is-active {
  color: var(--orange-deep);
  background: #fff1e9;
  border-color: rgba(255, 122, 69, 0.48);
}

.article-signal-open {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(38, 50, 68, 0.18);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.article-signal-open svg {
  width: 1.15rem;
  height: 1.15rem;
}

.article-signal-open i[data-lucide='arrow-up-right']::before {
  content: '↗';
  font-style: normal;
  font-size: 1.1rem;
}

.article-signal-open:hover,
.article-signal-open:focus-visible {
  color: #ffffff;
  background: var(--orange);
  border-color: var(--orange);
  transform: translate(0.12rem, -0.12rem);
}

.archive-empty {
  padding: 3rem 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Long-form pages keep dates and body copy above editorial decoration. */
.article-hero {
  padding: 4rem 0 2.8rem;
}

.article-date {
  width: fit-content;
  margin-bottom: 1.5rem;
  padding-left: 0.85rem;
  border-left: 0.28rem solid var(--orange);
}

.article-date span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.article-date strong {
  margin-top: 0.4rem;
  color: var(--orange-deep);
  font-size: 1.8rem;
  font-weight: 850;
}

.article-title-note {
  margin: -0.55rem 0 1.2rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.article-hero h1 {
  max-width: 24ch;
  margin-bottom: 1.35rem;
  font-size: 3.35rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.article-layout {
  grid-template-columns: minmax(0, 48rem) 13rem;
  gap: 4.5rem;
  padding-top: 3.4rem;
}

.article-body {
  font-size: 1.15rem;
  line-height: 2;
}

.article-body > p,
.article-body > ol,
.article-body > ul,
.article-body > blockquote {
  max-width: 48rem;
  margin-bottom: 1.6rem;
  font-size: inherit;
  line-height: inherit;
}

.article-body ol,
.article-body ul {
  font-size: inherit;
}

.article-body ol ol,
.article-body ul ul,
.article-body ol ul,
.article-body ul ol {
  margin-top: 0.8rem;
  padding-left: 1.35rem;
}

.article-body li {
  margin-bottom: 0.85rem;
}

.article-sidebar {
  gap: 0;
  padding-left: 1.25rem;
}

.article-sidebar a {
  display: block;
  width: 100%;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.55;
}

.article-sidebar a:first-child {
  padding-top: 0;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .article-sidebar a:first-child {
    padding-top: 0.72rem;
  }
}

@media (max-width: 640px) {
  .article-archive {
    padding-top: 2.5rem;
  }

  .archive-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .article-signal-list {
    --signal-date-width: 4.8rem;
    --signal-node-width: 1.65rem;
  }

  .article-signal {
    min-height: 8rem;
    grid-template-columns: var(--signal-date-width) var(--signal-node-width) minmax(0, 1fr) 2.5rem;
  }

  .article-signal-date span {
    font-size: 0.8rem;
  }

  .article-signal-date strong {
    font-size: 1.16rem;
  }

  .article-signal-content {
    padding: 1.15rem 0.65rem;
  }

  .article-signal-content h2 {
    margin-top: 0.6rem;
    font-size: 1.35rem;
  }

  .article-tag {
    min-height: 1.9rem;
    padding-inline: 0.46rem;
    font-size: 0.8rem;
  }

  .article-signal-open {
    width: 2.25rem;
    height: 2.25rem;
  }

  .article-hero {
    padding: 3.1rem 0 2.3rem;
  }

  .article-date {
    margin-bottom: 1.25rem;
  }

  .article-date strong {
    font-size: 1.5rem;
  }

  .article-hero h1 {
    margin-bottom: 1.2rem;
    font-size: 2.15rem;
    line-height: 1.15;
  }

  .article-layout {
    padding-top: 2.5rem;
  }

  .article-body {
    font-size: 1.05rem;
    line-height: 1.95;
  }

  .article-body > p,
  .article-body > ol,
  .article-body > ul,
  .article-body > blockquote {
    margin-bottom: 1.35rem;
  }

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

@media (max-width: 330px) {
  .home-page .module-grid {
    height: 61rem;
  }

  .home-page .module-tile {
    --bubble-size: 9.5rem;
    right: auto;
    left: calc(50% - 4.75rem);
  }

  .tile-career { top: 0; }
  .tile-thoughts { top: 10rem; }
  .tile-investing { top: 20rem; }
  .tile-library { top: 30rem; }
  .tile-travel { top: 40rem; }
  .tile-contact { top: 50rem; }
}

@media (prefers-reduced-motion: reduce) {
  .module-tile {
    animation: none;
  }
}

/* Home identity is carried by the orbit; the text column stays deliberately quiet. */
.intro-copy {
  max-width: 31rem;
}

.intro-text {
  font-size: 1.12rem;
}

@media (min-width: 901px) {
  .home-intro {
    grid-template-columns: minmax(0, 0.78fr) minmax(26rem, 1.22fr);
    gap: 1.5rem;
  }

  .intro-visual[data-identity-orb] {
    width: min(100%, 30rem);
  }

  .visual-core.name-rotator {
    width: 16.5rem;
    border-width: 0.75rem;
  }

  .visual-chip {
    width: 4rem;
    border-width: 0.36rem;
    font-size: 1.15rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .home-intro {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1.25rem;
  }

  .intro-visual[data-identity-orb] {
    width: 22rem;
  }

  .visual-core.name-rotator {
    width: 13.5rem;
  }

}

@media (max-width: 640px) {
  .intro-copy {
    max-width: none;
  }

  .intro-text {
    font-size: 1rem;
  }

  .intro-visual[data-identity-orb] {
    width: min(100%, 22rem);
  }

  .visual-core.name-rotator {
    width: 12.5rem;
  }

  .visual-chip {
    width: 3.5rem;
  }
}

@media (max-width: 330px) {
  .visual-core.name-rotator {
    width: 11.25rem;
  }

  .visual-chip {
    width: 3.1rem;
  }
}

/* Orange glass refinement: one calm material system across the site. */
body {
  background: var(--canvas);
}

body::before {
  opacity: 0.34;
  background-image: linear-gradient(rgba(38, 50, 68, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 50, 68, 0.055) 1px, transparent 1px);
}

::selection {
  color: #fffaf6;
  background: var(--orange);
}

:focus-visible {
  outline-color: var(--orange);
}

.home-header,
.module-header {
  background: rgba(247, 248, 251, 0.78);
  border-bottom-color: rgba(38, 50, 68, 0.12);
  box-shadow: 0 12px 28px rgba(49, 62, 82, 0.07);
}

.brand-mark {
  color: var(--ink);
  background: linear-gradient(145deg, #fffaf6 0%, #ffd9c7 52%, #ffb18d 100%);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px rgba(232, 93, 50, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.92), inset 0 -6px 12px rgba(232, 93, 50, 0.1);
}

.eyebrow-dot {
  background: var(--orange);
  box-shadow: 0 0 0 0.28rem rgba(255, 122, 69, 0.14), 0 0 18px rgba(255, 122, 69, 0.3);
}

.title-dot,
.section-kicker span:first-child,
.module-kicker,
.module-meta span:first-child,
.card-meta span:first-child,
.timeline-row time,
.module-hero h1 em,
.module-section h2 em {
  color: var(--orange-deep);
}

.title-dot {
  text-shadow: 0 0 22px rgba(255, 122, 69, 0.22);
}

.intro-text {
  color: #465366;
}

.visual-orbit {
  border-color: rgba(38, 50, 68, 0.2);
}

.visual-core {
  color: var(--ink);
  background: linear-gradient(145deg, #fffaf6 0%, #ffd8c5 48%, #ff966d 100%);
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 58px rgba(232, 93, 50, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.86), inset 0 -14px 24px rgba(232, 93, 50, 0.12);
}

.visual-chip,
.chip-build,
.chip-read,
.chip-travel,
.chip-music {
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(49, 62, 82, 0.13), inset 0 2px 0 rgba(255, 255, 255, 0.88), inset 0 -5px 10px rgba(232, 93, 50, 0.08);
}

/* The six links share one translucent bubble material; orange light supplies the identity. */
.module-tile {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3));
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 48px rgba(49, 62, 82, 0.16), inset 0 3px 0 rgba(255, 255, 255, 0.86), inset 0 -16px 28px rgba(255, 122, 69, 0.08);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.module-tile::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
}

.module-tile::after {
  background: rgba(38, 50, 68, 0.11);
}

.module-tile:hover,
.module-tile:focus-visible {
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 70px rgba(49, 62, 82, 0.22), inset 0 3px 0 rgba(255, 255, 255, 0.96), inset 0 -18px 30px rgba(255, 122, 69, 0.11);
}

.tile-career,
.tile-thoughts,
.tile-investing,
.tile-library,
.tile-travel,
.tile-contact {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3));
}

.module-tile .tile-art::before {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 20px rgba(49, 62, 82, 0.11);
}

.module-tile .tile-art::after {
  background: rgba(38, 50, 68, 0.12);
}

.tile-icon-main {
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 13px 24px rgba(49, 62, 82, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.94), inset 0 -7px 12px rgba(232, 93, 50, 0.08);
}

.tile-icon-mini {
  color: #fffaf6;
  background: var(--orange);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 16px rgba(232, 93, 50, 0.22);
}

.tile-index {
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 16px rgba(49, 62, 82, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.module-tile > strong {
  color: var(--ink);
}

.module-tile > small {
  color: rgba(38, 50, 68, 0.68);
}

.tile-arrow {
  color: #fffaf6;
  background: var(--orange);
  box-shadow: 0 8px 16px rgba(232, 93, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.module-tile:hover .tile-arrow {
  color: var(--orange-deep);
  background: #fffaf6;
}

.module-back,
.library-filter {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(49, 62, 82, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.module-back:hover,
.module-back:focus-visible {
  color: var(--orange-deep);
  background: rgba(255, 244, 238, 0.88);
  border-color: rgba(255, 122, 69, 0.38);
}

.module-aside-note {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 239, 231, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 42px rgba(49, 62, 82, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -10px 18px rgba(255, 122, 69, 0.08);
}

.module-card,
.media-card,
.contact-card {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48));
  border-color: rgba(38, 50, 68, 0.12);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.module-card:hover,
.media-card:hover {
  border-color: rgba(255, 122, 69, 0.38);
  box-shadow: var(--shadow-md);
}

.module-card::after,
.module-card:nth-child(2)::after,
.module-card:nth-child(3)::after,
.module-card:nth-child(4)::after {
  background: linear-gradient(90deg, var(--orange), rgba(255, 122, 69, 0.12));
}

.module-card-dark {
  color: #fffaf6;
  background: linear-gradient(145deg, #3b4656, #263244 78%);
  border-color: rgba(255, 255, 255, 0.24);
}

.module-card-dark h3,
.module-card-dark p {
  color: #fffaf6;
}

.module-card-dark .module-meta span:first-child {
  color: #ffb18d;
}

.module-callout {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 239, 231, 0.62));
  border-left-color: var(--orange);
  box-shadow: var(--shadow-sm);
}

.module-callout .inline-link,
.inline-link,
.copy-email,
.link-list a {
  color: var(--orange-deep);
  border-color: var(--orange-deep);
}

.inline-link:hover,
.link-list a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.library-filter span,
.media-summary::after,
.media-facts {
  color: var(--orange-deep);
}

.library-filter:hover,
.library-filter:focus-visible,
.library-filter.is-active {
  color: #fffaf6;
  background: var(--orange);
  border-color: transparent;
}

.library-filter.is-active span {
  color: #fffaf6;
}

.media-cover,
.media-card-film .media-cover,
.media-card-music .media-cover,
.media-card-game .media-cover {
  color: var(--orange-deep);
  background: linear-gradient(145deg, rgba(255, 250, 246, 0.86), rgba(255, 191, 161, 0.72));
}

.media-card-music .media-cover {
  background: linear-gradient(145deg, rgba(255, 250, 246, 0.86), rgba(226, 216, 207, 0.78));
}

.media-card-game .media-cover {
  background: linear-gradient(145deg, rgba(250, 252, 245, 0.86), rgba(210, 224, 199, 0.78));
}

.media-expanded {
  background: rgba(248, 250, 252, 0.74);
  border-top-color: var(--line);
}

.media-heat i {
  background: #e7ebef;
  border-color: rgba(38, 50, 68, 0.08);
}

.media-heat i[data-level='1'] { background: #f9d9ca; }
.media-heat i[data-level='2'] { background: #f5b79c; }
.media-heat i[data-level='3'] { background: #f09570; }
.media-heat i[data-level='4'] { background: var(--orange-deep); }

/* A light Voyager map keeps geography legible while markers stay on-brand. */
.map-panel {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(38, 50, 68, 0.12);
  box-shadow: 0 28px 64px rgba(49, 62, 82, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.map-panel .panel-topline,
.map-panel .panel-note {
  color: var(--muted);
}

.sample-badge {
  color: var(--orange-deep);
  background: #ffe2d5;
  box-shadow: 0 6px 14px rgba(232, 93, 50, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.real-map {
  border-color: rgba(38, 50, 68, 0.14);
  background: #e7edf0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), inset 0 -18px 34px rgba(38, 50, 68, 0.08);
}

.real-map .leaflet-container {
  color: var(--ink);
  background: #e7edf0;
}

.real-map .leaflet-tile-pane {
  opacity: 1;
}

.real-map .leaflet-control-zoom {
  border-color: rgba(38, 50, 68, 0.16) !important;
  box-shadow: 0 10px 20px rgba(49, 62, 82, 0.16);
}

.real-map .leaflet-control-zoom a {
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(38, 50, 68, 0.12);
}

.real-map .leaflet-control-zoom a:hover {
  color: #fffaf6;
  background: var(--orange);
}

.real-map .leaflet-control-attribution {
  color: #596575;
  background: rgba(255, 255, 255, 0.82);
}

.real-map .leaflet-control-attribution a {
  color: var(--orange-deep);
}

.real-map .leaflet-tooltip {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 122, 69, 0.48);
  box-shadow: 0 10px 22px rgba(49, 62, 82, 0.16);
}

.real-map .leaflet-tooltip-top::before {
  border-top-color: rgba(255, 255, 255, 0.94);
}

.map-loading::before {
  border-color: rgba(255, 122, 69, 0.22);
  border-top-color: var(--orange);
}

.map-fallback button {
  color: #fffaf6;
  background: var(--orange);
}

.travel-detail {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 239, 231, 0.64));
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
}

.travel-detail > p,
.travel-stats span {
  color: rgba(38, 50, 68, 0.68);
}

.travel-stats {
  border-color: rgba(38, 50, 68, 0.14);
}

.category-list i {
  background: rgba(38, 50, 68, 0.12);
}

.category-list i b {
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
}

.contact-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(255, 250, 246, 0.82), rgba(255, 191, 161, 0.72));
  border-color: rgba(255, 255, 255, 0.84);
}

.contact-email {
  color: #fffaf6;
  background: linear-gradient(145deg, var(--orange), var(--orange-deep));
  box-shadow: 0 12px 22px rgba(232, 93, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.contact-email:hover {
  color: var(--orange-deep);
  background: #fffaf6;
}

.copy-status {
  color: var(--orange-deep);
}

/* Game memories use compact cover identities without changing the site's main palette. */
.media-card-game .media-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fffaf6;
}

.media-card-game .media-cover::before {
  position: absolute;
  z-index: -1;
  top: 18%;
  right: -18%;
  width: 135%;
  height: 34%;
  content: '';
  background: rgba(255, 255, 255, 0.13);
  transform: rotate(-16deg);
}

.media-card-game .media-cover::after {
  position: absolute;
  z-index: -1;
  inset: 0.55rem;
  content: '';
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
}

.media-card-game .media-glyph {
  max-width: 100%;
  font-size: 1.8rem;
  text-shadow: 0 6px 18px rgba(20, 25, 34, 0.3);
}

.media-card-game .media-cover small {
  color: rgba(255, 250, 246, 0.78);
}

.media-card-game .media-cover.media-cover-lol { background: linear-gradient(145deg, #17243a, #84652e 100%); }
.media-card-game .media-cover.media-cover-dota { background: linear-gradient(145deg, #2f2229, #b54b43 100%); }
.media-card-game .media-cover.media-cover-dnf { background: linear-gradient(145deg, #27364d, #6689ae 100%); }
.media-card-game .media-cover.media-cover-kart { background: linear-gradient(145deg, #287f9c, #e8b84f 100%); }
.media-card-game .media-cover.media-cover-bubble { background: linear-gradient(145deg, #317e9c, #73c8dc 100%); }
.media-card-game .media-cover.media-cover-runner { background: linear-gradient(145deg, #743c37, #e78a58 100%); }
.media-card-game .media-cover.media-cover-rdr { background: linear-gradient(145deg, #202328, #c83e31 100%); }
.media-card-game .media-cover.media-cover-disco { background: linear-gradient(145deg, #243d48, #c7653c 100%); }

/* Game archive: real artwork, asymmetrical exhibition grid and an honest phase timeline. */
.library-grid.is-game-exhibition {
  display: block;
  margin-top: 1.5rem;
}

.game-exhibition-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0 1.35rem;
  border-top: 1px solid var(--line);
}

.game-exhibition-intro span {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
}

.game-exhibition-intro p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.7;
  text-align: right;
}

.game-timeline {
  border-top: 1px solid var(--line);
}

.game-era {
  position: relative;
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--line);
}

.game-era::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.38rem;
  width: 1px;
  content: '';
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.08), rgba(255, 122, 69, 0.58) 18%, rgba(255, 122, 69, 0.16));
}

.game-era-marker {
  position: sticky;
  top: 6rem;
  align-self: start;
  padding-left: 1.75rem;
}

.game-era-marker::before {
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 0.82rem;
  height: 0.82rem;
  content: '';
  background: #fffaf6;
  border: 0.2rem solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0.32rem rgba(255, 122, 69, 0.12), 0 8px 16px rgba(232, 93, 50, 0.2);
}

.game-era-marker > span {
  display: block;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.game-era-marker p {
  max-width: 10rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.55;
}

.game-era-content {
  min-width: 0;
}

.game-era-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
}

.game-era-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.game-era-heading p {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.7;
  text-align: right;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.7rem);
  align-items: start;
}

.game-exhibit {
  min-width: 0;
}

.game-layout-hero { grid-column: span 12; }
.game-layout-half { grid-column: span 6; }
.game-layout-wide { grid-column: span 7; }
.game-layout-narrow { grid-column: span 5; }

.game-exhibit-summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.game-exhibit-summary::-webkit-details-marker {
  display: none;
}

.game-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe4e8;
  border: 1px solid rgba(38, 50, 68, 0.14);
  border-radius: 6px;
  box-shadow: 0 18px 38px rgba(49, 62, 82, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.56);
  transform: translateZ(0);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.game-layout-hero .game-art {
  aspect-ratio: 2.22 / 1;
}

.game-lol .game-art {
  aspect-ratio: 16 / 9;
}

.game-art::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 18, 23, 0.04), transparent 48%, rgba(15, 18, 23, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 220ms ease;
}

.game-lol .game-art img { object-position: center 58%; }
.game-rdr .game-art img { object-position: 68% center; }
.game-bubble .game-art img { object-position: center 42%; }
.game-runner .game-art img { object-position: center 56%; }

.game-status,
.game-open-icon {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.game-status {
  top: 0.75rem;
  left: 0.75rem;
  min-height: 1.8rem;
  padding: 0.35rem 0.65rem;
  color: var(--ink);
  background: rgba(255, 250, 246, 0.82);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(25, 30, 39, 0.16);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 800;
}

.game-open-icon {
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.35rem;
  height: 2.35rem;
  color: #fffaf6;
  background: rgba(232, 93, 50, 0.9);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(69, 33, 22, 0.26);
}

.game-open-icon::before,
.game-open-icon::after {
  position: absolute;
  width: 0.78rem;
  height: 1px;
  content: '';
  background: currentColor;
  transition: transform 180ms ease;
}

.game-open-icon::after {
  transform: rotate(90deg);
}

.game-exhibit[open] .game-open-icon::after {
  transform: rotate(90deg) scaleX(0);
}

.game-exhibit-summary:focus-visible {
  outline: 0;
}

.game-exhibit-summary:focus-visible .game-art {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 69, 0.18), 0 20px 42px rgba(49, 62, 82, 0.18);
}

.game-caption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
}

.game-caption > span {
  min-width: 0;
}

.game-caption strong,
.game-caption small {
  display: block;
}

.game-caption strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.game-layout-hero .game-caption strong {
  font-size: 1.55rem;
}

.game-caption small {
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.game-caption em {
  flex: 0 0 auto;
  padding-top: 0.12rem;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
  text-align: right;
}

.game-record {
  margin-top: 1rem;
  padding: 1rem 0 0.2rem;
  border-top: 1px solid rgba(255, 122, 69, 0.28);
}

.game-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
}

.game-facts span + span::before {
  margin: 0 0.55rem;
  color: rgba(38, 50, 68, 0.3);
  content: '/';
}

.game-record > p {
  max-width: 48rem;
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.8;
}

.game-activity {
  max-width: 30rem;
}

.media-cover.has-image {
  padding: 0;
  background: #dfe4e8;
}

.media-card-game .media-cover.has-image::before,
.media-card-game .media-cover.has-image::after {
  display: none;
}

.media-cover.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .game-exhibit-summary:hover .game-art {
    border-color: rgba(255, 122, 69, 0.48);
    box-shadow: 0 24px 48px rgba(49, 62, 82, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.66);
    transform: translateY(-0.22rem);
  }

  .game-exhibit-summary:hover .game-art img {
    filter: saturate(1.04) contrast(1.02);
    transform: scale(1.025);
  }
}

@media (max-width: 900px) {
  .game-era {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.7rem;
  }

  .game-era-marker > span {
    font-size: 2rem;
  }

  .game-era-heading {
    display: block;
  }

  .game-era-heading p {
    max-width: 34rem;
    margin-top: 0.6rem;
    text-align: left;
  }

  .game-layout-wide,
  .game-layout-narrow {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .game-exhibition-intro {
    display: block;
  }

  .game-exhibition-intro p {
    margin-top: 0.65rem;
    text-align: left;
  }

  .game-era {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3.2rem 0 3.8rem 1.5rem;
  }

  .game-era::before {
    left: 0.34rem;
  }

  .game-era-marker {
    position: relative;
    top: auto;
    padding-left: 1.45rem;
  }

  .game-era-marker::before {
    left: -1.45rem;
  }

  .game-era-marker p {
    max-width: none;
  }

  .game-era-heading h2 {
    font-size: 1.8rem;
  }

  .game-gallery {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .game-layout-hero,
  .game-layout-half,
  .game-layout-wide,
  .game-layout-narrow {
    grid-column: 1;
  }

  .game-layout-hero .game-art,
  .game-art {
    aspect-ratio: 16 / 9;
  }

  .game-caption,
  .game-caption em {
    text-align: left;
  }

  .game-caption {
    display: block;
  }

  .game-caption em {
    display: block;
    margin-top: 0.45rem;
  }

  .game-layout-hero .game-caption strong,
  .game-caption strong {
    font-size: 1.12rem;
  }
}

/* Long-form investment notes and the reusable diary template. */
.article-hero {
  padding: 5.2rem 0 3.8rem;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 18ch;
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 45rem) 12rem;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  justify-content: center;
  padding: 4rem 0 5rem;
}

.article-body {
  min-width: 0;
  color: var(--ink);
}

.article-body > p,
.article-body > ol,
.article-body > ul,
.article-body > blockquote {
  max-width: 43rem;
  margin-top: 0;
  margin-bottom: 1.45rem;
  font-size: 1rem;
  line-height: 2;
}

.article-body .article-lead {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.9;
}

.article-body h2 {
  margin: 3rem 0 1rem;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.15;
}

.article-body ol {
  padding-left: 1.5rem;
}

.article-body li {
  padding-left: 0.35rem;
  margin-bottom: 1rem;
}

.article-body li::marker {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-weight: 800;
}

.article-body blockquote {
  padding: 0.2rem 0 0.2rem 1.35rem;
  color: var(--orange-deep);
  border-left: 0.22rem solid var(--orange);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.7;
}

.article-body-empty {
  min-height: 18rem;
}

.article-sidebar {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.65rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.article-sidebar p {
  margin: 0 0 0.4rem;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
}

.article-sidebar a {
  width: fit-content;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  font-size: 0.7rem;
}

.article-sidebar a:hover,
.article-sidebar a:focus-visible {
  color: var(--orange-deep);
  border-bottom-color: var(--orange-deep);
}

.article-sidebar small {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.7;
}

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

.article-index-card {
  position: relative;
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  padding: 1.35rem;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46));
  border: 1px solid rgba(38, 50, 68, 0.12);
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-index-card-featured {
  grid-column: span 2;
  min-height: 18rem;
  background: linear-gradient(145deg, rgba(255, 250, 246, 0.88), rgba(255, 222, 207, 0.68));
}

.article-index-card-draft {
  background: linear-gradient(145deg, rgba(245, 246, 247, 0.82), rgba(225, 228, 232, 0.62));
}

.article-index-card:hover,
.article-index-card:focus-visible {
  border-color: rgba(255, 122, 69, 0.52);
  box-shadow: var(--shadow-md);
  transform: translateY(-0.18rem);
}

.article-index-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.article-index-topline b {
  font-weight: 800;
}

.article-index-topline small {
  color: var(--muted);
}

.article-index-card h2 {
  max-width: 20ch;
  margin: auto 0 0.8rem;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.2;
}

.article-index-card-featured h2 {
  font-size: 2.35rem;
}

.article-index-card p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

.article-index-link {
  align-self: flex-start;
  margin-top: 1.2rem;
  padding-bottom: 0.18rem;
  color: var(--orange-deep);
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.59rem;
  font-weight: 800;
}

.diary-callout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem 0;
  border-block: 1px solid var(--line);
}

.diary-callout h2 {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.1;
}

.diary-callout p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.diary-layout {
  display: grid;
  grid-template-columns: 11rem minmax(0, 47rem);
  gap: clamp(2rem, 7vw, 6rem);
  justify-content: center;
  padding: 4rem 0 5rem;
}

.diary-index {
  position: sticky;
  top: 6rem;
  align-self: start;
  display: grid;
  gap: 0.7rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.diary-index p {
  margin: 0 0 0.35rem;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
}

.diary-index a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.5;
}

.diary-index a:hover,
.diary-index a:focus-visible {
  color: var(--orange-deep);
}

.diary-body {
  min-width: 0;
}

.diary-block {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 0 0 2.6rem;
  margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}

.diary-number {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 800;
}

.diary-block h2 {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1.15;
}

.diary-prompt {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

.diary-fields {
  margin: 0;
  border-top: 1px solid var(--line);
}

.diary-fields > div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.diary-fields dt {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.diary-fields dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.diary-privacy {
  padding: 1.1rem 1.2rem;
  margin-bottom: 2rem;
  background: rgba(255, 239, 231, 0.62);
  border-left: 0.25rem solid var(--orange);
}

.diary-privacy strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.diary-privacy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.75;
}

.diary-template-code {
  max-width: 100%;
  margin: 0;
  padding: 1.2rem;
  overflow: auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.8;
  white-space: pre;
}

@media (max-width: 900px) {
  .article-layout,
  .diary-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .article-sidebar,
  .diary-index {
    position: static;
    order: -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem 1rem;
    padding: 0 0 0.8rem;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-sidebar small {
    flex-basis: 100%;
    margin-top: 0.3rem;
  }

  .diary-index p {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 3.6rem 0 2.8rem;
  }

  .article-hero h1 {
    font-size: 3rem;
  }

  .article-layout,
  .diary-layout {
    padding: 2.8rem 0 3.6rem;
  }

  .article-body > p,
  .article-body > ol,
  .article-body > ul,
  .article-body > blockquote {
    font-size: 0.92rem;
    line-height: 1.9;
  }

  .article-body .article-lead {
    font-size: 1rem;
  }

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

  .article-index-card-featured {
    grid-column: auto;
  }

  .article-index-card-featured h2 {
    font-size: 1.8rem;
  }

  .diary-callout {
    display: block;
  }

  .diary-callout h2 {
    font-size: 1.8rem;
  }

  .diary-callout .inline-link {
    display: inline-block;
    margin-top: 1rem;
  }

  .diary-block {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .diary-fields > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Navigation, readable type and the horizontal game archive. */
.home-header,
.module-header {
  gap: 1.25rem;
  overflow: visible;
}

.home-header .header-note {
  display: none;
}

.site-nav {
  position: relative;
  z-index: 4;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav-link {
  position: relative;
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-0.08rem);
}

.site-nav-link.is-active {
  color: var(--orange-deep);
  background: rgba(255, 239, 231, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 5px 12px rgba(232, 93, 50, 0.08);
}

.site-nav-drawer {
  display: none;
  position: relative;
}

.site-nav-drawer summary {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  list-style: none;
}

.site-nav-drawer summary::-webkit-details-marker {
  display: none;
}

.site-nav-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  width: min(17rem, calc(100vw - 2rem));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.65rem;
  background: rgba(250, 251, 253, 0.96);
  border: 1px solid rgba(38, 50, 68, 0.14);
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(49, 62, 82, 0.18);
  backdrop-filter: blur(18px);
}

.site-nav-panel .site-nav-link {
  padding: 0.78rem 0.7rem;
  font-size: 0.84rem;
}

.home-brand,
.module-brand {
  font-size: 0.88rem;
  white-space: nowrap;
}

.module-back {
  flex: 0 0 auto;
  font-size: 0.84rem;
  white-space: nowrap;
}

.header-note,
.eyebrow,
.section-kicker,
.module-kicker,
.module-meta,
.mini-label,
.card-meta,
.article-meta,
.article-index-topline,
.diary-index a,
.diary-index p {
  font-size: 0.76rem;
}

.home-footnote,
.visual-caption {
  font-size: 0.74rem;
}

.module-hero {
  padding-top: 4.7rem;
  padding-bottom: 3.4rem;
}

.module-hero h1 {
  max-width: 17ch;
  font-size: 3.8rem;
  line-height: 1.08;
}

.module-lede {
  font-size: 1.06rem;
  line-height: 1.85;
}

.module-aside-note {
  font-size: 0.9rem;
}

.module-aside-note strong {
  font-size: 0.74rem;
}

.module-section h2 {
  font-size: 2.35rem;
}

.module-card p {
  font-size: 0.92rem;
}

.module-card h3 {
  font-size: 1.35rem;
}

.module-tile > small {
  font-size: 0.78rem;
}

.article-hero {
  padding: 4.3rem 0 3rem;
}

.article-hero h1 {
  max-width: 20ch;
  font-size: 3.75rem;
  line-height: 1.04;
}

.article-body > p,
.article-body > ol,
.article-body > ul,
.article-body > blockquote {
  max-width: 48rem;
  font-size: 1.08rem;
  line-height: 1.95;
}

.article-body .article-lead {
  font-size: 1.2rem;
}

.article-body h2 {
  font-size: 1.85rem;
}

.article-body li {
  margin-bottom: 1.15rem;
}

.article-sidebar p,
.article-sidebar a,
.article-sidebar small {
  font-size: 0.8rem;
}

.article-index-topline {
  font-size: 0.74rem;
}

.article-index-card h2 {
  font-size: 1.6rem;
}

.article-index-card-featured h2 {
  font-size: 2rem;
}

.article-index-card p {
  font-size: 0.9rem;
  line-height: 1.75;
}

.article-index-link {
  font-size: 0.76rem;
}

.diary-callout p,
.diary-prompt,
.diary-fields dt,
.diary-fields dd,
.diary-privacy p {
  font-size: 0.84rem;
}

.diary-template-code {
  font-size: 0.78rem;
}

.media-card p,
.media-heading p,
.media-expanded > p,
.game-record > p,
.game-caption small {
  font-size: 0.86rem;
}

.media-facts,
.media-activity-label,
.game-facts,
.game-caption em,
.game-status {
  font-size: 0.75rem;
}

/* The game archive takes its cue from a game shelf: one dark stage, one moving rail. */
.library-grid.is-game-exhibition {
  margin-top: 1.8rem;
}

.game-showcase-stage {
  position: relative;
  display: grid;
  min-height: 20rem;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 2rem;
  align-items: end;
  padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 2.8rem;
  color: #fffaf6;
  background: linear-gradient(135deg, #283549 0%, #1e2a3b 62%, #182131 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  box-shadow: 0 26px 62px rgba(38, 50, 68, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.game-showcase-stage::after {
  position: absolute;
  width: 14rem;
  height: 14rem;
  content: '';
  border: 1px solid rgba(255, 177, 141, 0.42);
  border-radius: 50%;
  transform: translate(48rem, -4rem);
  opacity: 0.55;
}

.game-showcase-stage > div:first-child {
  position: relative;
  z-index: 1;
}

.game-showcase-kicker {
  display: block;
  margin-bottom: 1.25rem;
  color: #ffb18d;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.game-showcase-stage h2 {
  margin: 0 0 1rem;
  color: #fffaf6;
  font-size: 3.4rem;
  line-height: 1.02;
}

.game-showcase-stage h2 em {
  color: #ff9a6d;
  font-style: normal;
}

.game-showcase-stage p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 250, 246, 0.74);
  font-size: 1rem;
  line-height: 1.8;
}

.game-showcase-stamp {
  position: relative;
  z-index: 1;
  display: grid;
  width: 10rem;
  height: 10rem;
  place-items: center;
  justify-self: end;
  color: #283549;
  background: #ff9a6d;
  border: 0.5rem solid rgba(255, 250, 246, 0.86);
  border-radius: 50%;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26), inset 0 3px 0 rgba(255, 255, 255, 0.48);
  transform: rotate(8deg);
}

.game-showcase-stamp span {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.game-showcase-stamp strong {
  margin-top: -2.1rem;
  font-size: 2.5rem;
  line-height: 0.5;
}

.game-conveyor {
  padding: 2.5rem 0 1rem;
}

.game-conveyor-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.game-conveyor-topline {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.game-conveyor-frame {
  position: relative;
}

.game-conveyor-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.4rem 0 2rem;
  cursor: grab;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.game-conveyor-viewport::-webkit-scrollbar {
  display: none;
}

.game-conveyor-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.game-conveyor-track {
  display: flex;
  width: max-content;
  gap: 1.1rem;
}

.game-conveyor-arrow {
  position: absolute;
  z-index: 5;
  top: 45%;
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  padding: 0;
  color: var(--orange-deep);
  background: rgba(255, 250, 246, 0.92);
  border: 1px solid rgba(255, 122, 69, 0.38);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(49, 62, 82, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.25rem;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.game-conveyor-arrow:hover,
.game-conveyor-arrow:focus-visible {
  color: #fffaf6;
  background: var(--orange);
  box-shadow: 0 16px 30px rgba(232, 93, 50, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.game-conveyor-arrow-prev {
  left: 0.65rem;
}

.game-conveyor-arrow-next {
  right: 0.65rem;
}

.game-conveyor-card {
  position: relative;
  display: block;
  width: min(25rem, 31vw);
  flex: 0 0 min(25rem, 31vw);
  padding-bottom: 0.7rem;
  color: var(--ink);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms ease;
}

.game-conveyor-card:hover,
.game-conveyor-card:focus-visible {
  z-index: 2;
  filter: saturate(1.08);
  transform: translateY(-0.65rem) scale(1.06) rotate(-0.7deg);
}

.game-conveyor-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfe4e8;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 11px;
  box-shadow: 0 18px 34px rgba(49, 62, 82, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.58);
}

.game-conveyor-art::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.02), transparent 56%, rgba(18, 25, 36, 0.34));
}

.game-conveyor-art img {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  object-fit: cover;
  user-select: none;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-conveyor-card:hover .game-conveyor-art img,
.game-conveyor-card:focus-visible .game-conveyor-art img {
  transform: scale(1.08);
}

.game-conveyor-card.game-werewolf .game-conveyor-art img,
.game-detail-visual.game-werewolf img {
  object-position: center 42%;
}

.game-conveyor-card.game-rdr .game-conveyor-art,
.game-detail-visual.game-rdr {
  background: #a70d0d;
}

.game-conveyor-card.game-rdr .game-conveyor-art img,
.game-detail-visual.game-rdr img {
  object-fit: cover;
  object-position: 82% center;
}

.game-conveyor-card.game-rdr:hover .game-conveyor-art img,
.game-conveyor-card.game-rdr:focus-visible .game-conveyor-art img {
  transform: none;
}

.game-conveyor-open {
  position: absolute;
  z-index: 2;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  color: #fffaf6;
  background: var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(69, 33, 22, 0.24);
  font-size: 1.2rem;
  transition: transform 220ms ease;
}

.game-conveyor-card:hover .game-conveyor-open,
.game-conveyor-card:focus-visible .game-conveyor-open {
  animation: game-open-bounce 620ms ease-in-out infinite alternate;
}

@keyframes game-open-bounce {
  to { transform: translate(0.12rem, -0.18rem) rotate(8deg); }
}

.game-conveyor-caption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.95rem;
}

.game-conveyor-caption strong,
.game-conveyor-caption small {
  display: block;
}

.game-conveyor-caption strong {
  font-size: 1.28rem;
  line-height: 1.2;
}

.game-conveyor-caption small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.game-conveyor-caption em {
  flex: 0 0 auto;
  color: var(--orange-deep);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
}

.game-conveyor-phase {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.game-phase-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.game-phase-strip b {
  margin-right: 0.35rem;
  color: var(--orange-deep);
  font-family: var(--mono);
}

.module-footer,
.module-footer span,
.home-footnote,
.home-footnote span,
.library-filter span,
.tile-index,
.article-index-topline small,
.article-index-topline b,
.game-detail-facts small {
  font-size: 0.78rem;
}

.travel-city-label {
  padding: 0.25rem 0.45rem;
  color: var(--ink);
  background: rgba(255, 250, 246, 0.92);
  border: 1px solid rgba(38, 50, 68, 0.14);
  border-radius: 5px;
  box-shadow: 0 5px 12px rgba(49, 62, 82, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
}

.travel-city-label::before {
  border-right-color: rgba(255, 250, 246, 0.92) !important;
}

.media-detail-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--orange-deep);
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Individual game records. */
.game-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.game-detail-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 13px;
  box-shadow: var(--shadow-md);
}

.game-detail-visual::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(18, 25, 36, 0.4));
}

.game-detail-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-detail-visual .game-status {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
}

.game-detail-copy h1 {
  margin: 0 0 0.7rem;
  font-size: 3.4rem;
  line-height: 1.05;
}

.game-detail-creator {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.game-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.game-detail-facts span {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.game-detail-facts b {
  color: var(--ink);
  font-size: 1rem;
}

.game-detail-facts small {
  color: var(--muted);
  font-size: 0.78rem;
}

.game-detail-section {
  padding: 3.7rem 0;
  border-bottom: 1px solid var(--line);
}

.game-detail-section h2 {
  max-width: 22ch;
  margin: 0 0 1.1rem;
  font-size: 2.3rem;
}

.game-detail-note,
.game-detail-section > p:not(.module-kicker) {
  max-width: 45rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.game-detail-article {
  display: grid;
  max-width: 42rem;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  margin-top: 1.6rem;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 239, 231, 0.68));
  border: 1px solid rgba(255, 122, 69, 0.24);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.game-detail-article span:first-child {
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.game-detail-article strong {
  font-size: 1rem;
}

.game-detail-article span:last-child {
  color: var(--orange-deep);
  font-size: 1.2rem;
}

.game-detail-activity .media-activity-label {
  max-width: 32rem;
  margin-top: 1.2rem;
  font-size: 0.84rem;
}

.game-detail-activity .media-heat {
  max-width: 32rem;
}

.game-detail-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  padding: 2rem 0 1rem;
}

.game-detail-footer-links a {
  color: var(--orange-deep);
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 700;
}

.game-detail-loading,
.game-detail-empty {
  padding: 5rem 0;
}

@media (max-width: 900px) {
  .site-nav-links {
    display: none;
  }

  .site-nav-drawer {
    display: block;
  }

  .module-hero h1 {
    font-size: 3.1rem;
  }

  .article-hero h1 {
    font-size: 3.25rem;
  }

  .game-showcase-stage {
    grid-template-columns: minmax(0, 1fr) 9rem;
  }

  .game-showcase-stamp {
    width: 8rem;
    height: 8rem;
  }

  .game-conveyor-card {
    width: min(24rem, 44vw);
    flex-basis: min(24rem, 44vw);
  }

  .game-detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-detail-copy {
    max-width: 40rem;
  }
}

@media (max-width: 640px) {
  .home-header,
  .module-header {
    min-height: 4.35rem;
    gap: 0.55rem;
  }

  .home-brand,
  .module-brand {
    gap: 0.45rem;
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
  }

  .module-back {
    max-width: 7.4rem;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
  }

  .module-hero h1 {
    font-size: 2.45rem;
  }

  .article-hero h1 {
    font-size: 2.55rem;
  }

  .article-body > p,
  .article-body > ol,
  .article-body > ul,
  .article-body > blockquote {
    font-size: 1rem;
    line-height: 1.9;
  }

  .article-body .article-lead {
    font-size: 1.08rem;
  }

  .article-index-card-featured h2,
  .article-index-card h2 {
    font-size: 1.65rem;
  }

  .game-showcase-stage {
    display: block;
    min-height: 0;
    padding: 1.6rem 1.35rem 1.8rem;
  }

  .game-showcase-stage h2 {
    font-size: 2.35rem;
  }

  .game-showcase-stage p {
    font-size: 0.94rem;
  }

  .game-showcase-stamp {
    width: 5.8rem;
    height: 5.8rem;
    margin: 1.3rem 0 0 auto;
    border-width: 0.35rem;
  }

  .game-showcase-stamp strong {
    margin-top: -1.2rem;
    font-size: 1.6rem;
  }

  .game-showcase-stamp span {
    font-size: 0.65rem;
  }

  .game-conveyor-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.74rem;
  }

  .game-conveyor-arrow {
    top: 43%;
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1.05rem;
  }

  .game-conveyor-arrow-prev { left: 0.35rem; }
  .game-conveyor-arrow-next { right: 0.35rem; }

  .game-conveyor-card {
    width: 78vw;
    flex-basis: 78vw;
  }

  .game-conveyor-card:hover,
  .game-conveyor-card:focus-visible {
    transform: translateY(-0.35rem) scale(1.025) rotate(-0.4deg);
  }

  .game-conveyor-caption strong {
    font-size: 1.18rem;
  }

  .game-conveyor-caption small,
  .game-conveyor-caption em,
  .game-conveyor-phase {
    font-size: 0.82rem;
  }

  .game-detail-copy h1 {
    font-size: 2.55rem;
  }

  .game-detail-section h2 {
    font-size: 1.9rem;
  }

  .game-detail-note,
  .game-detail-section > p:not(.module-kicker) {
    font-size: 1rem;
  }

  .game-detail-article {
    grid-template-columns: 1fr auto;
  }

  .game-detail-article span:first-child {
    grid-column: 1 / -1;
  }
}

/* Keep secondary labels readable instead of treating them as decoration. */
.brand-mark,
.visual-core small,
.visual-caption,
.module-aside-note strong,
.inline-link,
.game-conveyor-topline,
.game-showcase-stamp span {
  font-size: 0.78rem;
}

.map-panel .panel-topline,
.map-panel .panel-note,
.sample-badge,
.travel-stats span,
.category-list > div,
.category-list em,
.real-map .leaflet-control-attribution {
  font-size: 0.75rem;
}

.real-map .travel-city-label {
  font-size: 0.82rem;
}

.travel-detail > p {
  font-size: 0.9rem;
}

/* Real travel footprint: vivid heat levels over a clean, readable base map. */
.travel-footprint-section {
  padding-top: clamp(2.6rem, 6vw, 4.6rem);
}

.travel-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(19rem, 0.68fr);
  gap: 1.2rem;
  align-items: start;
}

.map-panel,
.travel-detail {
  border-radius: 8px;
}

.map-panel {
  padding: 1.15rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(38, 50, 68, 0.13);
  box-shadow: 0 30px 70px rgba(49, 62, 82, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.map-panel .panel-topline {
  align-items: center;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.footprint-badge {
  flex: 0 0 auto;
  padding: 0.38rem 0.62rem;
  color: var(--orange-deep);
  background: #ffe4d7;
  border: 1px solid rgba(255, 122, 69, 0.18);
  border-radius: 999px;
  box-shadow: 0 7px 16px rgba(232, 93, 50, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.real-map {
  height: clamp(27rem, 43vw, 33rem);
  isolation: isolate;
  background: #b9e2ef;
  border: 1px solid rgba(38, 50, 68, 0.17);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 18px 36px rgba(49, 62, 82, 0.13);
}

.real-map .leaflet-container {
  background: #b9e2ef;
}

.real-map .leaflet-tile-pane {
  filter: saturate(1.28) brightness(1.045) contrast(1.025);
}

.real-map .leaflet-control-zoom {
  border: 1px solid rgba(38, 50, 68, 0.16) !important;
  border-radius: 7px;
  box-shadow: 0 12px 26px rgba(49, 62, 82, 0.2);
}

.real-map .leaflet-control-zoom a {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.94);
  line-height: 2.25rem;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.real-map .leaflet-control-zoom a:active {
  box-shadow: inset 0 3px 8px rgba(49, 62, 82, 0.16);
  transform: scale(0.9);
}

.real-map .leaflet-control-attribution {
  color: #526172;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
}

.travel-marker {
  --marker-color: #ffcc00;
  --marker-glow: rgba(255, 204, 0, 0.5);
  --marker-deep: #d6a900;
  --flag-width: 0.9rem;
  --flag-height: 0.59rem;
  background: transparent;
  border: 0;
}

.travel-marker-level-2 {
  --marker-color: #ff8a00;
  --marker-glow: rgba(255, 138, 0, 0.52);
  --marker-deep: #dc6500;
  --flag-width: 0.98rem;
  --flag-height: 0.64rem;
}

.travel-marker-level-3 {
  --marker-color: #ff3d5a;
  --marker-glow: rgba(255, 61, 90, 0.5);
  --marker-deep: #d61d3b;
  --flag-width: 1.07rem;
  --flag-height: 0.69rem;
}

.travel-marker-lived {
  --marker-color: #9b5de5;
  --marker-glow: rgba(155, 93, 229, 0.5);
  --marker-deep: #7037b6;
  --flag-width: 1.1rem;
  --flag-height: 0.72rem;
}

.travel-marker-current {
  --marker-color: #00b884;
  --marker-glow: rgba(0, 184, 132, 0.52);
  --marker-deep: #007f5d;
  --flag-width: 1.14rem;
  --flag-height: 0.74rem;
}

.travel-flag-visual {
  position: absolute;
  bottom: 0.2rem;
  left: 0.62rem;
  display: block;
  width: 1.65rem;
  height: 2.05rem;
  pointer-events: none;
  filter: drop-shadow(0 0.28rem 0.34rem rgba(35, 44, 60, 0.32)) drop-shadow(0 0 0.45rem var(--marker-glow));
  transform-origin: 0.31rem 1.84rem;
  transition: filter 180ms ease, transform 180ms ease;
}

.travel-flag-visual::before {
  position: absolute;
  top: 0.08rem;
  bottom: 0.08rem;
  left: 0.21rem;
  width: 0.17rem;
  content: '';
  background: linear-gradient(90deg, #ffffff 0%, #d8e0e9 48%, #657184 100%);
  border: 1px solid rgba(35, 44, 60, 0.32);
  border-radius: 999px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.9), 0 0.2rem 0.3rem rgba(35, 44, 60, 0.18);
  box-sizing: border-box;
}

.travel-flag-visual::after {
  position: absolute;
  top: 0.14rem;
  left: 0.36rem;
  width: var(--flag-width);
  height: var(--flag-height);
  content: '';
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0 8%, var(--marker-color) 24% 72%, var(--marker-deep) 100%);
  border-radius: 1px;
  clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.96)) drop-shadow(0 0.18rem 0.22rem rgba(35, 44, 60, 0.28));
  transform: skewY(-3deg);
  transform-origin: left top;
}

.travel-flag-visual > i {
  position: absolute;
  bottom: 0;
  left: 0.02rem;
  display: block;
  width: 0.72rem;
  height: 0.22rem;
  background: rgba(35, 44, 60, 0.24);
  border-radius: 50%;
  filter: blur(1px);
  transform: skewX(-18deg);
}

.travel-marker:hover .travel-flag-visual,
.travel-marker:focus-visible .travel-flag-visual {
  filter: drop-shadow(0 0.38rem 0.42rem rgba(35, 44, 60, 0.36)) drop-shadow(0 0 0.7rem var(--marker-glow));
  transform: translateY(-0.12rem) rotate(-1deg);
}

.travel-marker.is-selected .travel-flag-visual {
  filter: drop-shadow(0 0.42rem 0.48rem rgba(35, 44, 60, 0.38)) drop-shadow(0 0 0.92rem var(--marker-glow));
  transform: translateY(-0.24rem) scale(1.22) rotate(-2deg);
}

.travel-marker-current .travel-flag-visual > i {
  bottom: -0.16rem;
  left: -0.28rem;
  width: 1.35rem;
  height: 0.52rem;
  background: rgba(0, 184, 132, 0.13);
  border: 2px solid var(--marker-color);
  filter: none;
  transform: none;
  animation: travel-flag-pulse 2.4s ease-out infinite;
}

@keyframes travel-flag-pulse {
  0% { opacity: 0.78; transform: scale(0.72); }
  75%, 100% { opacity: 0; transform: scale(1.42); }
}

.real-map .travel-city-label {
  padding: 0.38rem 0.58rem;
  color: #ffffff;
  background: rgba(35, 44, 60, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(35, 44, 60, 0.22);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 750;
}

.real-map .travel-city-label-current {
  color: #ffffff;
  background: #009b71;
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(0, 155, 113, 0.3);
}

.real-map .leaflet-tooltip-top.travel-city-label::before {
  border-top-color: rgba(35, 44, 60, 0.92) !important;
  border-right-color: transparent !important;
}

.real-map .leaflet-tooltip-top.travel-city-label-current::before {
  border-top-color: #009b71 !important;
}

.real-map .leaflet-popup-content-wrapper,
.real-map .leaflet-popup-tip {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(35, 44, 60, 0.22);
}

.real-map .leaflet-popup-content-wrapper {
  border: 1px solid rgba(38, 50, 68, 0.14);
  border-radius: 8px;
}

.real-map .leaflet-popup-content {
  margin: 0.78rem 0.9rem;
}

.travel-map-popup {
  display: grid;
  min-width: 8.5rem;
  gap: 0.18rem;
  font-family: var(--sans);
}

.travel-map-popup strong {
  color: var(--ink);
  font-size: 1rem;
}

.travel-map-popup span {
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 750;
}

.travel-map-popup small {
  color: var(--muted);
  font-size: 0.76rem;
}

.travel-tone-level-1 {
  --travel-tone: #ffcc00;
  --travel-tone-soft: #fff6c7;
}

.travel-tone-level-2 {
  --travel-tone: #ff8a00;
  --travel-tone-soft: #ffe3bf;
}

.travel-tone-level-3 {
  --travel-tone: #ff3d5a;
  --travel-tone-soft: #ffd7de;
}

.travel-tone-lived {
  --travel-tone: #9b5de5;
  --travel-tone-soft: #eadcfb;
}

.travel-tone-current {
  --travel-tone: #00b884;
  --travel-tone-soft: #cff5e9;
}

.travel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  align-items: center;
  padding: 1rem 0 0.95rem;
  border-bottom: 1px solid rgba(38, 50, 68, 0.11);
}

.travel-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.travel-legend i,
.travel-city-chip i {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.78rem;
  height: 0.56rem;
  margin-left: 0.18rem;
  background: var(--travel-tone);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 1px 3px 3px 1px;
  box-shadow: 0 0.12rem 0.24rem color-mix(in srgb, var(--travel-tone) 32%, transparent);
  transform: skewY(-4deg);
}

.travel-legend i::before,
.travel-city-chip i::before {
  position: absolute;
  top: -0.1rem;
  bottom: -0.35rem;
  left: -0.18rem;
  width: 1.5px;
  content: '';
  background: #7a8493;
  border-radius: 999px;
}

.travel-index-label {
  margin: 0.95rem 0 0.62rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.travel-city-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.travel-city-chip {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.66rem;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(38, 50, 68, 0.13);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.travel-city-chip i {
  width: 0.68rem;
  height: 0.49rem;
  box-shadow: 0 0.1rem 0.2rem color-mix(in srgb, var(--travel-tone) 24%, transparent);
}

.travel-city-chip:hover,
.travel-city-chip:focus-visible,
.travel-city-chip.is-active {
  background: var(--travel-tone-soft);
  border-color: color-mix(in srgb, var(--travel-tone) 52%, #ffffff);
  box-shadow: 0 8px 17px color-mix(in srgb, var(--travel-tone) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.travel-city-chip.is-active {
  outline: 2px solid color-mix(in srgb, var(--travel-tone) 32%, transparent);
  outline-offset: 1px;
}

.travel-detail {
  position: sticky;
  display: flex;
  min-height: 35rem;
  flex-direction: column;
  align-self: start;
  padding: 1.35rem;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(255, 239, 231, 0.84) 58%, rgba(255, 220, 207, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 70px rgba(49, 62, 82, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.95), inset 0 -16px 30px rgba(255, 122, 69, 0.08);
  top: 6.2rem;
}

.travel-detail::before {
  position: absolute;
  top: 0;
  right: 1.2rem;
  left: 1.2rem;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, #ffcc00, #ff8a00, #ff3d5a, #9b5de5, #00b884);
  border-radius: 0 0 999px 999px;
}

.travel-detail-topline,
.travel-rating-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.travel-detail-topline .mini-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.travel-status {
  flex: 0 0 auto;
  padding: 0.38rem 0.62rem;
  color: #9f3f16;
  background: #ffe0d0;
  border: 1px solid rgba(255, 122, 69, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
}

.travel-status[data-kind='lived'] {
  color: #6532a0;
  background: #eadcfb;
  border-color: rgba(155, 93, 229, 0.24);
}

.travel-status[data-kind='current'] {
  color: #007e5b;
  background: #cff5e9;
  border-color: rgba(0, 184, 132, 0.24);
}

.travel-detail h3 {
  margin: 1.35rem 0 0.65rem;
  color: var(--ink);
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  line-height: 1;
  text-shadow: none;
}

.travel-detail > p[data-travel-summary] {
  min-height: 6.3rem;
  margin: 0;
  color: rgba(38, 50, 68, 0.72);
  font-size: 0.94rem;
  line-height: 1.8;
}

.travel-archive-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.travel-archive-counts > div {
  display: flex;
  min-width: 0;
  min-height: 5.2rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(38, 50, 68, 0.1);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.travel-archive-counts strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1.1;
}

.travel-archive-counts span {
  color: var(--muted);
  font-size: 0.78rem;
}

.travel-rating-preview {
  margin-top: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(38, 50, 68, 0.1);
  border-radius: 7px;
}

.travel-rating-heading span {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.travel-rating-heading strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.travel-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.travel-category-tags span {
  padding: 0.36rem 0.52rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(38, 50, 68, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
}

.travel-detail > .travel-empty {
  min-height: auto;
  margin: auto 0 0;
  padding-top: 1.25rem;
  color: var(--orange-deep);
  font-size: 0.84rem;
  font-weight: 650;
}

.travel-closing h2 {
  max-width: 18ch;
}

@media (max-width: 900px) {
  .travel-layout {
    grid-template-columns: 1fr;
  }

  .travel-detail {
    min-height: 30rem;
    position: static;
  }

  .travel-detail > p[data-travel-summary] {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .map-panel {
    padding: 0.78rem;
  }

  .real-map {
    height: min(68vh, 26rem);
    min-height: 22rem;
  }

  .travel-legend {
    gap: 0.65rem 0.9rem;
  }

  .travel-city-index {
    gap: 0.38rem;
  }

  .travel-city-chip {
    min-height: 2.1rem;
    padding-inline: 0.58rem;
  }

  .travel-detail {
    min-height: 31rem;
    margin-top: 0;
    padding: 1.1rem;
  }

  .travel-detail h3 {
    font-size: 2.45rem;
  }

  .travel-archive-counts > div {
    min-height: 4.8rem;
    padding: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .travel-marker-current .travel-flag-visual > i {
    animation: none;
    opacity: 0.5;
  }
}

/* Identity motion and the project-to-stack relationship map. */
.identity-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.home-intro h1.identity-title {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 0.92em;
  align-items: baseline;
  margin-bottom: 1.55rem;
  white-space: nowrap;
}

.name-rotator {
  display: inline-grid;
  min-width: 8.15ch;
  align-items: baseline;
}

.name-rotator-visual {
  display: inline-flex;
  min-width: 100%;
  align-items: baseline;
  justify-content: center;
  letter-spacing: 0;
}

.name-rotator.is-enhanced .name-character {
  display: inline-block;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(0.22em) scale(0.92);
  transform-origin: 50% 80%;
  transition: opacity 380ms ease, filter 420ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
  transition-delay: var(--char-enter-delay, 0ms);
  will-change: opacity, filter, transform;
}

.name-rotator.is-enhanced.is-visible .name-character {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.name-rotator.is-enhanced.is-leaving .name-character {
  opacity: 0;
  filter: blur(9px);
  transform: translate(0.18em, -0.34em) scale(1.12);
  transition-delay: var(--char-leave-delay, 0ms);
}

.identity-title:focus-visible {
  outline: 0;
}

.identity-title:focus-visible .name-rotator {
  outline: 3px solid rgba(255, 122, 69, 0.72);
  outline-offset: 0.12em;
}

.career-stack-section {
  position: relative;
}

.career-stack-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: clamp(2rem, 7vw, 6.5rem);
  align-items: end;
}

.career-stack-intro h2 {
  max-width: none;
  margin-bottom: 0;
}

.career-stack-intro > p {
  max-width: 31rem;
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.career-nowrap {
  white-space: nowrap;
}

[data-career-graph] {
  margin-top: 2rem;
}

.career-graph-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 36rem;
  grid-template-columns: minmax(17rem, 0.96fr) minmax(13rem, 0.68fr);
  gap: clamp(6rem, 12vw, 11rem);
  padding: 0 2.35rem;
  overflow: hidden;
  color: #fffaf6;
  background: linear-gradient(145deg, #1c242d 0%, #303943 62%, #232b34 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 30px 72px rgba(37, 46, 58, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.1), inset 0 -20px 38px rgba(0, 0, 0, 0.14);
}

.career-graph-stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: '';
  opacity: 0.32;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.career-graph-stage::after {
  position: absolute;
  top: 0;
  right: 1.4rem;
  left: 1.4rem;
  z-index: -1;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, transparent, #ff7a45 18%, #ffc6a9 52%, #ff7a45 82%, transparent);
  box-shadow: 0 7px 24px rgba(255, 122, 69, 0.34);
}

.career-graph-axis {
  position: absolute;
  top: 1.35rem;
  right: 2.35rem;
  left: 2.35rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.career-edge-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.career-edge {
  fill: none;
  stroke: rgba(255, 164, 115, 0.46);
  stroke-dasharray: 7 9;
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: opacity 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.career-graph-stage.has-selection .career-edge {
  opacity: 0.08;
}

.career-graph-stage.has-selection .career-edge.is-active {
  opacity: 1;
  stroke: #ff8a50;
  stroke-width: 3;
  filter: drop-shadow(0 0 5px rgba(255, 122, 69, 0.78));
  animation: career-signal 900ms linear infinite;
}

.career-project-column,
.career-tech-column {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 0 4.55rem;
}

.career-node {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 7px;
  text-align: left;
  transition: opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.career-project-node {
  display: grid;
  min-height: 7.45rem;
  grid-template-columns: 2.65rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  color: #fffaf6;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.career-project-code {
  display: grid;
  width: 2.65rem;
  min-height: 100%;
  place-items: center;
  color: #272f38;
  background: linear-gradient(160deg, #fff4ec, #ff9a6e);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(255, 122, 69, 0.2), inset 0 1px 0 #ffffff;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
}

.career-project-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.career-project-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.38rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.career-project-meta span,
.career-project-meta time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-project-node strong {
  overflow-wrap: anywhere;
  font-size: 1.16rem;
  line-height: 1.25;
}

.career-project-node small {
  margin-top: 0.32rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.5;
}

.career-tech-node {
  display: grid;
  min-height: 4.35rem;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.78rem;
  align-items: center;
  padding: 0.72rem;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 231, 0.91));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 #ffffff;
}

.career-tech-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: #fffaf6;
  background: linear-gradient(145deg, #ff8d5d, #e85d32);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(232, 93, 50, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
}

.career-tech-node strong,
.career-tech-node small {
  display: block;
}

.career-tech-node strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.25;
}

.career-tech-node small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.career-node:hover,
.career-node:focus-visible,
.career-node.is-active {
  z-index: 3;
  transform: translateY(-3px) scale(1.018);
}

.career-project-node:hover,
.career-project-node:focus-visible,
.career-project-node.is-active {
  border-color: rgba(255, 151, 101, 0.82);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.23), 0 0 0 1px rgba(255, 122, 69, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.career-tech-node:hover,
.career-tech-node:focus-visible,
.career-tech-node.is-active {
  border-color: rgba(255, 151, 101, 0.94);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 122, 69, 0.17), inset 0 1px 0 #ffffff;
}

.career-node:focus-visible {
  outline: 3px solid #ff9a6e;
  outline-offset: 3px;
}

.career-graph-stage.has-selection .career-node.is-muted {
  opacity: 0.28;
  filter: grayscale(0.55) saturate(0.4);
  transform: scale(0.975);
}

.career-graph-status {
  position: absolute;
  right: 2.35rem;
  bottom: 1.2rem;
  left: 2.35rem;
  z-index: 3;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.career-graph-status span {
  flex: 0 0 auto;
  color: #ff9a6e;
  font-weight: 800;
}

.career-graph-status strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-mobile-map {
  display: none;
}

.career-foundation {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: 1.4rem;
  padding: 1.8rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.career-foundation-heading > span {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.career-foundation-heading h3 {
  margin: 0.42rem 0 0.55rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.career-foundation-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.career-foundation-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.career-foundation-group {
  display: grid;
  min-width: 0;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.72rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(38, 50, 68, 0.15);
}

.career-foundation-index {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--orange-deep);
  background: rgba(255, 239, 231, 0.82);
  border: 1px solid rgba(255, 122, 69, 0.2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.career-foundation-group small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.career-foundation-group h4 {
  margin: 0.18rem 0 0.55rem;
  font-size: 1rem;
}

.career-foundation-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-foundation-group li {
  padding: 0.3rem 0.48rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(38, 50, 68, 0.12);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.career-noscript {
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
}

.career-noscript p {
  margin: 0.45rem 0;
}

@keyframes career-signal {
  to { stroke-dashoffset: -16; }
}

@media (max-width: 900px) {
  .career-stack-intro {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.8fr);
    gap: 2rem;
  }

  .career-graph-stage {
    grid-template-columns: minmax(14rem, 1fr) minmax(11rem, 0.72fr);
    gap: 4.5rem;
    padding-inline: 1.65rem;
  }

  .career-graph-axis,
  .career-graph-status {
    right: 1.65rem;
    left: 1.65rem;
  }

  .career-project-node {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.82rem;
  }

  .career-project-code {
    width: 2.35rem;
  }

  .career-project-meta time {
    display: none;
  }

  .career-foundation {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 760px) {
  .career-stack-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .career-stack-intro > p {
    max-width: 40rem;
  }

  .career-graph-stage {
    display: none;
  }

  .career-mobile-map {
    display: block;
    overflow: hidden;
    color: #fffaf6;
    background: linear-gradient(145deg, #1c242d, #303943);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(37, 46, 58, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.1);
  }

  .career-mobile-project {
    position: relative;
    margin: 0;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .career-mobile-project:last-child {
    border-bottom: 0;
  }

  .career-mobile-project::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: '';
    background: linear-gradient(to bottom, transparent, #ff8a50, transparent);
  }

  .career-mobile-project-head {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .career-mobile-project-head > span {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    color: #272f38;
    background: linear-gradient(160deg, #fff4ec, #ff9a6e);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 800;
  }

  .career-mobile-project-head small {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--mono);
    font-size: 0.74rem;
  }

  .career-mobile-project-head h3 {
    margin: 0.18rem 0 0.2rem;
    color: #fffaf6;
    font-size: 1.15rem;
  }

  .career-mobile-project-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .career-mobile-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.9rem 0 0 3.15rem;
  }

  .career-mobile-technologies span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.38rem 0.55rem 0.38rem 0.42rem;
    color: var(--ink);
    background: rgba(255, 250, 246, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 750;
  }

  .career-mobile-technologies b {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    color: #fffaf6;
    background: var(--orange-deep);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.62rem;
  }

  .career-foundation-groups {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .career-foundation-group {
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .identity-label {
    font-size: 0.78rem;
  }

  .home-intro h1.identity-title {
    margin-bottom: 1.35rem;
  }

  .career-stack-intro > p {
    font-size: 0.94rem;
  }

  [data-career-graph] {
    margin-top: 1.45rem;
  }

  .career-mobile-project {
    padding: 1.05rem;
  }
}

@media (max-width: 330px) {
  .module-header .module-brand > span:last-child {
    display: none;
  }

  .module-header .module-back {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    place-items: center;
    padding: 0;
    overflow: visible;
    font-size: 0;
  }

  .module-header .module-back::before {
    content: '←';
    font-size: 0.92rem;
  }

  .module-header .site-nav-drawer summary {
    white-space: nowrap;
  }

  .career-mobile-project-head {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.62rem;
  }

  .career-mobile-project-head > span {
    width: 2rem;
    height: 2rem;
  }

  .career-mobile-technologies {
    margin-left: 2.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .name-rotator.is-enhanced .name-character,
  .name-rotator.is-enhanced.is-visible .name-character,
  .name-rotator.is-enhanced.is-leaving .name-character {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .career-graph-stage.has-selection .career-edge.is-active {
    animation: none;
  }
}

/* Spatial identity and project signals: the final layer replaces the boxed graph. */
.intro-visual[data-identity-orb] {
  --orb-rotate-x: 0deg;
  --orb-rotate-y: 0deg;
  perspective: 900px;
  transform-style: preserve-3d;
}

.intro-visual[data-identity-orb]::before {
  position: absolute;
  inset: 4.2%;
  z-index: 0;
  content: '';
  background: conic-gradient(from 28deg, transparent 0 12%, rgba(255, 122, 69, 0.72) 12% 15%, transparent 15% 48%, rgba(38, 50, 68, 0.38) 48% 50%, transparent 50% 82%, rgba(255, 122, 69, 0.46) 82% 85%, transparent 85%);
  border-radius: 50%;
  mask: radial-gradient(circle, transparent 67%, #000 68% 70%, transparent 71%);
  animation: orbit-turn 32s linear infinite;
  pointer-events: none;
}

.visual-core.name-rotator {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translate(-50%, -50%) rotateX(var(--orb-rotate-x)) rotateY(var(--orb-rotate-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out, box-shadow 220ms ease;
}

.intro-visual[data-identity-orb]:hover .visual-core.name-rotator {
  box-shadow: 0 38px 72px rgba(232, 93, 50, 0.27), inset 0 3px 0 rgba(255, 255, 255, 0.9), inset 0 -18px 30px rgba(232, 93, 50, 0.16);
}

.visual-core.name-rotator::before {
  inset: 0.72rem;
  width: auto;
  height: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.2);
  transform: none;
}

.visual-core.name-rotator::after {
  top: 19%;
  right: auto;
  bottom: auto;
  left: 25%;
  width: 44%;
  height: 0.52rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.28));
  border-radius: 999px;
  box-shadow: 0 8px 14px rgba(49, 62, 82, 0.12);
  transform: rotate(-24deg) translateZ(18px);
}

.visual-core .visual-core-name {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-size: 2.05rem;
  line-height: 1;
  white-space: nowrap;
  transform: translateZ(26px);
}

.visual-core .visual-core-name .name-character {
  font-size: inherit;
}

.visual-core[data-name-form='long'] .visual-core-name,
.visual-core[data-name-form='long'] .visual-core-name .name-character {
  font-size: 1.42rem;
}

.visual-core.name-rotator small {
  margin-top: 0.68rem;
  color: rgba(38, 50, 68, 0.72);
  font-size: 0.76rem;
  font-weight: 750;
  transform: translateZ(18px);
}

.stack-link-lab {
  position: relative;
  isolation: isolate;
  margin-top: 2.4rem;
}

.stack-desktop-map {
  position: relative;
  z-index: 2;
}

.stack-link-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.stack-link {
  fill: none;
  opacity: 0;
  stroke: #ff7138;
  stroke-dasharray: 14 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(255, 113, 56, 0.58));
  transition: opacity 160ms ease;
}

.stack-link.is-active {
  opacity: 1;
  animation: stack-signal-flow 760ms linear infinite;
}

.stack-project-grid {
  display: grid;
  min-height: 30rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(15.5rem, 1.08fr) minmax(12.5rem, 0.92fr);
  gap: 1rem;
}

.stack-project-heading,
.stack-skill-heading {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
}

.stack-project-heading {
  display: flex;
  grid-column: 1 / 5;
  grid-row: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.45rem;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 238, 228, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 54px rgba(49, 62, 82, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.96);
}

.stack-project-heading > span:first-child,
.stack-skill-heading > span:first-child {
  position: relative;
  z-index: 2;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.stack-project-heading > strong {
  position: relative;
  z-index: 2;
  margin: auto 0;
  font-size: 2.35rem;
  line-height: 0.98;
}

.stack-project-heading > strong em,
.stack-skill-heading > strong em {
  color: var(--orange);
  font-style: normal;
}

.stack-project-heading > p {
  position: relative;
  z-index: 2;
  max-width: 18rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.stack-heading-signal {
  position: absolute;
  right: 1.2rem;
  bottom: 1.15rem;
  display: flex;
  height: 2.5rem;
  align-items: end;
  gap: 0.22rem;
  opacity: 0.45;
}

.stack-heading-signal i {
  width: 0.2rem;
  height: 35%;
  background: var(--orange);
  border-radius: 2px;
  animation: stack-bars 1.4s ease-in-out infinite alternate;
}

.stack-heading-signal i:nth-child(2n) { height: 72%; animation-delay: -0.6s; }
.stack-heading-signal i:nth-child(3n) { height: 100%; animation-delay: -1s; }

.stack-node {
  position: relative;
  z-index: 3;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: opacity 180ms ease, filter 180ms ease, transform 200ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 200ms ease, border-color 200ms ease;
}

.stack-project-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  border: 1px solid rgba(38, 50, 68, 0.13);
  box-shadow: 0 22px 48px rgba(49, 62, 82, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.stack-project-card[data-node-id='stepfun-speech'] {
  grid-column: 5 / 13;
  grid-row: 1;
}

.stack-project-card[data-node-id='iflytek-tt'] {
  grid-column: 1 / 8;
  grid-row: 2;
}

.stack-project-card[data-node-id='deepsight-data-tool'] {
  grid-column: 8 / 13;
  grid-row: 2;
}

.stack-project-card--current {
  color: #fffaf6;
  background: linear-gradient(135deg, #1b222b 0%, #303a45 72%, #222a33 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 68px rgba(33, 41, 51, 0.27), inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.stack-project-card--engine {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 247, 0.8));
}

.stack-project-card--tool {
  color: var(--ink);
  background: linear-gradient(145deg, #fff7f2, #ffd9c7);
  border-color: rgba(255, 122, 69, 0.17);
}

.stack-project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.stack-project-card--current .stack-project-topline {
  color: rgba(255, 255, 255, 0.56);
}

.stack-project-company {
  margin-top: 1.2rem;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
}

.stack-project-card--current .stack-project-company {
  color: #ff9366;
}

.stack-project-card > strong {
  margin-top: 0.28rem;
  font-size: 1.8rem;
  line-height: 1.1;
}

.stack-project-card--current > strong {
  max-width: 12ch;
  font-size: 2.45rem;
}

.stack-project-card > small {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.stack-project-card--current > small {
  color: rgba(255, 255, 255, 0.66);
}

.stack-project-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1rem;
}

.stack-project-signals i {
  padding: 0.28rem 0.45rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(38, 50, 68, 0.1);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 750;
}

.stack-project-card--current .stack-project-signals i {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.stack-project-reveal,
.stack-tech-reveal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.45rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-14%, 105%) rotate(-4deg);
  transition: opacity 200ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-project-reveal {
  color: #fffaf6;
  background: rgba(31, 39, 48, 0.97);
}

.stack-project-card--current .stack-project-reveal {
  color: #1d2730;
  background: rgba(255, 126, 76, 0.97);
}

.stack-project-reveal small,
.stack-tech-reveal small {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.stack-project-reveal strong {
  max-width: 20ch;
  margin-top: 0.55rem;
  font-size: 1.7rem;
  line-height: 1.25;
}

.stack-project-reveal > span:last-child,
.stack-tech-reveal > span:last-child {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 750;
}

.stack-link-status {
  position: relative;
  z-index: 9;
  display: flex;
  min-height: 5.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0;
  padding: 0.8rem 0.2rem;
  color: var(--muted);
  background: var(--canvas);
  border-block: 1px solid rgba(38, 50, 68, 0.13);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.stack-link-status > span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--orange-deep);
  font-weight: 800;
}

.stack-link-status i {
  width: 0.52rem;
  height: 0.52rem;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0.28rem rgba(255, 122, 69, 0.13), 0 0 16px rgba(255, 122, 69, 0.28);
}

.stack-link-status > strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-skill-grid {
  display: grid;
  min-height: 28rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(8.4rem, 1fr));
  gap: 1rem;
}

.stack-skill-heading {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  padding: 1.6rem;
  color: #fffaf6;
  background: linear-gradient(145deg, #1a222a, #303a44);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 64px rgba(33, 41, 51, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.stack-skill-heading::before {
  position: absolute;
  inset: 0;
  content: '';
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(145deg, black, transparent 82%);
}

.stack-skill-heading > strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 2.4rem;
  font-size: 3.6rem;
  line-height: 0.86;
}

.stack-skill-heading > p {
  position: absolute;
  right: 1.6rem;
  bottom: 1.45rem;
  left: 1.6rem;
  z-index: 2;
  max-width: 24rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.stack-tech-card {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 244, 248, 0.83));
  border: 1px solid rgba(38, 50, 68, 0.12);
  box-shadow: 0 20px 44px rgba(49, 62, 82, 0.13), inset 0 2px 0 rgba(255, 255, 255, 0.94);
}

.stack-tech-card[data-node-id='python'] { grid-column: 3; grid-row: 1; }
.stack-tech-card[data-node-id='vllm'] { grid-column: 4; grid-row: 1; }
.stack-tech-card[data-node-id='vllm-omni'] { grid-column: 3 / 5; grid-row: 2; }
.stack-tech-card[data-node-id='cpp'] { grid-column: 1 / 3; grid-row: 3; }
.stack-tech-card[data-node-id='qt'] { grid-column: 3 / 5; grid-row: 3; }

.stack-tech-static {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.stack-tech-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.stack-tech-topline b {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: #fffaf6;
  background: linear-gradient(145deg, #ff8d5d, #e85d32);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(232, 93, 50, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.stack-tech-topline small,
.stack-tech-link-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.stack-tech-static > strong {
  margin-top: auto;
  overflow-wrap: anywhere;
  font-size: 1.45rem;
  line-height: 1.05;
}

.stack-tech-link-count {
  margin-top: 0.36rem;
  color: var(--orange-deep);
}

.stack-tech-reveal {
  color: #fffaf6;
  background: rgba(29, 37, 46, 0.97);
}

.stack-tech-reveal strong {
  max-width: 22ch;
  margin-top: 0.48rem;
  font-size: 1.28rem;
  line-height: 1.3;
}

.stack-node:hover,
.stack-node:focus-visible,
.stack-node.is-active {
  z-index: 10;
  border-color: rgba(255, 122, 69, 0.62);
  box-shadow: 0 30px 66px rgba(49, 62, 82, 0.22), 0 0 0 1px rgba(255, 122, 69, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-4px) scale(1.012);
}

.stack-node:hover .stack-project-reveal,
.stack-node:focus-visible .stack-project-reveal,
.stack-node.is-active .stack-project-reveal,
.stack-node:hover .stack-tech-reveal,
.stack-node:focus-visible .stack-tech-reveal,
.stack-node.is-active .stack-tech-reveal {
  opacity: 1;
  transform: translate(0, 0) rotate(0);
}

.stack-node:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.stack-link-lab.has-selection .stack-node:not(.is-active) {
  opacity: 0.24;
  filter: grayscale(0.72) saturate(0.35);
  transform: scale(0.985);
}

.stack-foundation {
  display: grid;
  grid-template-columns: minmax(15rem, 0.76fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 2rem;
  padding: 2rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.stack-foundation-heading > span {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
}

.stack-foundation-heading h3 {
  margin: 0.42rem 0 0.55rem;
  font-size: 1.65rem;
}

.stack-foundation-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.stack-foundation-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stack-foundation-group {
  display: grid;
  min-width: 0;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.72rem;
  align-content: start;
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 1px solid rgba(38, 50, 68, 0.16);
}

.stack-foundation-index {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: var(--orange-deep);
  background: rgba(255, 239, 231, 0.8);
  border: 1px solid rgba(255, 122, 69, 0.2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.stack-foundation-group small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.stack-foundation-group h4 {
  margin: 0.14rem 0 0.55rem;
  font-size: 1rem;
}

.stack-foundation-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-foundation-group li {
  padding: 0.32rem 0.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(38, 50, 68, 0.12);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.stack-mobile-map {
  display: none;
}

@keyframes stack-signal-flow {
  to { stroke-dashoffset: -26; }
}

@keyframes stack-bars {
  to { height: 25%; }
}

@media (max-width: 900px) {
  .stack-project-grid {
    grid-template-rows: minmax(15rem, 1fr) minmax(12.5rem, 0.9fr);
  }

  .stack-project-heading > strong {
    font-size: 1.9rem;
  }

  .stack-project-card--current > strong {
    font-size: 2.05rem;
  }

  .stack-project-card > strong {
    font-size: 1.52rem;
  }

  .stack-project-card {
    padding: 1.15rem;
  }

  .stack-project-reveal,
  .stack-tech-reveal {
    padding: 1.15rem;
  }

  .stack-skill-heading > strong {
    font-size: 3rem;
  }

  .stack-foundation {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 760px) {
  .stack-desktop-map,
  .stack-link-layer {
    display: none;
  }

  .stack-mobile-map {
    display: grid;
    gap: 0.75rem;
  }

  .stack-mobile-project {
    position: relative;
    margin: 0;
    padding: 1.2rem;
    overflow: hidden;
    color: #fffaf6;
    background: linear-gradient(145deg, #1c242d, #303943);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(49, 62, 82, 0.17), inset 0 2px 0 rgba(255, 255, 255, 0.09);
  }

  .stack-mobile-project:nth-child(2) {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(38, 50, 68, 0.12);
    box-shadow: 0 20px 42px rgba(49, 62, 82, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }

  .stack-mobile-project:nth-child(3) {
    color: var(--ink);
    background: linear-gradient(145deg, #fff7f2, #ffd9c7);
    border-color: rgba(255, 122, 69, 0.16);
    box-shadow: 0 20px 42px rgba(232, 93, 50, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  .stack-mobile-project-head {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.82rem;
  }

  .stack-mobile-project-head > span {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    color: #262f38;
    background: linear-gradient(160deg, #fff4ec, #ff9a6e);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 800;
  }

  .stack-mobile-project-head small {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--mono);
    font-size: 0.76rem;
  }

  .stack-mobile-project:nth-child(n + 2) .stack-mobile-project-head small {
    color: var(--muted);
  }

  .stack-mobile-project-head h3 {
    margin: 0.16rem 0 0.18rem;
    color: inherit;
    font-size: 1.22rem;
  }

  .stack-mobile-project-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.88rem;
  }

  .stack-mobile-project:nth-child(n + 2) .stack-mobile-project-head p {
    color: var(--muted);
  }

  .stack-mobile-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.95rem 0 0 3.22rem;
  }

  .stack-mobile-technologies span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.54rem 0.38rem 0.4rem;
    color: var(--ink);
    background: rgba(255, 250, 246, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 750;
  }

  .stack-mobile-technologies b {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
    color: #fffaf6;
    background: var(--orange-deep);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.7rem;
  }

  .stack-foundation-groups {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stack-foundation-group {
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .visual-core .visual-core-name,
  .visual-core .visual-core-name .name-character {
    font-size: 1.8rem;
  }

  .visual-core[data-name-form='long'] .visual-core-name,
  .visual-core[data-name-form='long'] .visual-core-name .name-character {
    font-size: 1.2rem;
  }

  .stack-link-lab {
    margin-top: 1.5rem;
  }

  .stack-mobile-project {
    padding: 1.05rem;
  }
}

@media (max-width: 330px) {
  .stack-mobile-project-head {
    grid-template-columns: 2.05rem minmax(0, 1fr);
    gap: 0.62rem;
  }

  .stack-mobile-project-head > span {
    width: 2.05rem;
    height: 2.05rem;
  }

  .stack-mobile-technologies {
    margin-left: 2.67rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-visual[data-identity-orb]::before,
  .stack-heading-signal i,
  .stack-link.is-active {
    animation: none;
  }

  .visual-core.name-rotator,
  .stack-node,
  .stack-project-reveal,
  .stack-tech-reveal {
    transition: none;
  }
}

@media (min-width: 901px) {
  .visual-core .visual-core-name,
  .visual-core .visual-core-name .name-character {
    font-size: 2.7rem;
  }

  .visual-core[data-name-form='long'] .visual-core-name,
  .visual-core[data-name-form='long'] .visual-core-name .name-character {
    font-size: 1.86rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .visual-core .visual-core-name,
  .visual-core .visual-core-name .name-character {
    font-size: 2.25rem;
  }

  .visual-core[data-name-form='long'] .visual-core-name,
  .visual-core[data-name-form='long'] .visual-core-name .name-character {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .visual-core .visual-core-name,
  .visual-core .visual-core-name .name-character {
    font-size: 2.15rem;
  }

  .visual-core[data-name-form='long'] .visual-core-name,
  .visual-core[data-name-form='long'] .visual-core-name .name-character {
    font-size: 1.45rem;
  }
}

@media (max-width: 330px) {
  .visual-core .visual-core-name,
  .visual-core .visual-core-name .name-character {
    font-size: 1.9rem;
  }

  .visual-core[data-name-form='long'] .visual-core-name,
  .visual-core[data-name-form='long'] .visual-core-name .name-character {
    font-size: 1.28rem;
  }
}

/* Confident type hierarchy: fewer whisper-sized labels, stronger navigation. */
:root {
  --ink: #202936;
  --muted: #536171;
}

.home-header,
.module-header {
  min-height: 5.25rem;
  background: rgba(247, 248, 251, 0.9);
  border-bottom: 1px solid rgba(32, 41, 54, 0.14);
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.home-brand,
.module-brand {
  gap: 0.72rem;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.site-nav-links {
  gap: 0.28rem;
}

.site-nav-link {
  position: relative;
  padding: 0.72rem 0.68rem;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
}

.site-nav-link::after {
  position: absolute;
  right: 0.68rem;
  bottom: 0.3rem;
  left: 0.68rem;
  height: 0.16rem;
  content: '';
  background: var(--orange);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible,
.site-nav-link.is-active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.site-nav-link:hover::after,
.site-nav-link:focus-visible::after,
.site-nav-link.is-active::after {
  transform: scaleX(1);
}

.module-back {
  padding: 0.64rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
}

.module-back:hover,
.module-back:focus-visible {
  color: var(--orange-deep);
  background: transparent;
  border-color: transparent;
}

.eyebrow,
.section-kicker,
.module-kicker,
.module-meta,
.mini-label,
.card-meta,
.article-meta,
.article-index-topline,
.diary-index a,
.diary-index p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.eyebrow {
  font-size: 0.9rem;
}

.home-page .section-kicker {
  font-size: 1rem;
  font-weight: 800;
}

@media (min-width: 641px) {
  .module-page[data-site-section='library'] .module-hero h1 em,
  .module-page[data-site-section='contact'] .module-hero h1 em {
    display: inline-block;
    white-space: nowrap;
  }
}

.module-aside-note {
  font-size: 0.96rem;
  line-height: 1.7;
}

.module-aside-note strong {
  font-size: 0.84rem;
  font-weight: 800;
}

.module-tile > small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tile-index {
  font-size: 0.82rem;
  font-weight: 800;
}

.article-sidebar p,
.article-sidebar a,
.article-sidebar small,
.article-index-link {
  font-size: 0.88rem;
  line-height: 1.6;
}

.article-index-topline small,
.article-index-topline b {
  font-size: 0.86rem;
}

.timeline-row time {
  font-size: 0.9rem;
  font-weight: 750;
}

.timeline-row p {
  font-size: 1rem;
  line-height: 1.75;
}

.module-callout p,
.contact-card p {
  font-size: 0.98rem;
  line-height: 1.75;
}

.disclaimer {
  font-size: 0.88rem;
  line-height: 1.7;
}

.inline-link,
.contact-email,
.link-list a {
  font-size: 0.95rem;
  font-weight: 750;
}

.contact-grid-single {
  grid-template-columns: minmax(0, 44rem);
}

.library-filter {
  font-size: 0.92rem;
  font-weight: 700;
}

.library-filter span,
.media-facts,
.media-activity-label,
.game-facts,
.game-caption em,
.game-status,
.game-conveyor-topline,
.game-conveyor-phase,
.game-phase-strip,
.game-detail-facts small {
  font-size: 0.82rem;
}

.game-showcase-kicker,
.map-panel .panel-topline,
.footprint-badge,
.travel-status {
  font-size: 0.86rem;
}

.game-caption small,
.game-record > p,
.media-heading p,
.media-expanded > p,
.travel-map-popup small,
.travel-index-label,
.travel-detail-topline .mini-label,
.travel-archive-counts span,
.travel-rating-heading span,
.travel-category-tags span {
  font-size: 0.86rem;
}

.stack-project-heading > span:first-child,
.stack-skill-heading > span:first-child,
.stack-project-topline,
.stack-project-company,
.stack-project-reveal small,
.stack-tech-reveal small,
.stack-link-status,
.stack-tech-topline small,
.stack-tech-link-count,
.stack-foundation-heading > span,
.stack-foundation-group small,
.stack-foundation-group li,
.stack-mobile-project-head small,
.stack-mobile-technologies span {
  font-size: 0.84rem;
}

.career-mobile-project-head > span,
.stack-mobile-project-head > span {
  font-size: 0.84rem;
}

.visual-chip {
  color: var(--orange-deep);
  cursor: pointer;
  text-decoration: none;
  animation: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.visual-chip svg {
  width: 1.45rem;
  height: 1.45rem;
  stroke-width: 2.15;
}

.visual-chip-label {
  position: absolute;
  top: calc(100% + 0.48rem);
  left: 50%;
  z-index: 8;
  width: max-content;
  max-width: 8rem;
  padding: 0.4rem 0.58rem;
  color: #fffaf6;
  background: rgba(32, 41, 54, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  box-shadow: 0 10px 22px rgba(32, 41, 54, 0.2);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.2rem);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.visual-chip:hover,
.visual-chip:focus-visible {
  color: var(--ink);
  border-color: rgba(255, 122, 69, 0.68);
  box-shadow: 0 18px 34px rgba(49, 62, 82, 0.18), 0 0 0 0.22rem rgba(255, 122, 69, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.92);
}

.visual-chip:hover .visual-chip-label,
.visual-chip:focus .visual-chip-label,
.visual-chip:focus-visible .visual-chip-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.visual-caption {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.home-footnote,
.module-footer {
  align-items: center;
  padding-top: 2.6rem;
  padding-bottom: 2.8rem;
  color: var(--ink);
  border-top: 1px solid rgba(32, 41, 54, 0.18);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.module-footer span,
.home-footnote span {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.home-footnote strong {
  font-size: 1.35rem;
  font-weight: 800;
}

.module-footer a {
  color: var(--ink);
  font-weight: 750;
}

.module-footer a:hover,
.module-footer a:focus-visible {
  color: var(--orange-deep);
}

@media (max-width: 900px) {
  .site-nav-drawer summary {
    min-height: 2.65rem;
    padding: 0.6rem 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 750;
  }

  .site-nav-panel .site-nav-link {
    padding: 0.86rem 0.8rem;
    border-radius: 5px;
    font-size: 0.96rem;
  }

  .site-nav-panel .site-nav-link::after {
    display: none;
  }

  .site-nav-panel .site-nav-link:hover,
  .site-nav-panel .site-nav-link:focus-visible,
  .site-nav-panel .site-nav-link.is-active {
    color: var(--ink);
    background: #fff1e9;
  }
}

@media (max-width: 640px) {
  .home-header,
  .module-header {
    min-height: 4.8rem;
  }

  .home-brand,
  .module-brand {
    gap: 0.5rem;
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 0.72rem;
  }

  .module-back {
    max-width: 7.8rem;
    font-size: 0.9rem;
  }

  .visual-chip svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .visual-chip-label {
    display: none;
  }

  .visual-caption {
    max-width: 15rem;
    font-size: 0.84rem;
    text-align: right;
  }

  .home-footnote,
  .module-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 2.1rem;
    padding-bottom: 2.3rem;
    line-height: 1.4;
  }

  .home-footnote span + span,
  .module-footer span + span {
    display: inline;
  }
}

/* Final article type hierarchy and relaxed desktop navigation. */
@media (min-width: 901px) {
  .site-nav-links {
    gap: 1.35rem;
  }

  .site-nav-link {
    padding-inline: 0.18rem;
  }

  .site-nav-link::after {
    right: 0.18rem;
    left: 0.18rem;
  }
}

.module-footer > strong {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.article-hero {
  padding: 4rem 0 2.8rem;
}

.article-hero h1 {
  max-width: 24ch;
  margin-bottom: 1.35rem;
  font-size: 3.35rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.article-layout {
  grid-template-columns: minmax(0, 48rem) 13rem;
  gap: 4.5rem;
  padding-top: 3.4rem;
}

.article-body {
  font-size: 1.15rem;
  line-height: 2;
}

.article-body > p,
.article-body > ol,
.article-body > ul,
.article-body > blockquote {
  max-width: 48rem;
  margin-bottom: 1.6rem;
  font-size: inherit;
  line-height: inherit;
}

.article-body ol,
.article-body ul {
  font-size: inherit;
}

.article-sidebar a {
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 3.1rem 0 2.3rem;
  }

  .article-hero h1 {
    margin-bottom: 1.2rem;
    font-size: 2.15rem;
    line-height: 1.15;
  }

  .article-layout {
    padding-top: 2.5rem;
  }

  .article-body {
    font-size: 1.05rem;
    line-height: 1.95;
  }

  .article-body > p,
  .article-body > ol,
  .article-body > ul,
  .article-body > blockquote {
    margin-bottom: 1.35rem;
  }
}

/* A game with writing exposes that writing directly on the conveyor. */
.game-conveyor-main {
  display: block;
  color: inherit;
}

.game-conveyor-card:focus-within {
  z-index: 2;
  filter: saturate(1.08);
  transform: translateY(-0.65rem) scale(1.06) rotate(-0.7deg);
}

.game-conveyor-card:focus-within .game-conveyor-art img {
  transform: scale(1.08);
}

.game-conveyor-card.game-rdr:focus-within .game-conveyor-art img {
  transform: none;
}

.game-conveyor-card:focus-within .game-conveyor-open {
  animation: game-open-bounce 620ms ease-in-out infinite alternate;
}

.game-thought-badge {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  min-height: 1.9rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  color: #fffaf6;
  background: rgba(232, 93, 50, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(69, 33, 22, 0.24);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.game-conveyor-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 0.75rem;
  margin-top: 0.7rem;
  padding: 0.7rem 0.85rem 0.75rem;
  color: var(--ink);
  background: rgba(255, 241, 233, 0.72);
  border-block: 1px solid rgba(255, 122, 69, 0.28);
  border-left: 0.22rem solid var(--orange);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.game-conveyor-article > span:first-child {
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.game-conveyor-article q {
  display: -webkit-box;
  grid-column: 1 / -1;
  grid-row: 2;
  overflow: hidden;
  color: #4d5868;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.55;
  quotes: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-conveyor-article q::before,
.game-conveyor-article q::after {
  content: none;
}

.game-conveyor-article strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
}

.game-conveyor-article:hover,
.game-conveyor-article:focus-visible {
  color: var(--orange-deep);
  background: #ffe8dc;
  border-color: rgba(255, 122, 69, 0.62);
}

.brand-mark {
  font-size: 0.82rem;
}

.game-showcase-stamp span {
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .brand-mark {
    font-size: 0.82rem;
  }

  .article-signal-date span,
  .article-tag {
    font-size: 0.84rem;
  }

  .game-conveyor-card:focus-within {
    transform: translateY(-0.35rem) scale(1.025) rotate(-0.4deg);
  }

  .game-conveyor-article q {
    font-size: 0.9rem;
  }
}

.article-archive .article-signal-content h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  text-shadow: none;
}

@media (max-width: 640px) {
  .article-archive .article-signal-content h2 {
    font-size: 1.45rem;
  }
}

/* The global header has two anchors: identity on the left, sections on the right. */
.home-header.has-site-nav,
.module-header.has-site-nav {
  justify-content: space-between;
}

.module-header.has-site-nav .module-back {
  display: none;
}

.has-site-nav .site-nav {
  margin: 0 0 0 auto;
}

@media (min-width: 901px) {
  .home-header.has-site-nav,
  .module-header.has-site-nav {
    min-height: 6.25rem;
    gap: 3rem;
  }

  .has-site-nav .site-nav-links {
    gap: 2.1rem;
  }

  .has-site-nav .site-nav-link {
    padding: 1rem 0;
  }

  .has-site-nav .site-nav-link::after {
    right: 0;
    bottom: 0.42rem;
    left: 0;
  }
}

@media (max-width: 900px) {
  .home-header.has-site-nav,
  .module-header.has-site-nav {
    min-height: 5.25rem;
  }
}

@media (max-width: 640px) {
  .home-header.has-site-nav,
  .module-header.has-site-nav {
    min-height: 5rem;
  }
}
