/* =========================================================
   ClairVise — styles.css  v4.0
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------------------------------------------------------
   CSS Custom Properties
   --------------------------------------------------------- */
:root {
  --color-carbon:      #12141A;
  --color-midnight:    #0F1419;
  --color-charcoal:    #2F2F3A;
  --color-teal-deep:   #264653;
  --color-teal-vivid:  #2DD4BF;
  --color-slate:       #64748B;
  --color-slate-300:   #94A3B8;
  --color-slate-100:   #F1F5F9;
  --color-ghost-white: #F8FAFC;

  --color-bg:          #F1F5F9;
  --color-surface:     #F8FAFC;
  --color-border:      #E2E8F0;

  --color-success:     #10B981;
  --color-warning:     #F59E0B;
  --color-danger:      #E11D48;

  --font-display:  'DM Sans', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-6: 24px;  --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 150ms; --duration-mid: 300ms; --duration-slow: 600ms;
}

/* ---------------------------------------------------------
   Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-carbon);
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* Justify paragraph text */
p, .section-subheading, .bio-text, .card p, .principle-card__text,
.connect-card p, .disclaimer-box, .footer__disclaimer {
  text-align: justify;
}

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--color-carbon);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.02em; }

.text-slate  { color: var(--color-slate); }
.text-teal   { color: var(--color-teal-deep); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.fw-light    { font-weight: var(--fw-light); }
.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }
.uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--wide {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: var(--space-16) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* ---------------------------------------------------------
   Slash Motif — v4 (prominent, viewport-based)
   --------------------------------------------------------- */
.page-slash-motif {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Forward slash: RIGHT side, tall */
.slash-forward {
  position: absolute;
  right: 6%;
  top: 5vh;
  font-family: var(--font-display);
  font-size: 35vh;
  font-weight: 900;
  color: #94A3B8;
  opacity: 0.528;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transform: rotate(0deg);
  z-index: 0;
}

/* Backward slash: LEFT side, 30% shorter */
.slash-backward {
  position: absolute;
  left: 6%;
  top: -12.5vh;
  font-family: var(--font-display);
  font-size: 24.5vh;
  font-weight: 900;
  color: #64748B;
  opacity: 0.528;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ---------------------------------------------------------
   Navigation — v4 teal background
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-teal-deep);
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(18,20,26,0.15);
  transition: box-shadow var(--duration-mid) var(--ease-out);
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(18,20,26,0.25); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav__logo img {
  height: 43px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: rgba(248,250,252,0.85);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.nav__link:hover { color: var(--color-teal-vivid); }

.nav__link.active {
  color: var(--color-teal-vivid);
  border-bottom-color: var(--color-teal-vivid);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(248,250,252,0.85);
  border-radius: 2px;
  transition: transform var(--duration-mid), opacity var(--duration-mid);
}

.nav__mobile {
  display: none;
  background: var(--color-teal-deep);
  border-top: 1px solid rgba(248,250,252,0.15);
  padding: var(--space-4) 40px;
}

.nav__mobile.open { display: block; }

.nav__mobile .nav__link {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(248,250,252,0.1);
  font-size: 1rem;
}

.nav__mobile .nav__link:last-child { border-bottom: none; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 0.9375rem;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-teal-deep);
  color: var(--color-ghost-white);
}
.btn--primary:hover {
  background: #1e3a46;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38,70,83,0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--color-teal-deep);
  border: 1px solid var(--color-teal-deep);
}
.btn--ghost:hover {
  background: var(--color-teal-deep);
  color: var(--color-ghost-white);
  transform: translateY(-1px);
}

.btn--slate {
  background: transparent;
  color: var(--color-slate);
  border: 1px solid var(--color-border);
}
.btn--slate:hover {
  border-color: var(--color-slate);
  color: var(--color-carbon);
}

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 1px 4px rgba(18,20,26,0.05);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(18,20,26,0.09);
  border-left-color: var(--color-teal-vivid);
}

.card--accent-teal  { border-left: 3px solid var(--color-teal-vivid); }
.card--accent-deep  { border-left: 3px solid var(--color-teal-deep); }
.card--accent-slate { border-left: 3px solid var(--color-slate); }

/* ---------------------------------------------------------
   Tags / Badges
   --------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag--teal-vivid { background: var(--color-teal-vivid); color: var(--color-midnight); }
.tag--teal-deep  { background: var(--color-teal-deep);  color: var(--color-ghost-white); }
.tag--carbon     { background: var(--color-carbon);     color: var(--color-ghost-white); }
.tag--slate      { background: var(--color-slate);      color: var(--color-ghost-white); }
.tag--slate-300  { background: var(--color-slate-300);  color: var(--color-ghost-white); }

.tag--outline {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-carbon);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 0.8125rem;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.tag--outline:hover {
  background: var(--color-teal-deep);
  border-color: var(--color-teal-deep);
  color: var(--color-ghost-white);
}
.tag--outline:hover img { filter: brightness(0) invert(1); }

/* ---------------------------------------------------------
   Section Headings
   --------------------------------------------------------- */
.section-label {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal-deep);
  margin-bottom: var(--space-3);
  display: block;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-bold);
  color: var(--color-carbon);
  margin-bottom: var(--space-3);
}

