/* ============================================================
   CUTI — Animated parallax homepage  (Blue · v2)
   ============================================================ */

:root {
  /* cool palette */
  --cream:   oklch(0.97 0.008 235);
  --cream-2: oklch(0.94 0.012 230);
  --cream-3: oklch(0.90 0.018 228);
  --ink:     oklch(0.18 0.03 250);
  --ink-2:   oklch(0.30 0.028 245);
  --muted:   oklch(0.50 0.018 245);
  --line:    oklch(0.86 0.014 235);

  --blue:        oklch(0.55 0.13 245);
  --blue-deep:   oklch(0.40 0.14 250);
  --blue-soft:   oklch(0.78 0.07 235);
  --blue-tint:   oklch(0.88 0.04 235);
  --teal:        oklch(0.55 0.06 200);
  --sand:        oklch(0.75 0.06 70);

  /* legacy aliases used in markup */
  --terracotta:      var(--blue);
  --terracotta-deep: var(--blue-deep);
  --sage:            var(--teal);

  --max: 1180px;
  --gutter: clamp(14px, 2.8vw, 36px);

  --serif: "Lora", "Times New Roman", Times, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 34px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.005em;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}
html { scroll-behavior: smooth; }
body { position: relative; line-height: 1.5; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ------------------------------------------------------------
   Ambient field + grain
   ------------------------------------------------------------ */
.ambient-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.6; will-change: transform; }
.orb-1 { width: 520px; height: 520px; top: -120px; left: -100px; background: oklch(0.78 0.1 240 / .55); }
.orb-2 { width: 380px; height: 380px; top: 30%; right: -120px; background: oklch(0.8 0.08 210 / .45); }
.orb-3 { width: 460px; height: 460px; bottom: 10%; left: -140px; background: oklch(0.6 0.12 260 / .35); }
.orb-4 { width: 320px; height: 320px; top: 65%; right: 20%; background: oklch(0.75 0.07 195 / .3); }
.orb-5 { width: 280px; height: 280px; top: 110%; left: 40%; background: oklch(0.7 0.1 250 / .35); }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
  mix-blend-mode: multiply;
}

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 6px 6px 6px 14px;
  background: oklch(0.97 0.008 235 / .42);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid oklch(0.97 0.008 235 / .35);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 0 0 1px oklch(0.97 0.008 235 / .25) inset,
    0 8px 30px oklch(0.4 0.08 250 / .1),
    0 24px 48px oklch(0.4 0.08 250 / .08);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
}
.nav.scrolled {
  background: oklch(0.97 0.008 235 / .62);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 0 0 1px oklch(0.97 0.008 235 / .3) inset,
    0 14px 40px oklch(0.4 0.08 250 / .18);
}

.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 20px; letter-spacing: 0.02em; line-height: 1; flex-shrink: 0; }
.brand-logo {
  height: 28px; width: 28px;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 1px 2px oklch(0.4 0.08 250 / .2));
}
.brand-large .brand-logo { height: 38px; width: 38px; }
.brand-text { font-style: italic; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--ink-2);
  margin: 0 4px;
  position: relative;
  padding: 4px;
}
.nav-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  width: 0;
  height: calc(100% - 8px);
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 14px oklch(0.18 0.03 250 / .35), inset 0 1px 0 oklch(0.35 0.04 250 / .5);
  transform: translateX(0);
  transition:
    transform .55s cubic-bezier(.34, 1.3, .64, 1),
    width .55s cubic-bezier(.34, 1.3, .64, 1),
    opacity .35s var(--ease);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
.nav-indicator.show { opacity: 1; }

.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  z-index: 1;
  transition: color .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active,
.nav-links a.preview { color: var(--cream); }
.nav-links a::after { display: none; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }

@media (max-width: 820px) {
  .nav { gap: 8px; padding: 5px 5px 5px 12px; }
  .nav-links { display: none; }
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(96px, 11vh, 130px) var(--gutter) 56px;
  display: flex; align-items: center;
  z-index: 5;
  overflow: visible;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Canvas spans the entire hero — explosion overlaps text freely (desktop + mobile) */

/* Drifting butterflies layer (SVG, low-opacity, flapping) */
.butterflies { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bf-flight {
  position: absolute;
  will-change: transform;
  opacity: 0.55;
}
.bf-bob { will-change: transform; }
.bf {
  display: block;
  width: 32px; height: 32px;
  filter: drop-shadow(0 4px 12px oklch(0.4 0.1 250 / .25));
}
.bf .bf-wing {
  fill: var(--blue);
  fill-opacity: 0.7;
  transform-origin: 0 0;
  transition: transform .12s linear;
}
.bf .bf-wing-l, .bf .bf-wing-r { animation: bf-flap 360ms cubic-bezier(.6,.0,.4,1) infinite; }
.bf .bf-body { stroke: var(--blue-deep); stroke-width: 1.4; stroke-linecap: round; }
.bf .bf-ants { stroke: var(--blue-deep); stroke-width: 1; stroke-linecap: round; fill: none; }
@keyframes bf-flap {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(0.18); }
}

.bf-flight-1 {
  top: 22%;
  animation: bf-fly-1 28s linear infinite;
}
.bf-flight-1 .bf-bob { animation: bf-bob-1 4.2s ease-in-out infinite; }
.bf-flight-1 .bf { width: 36px; height: 36px; }
@keyframes bf-fly-1 {
  0%   { left: -80px; }
  100% { left: calc(100% + 60px); }
}
@keyframes bf-bob-1 {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-46px) rotate(8deg); }
}

.bf-flight-2 {
  top: 64%;
  animation: bf-fly-2 36s linear -14s infinite;
  opacity: 0.4;
}
.bf-flight-2 .bf-bob { animation: bf-bob-2 5.6s ease-in-out infinite; }
.bf-flight-2 .bf { width: 28px; height: 28px; }
.bf-flight-2 .bf .bf-wing { fill: var(--teal); fill-opacity: 0.55; }
@keyframes bf-fly-2 {
  0%   { left: calc(100% + 80px); }
  100% { left: -60px; }
}
@keyframes bf-bob-2 {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50%      { transform: translateY(-28px) rotate(-10deg); }
}

@media (max-width: 820px) {
  .bf-flight-1, .bf-flight-2 { display: none; }
}

.hero-grid {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 5.5vw, 88px);
  align-items: center;
}
.hero-left { display: grid; gap: 28px; align-content: center; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-meta { display: flex; }
.meta-row {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 10px;
  background: oklch(0.97 0.008 235 / .65);
  border: 1px solid oklch(0.86 0.018 230 / .65);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
}
.meta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px oklch(0.55 0.06 200 / .22);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px oklch(0.55 0.06 200 / .22); } 50% { box-shadow: 0 0 0 9px oklch(0.55 0.06 200 / 0); } }

