/* =====================
   Reset
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =====================
   Tokens
   ===================== */
:root {
  --bg:            #16181d;
  --bg-raise:      #1e212a;
  --border:        #272b34;
  --border-mid:    #363c47;
  --accent:        #dcb054;
  --text-primary:  #f2f3f5;
  --text-body:     #abb0ba;
  --text-dim:      #abb0ba;
  --text-dimmer:   #abb0ba;

  --serif: 'DM Serif Display', Georgia, serif;
  --mono:  'DM Mono', 'Courier New', monospace;
  --sans:  'DM Sans', system-ui, sans-serif;

  --max: 1100px;
  --px:  2.5rem;
}

/* =====================
   Base
   ===================== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  counter-reset: section;
  overflow-x: hidden;
}

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

strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* =====================
   Nav
   ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem var(--px) 5rem;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  white-space: nowrap;
}

/* Rotating roles (typewriter) */
.hero-roles {
  display: flex;
  align-items: center;
  height: 2em;
  line-height: 1;
  overflow: hidden;
  margin-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.roles-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--accent);
  animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.hero-sub {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 3rem;
}

.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-location {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.hero-cta:hover {
  opacity: 0.65;
}

/* =====================
   Floating mascot greeting
   ===================== */
.hero-mascot {
  position: absolute;
  top: 46%;
  left: 77%;
  transform: translate(-50%, -50%);
  width: clamp(140px, 10.5vw, 196px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
  pointer-events: none;
  animation: hero-mascot-fly 5s ease-in-out infinite;
}

/* Gentle in-place float (anchored by his own center) */
@keyframes hero-mascot-fly {
  0%   { transform: translate(-50%, -50%); }
  25%  { transform: translate(calc(-50% + 8px),  calc(-50% - 14px)); }
  50%  { transform: translate(calc(-50% + 14px), calc(-50% + 6px)); }
  75%  { transform: translate(calc(-50% - 8px),  calc(-50% + 14px)); }
  100% { transform: translate(-50%, -50%); }
}

/* Subtle drift for the small mobile mascot (won't reach the text) */
@keyframes hero-mascot-fly-sm {
  0%   { transform: translate(-50%, -50%); }
  33%  { transform: translate(calc(-50% + 5px), calc(-50% - 8px)); }
  66%  { transform: translate(calc(-50% - 5px), calc(-50% + 6px)); }
  100% { transform: translate(-50%, -50%); }
}

.hero-mascot-craft {
  position: relative;
  width: 100%;
  animation: mascot-bank 6s ease-in-out infinite;
}

/* Soft wobble */
@keyframes mascot-bank {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

.hero-mascot-img {
  width: 100%;
  height: auto;             /* keep full aspect ratio — never cropped */
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.4));
  animation: mascot-breathe 6s ease-in-out infinite;
}

/* Subtle "breathing" scale for a floating, alive feel */
@keyframes mascot-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

.hero-mascot-bubble {
  position: relative;
  max-width: 210px;
  padding: 0.8rem 1.1rem;
  background: #eef1f5;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: #232830;
  text-align: center;
  transition: opacity 0.25s ease;
}

.bubble-short {
  display: none;
}

.hero-mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);
  background: #eef1f5;
}

/* Hide the mascot where the hero is too tight to fit him beside the text */
@media (max-width: 999px) {
  .hero-mascot {
    display: none;
  }
}


/* =====================
   Stat Strip
   ===================== */
.stat-strip {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.stat {
  padding: 2rem var(--px);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat:last-child {
  border-right: none;
}

.stat:hover {
  background: var(--bg-raise);
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-lbl {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* =====================
   Sections
   ===================== */
.section {
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 4rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0 3rem;
  padding: 3.75rem 0;
}

.col-label {
  padding-top: 0.35rem;
}

.label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: sticky;
  top: 5rem;
}

/* Numbered editorial index (01 / About) */
.label::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: block;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

/* Content column */
.col-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.col-body p {
  font-size: 0.975rem;
  color: var(--text-body);
  line-height: 1.85;
}

.col-body a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-mid);
  transition: border-color 0.2s, color 0.2s;
}

.col-body a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Inline text links: gold + underlined, like the hero CTA */
.col-body p a,
.col-body li a {
  color: var(--accent);
  border-bottom-color: var(--accent);
  transition: opacity 0.2s;
}

.col-body p a:hover,
.col-body li a:hover {
  opacity: 0.65;
}

/* =====================
   At a glance
   ===================== */
.glance {
  margin-top: 0;
  padding-top: 0;
}

.glance-label {
  font-family: var(--mono) !important;
  font-size: 0.62rem !important;
  color: var(--text-dim) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  margin-bottom: 1rem !important;
}

.glance ul,
.invest-focus ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.glance li,
.invest-focus li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-body);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.glance li::before,
.invest-focus li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =====================
   Recognition / honor card
   ===================== */