.section-subheading {
  font-size: 1.0625rem;
  color: var(--color-slate);
  max-width: 560px;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   Disclaimer Boxes — v4 dual-accent
   --------------------------------------------------------- */
.disclaimer-box {
  background: var(--color-surface);
  border-left: 3px solid var(--color-slate);
  border-right: 3px solid var(--color-slate);
  border-top: none;
  border-bottom: none;
  border-radius: 0;
  padding: 20px 32px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--color-slate);
  line-height: 1.65;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Filter Bar
   --------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  justify-content: center;
}

.filter-label {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate);
  margin-bottom: var(--space-2);
  display: block;
  text-align: center;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-carbon);
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--color-teal-deep);
  color: var(--color-teal-deep);
}

.filter-btn.active {
  background: var(--active-filter-color, var(--color-teal-deep));
  border-color: var(--active-filter-color, var(--color-teal-deep));
  color: var(--color-ghost-white);
}

/* ---------------------------------------------------------
   Graph Container — v4 (800px)
   --------------------------------------------------------- */
.graph-container {
  background:
    radial-gradient(circle at 25% 20%, rgba(100, 116, 139, 0.10), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(42, 143, 171, 0.07), transparent 48%),
    radial-gradient(rgba(100, 116, 139, 0.10) 1px, transparent 1px),
    var(--color-surface);
  background-size: auto, auto, 20px 20px, auto;
  background-position: 0 0, 0 0, 0 0, 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(248,250,252,0.55), 0 2px 12px rgba(18,20,26,0.06);
  overflow: hidden;
  position: relative;
  min-height: 800px;
}

svg.graph {
  background: transparent;
  display: block;
  width: 100%;
}

.graph-tooltip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(18,20,26,0.10);
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-carbon);
  padding: 10px 14px;
  pointer-events: none;
  position: absolute;
  z-index: 50;
  max-width: 220px;
}

/* ---------------------------------------------------------
   Slide-in Panel
   --------------------------------------------------------- */
.detail-panel {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100%;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: -4px 0 24px rgba(18,20,26,0.08);
  z-index: 200;
  overflow-y: auto;
  transition: right var(--duration-mid) var(--ease-out);
  padding: var(--space-8) var(--space-6);
}

.detail-panel.open { right: 0; }

.detail-panel__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-slate);
  font-size: 1.1rem;
  transition: background var(--duration-fast);
}
.detail-panel__close:hover { background: var(--color-border); color: var(--color-carbon); }

.detail-panel__company {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: var(--color-carbon);
  margin-bottom: var(--space-3);
  padding-right: var(--space-8);
  line-height: 1.3;
}

.detail-panel__meta { margin-bottom: var(--space-4); }
.detail-panel__meta p { font-size: 0.875rem; color: var(--color-slate); margin-bottom: var(--space-1); }
.detail-panel__meta strong { color: var(--color-carbon); }
.detail-panel__value { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500; color: var(--color-carbon); }