.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 7vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .line-2 { color: var(--blue-deep); padding-left: clamp(0px, 4vw, 48px); }
.hero-title em { font-style: italic; color: var(--ink); font-weight: 400; }

.hero-sub {
  max-width: 480px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Themed concept chips beneath the blurb */
.hero-concepts {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
  margin-top: 4px;
}
.hero-concepts li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: oklch(0.97 0.008 235 / .6);
  border: 1px solid oklch(0.55 0.13 245 / .18);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  transition: transform .3s var(--ease), color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.hero-concepts li:hover {
  transform: translateY(-2px);
  color: var(--blue-deep);
  border-color: oklch(0.55 0.13 245 / .45);
  background: var(--cream);
}
.hero-concepts .glyph {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  color: var(--blue-deep);
  text-transform: none;
  letter-spacing: 0;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
}
.btn-primary {
  background: var(--ink); color: var(--cream);
  box-shadow: 0 10px 30px oklch(0.18 0.03 250 / .25), inset 0 0 0 1px oklch(0.32 0.04 250 / .5);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 14px 44px oklch(0.4 0.14 250 / .3); }
.btn-ghost {
  background: oklch(0.97 0.008 235 / .55);
  border: 1px solid oklch(0.86 0.018 230 / .7);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: oklch(0.94 0.012 230 / .8); }
.ghost-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue);
  animation: pulse-call 1.8s var(--ease) infinite;
}
@keyframes pulse-call { 0%, 100% { box-shadow: 0 0 0 0 oklch(0.55 0.13 245 / .5); } 50% { box-shadow: 0 0 0 8px oklch(0.55 0.13 245 / 0); } }

.hero-credentials {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin-top: 32px;
  max-width: 620px;
  padding-top: 22px;
  border-top: 1px solid oklch(0.86 0.018 230 / .65);
}
.cred { display: flex; flex-direction: column; gap: 4px; }
.cred-num { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 34px); line-height: 1; color: var(--blue-deep); }
.cred-lbl { font-size: 11.5px; color: var(--muted); line-height: 1.45; max-width: 170px; }

.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.scroll-line {
  width: 1px; height: 44px; background: linear-gradient(to bottom, transparent, var(--ink-2), transparent);
  background-size: 100% 200%;
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line { 0% { background-position: 0 -100%; } 100% { background-position: 0 100%; } }

@media (max-width: 720px) {
  .hero-credentials { grid-template-columns: 1fr; gap: 12px; }
}

/* ---- Hero portrait: small circle avatar + slideout info card ---- */
.hero-portrait {
  position: relative;
  perspective: 1400px;
  display: flex; justify-content: center; align-items: center;
  min-height: 360px;
}

/* Clinical annotation labels arranged around the orb — mouse-proximity reveal */
.orb-labels {
  position: absolute;
  inset: -10%;
  list-style: none;
  pointer-events: none;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.orb-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  color: oklch(0.32 0.02 250);
  text-shadow:
    0 1px 2px oklch(0.98 0.005 235 / .85),
    0 0 10px oklch(0.98 0.005 235 / .6);
  transform: translate3d(
    calc(var(--mx, 0) * var(--depth, 6) * 1px),
    calc(var(--my, 0) * var(--depth, 6) * 1px),
    0
  );
  transition:
    opacity .4s var(--ease),
    transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--chain, 0ms);
}
.ol-row { display: inline-flex; align-items: center; gap: 8px; }

/* Per-label chain delays so they follow cursor one-by-one */
.orb-label.ol-tl { --chain: 0ms;   --depth: 14; }
.orb-label.ol-tr { --chain: 60ms;  --depth: 18; }
.orb-label.ol-r  { --chain: 120ms; --depth: 22; }
.orb-label.ol-br { --chain: 180ms; --depth: 20; }
.orb-label.ol-bl { --chain: 240ms; --depth: 16; }
.orb-label.ol-l  { --chain: 300ms; --depth: 12; }
.orb-label .ol-bar {
  display: block;
  width: 28px; height: 1px;
  background: linear-gradient(90deg, oklch(0.35 0.04 250 / .7), oklch(0.35 0.04 250 / .1));
}
.orb-label .ol-tag {
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.22em;
}
/* Right-side labels flip the bar gradient */
.orb-label.ol-tr .ol-bar,
.orb-label.ol-r  .ol-bar,
.orb-label.ol-br .ol-bar {
  background: linear-gradient(90deg, oklch(0.35 0.04 250 / .1), oklch(0.35 0.04 250 / .7));
}

/* Vary depth so different labels move at different rates with mouse */
.orb-label.ol-tl { top: 12%; right: 78%; }
.orb-label.ol-tr { top: 6%;  left:  68%; }
.orb-label.ol-r  { top: 44%; left:  90%; }
.orb-label.ol-br { top: 78%; left:  68%; }
.orb-label.ol-bl { top: 80%; right: 74%; }
.orb-label.ol-l  { top: 44%; right: 90%; }

/* Active state: the nearest label brightens; info card pops */
.orb-label.active .ol-tag {
  color: var(--blue-deep);
  font-weight: 600;
}
.orb-label.active .ol-bar {
  background: linear-gradient(90deg, var(--blue-deep), oklch(0.4 0.14 250 / .2)) !important;
  box-shadow: 0 0 10px oklch(0.55 0.13 245 / .35);
}

/* Educational info popup — no card, just dark text */
.ol-info {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 240px;
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: -0.005em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 6;
  text-align: left;
}
.ol-info strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--blue-deep);
  margin-bottom: 4px;
}
.ol-info p {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Position popup so it stays in view */
.orb-label.ol-tr .ol-info,
.orb-label.ol-r  .ol-info { left: auto; right: 0; }
.orb-label.ol-br .ol-info {
  top: auto; bottom: calc(100% + 12px);
  left: auto; right: 0;
  transform: translateY(4px);
}
.orb-label.ol-bl .ol-info {
  top: auto; bottom: calc(100% + 12px);
  transform: translateY(4px);
}

.orb-label.active .ol-info {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Click target on the labels themselves */
.orb-label { pointer-events: auto; cursor: pointer; }
.orb-labels { pointer-events: none; }

/* Recede when the slide-out card is open so it doesn't compete */
.hero-portrait[data-open="true"] .orb-labels {
  opacity: 0.15;
  transition: opacity .35s var(--ease);
}

@media (max-width: 980px) {
  .orb-label.ol-tl { top: 6%;  right: 62%; }
  .orb-label.ol-tr { top: 2%;  left:  58%; }
  .orb-label.ol-r  { top: 44%; left:  94%; }
  .orb-label.ol-br { top: 82%; left:  58%; }
  .orb-label.ol-bl { top: 84%; right: 60%; }
  .orb-label.ol-l  { top: 44%; right: 94%; }
  .orb-label .ol-bar { width: 18px; }
  .orb-label .ol-tag { font-size: 9px; }
}
@media (max-width: 640px) {
  .orb-label.ol-r, .orb-label.ol-l { display: none; }
}
@media (max-width: 420px) {
  .orb-labels { display: none; }
}

.hero-portrait-halo {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, oklch(0.78 0.1 240 / .55), oklch(0.78 0.1 240 / 0) 60%),
    radial-gradient(circle at 30% 70%, oklch(0.6 0.12 260 / .35), transparent 65%);
  filter: blur(28px);
  z-index: 0;
  animation: halo-drift 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-2%, 2%) scale(1.08); }
}

