:root {
  --canvas: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #eceff3;
  --ink: #293646;
  --muted: #697586;
  --line: rgba(41, 54, 70, 0.13);
  --orange: #ff7747;
  --orange-deep: #dc5227;
  --sky: #9bd8f5;
  --lime: #d7e57d;
  --violet: #c8baf5;
  --yellow: #ffd66e;
  --mint: #9dd9c2;
  --navy: #293646;
  --shadow-sm: 0 8px 24px rgba(41, 54, 70, 0.08);
  --shadow-md: 0 18px 48px rgba(41, 54, 70, 0.12);
  --max-width: 1120px;
  --gutter: 3rem;
  --sans: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  color: var(--surface);
  background: var(--navy);
  border-radius: 999px;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.home-header,
.module-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 245, 247, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.home-brand,
.module-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--surface);
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(220, 82, 39, 0.24);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.header-note,
.module-back,
.eyebrow,
.section-kicker,
.module-kicker,
.module-meta,
.mini-label,
.card-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

/* Home hero */
.home-intro {
  display: grid;
  min-height: min(41rem, calc(78svh - 5rem));
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0 3.75rem;
}

.intro-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.eyebrow-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0.28rem rgba(255, 119, 71, 0.14);
}

.home-intro h1 {
  margin-bottom: 1.6rem;
  font-size: 7.1rem;
  font-weight: 800;
  line-height: 0.88;
}

.title-dot {
  color: var(--orange);
}

.intro-text {
  max-width: 40rem;
  margin-bottom: 0;
  color: #3c4a5b;
  font-size: 1.08rem;
  line-height: 1.95;
}

.intro-visual {
  position: relative;
  width: min(100%, 23rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.visual-orbit {
  position: absolute;
  border: 1px dashed rgba(41, 54, 70, 0.28);
  border-radius: 50%;
  animation: orbit-turn 24s linear infinite;
}

.orbit-one {
  inset: 5%;
}

.orbit-two {
  inset: 18%;
  animation-direction: reverse;
  animation-duration: 18s;
}

.visual-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 12.8rem;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  background: var(--orange);
  border: 0.65rem solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
}

.visual-core::before {
  position: absolute;
  width: 5.4rem;
  height: 1.1rem;
  content: '';
  background: var(--navy);
  border-radius: 999px;
  transform: rotate(-28deg) translate(0.4rem, -3.6rem);
}

.visual-core span {
  position: relative;
  z-index: 1;
  font-size: 3.7rem;
  font-weight: 800;
  line-height: 1;
}

.visual-core small {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.visual-chip {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 3.45rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  border: 0.32rem solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 800;
  animation: chip-drift 4.5s ease-in-out infinite;
}

.chip-build {
  top: 2%;
  left: 18%;
  background: var(--sky);
}

.chip-read {
  top: 23%;
  right: 0;
  background: var(--yellow);
  animation-delay: -1.2s;
}

.chip-travel {
  right: 13%;
  bottom: 5%;
  background: var(--mint);
  animation-delay: -2.4s;
}

.chip-music {
  bottom: 18%;
  left: 0;
  background: var(--violet);
  animation-delay: -3.1s;
}

.visual-caption {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
}

@keyframes orbit-turn {
  to { transform: rotate(360deg); }
}

@keyframes chip-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.45rem); }
}