.honor {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.honor-card {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-raise);
  border: 1px solid var(--border);
}

.col-body a.honor-card {
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.col-body a.honor-card:hover {
  color: inherit;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.honor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.honor-title {
  font-family: var(--serif) !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
  line-height: 1.2 !important;
  margin-bottom: 0.3rem !important;
}

.honor-issuer {
  font-family: var(--mono) !important;
  font-size: 0.62rem !important;
  color: var(--text-dim) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.honor-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.honor-desc {
  font-size: 0.9rem !important;
  color: var(--text-body) !important;
  line-height: 1.8 !important;
}

.honor-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.honor-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.honor-link {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* =====================
   Experience
   ===================== */
.exp-block {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.exp-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exp-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.exp-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent) !important;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--accent) !important;
  padding-bottom: 1px;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.exp-link:hover {
  opacity: 0.65;
}

.exp-video-title {
  font-family: var(--mono) !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  color: var(--text-dim) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exp-video {
  width: 100%;
  border: 1px solid var(--border);
  display: block;
}

.exp-company {
  font-family: var(--mono) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem !important;
}

.exp-role {
  font-family: var(--serif) !important;
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
  line-height: 1.2 !important;
}

.exp-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 0.2rem;
  flex-shrink: 0;
}

.exp-desc {
  font-size: 0.95rem !important;
  color: var(--text-body) !important;
  line-height: 1.8 !important;
}

.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.exp-list li {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-body);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.exp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =====================
   Investing
   ===================== */
.invest-focus {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.invest-cta {
  font-family: var(--mono) !important;
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
  margin-top: 0.25rem !important;
}

.invest-cta a {
  color: var(--accent) !important;
  border-bottom: 1px solid rgba(212,168,71,0.3) !important;
}

.invest-cta a:hover {
  border-color: var(--accent) !important;
}

.invest-stats {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  gap: 3rem;
  border-top: 1px solid var(--border);
}

.invest-stats .port-stat-num {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Tighten the empty space beneath the investing stats (desktop + mobile) */
#investing .section-grid {
  padding-bottom: 1.75rem;
}

/* =====================
   Writing / post card
   ===================== */
.col-body a.post-card {
  display: block;
  padding: 2.75rem 2.75rem;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.col-body a.post-card:hover {
  color: inherit;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-quote {
  font-family: var(--serif) !important;
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
  line-height: 1.4 !important;
  margin-bottom: 2rem !important;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.post-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-body);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.post-cta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =====================
   Portfolio
   ===================== */
.port-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.port-card {
  background: var(--bg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
}

.port-card:hover {
  background: var(--bg-raise);
}


.port-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.port-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.port-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.port-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.port-logo--round {
  border-radius: 50%;
  overflow: hidden;
}

.port-logo--round img {
  object-fit: cover;
}

.port-logo--stealth {
  background: var(--border-mid);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.port-logo--stealth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    var(--border) 4px,
    var(--border) 5px
  );
}

.port-name {
  font-family: var(--serif) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
  line-height: 1.2 !important;
  margin-bottom: 0.2rem !important;
}

.port-role {
  font-family: var(--mono) !important;
  font-size: 0.62rem !important;
  color: var(--accent) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem !important;
}

.port-years {
  font-family: var(--mono) !important;
  font-size: 0.62rem !important;
  color: var(--text-dim) !important;
  letter-spacing: 0.08em;
}

.port-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.port-tag--ended {
  border-color: var(--border-mid);
  color: var(--text-dim);
}

.port-tag--stealth {
  border-color: var(--border-mid);
  color: var(--text-dim);
  letter-spacing: 0.18em;
}

.port-desc {
  font-size: 0.875rem !important;
  color: var(--text-body) !important;
  line-height: 1.8 !important;
}

.port-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.port-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.port-stat-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.port-stat-lbl {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.port-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-mid) !important;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
  align-self: flex-start;
}

.port-link:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* =====================
   Footer
   ===================== */
.footer {
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 0.65;
}

/* =====================
   Contact popup
   ===================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.contact-modal.open {
  pointer-events: auto;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.6s ease, backdrop-filter 0.6s ease, -webkit-backdrop-filter 0.6s ease;
}

.contact-modal.open .contact-backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.contact-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--bg-raise);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal.open .contact-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* cute chick mascot */
.contact-chick {
  position: absolute;
  top: -44px;
  left: -22px;
  width: 72px;
  height: 72px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.2) rotate(-35deg);
  transform-origin: bottom center;
  transition: opacity 0.4s ease 0.18s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s;
}

.contact-modal.open .contact-chick {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.chick-inner {
  width: 100%;
  height: 100%;
  animation: chick-hover 4s ease-in-out infinite;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.35));
}

.chick-inner svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes chick-hover {
  0%   { transform: translate(0, 0)      rotate(-7deg); }
  25%  { transform: translate(-7px, 6px) rotate(5deg); }
  50%  { transform: translate(3px, 11px) rotate(-4deg); }
  75%  { transform: translate(9px, 5px)  rotate(7deg); }
  100% { transform: translate(0, 0)      rotate(-7deg); }
}

.contact-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.contact-close:hover {
  color: var(--text-primary);
}

.contact-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--mono);
  color: var(--text-body);
  transition: border-color 0.2s, background 0.2s;
}

.contact-row:hover {
  border-color: var(--accent);
  background: var(--bg-raise);
}

.contact-row-label {
  flex-shrink: 0;
  width: 62px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.contact-row-val {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-row-action {
  flex-shrink: 0;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* =====================
   Loader
   ===================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: none;                /* shown only when JS is present */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: opacity 0.4s ease;
}

.js #loader {
  display: flex;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-orbit {
  width: 90px;
  height: 90px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  position: relative;
  animation: orbit-spin 1.4s linear infinite;
}

.loader-orbit-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.loader-pct {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* =====================
   Audio control
   ===================== */
.audio-control {
  position: fixed;
  bottom: 0.9rem;
  right: 1.25rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.audio-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 2px;
  background: var(--border-mid);
  outline: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.audio-control:hover .volume-slider,
.audio-control:focus-within .volume-slider {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(212,168,71,0.4);
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(212,168,71,0.4);
}

.audio-btn {
  background: var(--bg);
  border: 1px solid var(--text-body);
  color: var(--text-body);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.audio-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.audio-btn.playing {
  color: var(--accent);
  border-color: var(--accent);
}

.audio-btn.nudge {
  color: var(--accent);
  border-color: var(--accent);
  animation: audio-nudge 1.7s ease-in-out infinite;
}

@keyframes audio-nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,176,84,0); }
  50%      { box-shadow: 0 0 0 5px rgba(220,176,84,0.13); }
}

/* Audio hint popup */
.audio-hint {
  position: relative;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.audio-hint.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hint-bubble {
  position: relative;
  max-width: 215px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-left: 50px;             /* room for the mascot peeking at the left */
  padding: 0.7rem 0.85rem;
  background: var(--bg-raise);
  border: 1px solid var(--border-mid);
  border-radius: 13px;
  box-shadow: 0 12px 38px rgba(0,0,0,0.45);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--text-body);
  will-change: transform;
  animation: hint-float 4.5s ease-in-out infinite;
}

@keyframes hint-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.hint-bubble strong {
  color: var(--accent);
  font-weight: 500;
}

/* tail pointing down toward the audio button */
.hint-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 11px;
  height: 11px;
  background: var(--bg-raise);
  border-right: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
  transform: rotate(45deg);
}

/* cute mascot holding up the bubble */
.hint-mascot {
  position: absolute;
  left: -4px;
  bottom: -16px;
  width: 58px;
  height: 58px;
  z-index: 2;
  pointer-events: none;
  transform-origin: bottom center;
  animation: mascot-bob 3.6s ease-in-out infinite;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,0.38));
}