/* Orbital rings */
.hero-orbit {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px dashed oklch(0.55 0.13 245 / .32);
  z-index: 1;
  animation: orbit-spin 28s linear infinite;
  pointer-events: none;
}
.hero-orbit::before, .hero-orbit::after {
  content: ""; position: absolute;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px oklch(0.55 0.13 245 / .22);
}
.hero-orbit::before { width: 9px; height: 9px; top: -4px; left: 50%; transform: translateX(-50%); }
.hero-orbit::after { width: 6px; height: 6px; bottom: 6%; right: 12%; background: var(--teal); box-shadow: 0 0 0 3px oklch(0.55 0.06 200 / .25); }
.hero-orbit-2 {
  width: 330px; height: 330px;
  border-color: oklch(0.55 0.06 200 / .22);
  animation: orbit-spin-rev 44s linear infinite;
}
.hero-orbit-2::before {
  content: ""; position: absolute;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-soft);
  top: 50%; left: -4px; transform: translateY(-50%);
  box-shadow: 0 0 0 3px oklch(0.78 0.07 235 / .25);
}
.hero-orbit-2::after { display: none; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { to { transform: rotate(-360deg); } }

/* Avatar button */
.hero-avatar {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 0; padding: 0;
  background: var(--cream);
  cursor: pointer;
  z-index: 4;
  box-shadow:
    0 24px 56px oklch(0.2 0.04 250 / .28),
    0 0 0 1px oklch(0.86 0.018 230 / .6),
    inset 0 0 0 4px var(--cream);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hero-avatar:focus-visible { outline: 3px solid oklch(0.55 0.13 245 / .5); outline-offset: 4px; }
.hero-avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}
.hero-avatar-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid oklch(0.55 0.13 245 / .35);
  pointer-events: none;
}
.hero-avatar-pulse {
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: 0;
  animation: avatar-pulse 3s var(--ease) infinite;
  pointer-events: none;
}
@keyframes avatar-pulse {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}
.hero-avatar-tag {
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 8px;
  background: var(--ink); color: var(--cream);
  border-radius: 999px;
  font-size: 10.5px; font-family: var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px oklch(0.2 0.04 250 / .3);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.hero-avatar-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px oklch(0.55 0.06 200 / .3);
}

.hero-portrait[data-open="true"] .hero-avatar,
.hero-avatar:hover {
  transform: scale(0.96);
}
.hero-portrait[data-open="true"] .hero-avatar-tag,
.hero-avatar:hover .hero-avatar-tag {
  opacity: 0; transform: translate(-50%, 8px);
}

/* Slideout info card */
.hero-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-30%, -50%) scale(0.94);
  transform-origin: right center;
  width: min(290px, 88%);
  padding: 16px 18px 14px;
  background: oklch(0.97 0.008 235 / .82);
  border: 1px solid oklch(0.86 0.018 230 / .6);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-radius: var(--r-lg);
  box-shadow:
    0 20px 50px oklch(0.2 0.04 250 / .18),
    0 0 0 1px rgba(255,255,255,.5) inset;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    transform .5s cubic-bezier(.2,.9,.3,1.15),
    opacity .3s var(--ease);
}
.hero-portrait[data-open="true"] .hero-card {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-100% - 70px), -50%) scale(1);
}

.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hero-card-eyebrow {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-deep);
}
.hero-card-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.hero-card-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.hero-card-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-card-name em { font-style: italic; color: var(--blue-deep); font-size: 15px; padding-left: 3px; font-weight: 400; }
.hero-card-role {
  font-size: 11.5px; line-height: 1.4;
  color: var(--muted);
  margin: 5px 0 10px;
}
.hero-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.hero-card-stats > div { display: flex; flex-direction: column; gap: 1px; }
.hero-card-stats strong { font-family: var(--serif); font-size: 18px; line-height: 1; color: var(--blue-deep); font-weight: 500; }
.hero-card-stats span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.hero-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hero-card .mod { padding: 3px 8px; font-size: 10px; }

@media (max-width: 980px) {
  .hero-grid { display: flex; flex-direction: column; }
  .hero-portrait { order: -1; min-height: 200px; animation: portrait-drop 1.1s cubic-bezier(.2,.9,.3,1.05) .2s both; }
  .hero-portrait-halo { width: 260px; height: 260px; }
  .hero-orbit { width: 220px; height: 220px; }
  .hero-orbit-2 { width: 280px; height: 280px; }
  .hero-avatar { width: 128px; height: 128px; }
  .hero-card {
    /* On mobile, slide DOWN from avatar instead of left */
    top: 100%; left: 50%; right: auto;
    transform: translate(-50%, -40%) scale(0.94);
    transform-origin: top center;
    width: min(300px, 90vw);
    margin-top: 12px;
  }
  .hero-portrait[data-open="true"] .hero-card {
    transform: translate(-50%, 4%) scale(1);
  }
}

@keyframes portrait-drop {
  0%   { opacity: 0; transform: translateY(-32px) scale(0.85); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------------------------------------
   Shared section type
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--blue-soft); }

.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--blue-deep); font-weight: 400; }
.display.light { color: var(--cream); }
.display.light em { color: var(--blue-soft); }

.section-head {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: 36px;
}
.section-head.tight { margin-bottom: 28px; }

/* ------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------ */
.about { position: relative; padding: clamp(56px, 9vh, 96px) var(--gutter); z-index: 2; }
.about-stage {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}

.about-portrait { position: sticky; top: 92px; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
}
img.portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
  background: oklch(0.90 0.018 228);
}
.portrait-frame:hover img.portrait-img { transform: scale(1.06); }

.portrait-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: oklch(0.97 0.008 235 / .92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid oklch(0.86 0.018 230 / .6);
  border-radius: var(--r-md);
  padding: 12px 14px;
  max-width: 220px;
  box-shadow: 0 14px 36px oklch(0.2 0.04 250 / .25);
  z-index: 2;
}
.badge-eyebrow {
  display: block; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 5px;
}
.portrait-badge p { font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }

.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-body { display: flex; flex-direction: column; gap: 14px; max-width: 580px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.about-body p { text-wrap: pretty; }

.credentials-card {
  margin-top: 8px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.credentials-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.credentials-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.1; }
.credentials-head .sub { font-size: 11.5px; color: var(--muted); }

.ghost-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-deep);
  padding: 6px 11px;
  border: 1px solid oklch(0.55 0.13 245 / .28);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.ghost-link:hover { background: var(--blue-deep); color: var(--cream); }
.ghost-link.light { color: var(--blue-soft); border-color: oklch(0.78 0.07 235 / .35); }
.ghost-link.light:hover { background: var(--blue-soft); color: var(--ink); }

.credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.credentials-grid dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.credentials-grid dd { font-size: 12.5px; line-height: 1.5; color: var(--ink); }

.modalities { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; padding-top: 8px; padding-bottom: 12px; }
.modalities-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.mod-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mod {
  display: inline-block;
  padding: 8px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.mod:hover { transform: translateY(-2px); background: var(--ink); color: var(--cream); }
.mod.accent { background: oklch(0.55 0.13 245 / .12); border-color: oklch(0.55 0.13 245 / .28); color: var(--blue-deep); }
.mod.accent:hover { background: var(--blue-deep); color: var(--cream); }

@media (max-width: 920px) {
  .about-stage { grid-template-columns: 1fr; }
  .about-portrait { position: relative; top: auto; max-width: 360px; }
  .credentials-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   SPACE — full-bleed parallax background
   ------------------------------------------------------------ */
.space {
  position: relative; z-index: 2;
  margin: clamp(28px, 5vh, 56px) var(--gutter) 0;
  padding: clamp(64px, 12vh, 130px) clamp(20px, 4vw, 56px);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}
.space-bg {
  position: absolute; inset: -28%;
  background-size: cover;
  background-position: center;
  z-index: -3;
  filter: saturate(0.95) contrast(1.05);
  will-change: transform;
}
.space-veil {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, oklch(0.18 0.04 250 / .55) 0%, oklch(0.18 0.04 250 / .65) 50%, oklch(0.18 0.04 250 / .85) 100%),
    radial-gradient(circle at 25% 30%, oklch(0.6 0.12 260 / .35), transparent 55%),
    radial-gradient(circle at 80% 70%, oklch(0.4 0.14 250 / .35), transparent 50%);
}
.space-grain {
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
  mix-blend-mode: overlay;
}

.space-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column;
  gap: clamp(28px, 4vh, 48px);
}
.space-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.space-lede {
  font-size: 15px; line-height: 1.55;
  color: oklch(0.88 0.025 235);
  max-width: 480px;
}

/* Mode cards row */
.space-modes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  perspective: 1400px;
}
.mode-card {
  position: relative;
  padding: 22px 22px 18px;
  background: oklch(0.97 0.008 235 / .07);
  border: 1px solid oklch(0.97 0.008 235 / .14);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-radius: var(--r-md);
  color: var(--cream);
  cursor: default;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.mode-card:hover {
  background: oklch(0.97 0.008 235 / .12);
  border-color: oklch(0.97 0.008 235 / .25);
}
.mode-glare {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), oklch(1 0 0 / .22), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.mode-card:hover .mode-glare { opacity: 1; }

.mode-num {
  display: inline-block;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 14px;
}
.mode-card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.mode-card p {
  font-size: 13px; line-height: 1.55;
  color: oklch(0.88 0.025 235 / .9);
  margin-bottom: 16px;
}
.mode-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.78 0.06 235 / .8);
  padding-top: 12px;
  border-top: 1px solid oklch(0.97 0.008 235 / .12);
  width: 100%;
}
.mode-meta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px oklch(0.55 0.06 200 / .25);
}

@media (max-width: 820px) {
  .space-modes { grid-template-columns: 1fr; }
  .mode-card { padding: 18px 18px 14px; }
  .mode-card h3 { font-size: 22px; }
}

/* ------------------------------------------------------------
   PHILOSOPHY / QUOTE
   ------------------------------------------------------------ */
.philosophy {
  position: relative;
  margin: clamp(28px, 5vh, 64px) var(--gutter) 0;
  padding: clamp(64px, 12vh, 120px) clamp(20px, 4vw, 56px);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--cream);
  z-index: 2;
}
.philosophy-bg {
  position: absolute; inset: -25%;
  background: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=2940&auto=format&fit=crop") center/cover;
  transform: scale(1.15);
  will-change: transform;
  filter: saturate(0.6) hue-rotate(180deg) brightness(0.85);
}
.philosophy-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(0.2 0.05 250 / .8), oklch(0.3 0.08 245 / .65));
}
.philosophy-inner { position: relative; max-width: 920px; margin: 0 auto; }
.quote { position: relative; }
.qmark {
  font-family: var(--serif);
  font-size: clamp(100px, 16vw, 200px);
  line-height: 0.6;
  color: oklch(0.78 0.07 235 / .45);
  position: absolute; top: -24px; left: -8px;
}
.quote p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 3.3vw, 40px);
  line-height: 1.22; letter-spacing: -0.02em;
  text-wrap: balance; position: relative; z-index: 1;
}
.quote footer {
  margin-top: 28px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-soft);
}
.quote-rule { width: 32px; height: 1px; background: currentColor; }

/* ------------------------------------------------------------
   FOCUS GRID
   ------------------------------------------------------------ */
.focus { position: relative; padding: clamp(56px, 10vh, 110px) var(--gutter); z-index: 2; }
.focus-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  perspective: 1800px;
  transition:
    grid-template-columns .7s cubic-bezier(.2,.8,.2,1),
    grid-template-rows    .7s cubic-bezier(.2,.8,.2,1);
}
.focus-card {
  position: relative;
  grid-column: span 1;
  grid-row: span 1;
  min-width: 0;
  min-height: 340px;
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--cream);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 8px 24px oklch(0.2 0.04 250 / .15);
}
.focus-card:hover { box-shadow: 0 22px 54px oklch(0.2 0.04 250 / .3); }

/* Dynamic grid resize on hover — hovered card grows, others shrink */
.focus-grid:has(> .focus-card:nth-child(1):hover) {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows:    1.3fr 1fr;
}
.focus-grid:has(> .focus-card:nth-child(2):hover) {
  grid-template-columns: 1fr 1.3fr;
  grid-template-rows:    1.3fr 1fr;
}
.focus-grid:has(> .focus-card:nth-child(3):hover) {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows:    1fr 1.3fr;
}
.focus-grid:has(> .focus-card:nth-child(4):hover) {
  grid-template-columns: 1fr 1.3fr;
  grid-template-rows:    1fr 1.3fr;
}