/* Home modules */
.module-section {
  padding-bottom: 2rem;
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-kicker span:first-child {
  color: var(--orange-deep);
  font-weight: 700;
}

.home-page .module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.module-tile {
  position: relative;
  display: flex;
  min-height: 13.25rem;
  flex-direction: column;
  padding: 0.55rem 0.55rem 1rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(41, 54, 70, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.module-tile:hover,
.module-tile:focus-visible {
  border-color: rgba(41, 54, 70, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-0.35rem);
}

.tile-art {
  position: relative;
  display: flex;
  width: 100%;
  height: 7.2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  overflow: hidden;
  border-radius: 6px;
}

.tile-index {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.56rem;
  backdrop-filter: blur(8px);
}

.module-tile > strong,
.module-tile > small {
  padding-inline: 0.45rem;
}

.module-tile > strong {
  max-width: 13ch;
  font-size: 1.1rem;
  line-height: 1.2;
}

.module-tile > small {
  margin-top: 0.25rem;
  padding-right: 2.5rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.tile-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  color: var(--surface);
  background: var(--navy);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.78rem;
  transition: background 160ms ease, transform 160ms ease;
}

.module-tile:hover .tile-arrow {
  background: var(--orange);
  transform: translateX(0.18rem);
}

.art-career {
  background: var(--sky);
}

.art-career::before,
.art-investing::before {
  position: absolute;
  inset: 1.05rem;
  content: '';
  border: 1px solid rgba(41, 54, 70, 0.25);
  border-radius: 6px;
}

.art-career::after {
  position: absolute;
  top: 1.45rem;
  left: 1.45rem;
  width: 2.1rem;
  height: 0.25rem;
  content: '';
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 2.45rem 0 var(--surface), 4.9rem 0 var(--surface);
}

.art-career i,
.art-investing i {
  position: absolute;
  bottom: 1.35rem;
  width: 1.05rem;
  background: var(--navy);
  border-radius: 0.25rem 0.25rem 0 0;
}

.art-career i:nth-child(1),
.art-investing i:nth-child(1) { left: 28%; height: 1.35rem; }
.art-career i:nth-child(2),
.art-investing i:nth-child(2) { left: 45%; height: 2.2rem; }
.art-career i:nth-child(3),
.art-investing i:nth-child(3) { left: 62%; height: 3.1rem; }

.art-career b,
.art-investing b {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 1.35rem;
}

.art-thoughts {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.6rem 1.45rem;
  background: var(--surface-soft);
}

.art-thoughts::before,
.art-thoughts::after {
  position: absolute;
  width: 55%;
  height: 66%;
  content: '';
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
}

.art-thoughts::before {
  top: 1.25rem;
  right: 1.5rem;
  transform: rotate(7deg);
}

.art-thoughts::after {
  top: 1rem;
  left: 1.55rem;
  transform: rotate(-5deg);
}

.art-thoughts b,
.art-thoughts i {
  position: relative;
  z-index: 2;
}

.art-thoughts b {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--surface);
  background: var(--orange);
  border-radius: 50%;
  font-size: 1rem;
}

.art-thoughts i {
  width: 4.6rem;
  height: 0.24rem;
  margin-top: 0.55rem;
  background: #9fa9b5;
  border-radius: 999px;
}

.art-thoughts i:last-child {
  width: 3.1rem;
}

.art-investing {
  background: var(--yellow);
}

.art-investing i:nth-child(1) { height: 1rem; background: #668a75; }
.art-investing i:nth-child(2) { height: 1.85rem; background: #4f7762; }
.art-investing i:nth-child(3) { height: 2.75rem; background: #365d49; }

.art-library {
  gap: 0.35rem;
  align-items: flex-end;
  padding-bottom: 1.2rem;
  background: var(--violet);
}

.art-library::after {
  position: absolute;
  right: 12%;
  bottom: 1rem;
  left: 12%;
  height: 0.3rem;
  content: '';
  background: rgba(41, 54, 70, 0.2);
  border-radius: 999px;
}

.art-library b {
  z-index: 1;
  display: grid;
  width: 1.55rem;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(41, 54, 70, 0.2);
  border-radius: 3px 3px 0 0;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.art-library b:nth-child(1) { height: 3.9rem; background: var(--sky); }
.art-library b:nth-child(2) { height: 3rem; background: var(--orange); }
.art-library b:nth-child(3) { height: 4.45rem; background: var(--lime); }
.art-library b:nth-child(4) { height: 3.5rem; background: var(--surface); }

.art-travel {
  background: var(--mint);
}

.art-travel::before,
.art-travel::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(41, 54, 70, 0.28);
  border-radius: 50%;
}

.art-travel::before { width: 7rem; height: 7rem; }
.art-travel::after { width: 4.5rem; height: 4.5rem; }
.art-travel i { position: absolute; z-index: 1; width: 0.65rem; height: 0.65rem; background: var(--navy); border: 0.18rem solid var(--surface); border-radius: 50%; }
.art-travel i:nth-child(1) { top: 1.2rem; left: 30%; }
.art-travel i:nth-child(2) { right: 25%; bottom: 1.1rem; background: var(--orange); }
.art-travel i:nth-child(3) { top: 50%; left: 49%; background: var(--yellow); }
.art-travel b { z-index: 1; color: var(--orange-deep); font-size: 1.5rem; }

.art-contact {
  background: var(--navy);
}

.art-contact::before {
  position: absolute;
  width: 6.2rem;
  height: 4rem;
  content: '';
  background: var(--surface);
  border-radius: 6px;
  transform: rotate(-5deg);
}

.art-contact::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.7rem;
  height: 3.7rem;
  content: '';
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translate(-50%, -70%) rotate(45deg);
}

.art-contact b {
  position: relative;
  z-index: 2;
  color: var(--orange-deep);
  font-size: 1.7rem;
  transform: translateY(0.2rem);
}

.art-contact i {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  width: 2.7rem;
  height: 0.35rem;
  background: var(--lime);
  border-radius: 999px;
}

.home-footnote {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.4rem 0 2.8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
}

/* Shared module pages */
.module-page .site-shell {
  min-height: 100vh;
}

.module-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 160ms ease, border-color 160ms ease;
}

.module-back:hover,
.module-back:focus-visible {
  background: var(--surface);
  border-color: rgba(41, 54, 70, 0.3);
}

.module-main {
  padding-bottom: 3rem;
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 4rem;
  align-items: end;
  padding: 5.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.module-hero h1 {
  max-width: 14ch;
  margin: 0 0 1.2rem;
  font-size: 4.8rem;
  line-height: 1;
}

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

.module-kicker {
  margin-bottom: 1rem;
  color: var(--orange-deep);
  font-weight: 700;
}

.module-lede {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.module-aside-note {
  padding: 1.15rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem;
  line-height: 1.7;
  transform: rotate(1.5deg);
}

.module-aside-note strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.module-page .module-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.module-page .module-section:last-child {
  border-bottom: 0;
}

.module-section h2 {
  margin-bottom: 1rem;
  font-size: 2.65rem;
  line-height: 1.12;
}

.module-page .module-section > p:not(.module-kicker):not(.disclaimer) {
  max-width: 44rem;
  color: var(--muted);
}

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

.module-card {
  position: relative;
  min-height: 12rem;
  padding: 1.35rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(41, 54, 70, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.module-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 0.3rem;
  content: '';
  background: var(--sky);
  border-radius: 8px 8px 0 0;
}

.module-card:nth-child(2)::after { background: var(--yellow); }
.module-card:nth-child(3)::after { background: var(--violet); }
.module-card:nth-child(4)::after { background: var(--mint); }

.module-card h3 {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  margin: 1.8rem 0 0.55rem;
  font-size: 1.3rem;
  line-height: 1.25;
}

.module-card p {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.module-card-dark {
  color: var(--surface);
  background: var(--navy);
}

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

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

.module-meta,
.card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
}

.module-meta span:first-child,
.card-meta span:first-child {
  color: var(--orange-deep);
}

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

.module-card-dark .module-meta span:first-child {
  color: var(--yellow);
}

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

.timeline-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row time {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.timeline-row h3 {
  margin: 0;
  font-size: 1.2rem;
}

.timeline-row p {
  max-width: 42rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.module-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.8rem;
  padding: 1.25rem 1.35rem;
  background: #ffe8de;
  border-left: 0.3rem solid var(--orange);
  border-radius: 0 8px 8px 0;
}

.module-callout p {
  margin: 0;
  font-size: 0.78rem;
}

.inline-link {
  padding-bottom: 0.18rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.inline-link:hover {
  color: var(--orange-deep);
  border-color: var(--orange-deep);
}

.disclaimer {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.module-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
}

/* Library */
.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.library-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.86rem;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.63rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.library-filter span {
  color: var(--orange-deep);
  font-size: 0.56rem;
}

.library-filter:hover,
.library-filter:focus-visible,
.library-filter.is-active {
  color: var(--surface);
  background: var(--navy);
  border-color: var(--navy);
}

.library-filter.is-active span {
  color: var(--yellow);
}

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

.media-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(41, 54, 70, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.media-card[open] {
  box-shadow: var(--shadow-md);
}

.media-summary {
  display: grid;
  min-height: 10rem;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem;
  cursor: pointer;
  list-style: none;
}

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

.media-summary::after {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  color: var(--orange-deep);
  content: '+';
  font-family: var(--mono);
  font-size: 1rem;
}

.media-card[open] .media-summary::after {
  content: '-';
}

.media-cover {
  display: flex;
  min-height: 8.35rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--ink);
  background: var(--sky);
  border-radius: 6px;
}

.media-card-film .media-cover { background: var(--orange); }
.media-card-music .media-cover { background: var(--violet); }
.media-card-game .media-cover { background: var(--lime); }
.media-glyph { font-family: var(--mono); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.media-cover small { font-family: var(--mono); font-size: 0.54rem; }
.media-heading { min-width: 0; padding-top: 0.25rem; }
.media-heading h3 { max-width: 13ch; margin: 1.15rem 0 0.35rem; font-size: 1.12rem; line-height: 1.25; }
.media-heading p { margin: 0; color: var(--muted); font-size: 0.7rem; }
.media-expanded { padding: 1rem; background: #fafbfc; border-top: 1px solid var(--line); }
.media-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--orange-deep); font-family: var(--mono); font-size: 0.57rem; }
.media-expanded > p { margin: 0.8rem 0 1rem; color: var(--muted); font-size: 0.74rem; line-height: 1.75; }
.media-activity-label { display: flex; justify-content: space-between; margin-bottom: 0.45rem; color: var(--muted); font-family: var(--mono); font-size: 0.55rem; }
.media-heat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.25rem; }
.media-heat i { display: block; aspect-ratio: 1; background: var(--surface-soft); border-radius: 2px; }
.media-heat i[data-level='1'] { background: #d6ecdd; }
.media-heat i[data-level='2'] { background: #9fcaae; }
.media-heat i[data-level='3'] { background: #58a274; }
.media-heat i[data-level='4'] { background: #2c6c49; }

/* Travel */
.travel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  gap: 1rem;
}

.map-panel,
.travel-detail {
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.map-panel {
  background: var(--surface);
  border: 1px solid rgba(41, 54, 70, 0.08);
}

.travel-detail {
  color: var(--ink);
  background: var(--mint);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.59rem;
}

.sample-badge {
  padding: 0.22rem 0.48rem;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.54rem;
}

.panel-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.66rem; }
.travel-detail h3 { margin: 1rem 0 0.45rem; font-size: 1.75rem; line-height: 1.1; }
.travel-detail > p { min-height: 4.8rem; margin: 0 0 1.1rem; color: rgba(41, 54, 70, 0.74); font-size: 0.74rem; line-height: 1.75; }
.travel-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; padding: 0.8rem 0; border-block: 1px solid rgba(41, 54, 70, 0.18); }
.travel-stats div { display: flex; flex-direction: column; gap: 0.15rem; }
.travel-stats strong { font-family: var(--mono); font-size: 1.35rem; font-weight: 500; }
.travel-stats span { color: rgba(41, 54, 70, 0.68); font-size: 0.6rem; }
.category-list { display: grid; gap: 0.58rem; margin-top: 1rem; }
.category-list > div { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) 1.5rem; gap: 0.5rem; align-items: center; font-size: 0.62rem; }
.category-list i { display: block; height: 0.32rem; overflow: hidden; background: rgba(41, 54, 70, 0.18); border-radius: 999px; }
.category-list i b { display: block; width: var(--score); height: 100%; background: var(--navy); border-radius: inherit; }
.category-list em { font-family: var(--mono); font-size: 0.56rem; font-style: normal; text-align: right; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  min-height: 17rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid rgba(41, 54, 70, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.contact-card:nth-child(2) {
  background: var(--yellow);
}

.contact-card h2 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.7rem;
  line-height: 1.15;
}

.contact-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

.contact-card:nth-child(2) p {
  color: rgba(41, 54, 70, 0.74);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 0.9rem;
  color: var(--surface);
  background: var(--navy);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
}

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

.copy-email {
  margin-left: 0.45rem;
  padding: 0.2rem 0;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.copy-status {
  min-height: 1.2rem;
  margin: 0.8rem 0 0;
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .home-intro {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    padding-block: 4.5rem;
  }

  .home-intro h1 { font-size: 5.25rem; }
  .intro-visual { width: 18rem; }
  .visual-core { width: 10rem; }
  .visual-core span { font-size: 3rem; }
  .visual-chip { width: 2.9rem; }
}

@media (max-width: 900px) {
  :root { --gutter: 2rem; }
  .home-page .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-hero { grid-template-columns: minmax(0, 1fr) 14rem; gap: 2rem; }
  .module-hero h1 { font-size: 3.8rem; }
  .library-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.15rem; }
  .header-note { display: none; }
  .home-header, .module-header { min-height: 4.5rem; }
  .home-intro { display: flex; min-height: auto; flex-direction: column; align-items: stretch; gap: 2.8rem; padding: 3.4rem 0 3rem; }
  .home-intro h1 { font-size: 3.65rem; line-height: 0.92; }
  .intro-text { font-size: 0.98rem; line-height: 1.85; }
  .intro-visual { width: min(82vw, 19rem); }
  .visual-core { width: 10.5rem; }
  .visual-caption { right: 0.5rem; }
  .section-kicker span:last-child { display: none; }
  .home-page .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .module-page .module-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .module-tile { min-height: 11.3rem; }
  .tile-art { height: 5.7rem; }
  .module-tile > strong { font-size: 1rem; }
  .module-tile > small { min-height: 2.2rem; padding-right: 0.45rem; font-size: 0.58rem; line-height: 1.55; }
  .tile-arrow { width: 1.5rem; height: 1.5rem; font-size: 0.68rem; }
  .art-career::before,
  .art-investing::before { inset: 0.75rem; }
  .art-career::after { top: 1.05rem; left: 1rem; width: 1.3rem; box-shadow: 1.55rem 0 var(--surface), 3.1rem 0 var(--surface); }
  .art-career i,
  .art-investing i { bottom: 0.9rem; width: 0.72rem; }
  .art-career i:nth-child(1),
  .art-investing i:nth-child(1) { height: 0.85rem; }
  .art-career i:nth-child(2),
  .art-investing i:nth-child(2) { height: 1.45rem; }
  .art-career i:nth-child(3),
  .art-investing i:nth-child(3) { height: 2.05rem; }
  .art-career b,
  .art-investing b { top: 0.85rem; right: 0.95rem; }
  .art-thoughts { padding: 1.2rem 1rem; }
  .art-thoughts::before { top: 0.9rem; right: 0.85rem; }
  .art-thoughts::after { top: 0.8rem; left: 0.95rem; }
  .art-thoughts b { width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
  .art-thoughts i { width: 3.3rem; margin-top: 0.4rem; }
  .art-thoughts i:last-child { width: 2.2rem; }
  .art-library { padding-bottom: 0.9rem; }
  .art-library b { width: 1.05rem; }
  .art-library b:nth-child(1) { height: 2.7rem; }
  .art-library b:nth-child(2) { height: 2.1rem; }
  .art-library b:nth-child(3) { height: 3.1rem; }
  .art-library b:nth-child(4) { height: 2.4rem; }
  .art-travel::before { width: 5.1rem; height: 5.1rem; }
  .art-travel::after { width: 3.2rem; height: 3.2rem; }
  .art-contact::before { width: 4.5rem; height: 2.8rem; }
  .art-contact::after { width: 2.6rem; height: 2.6rem; }
  .art-contact b { font-size: 1.2rem; }
  .module-hero { display: block; padding: 3.5rem 0 3rem; }
  .module-hero h1 { font-size: 3rem; }
  .module-aside-note { max-width: 18rem; margin: 2rem 0 0 auto; }
  .module-section h2 { font-size: 2.1rem; }
  .timeline-row { grid-template-columns: 1fr; gap: 0.45rem; }
  .module-callout { display: block; }
  .module-callout .inline-link { display: inline-block; margin-top: 0.8rem; }
  .travel-layout { display: block; }
  .travel-detail { margin-top: 1rem; }
  .media-summary { grid-template-columns: 5.4rem minmax(0, 1fr); min-height: 9rem; }
  .media-cover { min-height: 7.4rem; }
  .home-footnote,
  .module-footer { display: block; line-height: 2; }
  .home-footnote span + span,
  .module-footer span + span { display: block; }
  .copy-email { display: block; margin: 0.7rem 0 0; }
}

@media (max-width: 380px) {
  .home-intro h1 { font-size: 3.05rem; }
  .module-hero h1 { font-size: 2.65rem; }
  .intro-visual { width: min(90vw, 17.5rem); }
  .visual-core { width: 9.5rem; }
  .visual-chip { width: 2.65rem; }
  .module-back { padding-inline: 0.65rem; }
}

@media (max-width: 330px) {
  .home-page .module-grid { grid-template-columns: 1fr; }
}

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

/* Depth direction: deep teal surfaces, luminous accents and tactile controls. */
:root {
  --canvas: #071d25;
  --surface: #102f38;
  --surface-soft: #0d2831;
  --ink: #edf9f5;
  --muted: #9dbab7;
  --line: rgba(201, 240, 229, 0.16);
  --orange: #ffb45e;
  --orange-deep: #ff8b4a;
  --sky: #72c9e8;
  --lime: #b9e86f;
  --violet: #b9a7ff;
  --yellow: #ffd36f;
  --mint: #6fe5c4;
  --green: #21c997;
  --navy: #071d25;
  --shadow-sm: 0 14px 34px rgba(1, 10, 14, 0.28), inset 0 1px 0 rgba(228, 255, 247, 0.08);
  --shadow-md: 0 28px 74px rgba(1, 10, 14, 0.42), inset 0 1px 0 rgba(228, 255, 247, 0.1);
}

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

body {
  position: relative;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: 0.18;
  background-image: linear-gradient(rgba(111, 229, 196, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 229, 196, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

::selection {
  color: var(--navy);
  background: var(--mint);
}

.site-shell {
  position: relative;
  z-index: 1;
}

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

.skip-link {
  color: var(--navy);
  background: var(--mint);
  box-shadow: var(--shadow-sm);
}

.home-header,
.module-header {
  background: rgba(7, 29, 37, 0.84);
  border-bottom-color: rgba(201, 240, 229, 0.14);
  box-shadow: 0 12px 28px rgba(1, 10, 14, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  color: var(--navy);
  background: linear-gradient(145deg, #a5f7dc 0%, #36d6a7 58%, #149978 100%);
  border: 1px solid rgba(224, 255, 246, 0.58);
  border-radius: 13px;
  box-shadow: 0 9px 18px rgba(17, 201, 151, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: none;
}

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

.eyebrow-dot {
  background: var(--mint);
  box-shadow: 0 0 0 0.28rem rgba(111, 229, 196, 0.14), 0 0 18px rgba(111, 229, 196, 0.7);
}

.home-intro {
  position: relative;
  padding-top: 5.5rem;
}

.home-intro h1 {
  color: #f1fffb;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.title-dot {
  color: var(--mint);
  text-shadow: 0 0 22px rgba(111, 229, 196, 0.55);
}

.intro-text {
  color: #c7dfda;
}

.intro-visual {
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.3));
}

.visual-orbit {
  border-color: rgba(111, 229, 196, 0.38);
  box-shadow: 0 0 20px rgba(111, 229, 196, 0.08);
}

.visual-core {
  color: #f5fffc;
  background: linear-gradient(145deg, #2ad6a6 0%, #0f8167 48%, #075340 100%);
  border-color: #113944;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42), inset 0 2px 0 rgba(229, 255, 246, 0.52), inset 0 -12px 24px rgba(2, 36, 31, 0.34);
}

.visual-core::before {
  background: linear-gradient(90deg, #d9fff3, #79edca);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.visual-core::after {
  position: absolute;
  right: 16%;
  bottom: 18%;
  width: 2.5rem;
  height: 0.35rem;
  content: '';
  background: rgba(233, 255, 248, 0.54);
  border-radius: 999px;
  transform: rotate(-24deg);
}

.visual-chip {
  color: var(--ink);
  background: linear-gradient(145deg, #1d4b56, #0a2831);
  border-color: rgba(226, 255, 246, 0.42);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.chip-build { color: var(--mint); background: linear-gradient(145deg, #1b5b60, #0b303a); }
.chip-read { color: var(--yellow); background: linear-gradient(145deg, #6b4e2b, #342617); }
.chip-travel { color: var(--lime); background: linear-gradient(145deg, #1f654f, #0b302d); }
.chip-music { color: var(--violet); background: linear-gradient(145deg, #4f416f, #251f3c); }

.visual-caption {
  color: var(--muted);
}

.section-kicker span:first-child,
.module-kicker,
.module-meta span:first-child,
.card-meta span:first-child {
  color: var(--mint);
}

/* Home entry cards become elevated product tiles. */
.module-tile {
  background: linear-gradient(145deg, #173f49 0%, #0b2932 72%, #081f28 100%);
  border-color: rgba(181, 239, 224, 0.2);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(226, 255, 247, 0.11), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
}

.module-tile::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(222, 255, 246, 0.62), transparent);
}

.module-tile:hover,
.module-tile:focus-visible {
  border-color: rgba(111, 229, 196, 0.64);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(226, 255, 247, 0.18);
  transform: translateY(-0.55rem) perspective(900px) rotateX(2deg);
}

.module-tile > strong {
  color: #f0fffb;
}

.module-tile > small {
  color: var(--muted);
}

.tile-index {
  color: var(--mint);
  background: rgba(5, 25, 31, 0.82);
  border: 1px solid rgba(111, 229, 196, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tile-arrow {
  color: var(--navy);
  background: linear-gradient(145deg, #a8f7de, #2ad6a6);
  box-shadow: 0 8px 14px rgba(23, 205, 158, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.module-tile:hover .tile-arrow {
  color: var(--navy);
  background: linear-gradient(145deg, #ffd98c, #ff9d55);
}

.tile-art {
  border: 1px solid rgba(220, 255, 246, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -14px 24px rgba(0, 0, 0, 0.16);
  transform: translateZ(12px);
}

.art-career { background: linear-gradient(145deg, #176375, #0b303b 72%, #09242d); }
.art-thoughts { background: linear-gradient(145deg, #2b4058, #152937 72%, #0d202a); }
.art-investing { background: linear-gradient(145deg, #6d5827, #3a331d 72%, #262718); }
.art-library { background: linear-gradient(145deg, #514b83, #2c2c55 72%, #1a203a); }
.art-travel { background: linear-gradient(145deg, #1b665e, #103b43 72%, #0b2934); }
.art-contact { background: linear-gradient(145deg, #2c5660, #12343f 72%, #0a2530); }

.art-career::before,
.art-investing::before {
  border-color: rgba(219, 255, 247, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.art-career::after {
  background: #b5f8e2;
  box-shadow: 2.45rem 0 #8ce8cd, 4.9rem 0 #5ed5b5;
}

.art-career i,
.art-investing i {
  background: linear-gradient(180deg, #c8ffec, #48c69f);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.24);
}

.art-career b,
.art-investing b {
  color: var(--orange);
  text-shadow: 0 0 12px rgba(255, 180, 94, 0.5);
}

.art-thoughts::before,
.art-thoughts::after {
  background: linear-gradient(145deg, #dffaf2, #8ecabf);
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 #fff;
}

.art-thoughts::after {
  background: linear-gradient(145deg, #fff1d6, #e2a967);
}

.art-thoughts b {
  color: var(--navy);
  background: linear-gradient(145deg, #ffd98c, #ff8d4a);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.art-thoughts i {
  background: #426975;
}

.art-investing i:nth-child(1) { background: #73d5ad; }
.art-investing i:nth-child(2) { background: #43b48d; }
.art-investing i:nth-child(3) { background: #168467; }

.art-library::after {
  background: rgba(228, 255, 247, 0.28);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.art-library b {
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.art-library b:nth-child(1) { background: linear-gradient(180deg, #a7e9fb, #54afd0); }
.art-library b:nth-child(2) { background: linear-gradient(180deg, #ffbd72, #e76843); }
.art-library b:nth-child(3) { background: linear-gradient(180deg, #d9f58b, #8ac64d); }
.art-library b:nth-child(4) { background: linear-gradient(180deg, #effff9, #9fd7c4); }

.art-travel::before,
.art-travel::after {
  border-color: rgba(111, 229, 196, 0.46);
  box-shadow: 0 0 18px rgba(111, 229, 196, 0.12);
}

.art-travel i { background: var(--mint); border-color: #dcfff4; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.28); }
.art-travel i:nth-child(2) { background: var(--orange); }
.art-travel i:nth-child(3) { background: var(--lime); }
.art-travel b { color: var(--orange); text-shadow: 0 0 14px rgba(255, 180, 94, 0.5); }

.art-contact::before {
  background: linear-gradient(145deg, #f2fffb, #8ccfc1);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 #fff;
}

.art-contact::after {
  border-color: var(--orange);
  filter: drop-shadow(0 0 5px rgba(255, 180, 94, 0.48));
}

.art-contact b { color: var(--orange-deep); }
.art-contact i { background: var(--lime); box-shadow: 0 0 12px rgba(185, 232, 111, 0.4); }

.home-footnote,
.module-footer {
  color: #739893;
}

/* Module pages */
.module-back {
  color: var(--ink);
  background: rgba(16, 47, 56, 0.78);
  border-color: rgba(201, 240, 229, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.module-back:hover,
.module-back:focus-visible {
  color: var(--navy);
  background: var(--mint);
  border-color: var(--mint);
}

.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: #effffb;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

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

.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: #dffcf3;
  background: linear-gradient(145deg, #1a5b5d, #0c303a 74%);
  border: 1px solid rgba(111, 229, 196, 0.42);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.module-card {
  background: linear-gradient(145deg, #173e48, #0d2933 75%);
  border-color: rgba(181, 239, 224, 0.18);
  box-shadow: var(--shadow-sm);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.module-card:hover {
  border-color: rgba(111, 229, 196, 0.48);
  box-shadow: var(--shadow-md);
  transform: translateY(-0.25rem);
}

.module-card::after {
  background: linear-gradient(90deg, var(--mint), rgba(111, 229, 196, 0.12));
}

.module-card:nth-child(2)::after { background: linear-gradient(90deg, var(--orange), rgba(255, 180, 94, 0.12)); }
.module-card:nth-child(3)::after { background: linear-gradient(90deg, var(--violet), rgba(185, 167, 255, 0.12)); }
.module-card:nth-child(4)::after { background: linear-gradient(90deg, var(--lime), rgba(185, 232, 111, 0.12)); }

.module-card h3 {
  color: #effffb;
}

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

.module-card-dark {
  color: #effffb;
  background: linear-gradient(145deg, #09242e, #061a22 78%);
  border-color: rgba(111, 229, 196, 0.3);
}

.module-card-dark p {
  color: #a9c8c3;
}

.module-card-dark::after {
  background: linear-gradient(90deg, var(--orange), rgba(255, 180, 94, 0.14));
}

.timeline-page {
  border-top-color: var(--line);
}

.timeline-row {
  border-bottom-color: var(--line);
}

.timeline-row time,
.module-meta span:first-child,
.card-meta span:first-child {
  color: var(--mint);
}

.module-callout {
  color: #eafff8;
  background: linear-gradient(145deg, #164e51, #0b2b34);
  border-left-color: var(--mint);
  box-shadow: var(--shadow-sm);
}

.module-callout .inline-link,
.inline-link {
  color: var(--mint);
  border-color: var(--mint);
}

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

.disclaimer {
  color: #739893;
}

/* Library surfaces */
.library-filter {
  color: var(--muted);
  background: #102f38;
  border-color: rgba(181, 239, 224, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.library-filter span {
  color: var(--mint);
}

.library-filter:hover,
.library-filter:focus-visible,
.library-filter.is-active {
  color: var(--navy);
  background: var(--mint);
  border-color: var(--mint);
}

.library-filter.is-active span {
  color: var(--navy);
}

.media-card {
  background: linear-gradient(145deg, #173f49, #0d2933 78%);
  border-color: rgba(181, 239, 224, 0.18);
  box-shadow: var(--shadow-sm);
}

.media-card[open] {
  box-shadow: var(--shadow-md);
}

.media-summary::after {
  color: var(--mint);
}

.media-cover {
  color: var(--navy);
  background: linear-gradient(145deg, #9cecff, #3ca9c7 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 10px 18px rgba(0, 0, 0, 0.22);
}

.media-card-film .media-cover { background: linear-gradient(145deg, #ffc47e, #e86d43 72%); }
.media-card-music .media-cover { background: linear-gradient(145deg, #d4c7ff, #8175c8 72%); }
.media-card-game .media-cover { background: linear-gradient(145deg, #e3f994, #88bb4f 72%); }
.media-heading .card-meta { color: var(--muted); }
.media-heading h3 { color: #effffb; }
.media-expanded { background: rgba(5, 24, 31, 0.76); border-top-color: var(--line); }
.media-facts { color: var(--mint); }
.media-expanded > p { color: var(--muted); }
.media-activity-label { color: #739893; }
.media-heat i { background: #173e48; border: 1px solid rgba(181, 239, 224, 0.1); }
.media-heat i[data-level='1'] { background: #27614f; }
.media-heat i[data-level='2'] { background: #2d9472; }
.media-heat i[data-level='3'] { background: #36c696; }
.media-heat i[data-level='4'] { background: #8af0cf; }

/* Real map */
.map-panel,
.travel-detail {
  border-color: rgba(181, 239, 224, 0.2);
  box-shadow: var(--shadow-md);
}

.map-panel {
  background: linear-gradient(145deg, #123842, #0a252e 78%);
}

.travel-detail {
  color: #eafff8;
  background: linear-gradient(145deg, #164f50, #0b2b35 78%);
  border: 1px solid rgba(111, 229, 196, 0.35);
}

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

.sample-badge {
  color: var(--navy);
  background: var(--orange);
  box-shadow: 0 6px 14px rgba(255, 180, 94, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.real-map {
  position: relative;
  height: clamp(22rem, 42vw, 31rem);
  overflow: hidden;
  border: 1px solid rgba(181, 239, 224, 0.2);
  border-radius: 8px;
  background: #0a252e;
  box-shadow: inset 0 1px 0 rgba(228, 255, 247, 0.16), inset 0 -18px 34px rgba(0, 0, 0, 0.22);
}

.real-map .leaflet-container {
  width: 100%;
  height: 100%;
  color: #dffbf3;
  background: #0a252e;
  font-family: var(--sans);
}

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

.real-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(181, 239, 224, 0.28) !important;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.real-map .leaflet-control-zoom a {
  width: 2rem;
  height: 2rem;
  color: var(--mint);
  background: rgba(7, 29, 37, 0.9);
  border-bottom-color: rgba(181, 239, 224, 0.18);
  line-height: 2rem;
}

.real-map .leaflet-control-zoom a:hover {
  color: var(--navy);
  background: var(--mint);
}

.real-map .leaflet-control-attribution {
  color: #a5c0bc;
  background: rgba(7, 29, 37, 0.78);
}

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

.real-map .leaflet-tooltip {
  padding: 0.35rem 0.55rem;
  color: #eafff8;
  background: #071d25;
  border: 1px solid rgba(111, 229, 196, 0.42);
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.real-map .leaflet-tooltip-top::before {
  border-top-color: #071d25;
}

.map-loading,
.map-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.map-loading::before {
  width: 2rem;
  height: 2rem;
  content: '';
  border: 2px solid rgba(111, 229, 196, 0.22);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: map-spin 900ms linear infinite;
}

@keyframes map-spin {
  to { transform: rotate(360deg); }
}

.map-fallback strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.map-fallback > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 24rem;
}

.map-fallback button {
  padding: 0.38rem 0.62rem;
  color: var(--navy);
  background: var(--mint);
  border: 0;
  border-radius: 999px;
  font-size: 0.7rem;
}

.panel-note {
  color: #739893;
}

.travel-detail > p,
.travel-stats span {
  color: #9cc2bc;
}

.travel-stats {
  border-color: rgba(181, 239, 224, 0.2);
}

.category-list i {
  background: rgba(181, 239, 224, 0.16);
}

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

/* Contact */
.contact-card {
  background: linear-gradient(145deg, #173f49, #0d2933 76%);
  border-color: rgba(181, 239, 224, 0.18);
  box-shadow: var(--shadow-md);
}

.contact-card:nth-child(2) {
  color: var(--navy);
  background: linear-gradient(145deg, #ffc77a, #dc7a48 76%);
  border-color: rgba(255, 213, 143, 0.44);
}

.contact-card:nth-child(2) h2,
.contact-card:nth-child(2) p {
  color: var(--navy);
  text-shadow: none;
}

.contact-card h2 {
  color: #effffb;
}

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

.contact-card:nth-child(2) p {
  color: rgba(7, 29, 37, 0.76);
}

.contact-email {
  color: var(--navy);
  background: linear-gradient(145deg, #b5f8e2, #2ad6a6);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.contact-email:hover {
  color: var(--navy);
  background: linear-gradient(145deg, #ffd98c, #ff9d55);
}

.copy-email {
  color: var(--mint);
  border-color: var(--mint);
}

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

.link-list a {
  color: var(--mint);
  border-color: var(--mint);
}

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

[data-reveal] {
  animation: none;
}

@media (max-width: 640px) {
  .home-intro {
    padding-top: 4rem;
  }

  .real-map {
    height: 24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-loading::before {
    animation: none;
  }
}