.detail-panel__roles { margin-top: var(--space-4); }
.detail-panel__roles h4 { font-family: var(--font-display); font-size: 0.7rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-slate); margin-bottom: var(--space-2); }
.detail-panel__roles li { font-size: 0.875rem; color: var(--color-carbon); padding: var(--space-1) 0; border-bottom: 1px solid var(--color-border); }
.detail-panel__roles li:last-child { border-bottom: none; }

.detail-panel__highlight {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border-left: 3px solid var(--color-teal-vivid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--color-carbon);
  font-style: italic;
}

/* ---------------------------------------------------------
   Footer — v4 centered, stacked logo
   --------------------------------------------------------- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

/* Band 1: Logo */
.footer__logo-band {
  padding: var(--space-8) 0 var(--space-4);
  display: flex;
  justify-content: center;
}

.footer__logo img { height: 120px; width: auto; }

/* Band 2: Disclaimer */
.footer__disclaimer {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 0.8125rem;
  color: var(--color-slate);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* Band 3: Social Icons */
.footer__social {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  justify-content: center;
}

.footer__social-link {
  color: var(--color-carbon);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid transparent;
}

.footer__social-link:hover {
  color: var(--color-teal-deep);
  border-color: var(--color-border);
  background: var(--color-bg);
  transform: translateY(-1px);
}
.footer__social-link svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Band 4: Legal Links */
.footer__legal {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
  justify-content: center;
}

.footer__legal a {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 0.75rem;
  color: var(--color-slate);
  transition: color var(--duration-fast);
}
.footer__legal a:hover { color: var(--color-teal-deep); }

/* Band 5: Copyright + Booking */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-4) 0 var(--space-8);
  border-top: 1px solid var(--color-border);
}

.footer__copy {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 0.75rem;
  color: var(--color-slate);
}

.footer__booking {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 0.75rem;
  color: var(--color-slate);
  transition: opacity var(--duration-fast);
}
.footer__booking:hover { opacity: 0.75; }
.footer__booking img { display: block; }

/* ---------------------------------------------------------
   Icon polish (global)
   --------------------------------------------------------- */
img[src*="assets/icons/"] {
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.connect-card__icon img,
.connect-card__icon svg {
  width: 26px;
  height: 26px;
}

.tx-stat__icon {
  width: 30px;
  height: 30px;
}

.philosophy-card__icon-panel img {
  width: 28px;
  height: 28px;
}

/* ---------------------------------------------------------
   Animations — v4 (expanded)
   --------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}
.animate-slide-left  { animation: slideInLeft  500ms var(--ease-out) both; }
.animate-slide-right { animation: slideInRight 500ms var(--ease-out) both; }
.animate-scale       { animation: scaleIn      500ms var(--ease-out) both; }
.animate-up          { animation: fadeUp       500ms var(--ease-out) both; }

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* AI Stack pulse */
@keyframes stagePulse {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}

/* AI Stack arrow travel */
@keyframes arrowTravel {
  to { stroke-dashoffset: -30; }
}

/* Philosophy icon enter */
@keyframes iconEnter {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

.philosophy-icon { opacity: 0; transform: scale(0); }
.philosophy-icon.visible { animation: iconEnter 300ms var(--ease-out) both; }

/* Count-up */
.countup-num { display: inline-block; }

/* ---------------------------------------------------------
   HOME — Hero v4 (two-column layout)
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-20) 0 var(--space-16);
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__left { display: flex; flex-direction: column; }

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-slate);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: var(--space-8);
  text-align: left;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

/* Identity block v4: photo LEFT of name */
.hero__identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}

.hero__portrait-link {
  display: block;
  flex-shrink: 0;
}

.hero__portrait {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--color-border);
}

.hero__cred-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__cred-name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.8125rem;
  color: var(--color-carbon);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__cred-role {
  font-size: 0.8125rem;
  color: var(--color-slate);
}