.card-bg {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease);
  transform: translateZ(-30px) scale(1.05);
  filter: saturate(0.85);
}
.focus-card:hover .card-bg { transform: translateZ(-30px) scale(1.12); }
.card-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(0.2 0.04 250 / 0) 0%, oklch(0.2 0.04 250 / .25) 45%, oklch(0.2 0.04 250 / .82) 100%),
              radial-gradient(circle at 30% 80%, var(--accent) 0%, transparent 60%);
  mix-blend-mode: multiply;
  opacity: .9; transition: opacity .6s var(--ease);
}
.focus-card:hover .card-veil { opacity: 1; }

.card-body {
  position: absolute; inset: 0;
  padding: clamp(18px, 2.4vw, 28px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  transform: translateZ(40px);
}
.card-index { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: oklch(0.92 0.04 230 / .85); margin-bottom: auto; }
.focus-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.05; letter-spacing: -0.01em;
}
.focus-card h3 span { color: var(--blue-soft); font-style: italic; }
.focus-card p {
  font-size: 13px; line-height: 1.55;
  color: oklch(0.92 0.02 235 / .85);
  max-width: 380px;
}
.card-arrow {
  position: absolute; top: clamp(18px, 2.4vw, 28px); right: clamp(18px, 2.4vw, 28px);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: oklch(0.97 0.008 235 / .14);
  border: 1px solid oklch(0.97 0.008 235 / .25);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  transition: background .25s var(--ease), transform .35s var(--ease);
}
.focus-card:hover .card-arrow { background: var(--cream); color: var(--ink); transform: rotate(-45deg); }

@media (max-width: 820px) {
  .focus-grid,
  .focus-grid:has(> .focus-card:nth-child(1):hover),
  .focus-grid:has(> .focus-card:nth-child(2):hover),
  .focus-grid:has(> .focus-card:nth-child(3):hover),
  .focus-grid:has(> .focus-card:nth-child(4):hover),
  .focus-grid:has(> .focus-card:hover) {
    gap: 14px;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
    max-height: none;
  }
  .focus-card, .focus-card:nth-child(n) { aspect-ratio: 5/4; min-height: 0; }
  .focus-card .card-bg { transform: translateZ(0) scale(1.06); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .focus-card:active .card-bg { transform: scale(1.14); }
}

/* ------------------------------------------------------------
   INVESTMENT
   ------------------------------------------------------------ */
.investment { position: relative; padding: clamp(56px, 10vh, 110px) var(--gutter); z-index: 2; }
.invest-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 0.95fr 1.5fr; gap: 14px;
  perspective: 1400px;
}
.invest-card {
  position: relative;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.invest-card:hover { box-shadow: 0 20px 50px oklch(0.2 0.04 250 / .15); }

.insurance-card { height: 100%; display: flex; flex-direction: column; gap: 18px; background: var(--ink); color: var(--cream); border-color: transparent; }
.insurance-card .card-tag { color: var(--blue-soft); }
.insurance-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
.insurance-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: auto; }
.insurance-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid oklch(0.97 0.008 235 / .1);
  font-size: 13px;
}
.insurance-list li:last-child { border-bottom: none; }
.insurance-list li.hi { color: var(--blue-soft); }
.insurance-list em {
  font-family: var(--mono); font-style: normal; font-size: 9.5px;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 3px 8px;
  background: oklch(0.78 0.07 235 / .18);
  border-radius: 999px;
  color: var(--blue-soft);
}
.insurance-card .ghost-link { align-self: flex-start; color: var(--blue-soft); border-color: oklch(0.78 0.07 235 / .35); }
.insurance-card .ghost-link:hover { background: var(--blue-soft); color: var(--ink); }

.card-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

.invest-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.tile.wide {
  grid-column: span 2;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  background: var(--cream);
  border: 1px dashed oklch(0.55 0.13 245 / .35);
  min-height: auto;
  padding: 22px 24px;
}
.tile h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; margin-top: 4px; }
.tile p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; max-width: 380px; }
.price { display: flex; align-items: baseline; gap: 5px; margin-top: auto; }
.amt { font-family: var(--serif); font-size: clamp(40px, 4.2vw, 56px); line-height: 1; color: var(--blue-deep); }
.per { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.tile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-quiet {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--ink); color: var(--cream);
  border-radius: 999px; font-size: 11.5px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-quiet:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-quiet.outline {
  background: transparent; color: var(--ink);
  border: 1px solid oklch(0.86 0.018 230);
}
.btn-quiet.outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

@media (max-width: 920px) {
  .invest-grid { grid-template-columns: 1fr; }
  .invest-rates { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
}

/* ------------------------------------------------------------
   LONGFORM
   ------------------------------------------------------------ */
.longform { position: relative; padding: clamp(56px, 10vh, 110px) var(--gutter); z-index: 2; }
.longform-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.longform .display em { color: var(--blue-deep); }
.longform-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.longform-col { display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.signature { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.sig-avatar { width: 48px; height: 48px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--line); }
.sig-name { font-family: var(--serif); font-size: 19px; line-height: 1; }
.sig-role { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
@media (max-width: 820px) { .longform-cols { grid-template-columns: 1fr; gap: 22px; } }

/* ------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------ */
.contact {
  position: relative;
  margin: 0 var(--gutter);
  padding: clamp(64px, 12vh, 120px) clamp(20px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--ink); color: var(--cream);
  overflow: hidden; z-index: 2;
}
.contact-bg { position: absolute; inset: 0; overflow: hidden; opacity: 0.5; }
.contact-rings {
  position: absolute; left: 50%; top: 50%;
  width: 180vmax; height: 180vmax;
  transform: translate(-50%, -50%) rotate(0deg);
  background:
    radial-gradient(circle, transparent 0, transparent 240px, oklch(0.78 0.07 235 / .08) 241px, oklch(0.78 0.07 235 / .08) 242px, transparent 243px),
    radial-gradient(circle, transparent 0, transparent 360px, oklch(0.78 0.07 235 / .07) 361px, oklch(0.78 0.07 235 / .07) 362px, transparent 363px),
    radial-gradient(circle, transparent 0, transparent 540px, oklch(0.78 0.07 235 / .06) 541px, oklch(0.78 0.07 235 / .06) 542px, transparent 543px),
    radial-gradient(circle, transparent 0, transparent 760px, oklch(0.78 0.07 235 / .045) 761px, oklch(0.78 0.07 235 / .045) 762px, transparent 763px),
    radial-gradient(circle, transparent 0, transparent 1020px, oklch(0.78 0.07 235 / .04) 1021px, oklch(0.78 0.07 235 / .04) 1022px, transparent 1023px);
  animation: ringspin 60s linear infinite;
  will-change: transform;
}
@keyframes ringspin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.contact-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.contact-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.96; letter-spacing: -0.035em;
}
.contact-title em { font-style: italic; color: var(--blue-soft); }
.contact-lede { font-size: 15px; color: oklch(0.78 0.05 235); margin: 12px 0 40px; max-width: 460px; }

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; perspective: 1400px;
}
.contact-card {
  position: relative; padding: 22px 24px;
  border-radius: var(--r-md);
  background: oklch(0.24 0.025 250);
  border: 1px solid oklch(0.36 0.04 250 / .5);
  transform-style: preserve-3d;
  transition: background .35s var(--ease), transform .5s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 120px;
}
.contact-card:hover { background: oklch(0.28 0.035 250); }
.contact-card.primary { background: var(--blue-deep); border-color: oklch(0.45 0.14 250 / .8); }
.contact-card.primary:hover { background: oklch(0.45 0.14 250); }
.contact-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-soft);
}
.contact-card.primary .contact-label { color: oklch(0.92 0.05 235 / .9); }
.contact-value {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px);
  margin-top: auto; line-height: 1.1;
}
.contact-arrow {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--serif); font-size: 20px;
  transition: transform .35s var(--ease);
}
.contact-card:hover .contact-arrow { transform: translate(4px, -4px); }