.hint-mascot svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-5px) rotate(4deg); }
}

.audio-hint-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.audio-hint-close:hover {
  color: var(--text-primary);
}

/* =====================
   Reveal animation
   ===================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 780px) {
  :root {
    --px: 1.25rem;
  }

  .hero-content {
    padding: 2.5rem var(--px) 3.25rem;
  }

  /* Smaller so the single-line (nowrap) name still fits small screens */
  .hero-headline {
    font-size: clamp(1.75rem, 8vw, 3.4rem);
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 1.5rem 1.25rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 3rem 0;
  }

  .label {
    position: static;
  }

  .exp-top {
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Remove the audio control entirely on mobile */
  .audio-control {
    display: none;
  }

  /* Small mascot beside the name, with a tiny thought bubble.
     Pinned (no drift) and pushed right so it can't overlap the text. */
  .hero-mascot {
    display: flex;
    top: 16%;
    left: 88%;
    width: 70px;
    animation: hero-mascot-fly-sm 4s ease-in-out infinite;
  }

  .hero-mascot-bubble {
    max-width: 86px;
    padding: 0.45rem 0.6rem;
    font-size: 0.58rem;
    border-radius: 14px;
  }

  .bubble-long  { display: none; }
  .bubble-short { display: inline; }

  /* Center the investing stats and tighten the space beneath them */
  .invest-stats {
    justify-content: center;
  }

  .invest-stats li {
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .nav-links a {
    font-size: 0.62rem;
  }

  .honor-media {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