.hero__about-link {
  font-size: 0.8125rem;
  color: var(--color-teal-deep);
  font-weight: var(--fw-medium);
  margin-top: 4px;
  transition: color var(--duration-fast);
}
.hero__about-link:hover { color: var(--color-teal-vivid); }

/* Quote block — right side */
.hero__quote {
  position: relative;
  padding-left: 32px;
}

.hero__quote-slash {
  position: absolute;
  left: -16px;
  top: -20px;
  font-size: 120px;
  font-weight: 900;
  color: var(--color-teal-deep);
  opacity: 0.15;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.hero__quote-text {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--color-carbon);
  line-height: 1.3;
  font-style: normal;
  margin-bottom: 12px;
  text-align: left;
}

.hero__quote-author {
  font-size: 0.875rem;
  color: var(--color-slate);
  font-style: normal;
  font-weight: var(--fw-regular);
  text-align: left;
}

/* ---------------------------------------------------------
   HOME — Stats Bar
   --------------------------------------------------------- */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.stats-bar__item {
  text-align: center;
  padding: var(--space-4) var(--space-6);
  position: relative;
}

.stats-bar__item + .stats-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border);
}

.stats-bar__number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-teal-deep);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stats-bar__label {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate);
}

/* ---------------------------------------------------------
   HOME — Latest Insights
   --------------------------------------------------------- */
.insights-preview { background: var(--color-bg); }

.insights-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.insight-card { display: flex; flex-direction: column; }
.insight-card__pillar { margin-bottom: var(--space-3); }

.insight-card__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  line-height: 1.35;
}

.insight-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-slate);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-4);
}

.insight-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-slate);
}

.insight-card__read {
  color: var(--color-teal-deep);
  font-weight: var(--fw-medium);
}

/* ---------------------------------------------------------
   HOME — Editorial Pillars (centered 6+4)
   --------------------------------------------------------- */
.pillars-section { background: var(--color-bg); padding-top: 0; }

.pillars-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: var(--space-6) auto 0;
}

.pillar-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--color-carbon);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.pillar-tag img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: filter var(--duration-fast) var(--ease-out);
}

.pillar-tag:hover {
  background: var(--pillar-color, var(--color-teal-deep));
  border-color: var(--pillar-color, var(--color-teal-deep));
  color: var(--color-ghost-white);
}

.pillar-tag:hover img { filter: brightness(0) invert(1); }

/* Insights pillar filter tags */
.pillars-filter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pillar-filter-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--color-carbon);
  transition: all var(--duration-fast) var(--ease-out);
}

.pillar-filter-tag.active {
  background: var(--active-color, var(--color-teal-deep));
  border-color: var(--active-color, var(--color-teal-deep));
  color: #F8FAFC;
}

.pillar-filter-tag img { transition: filter var(--duration-fast); }
.pillar-filter-tag.active img { filter: brightness(0) invert(1); }

/* ---------------------------------------------------------
   ABOUT — Profile
   --------------------------------------------------------- */
.profile-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-12);
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.profile-photo__initials {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 2.5rem;
  color: var(--color-ghost-white);
}

.profile-info__name { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: var(--space-2); }
.profile-info__creds { font-weight: var(--fw-semibold); color: var(--color-teal-deep); margin-bottom: var(--space-1); }
.profile-info__role  { color: var(--color-slate); margin-bottom: var(--space-6); }

/* ---------------------------------------------------------
   ABOUT — Bio two-column layout v4
   --------------------------------------------------------- */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: stretch;
  margin-bottom: 64px;
}

.bio-grid__text {
  align-self: center;
}

.bio-grid__quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-teal-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bio-grid__quote::after {
  content: "/";
  position: absolute;
  right: 24px;
  bottom: -34px;
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-slate);
  opacity: 0.05;
  pointer-events: none;
}

.bio-quote-mark {
  color: var(--color-teal-deep);
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 0.7;
  margin-bottom: var(--space-4);
}

.bio-grid__quote blockquote {
  position: relative;
  z-index: 1;
  color: var(--color-carbon);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  text-align: left;
}