.contact-banners { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.banner {
  padding: 22px; border-radius: var(--r-md);
  background: oklch(0.24 0.025 250 / .4);
  border: 1px solid oklch(0.36 0.04 250 / .35);
  display: flex; flex-direction: column; gap: 6px;
}
.banner-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-soft);
}
.banner h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.banner p { font-size: 13px; line-height: 1.55; color: oklch(0.82 0.025 235); margin-bottom: 4px; }
.banner .ghost-link { align-self: flex-start; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-banners { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.foot { position: relative; z-index: 2; padding: 48px var(--gutter) 22px; margin-top: 40px; }
.foot-top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 44px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.brand-large { font-size: 28px; }
.foot-brand p { font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h5 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 12px; font-weight: 500;
}
.foot-cols ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.foot-cols a { color: var(--ink-2); font-size: 12px; transition: color .2s var(--ease); }
.foot-cols a:hover { color: var(--blue-deep); }
.ul-plain li { color: var(--muted); font-size: 12px; }

.foot-bot {
  max-width: var(--max); margin: 44px auto 0;
  padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; font-size: 11.5px; color: var(--muted);
}
.foot-socials { display: flex; gap: 14px; }
.foot-socials a { transition: color .2s var(--ease); }
.foot-socials a:hover { color: var(--blue-deep); }

@media (max-width: 920px) {
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------
   Parallax + reveal helpers
   ------------------------------------------------------------ */
.parallax, .parallax-card, .parallax-bg { will-change: transform; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Word-by-word stagger reveal */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(8px);
  transition:
    opacity .65s var(--ease),
    transform .65s cubic-bezier(.2,.9,.3,1),
    filter .65s var(--ease);
  transition-delay: calc(var(--wi, 0) * 60ms);
}
.reveal-words.words-in .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .parallax, .parallax-card, .parallax-bg { transform: none !important; }
}

/* Scroll-to-top floating button — iOS-feel glass pill */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: oklch(0.18 0.03 250 / .85);
  color: var(--cream);
  border: 1px solid oklch(0.32 0.04 250 / .5);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 14px 40px oklch(0.18 0.03 250 / .35), 0 0 0 1px rgba(255,255,255,.06) inset;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transition: opacity .35s cubic-bezier(.2,.9,.3,1.05), transform .45s cubic-bezier(.2,.9,.3,1.15);
  z-index: 60;
  -webkit-tap-highlight-color: transparent;
}
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.scroll-top:hover { background: var(--blue-deep); }
.scroll-top:active { transform: scale(0.92); }

/* ============================================================
   Calm-pulse divider — EKG-style traveling blip between sections
   ============================================================ */
.pulse-divider {
  position: relative;
  max-width: var(--max);
  margin: 12px auto 24px;
  padding: 0 var(--gutter);
  height: 24px;
  display: flex; align-items: center;
  isolation: isolate;
}
.pulse-divider .pulse-track {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: 50%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    oklch(0.86 0.018 230 / .55) 12%,
    oklch(0.55 0.13 245 / .55) 50%,
    oklch(0.86 0.018 230 / .55) 88%,
    transparent 100%);
}
/* Butterfly traveling along the pulse line */
.pulse-divider .pulse-bf {
  position: absolute;
  top: 50%; left: var(--gutter);
  width: 22px; height: 22px;
  margin-top: -11px;
  filter:
    drop-shadow(0 0 18px oklch(0.55 0.13 245 / .85))
    drop-shadow(-30px 0 24px oklch(0.55 0.13 245 / .35))
    drop-shadow(-58px 0 24px oklch(0.55 0.13 245 / .15));
  animation: pulse-travel 11s cubic-bezier(.45,.05,.55,.95) infinite;
  z-index: 2;
}
.pulse-divider .pulse-bf .bf { width: 22px; height: 22px; filter: none; }
.pulse-divider .pulse-bf .bf .bf-wing { fill-opacity: 0.85; }
.pulse-divider .pulse-bf-rev {
  animation: pulse-travel-rev 11s cubic-bezier(.45,.05,.55,.95) infinite;
  filter:
    drop-shadow(0 0 18px oklch(0.55 0.13 245 / .85))
    drop-shadow(30px 0 24px oklch(0.55 0.13 245 / .35))
    drop-shadow(58px 0 24px oklch(0.55 0.13 245 / .15));
}
@keyframes pulse-travel {
  0%   { left: var(--gutter); opacity: 0; transform: rotate(-4deg); }
  6%   { opacity: 1; }
  /* Heartbeat bump in the middle */
  46%  { margin-top: -11px; }
  50%  { margin-top: -22px; transform: rotate(-12deg); }
  54%  { margin-top: -2px; transform: rotate(8deg); }
  60%  { margin-top: -11px; transform: rotate(-4deg); }
  94%  { opacity: 1; }
  100% { left: calc(100% - var(--gutter) - 22px); opacity: 0; transform: rotate(-4deg); }
}
@keyframes pulse-travel-rev {
  0%   { left: calc(100% - var(--gutter) - 22px); opacity: 0; transform: rotate(4deg) scaleX(-1); }
  6%   { opacity: 1; }
  46%  { margin-top: -11px; }
  50%  { margin-top: -22px; transform: rotate(12deg) scaleX(-1); }
  54%  { margin-top: -2px; transform: rotate(-8deg) scaleX(-1); }
  60%  { margin-top: -11px; transform: rotate(4deg) scaleX(-1); }
  94%  { opacity: 1; }
  100% { left: var(--gutter); opacity: 0; transform: rotate(4deg) scaleX(-1); }
}
.pulse-glyph {
  position: absolute;
  top: 50%; right: var(--gutter);
  margin-top: -10px;
  padding: 2px 8px;
  background: var(--cream);
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 820px) {
  .pulse-divider { margin: 4px auto 16px; }
  .pulse-glyph { display: none; }
}

