: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;
  }
}

/* Thought pages open as readers: the original article stays primary and the archive becomes a compact directory. */
.article-page[data-site-section~='writing'] .article-hero,
.article-page[data-site-section~='writing'] .article-layout {
  width: min(100%, 74rem);
  margin-inline: auto;
}

.article-page[data-site-section~='writing'] .article-sidebar {
  display: block;
  align-self: start;
}

.thought-directory-heading {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid rgba(38, 50, 68, 0.18);
}

.thought-directory-heading > span,
.thought-directory-mobile summary > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 900;
}

.thought-directory-heading svg,
.thought-directory-mobile summary svg,
.thought-directory-related-link svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.thought-directory-heading > strong,
.thought-directory-mobile summary > strong {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.thought-directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-sidebar .thought-directory-link {
  display: grid;
  width: 100%;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.68rem 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(38, 50, 68, 0.14);
  font-size: inherit;
  line-height: 1.35;
}

.article-sidebar .thought-directory-link time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 750;
}

.article-sidebar .thought-directory-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  font-weight: 750;
}

.article-sidebar .thought-directory-link:hover,
.article-sidebar .thought-directory-link:focus-visible,
.article-sidebar .thought-directory-link.is-active {
  color: var(--orange-deep);
  border-bottom-color: rgba(255, 122, 69, 0.62);
}

.article-sidebar .thought-directory-link.is-active {
  padding-left: 0.55rem;
  background: linear-gradient(90deg, rgba(255, 122, 69, 0.1), transparent 82%);
  box-shadow: inset 3px 0 0 var(--orange);
}

.article-sidebar .thought-directory-link.is-active time {
  color: var(--orange-deep);
}

.thought-directory-related {
  padding-top: 0.9rem;
}

.article-sidebar .thought-directory-related-link {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 0.45rem;
  color: var(--orange-deep);
  border-bottom: 1px solid rgba(255, 122, 69, 0.42);
  font-size: 0.78rem;
  font-weight: 850;
}

.thought-directory-mobile {
  display: none;
}

.article-page[data-site-section~='writing'] .article-tag:not([href]) {
  cursor: default;
}

.article-page[data-site-section~='writing'] .article-tag:not([href]):hover {
  color: var(--muted);
  border-color: rgba(29, 40, 48, 0.25);
}

@media (min-width: 901px) {
  .article-page[data-site-section~='writing'] .article-hero {
    padding-right: 21rem;
  }

  .article-page[data-site-section~='writing'] .article-layout {
    grid-template-columns: minmax(0, 50rem) minmax(17rem, 20rem);
    gap: clamp(2.75rem, 4vw, 4rem);
    justify-content: stretch;
  }

  .article-page[data-site-section~='writing'] .article-sidebar {
    top: 7.25rem;
    max-height: calc(100vh - 8.75rem);
    padding-left: 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 69, 0.5) transparent;
  }
}