.bio-grid__quote p {
  position: relative;
  z-index: 1;
  margin-top: var(--space-6);
  color: var(--color-slate);
  font-size: 0.9375rem;
  line-height: 1.65;
  text-align: left;
}

/* ---------------------------------------------------------
   ABOUT — Transaction Stats v4 (side by side with timeline)
   --------------------------------------------------------- */
.about-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
  padding: 64px 0;
}

.about-stats,
.about-timeline {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  min-height: 100%;
}

.about-stats .section-heading,
.about-timeline .section-heading {
  margin-bottom: var(--space-3);
}

.about-panel-subtitle {
  color: var(--color-slate);
  margin-bottom: var(--space-6);
}

.stats-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
}

.stat-card-sm {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.stat-card-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(18,20,26,0.08);
}

.stat-card-sm__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-teal-deep);
  line-height: 1;
}

.stat-card-sm__label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  color: var(--color-carbon);
}

.stat-card-sm__sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-slate);
}

/* Keep old tx-stats-grid for fallback */
.tx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.tx-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--tx-color, var(--color-teal-deep));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: 0 1px 4px rgba(18,20,26,0.05);
}

.tx-stat--equity   { --tx-color: #2A8FAB; }
.tx-stat--debt     { --tx-color: #1B3D4F; }
.tx-stat--advisory { --tx-color: #264653; }
.tx-stat--market   { --tx-color: #64748B; }

.tx-stat__icon { width: 32px; height: 32px; margin: 0 auto var(--space-4); }

.tx-stat__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: var(--tx-color, var(--color-teal-deep));
  line-height: 1;
  margin-bottom: var(--space-2);
}

.tx-stat__label { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.875rem; color: var(--color-carbon); margin-bottom: var(--space-1); }
.tx-stat__sub   { font-size: 0.8125rem; color: var(--color-slate); }

/* ---------------------------------------------------------
   ABOUT — Credentials
   --------------------------------------------------------- */
.credential-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  transition: box-shadow var(--duration-fast);
  text-decoration: none;
}

.credential-badge:hover {
  box-shadow: 0 4px 16px rgba(18,20,26,0.09);
  border-color: var(--color-teal-deep);
}

.credential-badge__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.credential-badge__text-badge {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 0.75rem;
  color: #F8FAFC;
  letter-spacing: 0.04em;
}

.credential-badge__name { font-weight: var(--fw-bold); margin-bottom: 3px; font-size: 0.9375rem; }
.credential-badge__org  { font-size: 0.8125rem; color: var(--color-slate); }

/* ---------------------------------------------------------
   ABOUT — Timeline
   --------------------------------------------------------- */
.timeline { position: relative; padding-left: var(--space-8); }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--color-teal-deep);
}

.timeline__item { position: relative; margin-bottom: var(--space-8); }

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 4px);
  top: 6px;
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-teal-vivid);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-teal-deep);
}