/* ============================================================
   NAV BURGER + iOS-style DRAWER
   ============================================================ */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid oklch(0.86 0.018 230 / .7);
  background: oklch(0.97 0.008 235 / .55);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  padding: 0;
  transition: transform .2s var(--ease), background .25s var(--ease);
}
.nav-burger:active { transform: scale(0.92); }
.nav-burger span {
  display: block; width: 14px; height: 1.4px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}

.drawer {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.drawer.open { pointer-events: auto; visibility: visible; }

.drawer-scrim {
  position: absolute; inset: 0;
  background: oklch(0.18 0.03 250 / .35);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.drawer.open .drawer-scrim { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 8px; right: 8px; bottom: 8px;
  width: min(380px, calc(100vw - 16px));
  background: var(--cream);
  border-radius: 22px;
  box-shadow:
    0 24px 60px oklch(0.18 0.03 250 / .35),
    0 0 0 1px oklch(0.86 0.018 230 / .6),
    inset 0 0 0 1px rgba(255,255,255,.55);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
  transform: translate3d(110%, 0, 0);
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.open .drawer-panel { transform: translate3d(0, 0, 0); }

.drawer-handle {
  width: 36px; height: 4px; border-radius: 4px;
  background: oklch(0.86 0.018 230);
  margin: 2px auto 4px;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head .brand { font-size: 20px; }
.drawer-head .brand-logo { height: 30px; width: 30px; }
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), background .25s var(--ease);
}
.drawer-close:active { transform: scale(0.92); }
.drawer-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.drawer-status {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 7px 13px 7px 10px;
  background: oklch(0.55 0.06 200 / .1);
  border: 1px solid oklch(0.55 0.06 200 / .25);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
}

.drawer-nav {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.drawer-nav a {
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink);
  transition: background .25s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.drawer-nav a:active { transform: scale(0.985); background: var(--cream-2); }
.drawer-nav a:hover { background: var(--cream-2); }
.drawer-num {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-deep);
  align-self: center;
}
.drawer-arrow { font-family: var(--serif); font-size: 18px; color: var(--muted); }

.drawer-actions {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.drawer-actions .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 14px; }

.drawer-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 6px;
  font-size: 11px; color: var(--muted);
  font-family: var(--mono); letter-spacing: 0.08em;
}
.drawer-foot a:hover { color: var(--blue-deep); }

@media (max-width: 820px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
}

/* lock body scroll while drawer open */
body.drawer-open { overflow: hidden; }

/* ============================================================
   MOBILE-FIRST REFINEMENTS — tightened spacing + readability
   ============================================================ */
@media (max-width: 820px) {
  :root { --gutter: 22px; }

  body { font-size: 15px; line-height: 1.6; }

  /* Larger touch targets globally */
  .btn, .nav-cta, .ghost-link, .btn-quiet { min-height: 40px; }
  a, button { -webkit-tap-highlight-color: transparent; }

  /* Hero — iOS-native compact, generous breathing */
  .hero { padding-top: 108px; padding-bottom: 72px; min-height: auto; }
  .hero-grid { gap: 44px; }
  .hero-left { gap: 24px; }
  .hero-title { font-size: clamp(36px, 11.5vw, 56px); letter-spacing: -0.03em; line-height: 1; }
  .hero-title .line-2 { padding-left: 0; }
  .hero-sub { font-size: 15px; line-height: 1.55; }
  .hero-concepts { gap: 5px; }
  .hero-concepts li { font-size: 10.5px; padding: 5px 11px 5px 9px; }
  .hero-actions { width: 100%; gap: 8px; }
  .hero-actions .btn { flex: 1; justify-content: center; min-width: 0; padding: 13px 16px; font-size: 14px; }
  .hero-credentials { grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 24px; padding-top: 20px; }
  .hero-credentials .cred:nth-child(3) { grid-column: span 2; }
  .cred-num { font-size: 24px; color: var(--blue-deep); font-weight: 500; }
  .cred-lbl { font-size: 12px; color: var(--ink); max-width: none; font-weight: 500; line-height: 1.45; }
  .hero-scroll { display: none; }

  /* Section padding — generous breathing */
  .about, .focus, .investment, .longform { padding-top: 80px; padding-bottom: 80px; }
  .section-head { margin-bottom: 36px; }
  .section-head.tight { margin-bottom: 40px; }
  .eyebrow { font-size: 10.5px; margin-bottom: 10px; }
  .display { font-size: clamp(28px, 8vw, 42px); line-height: 1.04; letter-spacing: -0.025em; }

  /* About */
  .about-stage { gap: 28px; }
  .about-portrait { max-width: 360px; width: 86%; margin: 0 auto; }
  .portrait-frame { aspect-ratio: 4/5; min-height: 320px; }
  .about-body { font-size: 14.5px; line-height: 1.62; gap: 12px; }
  .credentials-card { padding: 16px 18px; margin-top: 4px; }
  .credentials-head { margin-bottom: 14px; }
  .credentials-head h3 { font-size: 20px; }
  .credentials-grid { gap: 14px 24px; }
  .credentials-grid dd { font-size: 13.5px; }
  .modalities .mod { font-size: 12.5px; padding: 6px 12px; }

  /* Space — flush, full-bleed */
  .space { margin: 0; padding: 60px 22px; border-radius: 0; }
  .space-bg { inset: -35%; }
  .space-inner { gap: 36px; }
  .space-lede { font-size: 14.5px; line-height: 1.6; }
  .space-modes { gap: 10px; }
  .mode-card { padding: 18px 18px 16px; }
  .mode-card h3 { font-size: 21px; }
  .mode-card p { font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; }
  .mode-meta { font-size: 10px; padding-top: 10px; }

  /* Philosophy — flush, full-bleed */
  .philosophy { margin: 0; padding: 60px 22px; border-radius: 0; }
  .philosophy-bg { inset: -30%; }
  .quote p { font-size: clamp(22px, 6.5vw, 30px); line-height: 1.3; }
  .quote footer { margin-top: 20px; font-size: 11px; }
  .qmark { font-size: 84px; top: -16px; left: -4px; }

  /* Focus */
  .focus-grid {
    gap: 8px;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
    max-height: none;
  }
  .focus-card, .focus-card:nth-child(n) { aspect-ratio: 16/11; }
  .focus-card h3 { font-size: 22px; }
  .focus-card p { font-size: 13px; line-height: 1.55; }
  .card-arrow { width: 36px; height: 36px; }

  /* Investment */
  .invest-grid { gap: 10px; }
  .invest-card { padding: 20px 20px; }
  .insurance-card { gap: 14px; }
  .insurance-card h3 { font-size: 22px; }
  .insurance-list li { padding: 10px 0; font-size: 13.5px; }
  .insurance-list em { font-size: 10px; padding: 4px 9px; }
  .amt { font-size: 40px; }
  .per { font-size: 12px; }
  .tile { min-height: auto; padding: 20px 20px; gap: 8px; }
  .tile h4 { font-size: 22px; }
  .tile p { font-size: 13.5px; line-height: 1.55; }
  .tile.wide { padding: 20px 20px; }
  .btn-quiet { padding: 11px 15px; font-size: 12.5px; }

  /* Longform */
  .longform-cols { gap: 18px; }
  .longform-col { font-size: 14.5px; line-height: 1.68; gap: 12px; }
  .longform-inner { gap: 28px; }
  .signature { gap: 12px; padding-top: 18px; }
  .sig-avatar { width: 48px; height: 48px; }
  .sig-name { font-size: 18px; }

  /* Contact */
  .contact { margin: 0; padding: 80px 22px; border-radius: 0; }
  .contact-title { font-size: clamp(40px, 12vw, 64px); }
  .contact-lede { font-size: 14px; line-height: 1.55; margin: 10px 0 24px; }
  .contact-grid { gap: 8px; }
  .contact-card { padding: 18px 20px; min-height: 90px; gap: 8px; }
  .contact-card .contact-label { font-size: 10px; }
  .contact-card .contact-value { font-size: 20px; }
  .contact-arrow { font-size: 18px; top: 16px; right: 18px; }
  .contact-banners { margin-top: 24px; gap: 8px; }
  .banner { padding: 18px 20px; gap: 4px; }
  .banner h3 { font-size: 19px; }
  .banner p { font-size: 13.5px; line-height: 1.55; }

  /* Footer */
  .foot { padding-top: 40px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); margin-top: 24px; }
  .foot-top { gap: 24px; }
  .foot-brand p { font-size: 13px; line-height: 1.6; }
  .foot-cols { gap: 20px 16px; }
  .foot-cols h5 { font-size: 10.5px; margin-bottom: 12px; }
  .foot-cols a, .ul-plain li { font-size: 13.5px; line-height: 1.45; }
  .foot-cols ul { gap: 8px; }
  .foot-bot { margin-top: 24px; padding-top: 16px; gap: 10px; }
  .foot-bot, .foot-socials { font-size: 11.5px; }
  .foot-socials { gap: 12px; }

  /* Drawer touch ergonomics */
  .drawer-panel { padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); gap: 12px; }
  .drawer-nav a { padding: 13px 12px; min-height: 48px; font-size: 18px; }
  .drawer-actions .btn { padding: 14px 16px; min-height: 46px; font-size: 14px; }
  .drawer-status { font-size: 12px; padding: 7px 12px 7px 10px; }
  .drawer-foot { font-size: 10.5px; }

  /* Touch feedback */
  .btn:active, .nav-cta:active, .btn-quiet:active, .ghost-link:active,
  .contact-card:active, .mod:active, .hero-concepts li:active { transform: scale(0.97); }

  /* Pulse divider — hidden between flush sections on mobile */
  .pulse-divider { display: none; }
}