@media (max-width: 900px) {
  .article-page[data-site-section~='writing'] .article-hero {
    width: 100%;
  }

  .article-page[data-site-section~='writing'] .article-layout {
    width: 100%;
    gap: 1.6rem;
  }

  .article-page[data-site-section~='writing'] .article-body {
    grid-row: 2;
  }

  .article-page[data-site-section~='writing'] .article-sidebar {
    position: static;
    grid-row: 1;
    max-height: none;
    padding: 0;
    overflow: visible;
    border-left: 0;
  }

  .thought-directory-desktop {
    display: none;
  }

  .thought-directory-mobile {
    display: block;
    border-block: 1px solid rgba(38, 50, 68, 0.18);
  }

  .thought-directory-mobile > summary {
    display: grid;
    min-height: 3.5rem;
    grid-template-columns: minmax(0, 1fr) auto 1.1rem;
    gap: 0.8rem;
    align-items: center;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  .thought-directory-mobile > summary::-webkit-details-marker {
    display: none;
  }

  .thought-directory-mobile > summary::marker {
    content: '';
  }

  .thought-directory-mobile > summary > svg:last-child {
    color: var(--orange-deep);
    transition: transform 180ms ease;
  }

  .thought-directory-mobile[open] > summary > svg:last-child {
    transform: rotate(180deg);
  }

  .thought-directory-mobile .thought-directory-list {
    max-height: min(27rem, 58vh);
    overflow-y: auto;
    border-top: 1px solid rgba(38, 50, 68, 0.14);
  }

  .article-sidebar .thought-directory-link {
    grid-template-columns: 5.2rem minmax(0, 1fr);
    padding-block: 0.78rem;
  }

  .thought-directory-mobile .thought-directory-related {
    padding: 0.9rem 0 1rem;
    border-top: 1px solid rgba(38, 50, 68, 0.14);
  }
}

/* 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;
  }
}

/* QZQ-inspired personal archive direction.
   Keep the static data model and interactions, but present them as an
   image-led editorial archive instead of a floating bubble constellation. */
:root {
  --canvas: #f7fbff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-soft: #edf4f8;
  --ink: #142330;
  --muted: #5d7080;
  --line: rgba(20, 50, 72, 0.15);
  --orange: #ff6b3d;
  --orange-deep: #d9522d;
  --navy: #142330;
  --shadow-sm: 0 16px 36px rgba(36, 75, 104, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --shadow-md: 0 28px 68px rgba(36, 75, 104, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --max-width: 1240px;
  --gutter: clamp(1.1rem, 4.2vw, 4.5rem);
}

html,
body {
  background: var(--canvas);
}

body {
  color: var(--ink);
  background-image:
    radial-gradient(circle at 8% 8%, rgba(84, 183, 232, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(255, 107, 61, 0.08), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(231, 242, 249, 0.54) 52%, rgba(255, 255, 255, 0.9));
  background-attachment: fixed;
}

.site-shell {
  position: relative;
  width: min(var(--max-width), calc(100% - (var(--gutter) * 2)));
}

.home-header,
.module-header {
  min-height: 5.7rem;
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(20, 50, 72, 0.14);
  box-shadow: 0 12px 30px rgba(36, 75, 104, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.home-brand,
.module-brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  color: var(--canvas);
  background: var(--ink);
  border: 0;
  border-radius: 0.55rem;
  box-shadow: none;
  letter-spacing: -0.05em;
}

.site-nav-link {
  color: var(--ink);
  font-weight: 700;
}

.site-nav-link::after {
  background: var(--orange);
}

/* Home identity board. */
.home-intro {
  min-height: min(43rem, calc(86svh - 5.7rem));
  grid-template-columns: minmax(0, 0.88fr) minmax(27rem, 1.12fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 7vw, 6rem);
}

.intro-copy {
  max-width: 39rem;
}

.eyebrow {
  color: var(--orange-deep);
  letter-spacing: 0.07em;
}

.eyebrow-dot {
  width: 0.58rem;
  height: 0.58rem;
  background: var(--orange);
  border-radius: 0;
  box-shadow: none;
  transform: rotate(45deg);
}

.intro-text {
  max-width: 34rem;
  color: #3f4b4c;
  font-size: clamp(1.12rem, 1.7vw, 1.36rem);
  line-height: 1.95;
}

.intro-visual {
  width: 100%;
  max-width: 42rem;
  aspect-ratio: 1.08;
  margin-inline: auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 50, 72, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(20, 50, 72, 0.08) 1px, transparent 1px),
    #edf4f8;
  background-size: 2.2rem 2.2rem;
  border: 1px solid rgba(29, 40, 48, 0.22);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  isolation: isolate;
  transform: perspective(1200px) rotateX(var(--orb-rotate-x, 0deg)) rotateY(var(--orb-rotate-y, 0deg));
  transition: transform 240ms ease;
}

.intro-visual::before {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.78), transparent 44%, rgba(255, 107, 61, 0.14));
  mix-blend-mode: screen;
}

.intro-visual::after {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  width: 7.5rem;
  height: 0.55rem;
  content: '';
  background: var(--orange);
  box-shadow: 0.8rem 0 0 rgba(29, 40, 48, 0.72), 1.6rem 0 0 rgba(29, 40, 48, 0.28);
  transform: rotate(-5deg);
}

.visual-photo {
  position: absolute;
  z-index: 1;
  display: block;
  overflow: hidden;
  background-color: var(--surface);
  background-position: center;
  background-size: cover;
  border: 0.45rem solid var(--canvas);
  box-shadow: 0 18px 30px rgba(29, 40, 48, 0.18);
}

.visual-photo-rdr {
  top: 7%;
  right: 6%;
  width: 34%;
  height: 34%;
  background-image: linear-gradient(180deg, transparent, rgba(29, 40, 48, 0.22)), url('assets/games/rdr2.jpg');
  transform: rotate(6deg);
}

.visual-photo-lol {
  bottom: 7%;
  left: 7%;
  width: 31%;
  height: 28%;
  background-image: linear-gradient(180deg, transparent, rgba(29, 40, 48, 0.25)), url('assets/games/lol.jpg');
  transform: rotate(-7deg);
}

.visual-photo-map {
  right: 12%;
  bottom: 10%;
  width: 24%;
  height: 21%;
  background:
    radial-gradient(circle at 28% 32%, var(--orange) 0 0.2rem, transparent 0.25rem),
    radial-gradient(circle at 68% 64%, #2e7668 0 0.2rem, transparent 0.25rem),
    linear-gradient(145deg, #e7f6fb, #b8dfe7 58%, #75aebd);
  transform: rotate(4deg);
}

.visual-orbit {
  z-index: 2;
  border-color: rgba(29, 40, 48, 0.3);
  border-style: solid;
  animation: none;
  pointer-events: none;
}

.orbit-one {
  inset: 10% 17%;
  border-radius: 47% 53% 42% 58%;
  transform: rotate(-13deg);
}

.orbit-two {
  inset: 24% 29%;
  border-style: dashed;
  border-radius: 50%;
  transform: rotate(19deg);
}

.visual-core {
  z-index: 4;
  width: min(17rem, 49%);
  color: #f7fbff;
  background: var(--ink);
  border: 0.65rem solid #f7fbff;
  border-radius: 0.8rem;
  box-shadow: 0 24px 42px rgba(29, 40, 48, 0.3);
  transform: translate(-50%, -50%) rotate(-4deg);
}

.visual-core::before {
  width: 3.2rem;
  height: 3.2rem;
  background: var(--orange);
  border-radius: 0;
  box-shadow: none;
  transform: rotate(12deg) translate(4.1rem, -3.6rem);
}

.visual-core span {
  font-size: clamp(2.2rem, 4.7vw, 3.85rem);
  letter-spacing: -0.06em;
}

.visual-core small {
  color: rgba(247, 251, 255, 0.7);
  letter-spacing: 0.14em;
}

.visual-chip {
  z-index: 5;
  display: inline-flex;
  width: auto;
  min-height: 2.45rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.7rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 40, 48, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(29, 40, 48, 0.12);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 800;
  animation: none;
}

.chip-build { top: 10%; left: 8%; }
.chip-read { top: 51%; right: 4%; }
.chip-travel { right: 16%; bottom: 7%; }
.chip-music { bottom: 33%; left: 3%; }

.visual-chip svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--orange-deep);
}

.visual-chip-label {
  position: static;
  width: auto;
  max-width: none;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: inherit;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.visual-caption {
  right: 1.1rem;
  bottom: 1.9rem;
  z-index: 5;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

/* The archive index is a varied grid, not six identical floating buttons. */
.home-page .module-section {
  padding-bottom: 2rem;
}

.home-page .module-grid {
  display: grid;
  height: 36rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.home-page .module-tile {
  position: relative;
  display: flex;
  width: auto;
  height: auto;
  min-height: 0;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.2rem;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid rgba(29, 40, 48, 0.18);
  border-radius: 0.85rem;
  box-shadow: none;
  animation: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-page .module-tile::before {
  z-index: 2;
  top: 0.85rem;
  left: auto;
  right: 1rem;
  width: 2.8rem;
  height: 0.22rem;
  background: var(--orange);
  border-radius: 0;
  filter: none;
  transform: rotate(-4deg);
}

.home-page .module-tile::after {
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(20, 29, 34, 0.72));
  border-radius: 0;
  filter: none;
}

.home-page .module-tile:hover,
.home-page .module-tile:focus-visible {
  z-index: 4;
  border-color: var(--orange);
  box-shadow: 0 18px 36px rgba(29, 40, 48, 0.16);
  transform: translateY(-0.28rem) rotate(-0.25deg);
}

.tile-career { grid-column: span 2; grid-row: span 2; }
.tile-thoughts { grid-column: span 2; grid-row: span 1; }
.tile-investing { grid-column: span 1; grid-row: span 1; }
.tile-library { grid-column: span 1; grid-row: span 1; }
.tile-travel { grid-column: span 2; grid-row: span 1; }
.tile-contact { grid-column: span 2; grid-row: span 1; }

.home-page .module-tile .tile-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  background-color: #eaf3f7;
  border: 0;
  border-radius: 0;
  opacity: 1;
}

.home-page .module-tile .tile-art::before,
.home-page .module-tile .tile-art::after {
  display: none;
}

.tile-career .tile-art {
  background:
    linear-gradient(90deg, rgba(20, 29, 34, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(20, 29, 34, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #c8eef0, #6faeb6 54%, #244c61);
  background-size: 2.1rem 2.1rem, 2.1rem 2.1rem, auto;
}

.tile-thoughts .tile-art {
  background:
    linear-gradient(130deg, rgba(102, 211, 235, 0.18), rgba(11, 31, 49, 0.78)),
    repeating-linear-gradient(0deg, transparent 0 1.75rem, rgba(220, 248, 255, 0.18) 1.8rem),
    #2b526a;
}

.tile-investing .tile-art {
  background:
    linear-gradient(145deg, rgba(29, 40, 48, 0.1), rgba(29, 40, 48, 0.65)),
    linear-gradient(165deg, transparent 47%, rgba(237, 106, 58, 0.96) 48% 51%, transparent 52%),
    #b9d9e7;
}

.tile-library .tile-art {
  background-image: linear-gradient(180deg, rgba(29, 40, 48, 0.08), rgba(29, 40, 48, 0.7)), url('assets/games/disco-elysium.jpg');
  background-position: center;
  background-size: cover;
}

.tile-travel .tile-art {
  background:
    radial-gradient(circle at 22% 32%, rgba(237, 106, 58, 0.9) 0 0.3rem, transparent 0.38rem),
    radial-gradient(circle at 72% 61%, rgba(255, 255, 255, 0.92) 0 0.3rem, transparent 0.38rem),
    linear-gradient(135deg, rgba(29, 40, 48, 0.08), rgba(29, 40, 48, 0.62)),
    repeating-linear-gradient(32deg, transparent 0 1.1rem, rgba(230, 250, 255, 0.18) 1.15rem 1.25rem),
    #5a95a7;
}

.tile-contact .tile-art {
  background:
    linear-gradient(135deg, rgba(237, 106, 58, 0.82), rgba(29, 40, 48, 0.76)),
    #3a7182;
}

.home-page .module-tile .tile-art .tile-icon-main,
.home-page .module-tile .tile-art .tile-icon-mini {
  position: absolute;
  z-index: 3;
  color: #f7fbff;
  background: rgba(29, 40, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 0.55rem;
  box-shadow: none;
  transform: none;
}

.home-page .module-tile .tile-art .tile-icon-main {
  top: 1.25rem;
  left: 1.2rem;
  width: 3.2rem;
  height: 3.2rem;
}

.home-page .module-tile .tile-art .tile-icon-main svg {
  width: 1.55rem;
  height: 1.55rem;
}

.home-page .module-tile .tile-art .tile-icon-mini {
  top: 1.55rem;
  left: 4.05rem;
  right: auto;
  bottom: auto;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
}

.home-page .module-tile .tile-art .tile-icon-mini svg {
  width: 0.85rem;
  height: 0.85rem;
}

.home-page .module-tile > .tile-index,
.home-page .module-tile > strong,
.home-page .module-tile > small,
.home-page .module-tile > .tile-arrow {
  position: relative;
  z-index: 3;
}

.home-page .module-tile > .tile-index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #f7fbff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-page .module-tile > strong {
  max-width: 15ch;
  margin: 0;
  color: #f7fbff;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.2;
}

.home-page .module-tile > small {
  margin-top: 0.35rem;
  padding: 0;
  color: rgba(247, 251, 255, 0.82);
  font-size: 0.86rem;
}

.home-page .module-tile > .tile-arrow {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  left: auto;
  top: auto;
  color: var(--ink);
  background: #f7fbff;
  border-radius: 0.4rem;
  box-shadow: none;
  transform: none;
}

.home-page .module-tile:hover .tile-arrow {
  color: #f7fbff;
  background: var(--orange);
  transform: translateX(0.15rem);
}

.home-footnote,
.module-footer {
  color: var(--ink);
  border-top-color: rgba(29, 40, 48, 0.2);
}

/* Shared module pages: stronger editorial type, fewer toy-like surfaces. */
.module-hero {
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom-color: rgba(29, 40, 48, 0.2);
}

.module-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-size: clamp(3.25rem, 7.5vw, 6.4rem);
  letter-spacing: -0.065em;
  line-height: 0.97;
  text-shadow: none;
}

.module-hero h1 em,
.module-section h2 em {
  color: var(--orange);
}

.module-kicker {
  color: var(--orange-deep);
  letter-spacing: 0.08em;
}

.module-lede {
  max-width: 44rem;
  color: #52605f;
  font-size: 1.08rem;
  line-height: 1.9;
}

.module-aside-note {
  align-self: end;
  padding: 1.1rem;
  color: #f7fbff;
  background: var(--ink);
  border: 0;
  border-radius: 0.55rem;
  box-shadow: 0.65rem 0.65rem 0 var(--orange);
  font-size: 0.92rem;
  line-height: 1.65;
  transform: rotate(2deg);
}

.module-aside-note strong {
  color: var(--orange);
  letter-spacing: 0.08em;
}

.module-page .module-section {
  padding: clamp(3.3rem, 7vw, 6rem) 0;
  border-bottom-color: rgba(29, 40, 48, 0.18);
}

.module-section h2 {
  color: var(--ink);
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-shadow: none;
}

.module-page .module-section > p:not(.module-kicker):not(.disclaimer) {
  color: #52605f;
  font-size: 1.03rem;
  line-height: 1.9;
}

.module-page .module-grid {
  gap: 0.9rem;
  margin-top: 2rem;
}

.module-card {
  min-height: 13rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(20, 50, 72, 0.14);
  border-radius: 0.65rem;
  box-shadow: none;
}

.module-card:hover {
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(29, 40, 48, 0.08);
}

.module-card::after {
  top: 0;
  height: 0.24rem;
  background: var(--orange);
  border-radius: 0;
}

.module-card:nth-child(2)::after,
.module-card:nth-child(3)::after,
.module-card:nth-child(4)::after {
  background: rgba(29, 40, 48, 0.3);
}

.module-card h3 {
  margin-top: 2rem;
  color: var(--ink);
  font-size: 1.35rem;
}

.module-card p {
  color: #5e6967;
  font-size: 0.96rem;
}

.module-card-dark {
  color: #f7fbff;
  background: var(--ink);
  border-color: var(--ink);
}

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

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

.module-card-dark::after {
  background: var(--orange);
}

.timeline-page {
  margin-top: 2rem;
  border-top-color: rgba(29, 40, 48, 0.24);
}

.timeline-row {
  grid-template-columns: minmax(8rem, 0.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom-color: rgba(29, 40, 48, 0.18);
}

.timeline-row time {
  color: var(--orange-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-row h3 {
  color: var(--ink);
  font-size: 1.35rem;
  text-shadow: none;
}

.timeline-row p {
  color: #5e6967;
  font-size: 1rem;
}

/* Articles become a quiet signal line on the same cool glass canvas. */
.article-signal-list {
  border-top-color: rgba(29, 40, 48, 0.24);
}

.article-signal-list::before {
  background: linear-gradient(to bottom, transparent, rgba(237, 106, 58, 0.82) 8%, rgba(29, 40, 48, 0.18) 88%, transparent);
}

.article-signal {
  border-bottom-color: rgba(29, 40, 48, 0.16);
}

.article-signal:hover,
.article-signal:focus-within {
  background: rgba(255, 255, 255, 0.58);
}

.article-signal-content h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

.article-tag {
  min-height: auto;
  padding: 0.2rem 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(29, 40, 48, 0.25);
  border-radius: 0;
}

.article-tag:hover,
.article-tag:focus-visible,
.article-tag.is-active {
  color: var(--orange-deep);
  background: transparent;
  border-color: var(--orange);
}

.article-signal-open {
  border-radius: 0.4rem;
}

/* Game and travel sections keep their real media, but use square editorial frames. */
.game-showcase-stage {
  min-height: 18rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--ink);
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0.75rem 0.75rem 0 rgba(237, 106, 58, 0.78);
}

.game-showcase-stage::after {
  border-color: rgba(237, 106, 58, 0.55);
}

.game-showcase-stage h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.game-showcase-stage p {
  display: none;
}

.game-showcase-stamp {
  width: 8rem;
  height: 8rem;
  color: var(--ink);
  background: var(--orange);
  border: 0.45rem solid #f7fbff;
  border-radius: 0.65rem;
  box-shadow: none;
  transform: rotate(7deg);
}

.game-conveyor-art,
.media-card,
.game-detail-visual {
  border-radius: 0.65rem;
  box-shadow: none;
}

.game-conveyor-art {
  border-color: rgba(29, 40, 48, 0.18);
}

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

.game-conveyor-open {
  border-radius: 0.4rem;
  box-shadow: none;
}

.map-panel {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(20, 50, 72, 0.14);
  border-radius: 0.75rem;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.real-map {
  border-radius: 0.45rem;
  box-shadow: none;
}

.travel-detail {
  min-height: 33rem;
  padding: 1.4rem;
  background: var(--ink);
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0.7rem 0.7rem 0 rgba(237, 106, 58, 0.72);
}

.travel-detail::before {
  background: var(--orange);
  border-radius: 0;
}

.travel-detail h3,
.travel-detail-topline .mini-label,
.travel-rating-heading strong {
  color: var(--canvas);
}

.travel-detail > p[data-travel-summary],
.travel-archive-counts span,
.travel-rating-heading span {
  color: rgba(247, 251, 255, 0.72);
}

.travel-archive-counts > div,
.travel-rating-preview {
  background: rgba(247, 251, 255, 0.08);
  border-color: rgba(247, 251, 255, 0.18);
  box-shadow: none;
}

.travel-archive-counts strong {
  color: var(--canvas);
}

.travel-category-tags span {
  color: #f7fbff;
  background: transparent;
  border-color: rgba(247, 251, 255, 0.22);
  border-radius: 0.25rem;
}

/* Contact and opportunity section: one clear action, then the available modes. */
.contact-grid-single {
  grid-template-columns: minmax(0, 42rem);
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #f7fbff;
  background: var(--ink);
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0.75rem 0.75rem 0 rgba(237, 106, 58, 0.78);
}

.contact-card h2 {
  color: #f7fbff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-shadow: none;
}

.contact-card p {
  color: rgba(247, 251, 255, 0.74);
}

.contact-email {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #f7fbff;
  background: var(--orange);
  border-radius: 0.35rem;
  box-shadow: none;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #f7fbff;
  background: var(--orange-deep);
}

.opportunities-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.opportunities-intro h2,
.opportunities-intro h3 {
  max-width: 12ch;
}

.opportunities-intro h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1.08;
}

.opportunities-intro > p:last-child {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.opportunity-list {
  border-top: 1px solid rgba(29, 40, 48, 0.22);
}

.opportunity-column {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.62fr);
  gap: 1rem;
  align-items: start;
}

.opportunity-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(20, 50, 72, 0.14);
}

.opportunity-index,
.opportunity-copy > span {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.opportunity-copy {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0.35rem 1rem;
  justify-content: start;
  align-items: baseline;
}

.opportunity-copy strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.opportunity-copy p {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.opportunity-row-link {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  min-height: 4.35rem;
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.opportunity-row-link:hover,
.opportunity-row-link:focus-visible {
  padding-inline: 0.7rem;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 107, 61, 0.42);
}

.opportunity-row-link .opportunity-copy {
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.opportunity-row-link .opportunity-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opportunity-open {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.referral-card {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(224, 244, 250, 0.72));
  border: 1px solid rgba(20, 50, 72, 0.14);
  border-radius: 0.65rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.referral-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.24rem;
  content: '';
  background: linear-gradient(90deg, var(--orange), rgba(255, 107, 61, 0.16));
}

.referral-heading {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.referral-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  color: #f7fbff;
  background: var(--ink);
  border-radius: 0.45rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 800;
}

.referral-card h3 {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.referral-card > p:not(.referral-status) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}

.referral-code-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.referral-code-row code {
  min-width: 0;
  padding: 0.58rem 0.65rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 50, 72, 0.14);
  border-radius: 0.35rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.referral-copy {
  min-height: 2.35rem;
  padding: 0.45rem 0.68rem;
  color: #f7fbff;
  background: var(--orange);
  border: 1px solid transparent;
  border-radius: 0.35rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.referral-copy:hover,
.referral-copy:focus-visible {
  background: var(--orange-deep);
  transform: translateY(-0.1rem);
}

.referral-status {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .home-intro {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-visual {
    max-width: 38rem;
  }

  .home-page .module-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(11rem, 1fr));
  }

  .home-page .module-tile {
    grid-column: span 1;
    grid-row: span 1;
  }

  .home-page .tile-career,
  .home-page .tile-travel {
    grid-column: span 2;
  }

  .module-hero {
    grid-template-columns: minmax(0, 1fr) 13rem;
    gap: 2rem;
  }

  .opportunities-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .opportunity-column {
    grid-template-columns: 1fr;
  }
}

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

  .home-intro {
    padding-top: 3.6rem;
  }

  .intro-visual {
    aspect-ratio: 0.98;
  }

  .visual-core {
    width: 52%;
    border-width: 0.45rem;
  }

  .visual-core span {
    font-size: 2.2rem;
  }

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

  .visual-chip {
    min-height: 2.2rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
  }

  .visual-chip-label {
    display: inline;
  }

  .visual-caption {
    right: 0.8rem;
    bottom: 1.2rem;
    font-size: 0.62rem;
  }

  .home-page .module-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.75rem;
  }

  .home-page .module-tile,
  .home-page .tile-career,
  .home-page .tile-travel {
    grid-column: auto;
    min-height: 12.5rem;
  }

  .module-hero {
    display: block;
    padding-top: 3.7rem;
  }

  .module-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 14vw, 4.25rem);
  }

  .module-aside-note {
    width: min(100%, 16rem);
    margin: 2rem 0 0 auto;
  }

  .module-section h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .module-page .module-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .article-signal-content h2 {
    font-size: 1.4rem;
  }

  .game-showcase-stage {
    box-shadow: 0.45rem 0.45rem 0 rgba(237, 106, 58, 0.78);
  }

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

  .travel-detail,
  .contact-card {
    box-shadow: 0.45rem 0.45rem 0 rgba(237, 106, 58, 0.72);
  }

  .opportunity-row {
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: 0.65rem;
    min-height: 4.1rem;
  }

  .opportunity-copy {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .opportunity-copy strong {
    font-size: 1.15rem;
  }

  .opportunity-row-link {
    grid-template-columns: 2.3rem minmax(0, 1fr);
    align-items: start;
  }

  .opportunity-row-link .opportunity-open {
    grid-column: 2;
    margin-top: 0.28rem;
  }

  .referral-card {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-visual,
  .home-page .module-tile,
  .game-conveyor-card {
    transition: none;
  }
}

/* Official organization marks: local copies keep the career archive crisp and available offline. */
.career-brand {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(29, 40, 48, 0.16);
  border-radius: 0.32rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.career-brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.career-brand--stepfun img {
  width: 100%;
}

.career-brand--iflytek {
  background: #202932;
  border-color: rgba(255, 255, 255, 0.2);
}

.career-brand--timeline {
  width: clamp(5.4rem, 9vw, 7.5rem);
  height: 2.8rem;
  padding: 0.36rem 0.5rem;
}

.career-brand--timeline.career-brand--stepfun {
  padding: 0.48rem 0.55rem;
}

.career-brand--timeline.career-brand--iflytek {
  padding: 0.43rem 0.5rem;
}

.career-brand--timeline.career-brand--deptrum {
  padding: 0.28rem 0.46rem;
}

.career-brand--timeline.career-brand--uestc {
  padding: 0.42rem 0.42rem;
}

.career-timeline-copy {
  min-width: 0;
}

.career-timeline-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
}

.career-timeline-title h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.career-aside-brand {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  width: 5.6rem;
  height: 1.55rem;
  margin: 0.48rem 0.42rem 0.22rem 0;
  padding: 0.23rem 0.32rem;
  vertical-align: middle;
}

.career-aside-brand--stepfun img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}

.stack-project-company-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.68rem;
  margin-top: 1.15rem;
}

.stack-project-company-line .career-brand {
  width: 5.1rem;
  height: 1.76rem;
  padding: 0.22rem 0.34rem;
}

.stack-project-company-line .career-brand--stepfun {
  padding: 0.32rem 0.38rem;
}

.stack-project-company-line .career-brand--iflytek {
  padding: 0.29rem 0.34rem;
}

.stack-project-company-line .career-brand--deptrum {
  padding: 0.16rem 0.3rem;
}

.stack-project-company-line .career-brand--uestc {
  padding: 0.25rem 0.28rem;
}

.stack-project-company {
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-mobile-company-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.stack-mobile-company-line .career-brand {
  width: 4.35rem;
  height: 1.52rem;
  padding: 0.18rem 0.28rem;
}

.stack-mobile-company-line .career-brand--stepfun {
  padding: 0.26rem 0.3rem;
}

.stack-mobile-company-line .career-brand--iflytek {
  padding: 0.24rem 0.28rem;
}

.stack-mobile-company-line .career-brand--deptrum {
  padding: 0.12rem 0.24rem;
}

.stack-mobile-company-line .career-brand--uestc {
  padding: 0.2rem 0.22rem;
}

.stack-mobile-company-line small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-page .patent-section {
  padding: clamp(2.4rem, 5vw, 4.2rem) 0;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.56), rgba(107, 203, 226, 0.1));
  border-block: 1px solid rgba(20, 50, 72, 0.14);
}

.patent-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.patent-identity {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: end;
}

.patent-visual {
  position: relative;
  display: grid;
  min-height: 8.2rem;
  place-items: center;
  color: var(--orange-deep);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(213, 241, 248, 0.8));
  border: 1px solid rgba(20, 50, 72, 0.14);
  border-radius: 0.65rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
}

.patent-visual svg {
  width: 4rem;
  height: 4.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.patent-visual span {
  position: absolute;
  right: 0.55rem;
  bottom: 0.48rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.patent-heading h2 {
  max-width: 16ch;
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.patent-credit {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 2px solid var(--orange);
}

.patent-credit strong {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.patent-credit span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.patent-credit .inline-link {
  width: max-content;
  max-width: 100%;
  color: var(--orange-deep);
}

@media (max-width: 760px) {
  .career-timeline-title {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .career-brand--timeline {
    width: 5.8rem;
    height: 2.45rem;
  }

  .career-aside-brand {
    width: 5.2rem;
    height: 1.45rem;
  }

  .patent-heading {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .patent-identity {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
  }

  .patent-visual {
    min-height: 7.4rem;
  }

  .patent-heading h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .patent-credit {
    padding: 1rem 0 0;
    border-top: 2px solid var(--orange);
    border-left: 0;
  }
}

@media (max-width: 360px) {
  .career-timeline-title {
    gap: 0.55rem;
  }

  .career-brand--timeline {
    width: 5.1rem;
    height: 2.2rem;
    padding-inline: 0.32rem;
  }

  .stack-project-company-line .career-brand {
    width: 4.5rem;
  }

  .stack-mobile-company-line .career-brand {
    width: 3.9rem;
  }

  .patent-identity {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .patent-visual {
    width: 5.4rem;
    min-height: 5.8rem;
  }
}

/* Career opportunities get their own public module while contact keeps a concise teaser. */
.tile-opportunities .tile-art {
  background:
    linear-gradient(135deg, rgba(255, 107, 61, 0.84), rgba(20, 35, 48, 0.82)),
    #2f7385;
}

.opportunity-aside-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.7rem;
  padding: 0;
  list-style: none;
}

.opportunity-aside-types li {
  padding: 0.32rem 0.5rem;
  color: #f7fbff;
  background: rgba(247, 251, 255, 0.12);
  border: 1px solid rgba(247, 251, 255, 0.18);
  border-radius: 0.28rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.opportunities-page .module-aside-note > small {
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.76rem;
}

.opportunity-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.opportunity-directory-heading .module-kicker {
  grid-column: 1 / -1;
}

.opportunity-directory-heading h2 {
  max-width: 12ch;
  margin: 0;
}

.opportunity-directory-heading > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

.opportunity-disclosures {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.4rem, 5vw, 4rem);
}

.opportunity-disclosure {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 50, 72, 0.16);
  border-radius: 0.5rem;
  box-shadow: 0 0.8rem 1.8rem rgba(36, 66, 86, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.opportunity-disclosure[open] {
  border-color: rgba(255, 107, 61, 0.46);
  box-shadow: 0.45rem 0.45rem 0 rgba(255, 107, 61, 0.14);
}

.opportunity-disclosure > summary {
  display: grid;
  min-height: 7.2rem;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem clamp(1.1rem, 3vw, 2rem);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 180ms ease;
}

.opportunity-disclosure > summary::-webkit-details-marker {
  display: none;
}

.opportunity-disclosure > summary::marker {
  content: '';
}

.opportunity-disclosure > summary:hover,
.opportunity-disclosure > summary:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.opportunity-disclosure > summary:focus-visible {
  outline: 3px solid rgba(255, 107, 61, 0.36);
  outline-offset: -3px;
}

.opportunity-category-index {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 850;
}

.opportunity-category-copy {
  display: grid;
  min-width: 0;
  gap: 0.28rem;
}

.opportunity-category-copy strong {
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: 0;
  line-height: 1.05;
}

.opportunity-category-copy > span {
  color: #0a6585;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.opportunity-summary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.opportunity-summary-action svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 180ms ease;
}

.opportunity-action-open {
  display: none;
}

.opportunity-disclosure[open] .opportunity-action-closed {
  display: none;
}

.opportunity-disclosure[open] .opportunity-action-open {
  display: inline;
}

.opportunity-disclosure[open] .opportunity-summary-action svg {
  transform: rotate(180deg);
}

.opportunity-disclosure-body {
  min-width: 0;
  padding: 0 clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(20, 50, 72, 0.14);
}

.opportunity-company-panel {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.opportunities-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.65fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.opportunities-teaser-copy h2 {
  max-width: 12ch;
}

.opportunities-teaser-link {
  display: flex;
  min-height: 8.5rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: #f7fbff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  box-shadow: 0.65rem 0.65rem 0 rgba(255, 107, 61, 0.72);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.opportunities-teaser-link:hover,
.opportunities-teaser-link:focus-visible {
  color: #f7fbff;
  box-shadow: 0.85rem 0.85rem 0 rgba(255, 107, 61, 0.72);
  transform: translate(-0.15rem, -0.15rem);
}

.opportunities-teaser-link strong {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

@media (min-width: 901px) {
  .home-page .module-grid {
    height: 45rem;
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .home-page .tile-opportunities {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 900px) {
  .opportunity-directory-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .opportunity-directory-heading .module-kicker {
    grid-column: auto;
  }

  .opportunities-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-page .tile-opportunities {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .opportunity-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .opportunity-disclosure > summary {
    min-height: 6.5rem;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding-inline: 1rem;
  }

  .opportunity-disclosure .opportunity-summary-action .opportunity-action-closed,
  .opportunity-disclosure .opportunity-summary-action .opportunity-action-open {
    display: none;
  }

  .opportunity-disclosure-body {
    padding-inline: 1rem;
  }

  .opportunities-teaser-link {
    min-height: 7rem;
  }
}

/* Keep the editorial stagger inside the page canvas at every viewport. */
.home-page .module-tile {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

@media (min-width: 901px) {
  .home-page .tile-career { transform: translateY(2rem); }
  .home-page .tile-investing { transform: translateY(2rem); }
  .home-page .tile-library { transform: translateY(-1rem); }
  .home-page .tile-travel { transform: translateX(18%); }
  .home-page .tile-contact { transform: translateY(-2rem); }
}

/* The remote category reveals the full WorldQuant BRAIN eligibility, rewards, and learning path. */
.wqb-overview,
.wqb-eligibility,
.wqb-rewards,
.wqb-apply,
.wqb-learning {
  position: relative;
}

.wqb-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 0.78fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-block: 5rem;
  border-top: 1px solid rgba(20, 50, 72, 0.16);
}

.wqb-overview-copy {
  min-width: 0;
}

.wqb-role-label {
  width: fit-content;
  margin: 1.4rem 0 0;
  padding: 0.42rem 0.58rem;
  color: #085d9c;
  background: rgba(0, 196, 255, 0.1);
  border-left: 3px solid #08aeea;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
}

.wqb-overview h2,
.wqb-section-heading h2,
.wqb-apply h2,
.wqb-learning h2 {
  margin: 0.8rem 0 0;
  color: var(--ink);
  font-size: 3.4rem;
  letter-spacing: 0;
  line-height: 1.08;
}

.wqb-overview h2 {
  max-width: 12ch;
}

.wqb-summary {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.wqb-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  margin-top: 1.8rem;
}

.wqb-primary-link,
.wqb-text-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #f7fbff;
  background: var(--orange);
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-weight: 850;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.wqb-primary-link {
  padding: 0.72rem 1rem;
}

.wqb-primary-link svg,
.wqb-text-link svg,
.wqb-flex-note svg,
.wqb-resource-links svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.wqb-primary-link:hover,
.wqb-primary-link:focus-visible,
.wqb-text-link:hover,
.wqb-text-link:focus-visible {
  color: #f7fbff;
  background: var(--orange-deep);
  transform: translateY(-0.1rem);
}

.wqb-flex-note {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
  color: #164b61;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
}

.wqb-hero-art,
.wqb-benefits-art {
  min-width: 0;
  margin: 0;
}

.wqb-hero-art {
  width: min(100%, 37rem);
  justify-self: end;
}

.wqb-hero-art img,
.wqb-benefits-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

.wqb-hero-art img {
  border: 1px solid rgba(20, 50, 72, 0.2);
  box-shadow: 0.75rem 0.75rem 0 rgba(5, 99, 165, 0.16);
}

.wqb-hero-art figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-align: right;
}

.wqb-eligibility {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(26rem, 1.35fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
  padding-block: 5rem;
  border-block: 1px solid rgba(20, 50, 72, 0.14);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.46), rgba(0, 178, 255, 0.05));
}

.wqb-section-heading {
  min-width: 0;
}

.wqb-section-heading h2 {
  max-width: 11ch;
  font-size: 3rem;
}

.wqb-requirement-list,
.wqb-benefit-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wqb-requirement-list {
  border-top: 1px solid rgba(20, 50, 72, 0.18);
}

.wqb-requirement-list li {
  display: grid;
  grid-template-columns: 2.3rem 2.8rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 7.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(20, 50, 72, 0.14);
}

.wqb-requirement-index {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.wqb-requirement-list > li > svg {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.68rem;
  color: #07699b;
  background: rgba(211, 242, 251, 0.76);
  border: 1px solid rgba(8, 105, 155, 0.14);
  border-radius: 0.35rem;
}

.wqb-requirement-list strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: 0;
}

.wqb-requirement-list p {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.wqb-rewards {
  padding-block: 5.5rem;
}

.wqb-section-heading-wide {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem clamp(2.5rem, 8vw, 8rem);
  align-items: end;
}

.wqb-section-heading-wide .module-kicker {
  grid-column: 1 / -1;
}

.wqb-section-heading-wide h2 {
  max-width: 13ch;
}

.wqb-section-heading-wide > p:last-child {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.wqb-reward-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: 3.5rem;
}

.wqb-income-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  min-width: 0;
}

.wqb-income-stat {
  display: flex;
  min-width: 0;
  min-height: 15rem;
  flex-direction: column;
  padding: 1.35rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 50, 72, 0.16);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.wqb-income-label {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  align-items: center;
}

.wqb-income-label > span:last-child {
  color: #085d82;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.5;
}

.wqb-income-badge {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 0.28rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.wqb-income-badge-average {
  color: #fff;
  background: #d94818;
  border-color: #b9360d;
  box-shadow: 0.24rem 0.24rem 0 rgba(255, 122, 69, 0.24);
}

.wqb-income-badge-guarantee {
  color: #09213d;
  background: #ffe45c;
  border-color: #ffcd1f;
  box-shadow: 0.24rem 0.24rem 0 rgba(75, 231, 255, 0.3);
}

.wqb-income-stat > strong {
  margin-top: auto;
  color: inherit;
  font-family: var(--mono);
  font-size: 2.35rem;
  letter-spacing: 0;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.wqb-income-stat > strong small {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.wqb-income-stat p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.wqb-income-stat-emphasis {
  color: #f7fbff;
  background: #09213d;
  border-color: rgba(8, 174, 234, 0.42);
  box-shadow: 0.55rem 0.55rem 0 rgba(8, 174, 234, 0.2);
}

.wqb-income-stat-emphasis .wqb-income-label > span:last-child {
  color: #4be7ff;
}

.wqb-income-stat-emphasis p {
  color: rgba(247, 251, 255, 0.72);
}

.wqb-income-disclaimer {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.wqb-benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(20, 50, 72, 0.18);
}

.wqb-benefit-list li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  min-height: 8.2rem;
  padding: 1.15rem;
  border-right: 1px solid rgba(20, 50, 72, 0.12);
  border-bottom: 1px solid rgba(20, 50, 72, 0.14);
}

.wqb-benefit-list li:nth-child(even) {
  border-right: 0;
}

.wqb-benefit-list > li > svg {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.55rem;
  color: var(--orange-deep);
  background: rgba(255, 107, 61, 0.1);
  border-radius: 0.35rem;
}

.wqb-benefit-list strong,
.wqb-benefit-list span {
  display: block;
  letter-spacing: 0;
}

.wqb-benefit-list strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.wqb-benefit-list span {
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.wqb-apply {
  display: grid;
  grid-template-columns: minmax(18rem, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #f7fbff;
  background: #081c37;
  border-block: 1px solid rgba(75, 231, 255, 0.28);
}

.wqb-benefits-art {
  width: min(100%, 33rem);
}

.wqb-benefits-art img {
  border: 1px solid rgba(75, 231, 255, 0.24);
  box-shadow: 0.65rem 0.65rem 0 rgba(20, 215, 255, 0.18);
}

.wqb-apply-copy {
  min-width: 0;
}

.wqb-apply .module-kicker {
  color: #4be7ff;
}

.wqb-apply h2 {
  max-width: 12ch;
  color: #f7fbff;
}

.wqb-apply-copy > p:not(.module-kicker) {
  max-width: 35rem;
  margin: 1.25rem 0 0;
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.8;
}

.wqb-qr-panel {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.7rem;
  padding: 1rem;
  color: var(--ink);
  background: #f7fbff;
  border: 1px solid rgba(75, 231, 255, 0.34);
  border-radius: 0.5rem;
}

.wqb-qr-link {
  display: block;
  width: 11.5rem;
  max-width: 100%;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid rgba(20, 50, 72, 0.14);
  border-radius: 0.35rem;
}

.wqb-qr-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.wqb-qr-panel > div {
  min-width: 0;
}

.wqb-qr-panel strong,
.wqb-qr-panel span {
  display: block;
  letter-spacing: 0;
}

.wqb-qr-panel strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.wqb-qr-panel > div > span {
  margin-top: 0.35rem;
  color: #086b95;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.wqb-text-link {
  width: fit-content;
  margin-top: 1rem;
  padding: 0.58rem 0.78rem;
  font-size: 0.86rem;
}

.wqb-email-note {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(75, 231, 255, 0.08);
  border: 1px solid rgba(75, 231, 255, 0.3);
  border-radius: 0.4rem;
}

.wqb-email-note > svg {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  color: #4be7ff;
  background: rgba(75, 231, 255, 0.1);
  border-radius: 0.35rem;
}

.wqb-email-note strong {
  display: block;
  color: #f7fbff;
  font-size: 1rem;
  letter-spacing: 0;
}

.wqb-email-note p {
  margin: 0.38rem 0 0;
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.7;
}

.wqb-learning {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(24rem, 1.24fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-block: 5.5rem;
}

.wqb-learning h2 {
  max-width: 11ch;
  font-size: 3rem;
}

.wqb-learning-copy > p:not(.module-kicker) {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.wqb-resource-links {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.5rem;
}

.wqb-resource-links a {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 3.4rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(20, 50, 72, 0.14);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.wqb-resource-links a:hover,
.wqb-resource-links a:focus-visible {
  color: var(--orange-deep);
}

.wqb-resource-links a.wqb-resource-link-primary {
  min-height: 4.8rem;
  grid-template-columns: 1.25rem minmax(0, 1fr) 1rem;
  gap: 0.75rem;
  padding: 0.78rem 0.85rem;
  color: #ffffff;
  background: #273446;
  border: 1px solid #273446;
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(39, 52, 70, 0.16);
}

.wqb-resource-link-primary > span {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.wqb-resource-link-primary strong,
.wqb-resource-link-primary small {
  overflow-wrap: anywhere;
}

.wqb-resource-link-primary strong {
  font-size: 0.94rem;
}

.wqb-resource-link-primary small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

.wqb-resource-links a.wqb-resource-link-primary:hover,
.wqb-resource-links a.wqb-resource-link-primary:focus-visible {
  color: #ffffff;
  background: var(--orange-deep);
  border-color: var(--orange-deep);
}

.wqb-resource-links a.wqb-resource-link-primary:hover small,
.wqb-resource-links a.wqb-resource-link-primary:focus-visible small {
  color: rgba(255, 255, 255, 0.86);
}

.wqb-resource-link-external {
  justify-self: end;
}

.wqb-video-area {
  width: 100%;
  min-width: 0;
}

.wqb-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020b18;
  border: 1px solid rgba(20, 50, 72, 0.2);
  border-radius: 0.5rem;
  box-shadow: 0.75rem 0.75rem 0 rgba(237, 106, 58, 0.2);
}

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

.wqb-video-help {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
  margin-top: 1.35rem;
  padding: 0.1rem 0 0.1rem 0.95rem;
  color: var(--ink);
  border-left: 3px solid var(--orange);
}

.wqb-video-help > svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  color: var(--orange-deep);
}

.wqb-video-help p {
  margin: 0;
}

.wqb-video-help strong,
.wqb-video-help span {
  display: block;
}

.wqb-video-help strong {
  font-size: 0.9rem;
}

.wqb-video-help span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .wqb-overview {
    grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
    gap: 3rem;
  }

  .wqb-reward-layout {
    grid-template-columns: 1fr;
  }

  .wqb-income-area {
    max-width: 48rem;
  }

  .wqb-qr-panel {
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .wqb-qr-link {
    width: 10rem;
  }
}

@media (max-width: 900px) {
  .wqb-overview,
  .wqb-eligibility,
  .wqb-section-heading-wide,
  .wqb-apply,
  .wqb-learning {
    grid-template-columns: 1fr;
  }

  .wqb-overview,
  .wqb-eligibility,
  .wqb-rewards,
  .wqb-learning {
    padding-block: 4.25rem;
  }

  .wqb-overview h2,
  .wqb-apply h2 {
    font-size: 2.75rem;
  }

  .wqb-section-heading h2,
  .wqb-learning h2 {
    font-size: 2.6rem;
  }

  .wqb-hero-art {
    width: min(100%, 34rem);
    justify-self: start;
  }

  .wqb-section-heading-wide .module-kicker {
    grid-column: auto;
  }

  .wqb-section-heading-wide {
    gap: 1rem;
  }

  .wqb-section-heading-wide > p:last-child {
    margin-top: 0.3rem;
  }

  .wqb-benefits-art {
    width: min(100%, 31rem);
  }

  .wqb-learning {
    gap: 2.5rem;
  }

  .wqb-video-area,
  .wqb-video-frame {
    max-width: 48rem;
  }

  .wqb-qr-panel {
    grid-template-columns: 11.5rem minmax(0, 1fr);
  }

  .wqb-qr-link {
    width: 11.5rem;
  }
}

@media (max-width: 640px) {
  .wqb-overview,
  .wqb-eligibility,
  .wqb-rewards,
  .wqb-learning {
    padding-block: 3.4rem;
  }

  .wqb-overview {
    gap: 2.5rem;
  }

  .wqb-role-label {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .wqb-overview h2,
  .wqb-section-heading h2,
  .wqb-apply h2,
  .wqb-learning h2 {
    font-size: 2.15rem;
  }

  .wqb-primary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wqb-primary-link {
    width: 100%;
  }

  .wqb-requirement-list li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.7rem;
    min-height: 0;
    padding: 1.2rem 0;
  }

  .wqb-requirement-index {
    grid-column: 1;
    grid-row: 1;
  }

  .wqb-requirement-list > li > svg {
    grid-column: 1;
    grid-row: 2;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.58rem;
  }

  .wqb-requirement-list li > div {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .wqb-income-area,
  .wqb-benefit-list {
    grid-template-columns: 1fr;
  }

  .wqb-income-stat {
    min-height: 13.5rem;
  }

  .wqb-income-stat > strong {
    font-size: 2rem;
  }

  .wqb-benefit-list li,
  .wqb-benefit-list li:nth-child(even) {
    min-height: 0;
    padding-inline: 0;
    border-right: 0;
  }

  .wqb-apply {
    gap: 2.5rem;
    padding: 2rem 1rem;
  }

  .wqb-benefits-art img {
    box-shadow: 0.4rem 0.4rem 0 rgba(20, 215, 255, 0.18);
  }

  .wqb-qr-panel {
    grid-template-columns: 1fr;
  }

  .wqb-qr-link {
    width: min(11.5rem, 100%);
  }

  .wqb-video-frame {
    box-shadow: 0.4rem 0.4rem 0 rgba(237, 106, 58, 0.2);
  }
}

@media (max-width: 360px) {
  .wqb-overview h2,
  .wqb-section-heading h2,
  .wqb-apply h2,
  .wqb-learning h2 {
    font-size: 1.9rem;
  }

  .wqb-income-stat > strong {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opportunity-disclosure,
  .opportunity-disclosure > summary,
  .opportunity-summary-action svg,
  .wqb-primary-link,
  .wqb-text-link {
    transition: none;
  }
}

/* Static book and film archive */
.library-archive {
  scroll-margin-top: 6.5rem;
}

.module-page[data-site-section='library'] * {
  letter-spacing: 0;
}

.module-page[data-site-section='library'] .module-hero h1 {
  letter-spacing: 0;
}

.library-tabs {
  display: grid;
  width: min(100%, 36rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 3.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(38, 50, 68, 0.16);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(49, 62, 82, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.library-tab {
  display: grid;
  min-width: 0;
  min-height: 4.15rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.library-tab + .library-tab {
  border-left: 1px solid rgba(38, 50, 68, 0.12);
}

.library-tab span {
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 850;
  text-align: left;
}

.library-tab strong {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.library-tab:hover,
.library-tab:focus-visible {
  color: var(--orange-deep);
  background: rgba(255, 244, 238, 0.72);
}

.library-tab.is-active {
  color: #ffffff;
  background: #273446;
  border-bottom-color: var(--orange);
}

.library-tab.is-active strong {
  color: #ffc2aa;
}

.library-panel[hidden] {
  display: none;
}

.library-media-panel {
  scroll-margin-top: 6.5rem;
}

.media-toolbar {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) 11rem auto;
  gap: 1rem;
  align-items: end;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(38, 50, 68, 0.14);
  border-bottom: 1px solid rgba(38, 50, 68, 0.14);
}

.media-toolbar label:not(.media-review-toggle) {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.media-toolbar label > span:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 750;
}

.media-toolbar input[type='search'],
.media-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(38, 50, 68, 0.18);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
}

.media-toolbar input[type='search']::placeholder {
  color: rgba(63, 75, 91, 0.56);
}

.media-toolbar input[type='search']:focus,
.media-toolbar select:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(255, 122, 69, 0.18);
  outline-offset: 0;
}

.media-review-toggle {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.62rem;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(38, 50, 68, 0.16);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 750;
  white-space: nowrap;
}

.media-review-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--orange-deep);
}

.media-results-bar {
  display: flex;
  min-height: 4.5rem;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.media-results-bar p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.media-results-bar button {
  padding: 0.35rem 0;
  color: var(--orange-deep);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.media-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

.media-archive-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(12rem, 1fr);
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(38, 50, 68, 0.14);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(49, 62, 82, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.media-archive-card:hover,
.media-archive-card:focus-visible {
  border-color: rgba(255, 122, 69, 0.58);
  box-shadow: 0 18px 34px rgba(49, 62, 82, 0.14);
  transform: translateY(-2px);
}

.media-archive-cover {
  position: relative;
  display: grid;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  place-items: center;
  background: #e9eef4;
  border-bottom: 1px solid rgba(38, 50, 68, 0.12);
}

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

.media-archive-review-excerpt {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
  padding: 0.08rem 0 0.08rem 0.78rem;
  color: var(--ink);
  border-left: 3px solid var(--orange);
  text-align: left;
}

.media-archive-review-excerpt small {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
}

.media-archive-review-excerpt > span {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.62;
}

.media-archive-copy {
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.45rem;
  align-content: start;
  padding: 1rem 0.95rem 1.05rem;
}

.media-archive-type {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
}

.media-archive-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.98rem;
  line-height: 1.55;
}

.media-archive-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.75rem;
}

.media-archive-meta {
  display: grid;
  min-width: 0;
  min-height: 4.2rem;
  gap: 0.52rem;
  align-content: start;
  margin-top: auto;
  padding-top: 0.78rem;
  color: var(--ink);
  border-top: 1px solid rgba(38, 50, 68, 0.14);
}

.media-archive-date {
  display: grid;
  gap: 0.08rem;
}

.media-archive-date small {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 850;
}

.media-archive-date time {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 900;
}

.media-archive-review-action {
  width: fit-content;
  color: var(--orange-deep);
  border-bottom: 1px solid rgba(220, 82, 39, 0.42);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 900;
}

.media-archive-empty {
  min-height: 16rem;
  margin: 0;
  padding: 5rem 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(38, 50, 68, 0.14);
  font-size: 1rem;
  text-align: center;
}

.media-pagination {
  display: flex;
  min-height: 7rem;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
}

.media-pagination-pages {
  display: inline-flex;
  gap: 0.35rem;
}

.media-pagination button {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 2.55rem;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(38, 50, 68, 0.16);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.media-pagination button:hover,
.media-pagination button:focus-visible,
.media-pagination button.is-current {
  color: #ffffff;
  background: #273446;
  border-color: #273446;
}

.media-pagination button.is-current {
  box-shadow: inset 0 -3px 0 var(--orange);
}

.media-pagination button:disabled {
  opacity: 0.34;
  cursor: default;
}

.media-detail-loading,
.media-detail-empty {
  display: grid;
  min-height: 55vh;
  align-content: center;
}

.media-detail-loading h1,
.media-detail-empty h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
  font-size: 3rem;
  line-height: 1.12;
}

.media-detail-hero {
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid rgba(38, 50, 68, 0.14);
}

.media-detail-cover {
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  place-items: center;
  background: #e9eef4;
  border: 1px solid rgba(38, 50, 68, 0.16);
  border-radius: 6px;
  box-shadow: 0.7rem 0.7rem 0 rgba(255, 122, 69, 0.18), 0 24px 48px rgba(49, 62, 82, 0.14);
}

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

.media-detail-copy {
  min-width: 0;
}

.media-detail-copy h1 {
  max-width: 15ch;
  margin-bottom: 2.5rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 4rem;
  line-height: 1.08;
}

.media-detail-copy dl,
.media-detail-copy dd {
  margin: 0;
}

.media-detail-copy dl {
  max-width: 22rem;
  border-top: 1px solid rgba(38, 50, 68, 0.16);
  border-bottom: 1px solid rgba(38, 50, 68, 0.16);
}

.media-detail-copy dl > div {
  display: flex;
  min-height: 4.3rem;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.media-detail-copy dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.media-detail-copy dd {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 800;
}

.media-detail-review {
  width: min(100%, 52rem);
  padding: 4.5rem 0 5rem;
}

.media-detail-review h2 {
  margin-bottom: 2rem;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.2;
}

.media-detail-review-body {
  padding-left: 1.5rem;
  border-left: 4px solid var(--orange);
}

.media-detail-review-body p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #303e50;
  font-size: 1.12rem;
  line-height: 2;
}

.media-detail-review--empty > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.media-detail-footer-link {
  padding: 1.5rem 0 4rem;
  border-top: 1px solid rgba(38, 50, 68, 0.14);
}

.media-detail-footer-link a {
  color: var(--orange-deep);
  font-weight: 800;
}

@media (max-width: 1050px) {
  .media-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .media-toolbar {
    grid-template-columns: minmax(0, 1fr) 10rem;
  }

  .media-review-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .media-detail-hero {
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .media-detail-copy h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 680px) {
  .library-tabs {
    width: 100%;
    margin-bottom: 2.4rem;
  }

  .library-tab {
    min-height: 3.75rem;
    gap: 0.35rem;
    padding-inline: 0.7rem;
  }

  .library-tab span {
    font-size: 0.94rem;
  }

  .media-toolbar {
    grid-template-columns: minmax(0, 1fr) 9.5rem;
  }

  .media-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }

  .media-detail-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.5rem 0;
  }

  .media-detail-cover {
    width: min(15rem, calc(100% - 0.8rem));
    margin-inline: auto;
  }

  .media-detail-copy h1 {
    max-width: none;
    margin-bottom: 2rem;
    font-size: 2.8rem;
  }

  .media-detail-review {
    padding: 3.5rem 0 4rem;
  }

  .media-detail-review h2 {
    font-size: 1.9rem;
  }

  .media-detail-review-body {
    padding-left: 1rem;
  }
}

@media (max-width: 420px) {
  .module-page[data-site-section='library'] .module-hero h1 {
    max-width: 100%;
    font-size: 2.3rem;
  }

  .library-tab {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    justify-content: center;
    padding-inline: 0.35rem;
  }

  .library-tab span {
    text-align: center;
  }

  .media-toolbar {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .media-review-toggle {
    grid-column: auto;
    justify-self: stretch;
  }

  .media-archive-copy {
    min-height: 12rem;
    padding-inline: 0.7rem;
  }

  .media-archive-copy > strong {
    font-size: 0.92rem;
  }

  .media-archive-review-excerpt {
    gap: 0.32rem;
    padding: 0.05rem 0 0.05rem 0.62rem;
  }

  .media-archive-review-excerpt > span {
    font-size: 0.86rem;
  }

  .media-pagination {
    gap: 0.3rem;
  }

  .media-pagination-pages {
    gap: 0.25rem;
  }

  .media-pagination button {
    width: 2.35rem;
    height: 2.35rem;
    flex-basis: 2.35rem;
  }

  .media-detail-copy h1 {
    font-size: 2.35rem;
  }

  .media-detail-review-body p {
    font-size: 1.03rem;
    line-height: 1.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-archive-card {
    transition: none;
  }
}

/* Shared density and reading scale */
:root {
  --max-width: 1360px;
}

.home-intro {
  min-height: 0;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4.25rem);
}

.intro-visual {
  max-width: 46rem;
}

.module-hero {
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.4rem, 4vw, 3.6rem);
}

.module-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  letter-spacing: 0;
  line-height: 1.02;
}

.module-lede {
  max-width: 48rem;
  font-size: 1.16rem;
  line-height: 1.78;
}

.module-page .module-section {
  padding: clamp(2.6rem, 4.5vw, 4.25rem) 0;
}

.module-section h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.08;
}

.module-page .module-section > p:not(.module-kicker):not(.disclaimer) {
  max-width: 50rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.module-card h3,
.timeline-row h3 {
  font-size: 1.45rem;
}

.module-card p,
.timeline-row p,
.contact-card p,
.opportunities-intro > p:last-child,
.opportunity-copy p,
.wqb-learning-copy > p:not(.module-kicker) {
  font-size: 1.04rem;
  line-height: 1.75;
}

.wqb-overview,
.wqb-eligibility,
.wqb-rewards,
.wqb-learning {
  padding-block: clamp(2.8rem, 4.5vw, 4rem);
}

.article-hero {
  padding: 2.8rem 0 2.15rem;
}

.article-hero h1 {
  max-width: 24ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.3rem, 3.6vw, 2.8rem);
  letter-spacing: 0;
  line-height: 1.12;
}

.article-layout {
  grid-template-columns: minmax(0, 50rem) 13rem;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: 2.6rem 0 3.6rem;
}

.article-body {
  font-size: 1.25rem;
  line-height: 1.9;
}

.article-body > p,
.article-body > ol,
.article-body > ul,
.article-body > blockquote {
  max-width: 50rem;
  margin-bottom: 1.4rem;
}

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

@media (max-width: 640px) {
  .home-intro {
    gap: 2.4rem;
    padding: 2.7rem 0 3rem;
  }

  .module-hero {
    padding: 2.8rem 0 2.35rem;
  }

  .module-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.35rem);
  }

  .module-lede {
    font-size: 1.08rem;
  }

  .module-page .module-section {
    padding: 2.5rem 0;
  }

  .module-section h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .module-page .module-section > p:not(.module-kicker):not(.disclaimer) {
    font-size: 1.04rem;
  }

  .wqb-overview,
  .wqb-eligibility,
  .wqb-rewards,
  .wqb-learning {
    padding-block: 2.8rem;
  }

  .article-hero {
    padding: 2.45rem 0 1.9rem;
  }

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

  .article-layout {
    padding: 2.15rem 0 3rem;
  }

  .article-body {
    font-size: 1.12rem;
    line-height: 1.9;
  }

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

/* Keep article switching and the global navigation usable without extra scrolling. */
@media (min-width: 901px) {
  .home-header.has-site-nav,
  .module-header.has-site-nav {
    display: grid;
    min-height: 5.5rem;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(1.25rem, 3vw, 2.75rem);
    padding-inline: clamp(1rem, 2.3vw, 2rem);
  }

  .has-site-nav .site-nav {
    width: 100%;
    margin: 0;
  }

  .has-site-nav .site-nav-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
  }

  .has-site-nav .site-nav-link {
    justify-self: center;
  }

  .article-page[data-site-section~='writing'] .module-main {
    display: grid;
    width: min(100%, 74rem);
    margin-inline: auto;
    grid-template-columns: minmax(0, 50rem) minmax(17rem, 20rem);
    column-gap: clamp(2.75rem, 4vw, 4rem);
    align-items: start;
  }

  .article-page[data-site-section~='writing'] .article-hero {
    width: 100%;
    grid-column: 1;
    margin: 0;
    padding: 2.1rem 0 1.65rem;
  }

  .article-page[data-site-section~='writing'] .article-hero h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(2rem, 2.7vw, 2.4rem);
  }

  .article-page[data-site-section~='writing'] .article-date {
    margin-bottom: 1rem;
  }

  .article-page[data-site-section~='writing'] .article-date strong {
    margin-top: 0.25rem;
    font-size: 1.5rem;
  }

  .article-page[data-site-section~='writing'] .article-layout {
    display: contents;
  }

  .article-page[data-site-section~='writing'] .article-body {
    grid-row: 2;
    grid-column: 1;
    padding: 2rem 0 3.6rem;
  }

  .article-page[data-site-section~='writing'] .article-sidebar {
    width: 100%;
    max-height: calc(100vh - 7.75rem);
    grid-row: 1 / span 2;
    grid-column: 2;
    margin-top: 2.1rem;
    top: 6.25rem;
    scrollbar-gutter: stable;
  }

  .article-page[data-site-section~='writing'] .thought-directory-desktop {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 900px) {
  .article-page[data-site-section~='writing'] .article-hero {
    padding: 1.8rem 0 1.35rem;
  }

  .article-page[data-site-section~='writing'] .article-hero h1 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.75rem, 8vw, 2rem);
  }

  .article-page[data-site-section~='writing'] .article-date {
    margin-bottom: 0.9rem;
  }

  .article-page[data-site-section~='writing'] .article-layout {
    padding-top: 1.5rem;
  }
}