.timeline__period {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.75rem;
  color: var(--color-teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.timeline__role    { font-weight: var(--fw-bold); margin-bottom: var(--space-1); }
.timeline__company { color: var(--color-slate); font-size: 0.9375rem; }

/* ---------------------------------------------------------
   WORK — Philosophy cards
   --------------------------------------------------------- */
.philosophy-card {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(18,20,26,0.05);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.philosophy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(18,20,26,0.09);
}

.philosophy-card__icon-panel {
  width: 60px;
  flex-shrink: 0;
  background: var(--color-teal-vivid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-card__body { padding: var(--space-6); flex: 1; }
.philosophy-card__title { font-weight: var(--fw-semibold); color: var(--color-carbon); margin-bottom: var(--space-2); font-size: 1rem; }
.philosophy-card__text  { font-size: 0.875rem; color: var(--color-slate); line-height: 1.6; }

/* ---------------------------------------------------------
   WORK — Table
   --------------------------------------------------------- */
.work-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.work-table th {
  background: var(--color-bg);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.work-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.work-table tr:last-child td { border-bottom: none; }
.work-table tr:hover td { background: var(--color-bg); }

.work-table .value-cell {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-carbon);
  text-align: right;
}

.table-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--color-slate);
  font-weight: var(--fw-medium);
  user-select: none;
}

.table-toggle__icon {
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast);
  font-size: 0.75rem;
}

.table-toggle.open .table-toggle__icon { transform: rotate(180deg); }

/* ---------------------------------------------------------
   INSIGHTS — Publication Graph
   --------------------------------------------------------- */
.pub-graph-container {
  background:
    radial-gradient(circle at 25% 20%, rgba(100, 116, 139, 0.10), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(42, 143, 171, 0.07), transparent 48%),
    radial-gradient(rgba(100, 116, 139, 0.10) 1px, transparent 1px),
    var(--color-surface);
  background-size: auto, auto, 20px 20px, auto;
  background-position: 0 0, 0 0, 0 0, 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(248,250,252,0.55), 0 2px 12px rgba(18,20,26,0.06);
  height: 380px;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.pub-graph-container svg { width: 100%; height: 100%; }

/* Insights article card with left thumbnail strip */
.insights-card-wrap {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(18,20,26,0.05);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.insights-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(18,20,26,0.09);
}

.insights-card-wrap.highlighted { border-left-color: var(--color-teal-vivid); }

.insights-card__strip { width: 24px; flex-shrink: 0; }
.insights-card__body  { flex: 1; padding: var(--space-6); display: flex; flex-direction: column; }

.insights-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.insights-card__title   { font-size: 1.0625rem; font-weight: var(--fw-bold); margin-bottom: var(--space-2); line-height: 1.35; }
.insights-card__excerpt { font-size: 0.875rem; color: var(--color-slate); line-height: 1.6; flex-grow: 1; margin-bottom: var(--space-4); }

.insights-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-slate);
}

.insights-card__read { color: var(--color-teal-deep); font-weight: var(--fw-medium); }

/* ---------------------------------------------------------
   AI LAB — Horizontal Stack v4
   --------------------------------------------------------- */
.ai-stack-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}

.ai-stack {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 760px;
}