@media (max-width: 460px) {
  .hero-title { font-size: clamp(36px, 13vw, 52px); }
  .hero-actions { flex-direction: column; gap: 8px; }
  .hero-actions .btn { flex: none; width: 100%; }
  .hero-credentials { grid-template-columns: 1fr 1fr; gap: 12px; }
  .invest-rates { grid-template-columns: 1fr; }
  .tile.wide { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tile.wide .tile-actions { width: 100%; }
  .tile.wide .btn-quiet { flex: 1; justify-content: center; min-width: 0; }
  .focus-card h3 { font-size: 20px; }
  .contact-grid { gap: 8px; }
  .contact-card { min-height: 84px; padding: 16px 18px; }
}


/* ============================================================
   OLD-DEVICE FALLBACKS (old iPads / Safari < 15.4, no WebGL)
   Added for the CMS rebuild — degrade gracefully, never blank.
   ============================================================ */

/* oklch() unsupported (Safari < 15.4, older Chrome): redefine the core
   palette vars with hex so text/backgrounds never fall back to transparent. */
@supports not (color: oklch(0.5 0 0)) {
  :root {
    --cream:#f2f5f7; --cream-2:#e9eef1; --cream-3:#dfe6ea;
    --ink:#1b2331; --ink-2:#39434f; --muted:#6b7480; --line:#d6dde2;
    --blue:#3f74c0; --blue-deep:#2c4f8a; --blue-soft:#a9c3e6;
    --blue-tint:#d3e0f0; --teal:#5aa0a0; --sand:#c9b48f;
  }
  body { background:#f2f5f7; color:#1b2331; }
}

/* backdrop-filter unsupported (older iOS Safari): give glass surfaces a
   solid-enough backing so they don't render opaque-black or invisible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .drawer-nav, .glass, .card, .investment .rate, .contact-card { background: rgba(242,245,247,0.92) !important; }
}

/* WebGL/import-map hero fallback: the JS adds .no-hero3d to <html> when the
   particle orb can't run. Hide the empty canvas and give the hero a calm
   static backdrop so the headline still sits on something intentional. */
.no-hero3d .hero-canvas { display:none !important; }
.no-hero3d .hero {
  background:
    radial-gradient(1100px 620px at 72% 38%, rgba(63,116,192,0.20), transparent 60%),
    radial-gradient(760px 520px at 20% 72%, rgba(90,160,160,0.16), transparent 60%),
    linear-gradient(180deg, #eef2f6 0%, #e6edf2 100%);
}

/* No-JS / no-IntersectionObserver: reveal-on-scroll blocks must not stay
   invisible. A classic script adds html.js-io ONLY when IntersectionObserver
   exists; without it (old iOS, or JS off) the reveal targets are forced
   visible so nothing that starts at opacity:0 can get stranded hidden. */
html:not(.js-io) .reveal,
html:not(.js-io) .reveal-words,
html:not(.js-io) [data-reveal] {
  opacity:1 !important; transform:none !important; filter:none !important;
}

/* ---- fancier global buttons (polish pass) ---- */
.nav-cta { box-shadow:0 6px 18px rgba(20,30,45,.20); }
.nav-cta:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(63,116,192,.32); }
.nav-cta svg, .btn svg { transition:transform .2s ease; }
.nav-cta:hover svg, .btn:hover svg { transform:translateX(3px); }
.btn-primary { background:linear-gradient(135deg,var(--blue),var(--blue-deep)); box-shadow:0 10px 26px rgba(63,116,192,.30); }
.btn-primary:hover { transform:translateY(-2px); filter:brightness(1.06); box-shadow:0 16px 36px rgba(63,116,192,.42); }
.btn-ghost { transition:transform .2s ease, background .2s ease, border-color .2s ease; }
.btn-ghost:hover { transform:translateY(-1px); }