/* Stage backgrounds — gradually darker */
.ai-stack__stage:nth-child(1)  { background: #FFFFFF; }
.ai-stack__stage:nth-child(3)  { background: #FAFAFA; }
.ai-stack__stage:nth-child(5)  { background: #F5F5F5; }
.ai-stack__stage:nth-child(7)  { background: #F0F0F0; }
.ai-stack__stage:nth-child(9)  { background: #EBEBEB; }

.ai-stack__stage {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.ai-stack__stage.visible {
  opacity: 0.85;
  transform: translateX(0);
  animation: stagePulse 3s ease-in-out infinite;
}

.ai-stack__stage-label {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-slate);
  margin-bottom: var(--space-3);
}

.ai-stack__stage-tools { display: flex; flex-direction: column; gap: var(--space-2); }

/* All tool labels: carbon color, no teal differentiation */
.ai-stack__tool,
.ai-stack__tool--claude,
.ai-stack__tool--local {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 0.8125rem;
  color: var(--color-carbon) !important;
  border: none !important;
}

.ai-stack__tool img { width: 16px; height: 16px; flex-shrink: 0; }

.ai-stack__arrow {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-stack__arrow svg { width: 32px; height: 16px; overflow: visible; }

.ai-stack__arrow line {
  stroke: var(--color-slate-300);
  stroke-width: 1.5;
  stroke-dasharray: 6 3;
  animation: arrowTravel 1.5s linear infinite;
}

/* ---------------------------------------------------------
   AI LAB — Design Principles
   --------------------------------------------------------- */
.principle-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: 0 1px 4px rgba(18,20,26,0.05);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.principle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(18,20,26,0.09);
}

.principle-card__icon  { width: 32px; height: 32px; margin: 0 auto var(--space-4); }
.principle-card__title { font-weight: var(--fw-semibold); color: var(--color-carbon); margin-bottom: var(--space-2); }
.principle-card__text  { font-size: 0.875rem; color: var(--color-slate); line-height: 1.6; }

/* ---------------------------------------------------------
   AI LAB — Sections
   --------------------------------------------------------- */
.anthropic-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-teal-vivid);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.anthropic-section h2 { margin-bottom: var(--space-4); }
.anthropic-section p  { color: var(--color-slate); line-height: 1.7; margin-bottom: var(--space-4); }
.anthropic-section a  { color: var(--color-teal-deep); font-weight: var(--fw-medium); transition: color var(--duration-fast); }
.anthropic-section a:hover { color: var(--color-teal-vivid); }

.workflow-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-slate);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.workflow-section h2 { margin-bottom: var(--space-4); }
.workflow-section p  { color: var(--color-slate); line-height: 1.7; }

/* ---------------------------------------------------------
   CONNECT
   --------------------------------------------------------- */
.connect-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.connect-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-card h3  { margin-bottom: var(--space-1); }
.connect-card > p { font-size: 0.875rem; color: var(--color-slate); flex-grow: 1; }

.location-note-section {
  padding: 0 0 var(--space-16);
  text-align: center;
}

.location-note {
  position: relative;
  display: inline-block;
  color: var(--color-carbon);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-semibold);
  line-height: 1.45;
  text-align: center;
}

.location-note::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 72px;
  height: 3px;
  background: var(--color-teal-vivid);
  transform: translateX(-50%);
}

.world-map-card {
  position: relative;
  margin-top: var(--space-12);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(18,20,26,0.06);
  overflow: hidden;
}

.world-dot-map {
  display: block;
  width: 100%;
  min-height: 320px;
  background:
    radial-gradient(circle at 20% 15%, rgba(45,212,191,0.08), transparent 26%),
    radial-gradient(circle at 85% 72%, rgba(38,70,83,0.08), transparent 28%),
    var(--color-surface);
}

.world-dot-map__dot {
  transition:
    fill 360ms var(--ease-out),
    opacity 360ms var(--ease-out),
    r 360ms var(--ease-out);
}

.world-dot-map__dot.is-flowing {
  opacity: 0.95;
}

.world-dot-map__dot.is-cyan {
  fill: var(--color-teal-vivid);
}

.world-dot-map__dot.is-locked {
  opacity: 1;
}

/* ---------------------------------------------------------
   Overlay
   --------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,20,26,0.3);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-mid);
}

.overlay.open { opacity: 1; pointer-events: all; }

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.mb-2   { margin-bottom: var(--space-2); }
.mb-4   { margin-bottom: var(--space-4); }
.mb-6   { margin-bottom: var(--space-6); }
.mb-8   { margin-bottom: var(--space-8); }
.mb-12  { margin-bottom: var(--space-12); }
.mt-4   { margin-top: var(--space-4); }
.mt-6   { margin-top: var(--space-6); }
.mt-8   { margin-top: var(--space-8); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------------------------------------------------------
   Responsive — 768px
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .nav__links     { display: none; }
  .nav__hamburger { display: flex; }

  .container, .container--wide, .container--narrow { padding: 0 20px; }

  .hero { padding: var(--space-12) 0; }
  .hero__content { grid-template-columns: 1fr; gap: 40px; }
  .hero__quote   { display: none; }
  .hero__title   { font-size: 2.25rem; }

  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(3)::before { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .tx-stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-portfolio-grid { grid-template-columns: 1fr; }
  .bio-grid        { grid-template-columns: 1fr; }
  .stats-2x2       { grid-template-columns: 1fr 1fr; }

  .profile-section { grid-template-columns: 1fr; text-align: center; }
  .profile-photo   { margin: 0 auto; }

  section { padding: var(--space-12) 0; }

  .detail-panel { width: 100%; right: -100%; }
  .detail-panel.open { right: 0; }

  .insights-preview__header { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: center; }

  .slash-forward  { font-size: 20vh; }
  .slash-backward { font-size: 15vh; }
  .hero__identity { flex-direction: row; }
}

@media (max-width: 480px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
  .btn { padding: 10px 18px; font-size: 0.875rem; }
  .stats-2x2 { grid-template-columns: 1fr 1fr; }
}

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