/* Bhargav Somaiya portfolio v4
   Design Read: senior operator portfolio for hiring managers,
   Apple-level premium light paper, cinematic but restrained.
   Dials: VARIANCE 8 / MOTION 8 (hero set-piece) / DENSITY 3-4.
   Accent lock #3EC4E8. Theme lock light. Outfit + JetBrains Mono self-hosted.
   Glass is a labeled web approximation (backdrop-filter + hairline + inset).
   Hard bans: Inter, AI purple, custom cursor, scroll cues, section-number eyebrows. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F1EA;
  --bg-elev: #FFFCF8;
  --text: #152028;
  --muted: #5B6670;
  --accent: #3EC4E8;
  --accent-deep: #1489A8;
  --accent-ink: #03161C;
  --coral: #E07A5F;
  --coral-soft: rgba(224, 122, 95, 0.16);
  --amber: #D4A017;
  --amber-soft: rgba(212, 160, 23, 0.18);
  --mint: #3AAFA9;
  --mint-soft: rgba(58, 175, 169, 0.16);
  --violet: #7B6BB5;
  --violet-soft: rgba(123, 107, 181, 0.14);
  --sky: #5BA4CF;
  --sky-soft: rgba(91, 164, 207, 0.16);
  --hair: rgba(21, 32, 40, 0.10);
  --hair-strong: rgba(21, 32, 40, 0.16);
  --glass: rgba(255, 252, 248, 0.72);
  --shadow: 0 18px 48px rgba(28, 40, 52, 0.08);
  --shadow-soft: 0 12px 32px rgba(28, 40, 52, 0.06);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-shell: 28px;
  --radius-core: 22px;
  --nav-h: 68px;
  --max: 1180px;
  --z-grain: 40;
  --z-nav: 50;
  --z-menu: 60;
  --z-skip: 70;

  /* ---- Type scale (see DESIGN.md) ---- */
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-display: clamp(2.35rem, 6.2vw, 4.55rem);
  --fs-display-sm: clamp(2.2rem, 5vw, 3.6rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 2.75rem);
  --fs-h3: 1.15rem;
  --fs-h3-lg: clamp(1.25rem, 2.4vw, 1.55rem);
  --fs-lede: 1.05rem;
  --fs-body: 1rem;
  --fs-small: 0.84rem;
  --fs-eyebrow: 0.68rem;
  --fs-chip: 0.68rem;
  --fs-mono-stat: clamp(1.35rem, 2.4vw, 1.75rem); /* ~35% smaller; calm Outcomes metrics */
  --fs-mono-stat-sm: clamp(1.15rem, 1.8vw, 1.4rem);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-display: 650;
  --fw-bold: 700;

  --ls-display: -0.04em;
  --ls-tight: -0.03em;
  --ls-h3: -0.02em;
  --ls-body: 0;
  --ls-eyebrow: 0.16em;
  --ls-mono: -0.02em;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-sans); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); line-height: 1.1; }
em { font-style: italic; color: var(--accent-deep); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-mono);
}

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

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: var(--z-skip);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.35s var(--ease);
}
.skip:focus { transform: translateY(0); outline: 2px solid var(--text); outline-offset: 3px; }

/* Ambient (fixed only) */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.62;
  will-change: transform;
  transition: transform 0.8s var(--ease-out-expo);
}
.orb-a {
  width: 42vw; height: 42vw;
  top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(62, 196, 232, 0.38), transparent 68%);
  /* drift disabled: pointer parallax owns this orb's transform */
  animation: none;
}
.orb-b {
  width: 36vw; height: 36vw;
  bottom: 8%; right: -10%;
  background: radial-gradient(circle, rgba(58, 175, 169, 0.20), transparent 70%);
  animation: drift-b 34s var(--ease) infinite alternate;
}
.orb-c {
  width: 28vw; height: 28vw;
  top: 42%; left: 48%;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.22), transparent 70%);
  animation: drift-c 40s var(--ease) infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6%, 10%) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, -6%) scale(1.05); }
}
@keyframes drift-c {
  from { transform: translate(0, 0); }
  to { transform: translate(-5%, 8%); }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}


/* Scroll progress (fixed, thin) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: calc(var(--z-nav) + 1);
  pointer-events: none;
  background: transparent;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 12px rgba(62, 196, 232, 0.55);
  transform-origin: left center;
  will-change: width;
}

.page { position: relative; z-index: 1; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Nav island - glass on fixed element only */
.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
.nav-wrap.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
}
.nav-wrap.is-scrolled .nav {
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.62)), rgba(255,252,248,0.82);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-color: rgba(21, 32, 40, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 18px 48px rgba(28, 40, 52, 0.12);
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 1.5rem);
  height: var(--nav-h);
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42)), var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-right: 0.4rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(62, 196, 232, 0.18);
  color: var(--accent-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
}
.brand-name {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.58rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  color: var(--muted);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(21, 32, 40, 0.05);
}

.nav-cta { display: none; }

.burger {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  background: rgba(21, 32, 40, 0.04);
  margin-left: auto;
}
.burger span {
  position: absolute;
  width: 16px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
  .brand-name { display: inline; }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: grid;
  place-items: center;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  padding: 2rem;
}
.menu[hidden] { display: none; }
.menu ul {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}
.menu a {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  padding: 0.45rem 1rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}
.menu a:hover { color: var(--accent); }
.menu li:nth-child(1) a { transition-delay: 0.05s; }
.menu li:nth-child(2) a { transition-delay: 0.09s; }
.menu li:nth-child(3) a { transition-delay: 0.13s; }
.menu li:nth-child(4) a { transition-delay: 0.17s; }
.menu li:nth-child(5) a { transition-delay: 0.21s; }
.menu li:nth-child(6) a { transition-delay: 0.25s; }
.menu li:nth-child(7) a { transition-delay: 0.29s; }

/* Buttons */
.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.7rem 0.7rem 0.7rem 1.15rem;
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transform: translate(var(--mx), var(--my)) scale(1);
  transition: transform 0.45s var(--ease-spring), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}
.btn:active {
  transform: translate(var(--mx), var(--my)) scale(0.97);
  transition-duration: 0.12s;
}
.btn-orb {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem;
  transition: transform 0.4s var(--ease), background 0.35s var(--ease);
}
.btn:hover .btn-orb { transform: translate(2px, -1px) scale(1.05); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 28px rgba(62, 196, 232, 0.28);
}
.btn-primary .btn-orb { background: rgba(3, 22, 28, 0.14); }
.btn-ghost {
  background: rgba(255,255,255,0.55);
  border-color: var(--hair);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.btn-ghost .btn-orb { background: rgba(62, 196, 232, 0.14); }
.btn-sm {
  padding: 0.45rem 0.45rem 0.45rem 0.9rem;
  font-size: 0.86rem;
}
.btn-sm .btn-orb { width: 28px; height: 28px; font-size: 0.9rem; }
.btn-lg {
  padding: 0.85rem 0.85rem 0.85rem 1.35rem;
  font-size: 1.05rem;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Double-bezel shell */
.shell {
  border-radius: var(--radius-shell);
  padding: 6px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    var(--shadow-soft);
}

/* Soft card washes (secondary accents on cream) */
.tint-wash-teal .core-card {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(62,196,232,0.20), transparent 55%),
    linear-gradient(165deg, rgba(255,255,255,0.95), transparent 48%),
    var(--bg-elev);
}
.tint-wash-coral .core-card {
  background:
    radial-gradient(ellipse at 12% 0%, var(--coral-soft), transparent 55%),
    linear-gradient(165deg, rgba(255,255,255,0.95), transparent 48%),
    var(--bg-elev);
}
.tint-wash-coral .stat,
.tint-wash-coral .skill-icon { color: #C45C42; }
.tint-wash-amber .core-card {
  background:
    radial-gradient(ellipse at 12% 0%, var(--amber-soft), transparent 55%),
    linear-gradient(165deg, rgba(255,255,255,0.95), transparent 48%),
    var(--bg-elev);
}
.tint-wash-amber .stat,
.tint-wash-amber .skill-icon { color: #A67C0C; }
.tint-wash-mint .core-card {
  background:
    radial-gradient(ellipse at 12% 0%, var(--mint-soft), transparent 55%),
    linear-gradient(165deg, rgba(255,255,255,0.95), transparent 48%),
    var(--bg-elev);
}
.tint-wash-mint .stat,
.tint-wash-mint .skill-icon { color: #2A8F8A; }
.tint-wash-violet .core-card {
  background:
    radial-gradient(ellipse at 12% 0%, var(--violet-soft), transparent 55%),
    linear-gradient(165deg, rgba(255,255,255,0.95), transparent 48%),
    var(--bg-elev);
}
.tint-wash-violet .stat,
.tint-wash-violet .skill-icon,
.tint-wash-violet .tally-list .mono { color: #5F5294; }
.tint-wash-sky .core-card {
  background:
    radial-gradient(ellipse at 88% 8%, var(--sky-soft), transparent 45%),
    linear-gradient(165deg, rgba(255,255,255,0.95), transparent 48%),
    var(--bg-elev);
}

.core-card {
  border-radius: var(--radius-core);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.95), transparent 48%),
    var(--bg-elev);
  border: 1px solid rgba(21, 32, 40, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
  padding: 1.35rem 1.4rem 1.45rem;
  height: 100%;
}

/* Typography helpers — mapped to type scale in :root / DESIGN.md */
.h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  text-transform: none;
  max-width: 18ch;
  margin-bottom: 0.85rem;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-h3);
  text-transform: none;
  margin-bottom: 0.45rem;
}
.lede {
  color: var(--muted);
  max-width: 52ch;
  font-size: var(--fs-lede);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-body);
  margin-bottom: 0;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(62, 196, 232, 0.12);
  color: var(--accent-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.inline-link {
  color: var(--accent-deep);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.3s var(--ease);
}
.inline-link:hover { color: var(--text); }

.sec-head { margin-bottom: 2.5rem; }
.stat {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-stat);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-mono);
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

/* Reveal defaults when JS on */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.96);
  filter: blur(10px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo), filter 1s var(--ease-out-expo);
}
.js [data-reveal].is-in {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.js .hero-title .line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.js .hero-title.is-ready .line-inner { transform: translateY(0) !important; }
.js [data-hero-fade] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-hero-fade].is-in {
  opacity: 1 !important;
  transform: none !important;
}
/* Hero stage must remain readable even if a scrub tween glitches */
.hero-stage {
  opacity: 1;
}

.reduced .js [data-reveal],
.reduced.js [data-reveal],
html.reduced [data-reveal],
html.reduced [data-hero-fade],
html.reduced .hero-title .line-inner {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
html.reduced .sf-path,
html.reduced .sf-node,
html.reduced .sf-sat,
html.reduced .sf-cloud,
html.reduced .sf-hub,
html.reduced .sf-hub-ring,
html.reduced .sf-packet {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  stroke-dashoffset: 0 !important;
}
html.reduced .sf-hub-ring {
  opacity: 0.28 !important;
}
html.reduced .sf-packet {
  opacity: 0.75 !important;
}

/* ========== 1. HERO (Salesforce-ecosystem cinematic) ========== */
.hero {
  min-height: 100dvh;
  position: relative;
  width: 100%;
  padding: 0;
  overflow: clip;
}
.hero-stage {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  gap: 1.5rem 2rem;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5.25rem 0 2.75rem;
  will-change: transform, opacity;
  transform-origin: center top;
  grid-template-columns: 1fr;
}
.hero-copy {
  max-width: 38rem;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  margin-bottom: 1rem;
  letter-spacing: var(--ls-display);
  line-height: 1.05;
  text-transform: none;
}
.hero-title em {
  display: inline-block;
  padding-bottom: 0.08em; /* italic descender clearance */
}
.hero-role {
  margin: 0 0 0.85rem;
  color: var(--accent-deep);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  text-transform: none;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-sub {
  color: var(--muted);
  font-size: var(--fs-lede);
  font-weight: var(--fw-regular);
  max-width: 38ch;
  margin-bottom: 1.45rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* CRM diagram stage */
.hero-viz {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
  margin-inline: auto;
  aspect-ratio: 760 / 620;
  pointer-events: none;
  user-select: none;
}
.sf-diagram {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
/* Two inline SVGs: desktop map (16 objects) and mobile map (8 objects) */
.sf-diagram--mobile {
  display: none;
}
/* Salesforce objects: dominant, solid paper plates with a tinted edge */
.sf-node-plate {
  fill: rgba(255, 252, 248, 0.97);
  stroke: var(--node-line, rgba(21, 32, 40, 0.12));
  stroke-width: 1.5;
  filter: drop-shadow(0 12px 24px rgba(28, 40, 52, 0.10));
}
.sf-node-tint {
  fill: var(--node-tint, rgba(0, 161, 224, 0.07));
}
.sf-node-label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--fw-display);
  fill: #152028;
  letter-spacing: -0.01em;
}
/* External apps: smaller, lighter outer-ring pills */
.sf-sat-plate {
  fill: rgba(255, 252, 248, 0.62);
  stroke: rgba(21, 32, 40, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 2.5;
  filter: drop-shadow(0 4px 10px rgba(28, 40, 52, 0.05));
}
.sf-sat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--fw-medium);
  fill: #5B6670;
  letter-spacing: var(--ls-body);
}
.sf-diagram--mobile .sf-node-label {
  font-size: 13px;
}
.sf-diagram--mobile .sf-sat-label {
  font-size: 10px;
}
.sf-path {
  fill: none;
}
.sf-cloud,
.sf-hub,
.sf-hub-ring {
  transform-origin: center;
}
.sf-packet {
  opacity: 0;
  pointer-events: none;
}
.sf-hub-ring {
  transform-box: fill-box;
}

/* Pre-animation resting state (gated by .js, cleared by .is-lit / reduced) */
.js .sf-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.15;
}
.js .sf-node,
.js .sf-sat {
  opacity: 0;
}
.js .sf-cloud,
.js .sf-hub,
.js .sf-hub-ring {
  opacity: 0;
  transform: scale(0.92);
  transform-box: fill-box;
  transform-origin: center;
}
.js .hero-viz.is-static .sf-path,
.js .hero-viz.is-lit .sf-path {
  stroke-dashoffset: 0;
  opacity: 1;
}
.js .hero-viz.is-static .sf-path-secondary,
.js .hero-viz.is-lit .sf-path-secondary {
  opacity: 0.45;
}
.js .hero-viz.is-static .sf-node,
.js .hero-viz.is-lit .sf-node,
.js .hero-viz.is-static .sf-sat,
.js .hero-viz.is-lit .sf-sat {
  opacity: 1;
}
.js .hero-viz.is-static .sf-cloud,
.js .hero-viz.is-lit .sf-cloud,
.js .hero-viz.is-static .sf-hub,
.js .hero-viz.is-lit .sf-hub {
  opacity: 1;
  transform: none;
}
.js .hero-viz.is-static .sf-hub-ring,
.js .hero-viz.is-lit .sf-hub-ring {
  opacity: 0.28;
  transform: none;
}
.js .hero-viz.is-static .sf-packet {
  opacity: 0.75;
}
.js .hero-viz.is-static .sf-path-app,
.js .hero-viz.is-lit .sf-path-app {
  opacity: 0.6;
}
.js .hero-viz.is-static .sf-path-secondary,
.js .hero-viz.is-lit .sf-path-secondary {
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .sf-packet {
    opacity: 0.7;
  }
  html.reduced .hero-viz .sf-packet {
    opacity: 0.75;
  }
}

@media (min-width: 900px) {
  .hero-stage {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: 1.25rem 1.75rem;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }
  .hero-copy {
    max-width: 34rem;
  }
  .hero-viz {
    width: 100%;
    max-width: 46rem;
    margin-inline: 0 0;
    justify-self: end;
  }
  .hero-title {
    font-size: clamp(2.6rem, 4.6vw, 4.55rem); /* display refine @ widescreen */
  }
}

@media (max-width: 899px) {
  .hero-stage {
    align-content: center;
    padding-top: 5rem;
  }
  .hero-viz {
    order: -1;
    width: min(100%, 26rem);
    aspect-ratio: 380 / 300;
  }
  .sf-diagram--desktop {
    display: none;
  }
  .sf-diagram--mobile {
    display: block;
  }
  /* Simplify density on small screens */
  .sf-desktop-only,
  .sf-path-secondary,
  .sf-cloud-soft,
  .sf-hub-ring {
    display: none;
  }
  .hero-title {
    font-size: clamp(2.2rem, 8.5vw, 3.1rem); /* display refine @ mobile */
  }
}

/* ========== 2. ABOUT ========== */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.portrait-shell {
  width: min(340px, 85vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  padding: 8px;
  border: 1px solid var(--hair-strong);
  background: rgba(255,255,255,0.65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    var(--shadow);
}
.portrait-core {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.portrait-core img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.portrait-shell[data-tilt] {
  transition: transform 0.45s var(--ease-out-expo);
  transform-style: preserve-3d;
  will-change: transform;
}
.about-photo[data-tilt-wrap] {
  perspective: 900px;
}
.about-copy .h2 { max-width: none; }
.about-copy .lede { margin-bottom: 1.1rem; }
.about-copy > p { color: var(--muted); max-width: 58ch; }
.about-facts {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid var(--hair);
  padding-top: 1.25rem;
}
.about-facts li {
  display: grid;
  gap: 0.2rem;
}
.fact-label {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-deep);
}
.about-facts li > span:last-child {
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
}

@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
  }
  .portrait-shell { margin-inline: 0; }
  .about-facts li {
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

/* ========== 3. SKILLS ========== */
.skill-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.skill-icon {
  font-size: 1.45rem;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
  display: inline-block;
}
.skill-card .core-card p { color: var(--muted); }

@media (min-width: 768px) {
  .skill-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-areas:
      "lead ba team"
      "gtm gtm ai";
  }
  .skill-lead { grid-area: lead; }
  .skill-card:nth-child(2) { grid-area: ba; }
  .skill-card:nth-child(3) { grid-area: team; }
  .skill-card:nth-child(4) { grid-area: gtm; }
  .skill-card:nth-child(5) { grid-area: ai; }
  .skill-lead .core-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}

/* Marquee - one only */
.marquee {
  margin-top: 3.5rem;
  overflow: hidden;
  border-block: 1px solid var(--hair);
  background: rgba(255,255,255,0.42);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { overflow: hidden; }
.marquee-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  padding: 1.1rem 0;
  font-size: 0.95rem;
  color: var(--muted);
  animation: marquee-scroll 42s linear infinite;
}
.marquee-row .sep { color: var(--accent-deep); opacity: 0.65; font-size: 0.85rem; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}




/* ========== 4. HOW I LEVERAGE AI (room journey) ========== */
.ai .h2 { max-width: 16ch; }
.ai-office-core {
  padding: 1.25rem 1.15rem 1.4rem;
  overflow: visible;
}
.journey {
  display: grid;
  gap: 1.15rem;
}
.journey-stage {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  padding-top: 0.75rem;
  border: 1px solid var(--hair);
  background:
    linear-gradient(180deg, #cfe8f2 0 26%, #e8d7b8 26% 30%, #dcc49a 30% 100%);
  image-rendering: pixelated;
}
.journey-dim {
  position: absolute;
  inset: 0;
  background: rgba(22, 26, 34, 0.28);
  pointer-events: none;
  z-index: 1;
}
.journey-path {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 58%;
  height: 10px;
  z-index: 2;
  background: repeating-linear-gradient(
    90deg,
    rgba(90, 70, 40, 0.22) 0 10px,
    transparent 10px 18px
  );
  border-radius: 4px;
  pointer-events: none;
}
.journey-spot {
  position: absolute;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  left: 7.14%;
  top: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 140, 0.78) 0%, rgba(255, 210, 90, 0.28) 42%, transparent 70%);
  box-shadow: 0 0 36px rgba(255, 210, 90, 0.35);
  pointer-events: none;
  z-index: 3;
  transition: left 0.7s var(--ease-out-expo), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
  mix-blend-mode: screen;
}
.journey-spot.is-approve {
  background: radial-gradient(circle, rgba(255, 200, 80, 0.88) 0%, rgba(212, 160, 23, 0.38) 45%, transparent 70%);
  box-shadow: 0 0 44px rgba(212, 160, 23, 0.48);
}

.journey-rooms {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 0.35rem;
  padding: 2.75rem 0.55rem 0.85rem;
  min-height: 240px;
  align-items: end;
}
.journey-room {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: end;
  gap: 0.45rem;
  padding: 0.45rem 0.2rem 0.35rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(255, 252, 248, 0.18);
  filter: brightness(0.72);
  transition: filter 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  outline: none;
}
.journey-room.is-active {
  filter: brightness(1.05);
  background: rgba(255, 252, 248, 0.42);
  border-color: rgba(62, 196, 232, 0.35);
  transform: translateY(-2px);
  z-index: 5;
}
.journey-room.is-human.is-active {
  border-color: rgba(212, 160, 23, 0.55);
}
.journey-room:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.room-label {
  order: 2;
  font-size: 0.62rem;
  font-weight: var(--fw-display);
  letter-spacing: 0.02em;
  color: #2a241c;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid rgba(42, 36, 28, 0.12);
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  margin-top: 0.15rem;
}
.room-set {
  order: 1;
  position: relative;
  width: 54px;
  height: 64px;
}
.room-prop {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(60, 40, 20, 0.35);
  border-radius: 4px;
  background: #8b5a2b;
  box-shadow: 0 3px 0 #5c3a1a;
}
.room-intake .room-prop { background: #7a9268; }
.room-groom .room-prop { background: #c96b5c; }
.room-arch .room-prop {
  background: #6b7db5;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.2), 0 3px 0 #44507a;
}
.room-build .room-prop { background: #3AAFA9; }
.room-test .room-prop { background: #5BA4CF; }
.room-gate .room-prop {
  background: #D4A017;
  border-radius: 8px 8px 4px 4px;
}
.room-deploy .room-prop { background: #1489A8; }

.room-idle {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 18px;
  height: 26px;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease);
}
.journey-room.is-active .room-idle { opacity: 0; }
.room-idle .px-head,
.walker-sprite .px-head {
  position: absolute;
  left: 3px; top: 2px;
  width: 12px; height: 10px;
  background: #f0c9a0;
}
.room-idle .px-body,
.walker-sprite .px-body {
  position: absolute;
  left: 2px; top: 12px;
  width: 14px; height: 10px;
  background: currentColor;
}
.room-idle .px-legs,
.walker-sprite .px-legs {
  position: absolute;
  left: 3px; top: 22px;
  width: 5px; height: 6px;
  background: #3d4a56;
  box-shadow: 7px 0 0 #3d4a56;
}
.room-idle .px-crown,
.walker-sprite .px-crown {
  position: absolute;
  left: 2px; top: -2px;
  width: 14px; height: 5px;
  background: #D4A017;
  clip-path: polygon(0 100%, 15% 0, 35% 70%, 50% 0, 65% 70%, 85% 0, 100% 100%);
  z-index: 1;
}
.tint-intake { color: #1489A8; }
.tint-groom { color: #E07A5F; }
.tint-arch { color: #7B6BB5; }
.tint-build { color: #3AAFA9; }
.tint-test { color: #5BA4CF; }
.tint-gate { color: #D4A017; }
.tint-deploy { color: #1489A8; }

.journey-walker {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: 28px;
  height: 64px;
  margin-left: -14px;
  margin-top: -58px;
  pointer-events: none;
  transition: left 0.75s var(--ease-out-expo), top 0.75s var(--ease-out-expo);
  will-change: left, top;
}
.journey-walker.is-walking .walker-sprite {
  animation: walk-bob 0.28s steps(2) infinite;
}
.walker-sprite {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 28px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.15));
}
@keyframes walk-bob {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.px-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  max-width: 148px;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: #FFFCF8;
  border: 1px solid rgba(21,32,40,0.12);
  box-shadow: 0 8px 20px rgba(28,40,52,0.12);
  z-index: 8;
  pointer-events: none;
}
.px-bubble.is-shown { display: inline-flex; }
.px-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #FFFCF8;
}
.px-bubble-text {
  font-size: var(--fs-chip);
  font-weight: var(--fw-medium);
  color: var(--text);
  line-height: 1.25;
  font-family: var(--font-sans);
}
.px-state {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.px-state.is-work {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(62,196,232,0.22);
}
.px-state.is-approve {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.28);
}

.journey-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.journey-step {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  text-align: center;
  flex: 1 1 auto;
}
.journey-controls .btn-sm {
  flex: 0 0 auto;
}

.journey-detail {
  border-radius: 16px;
  border: 1px solid var(--hair);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(62,196,232,0.10), transparent 55%),
    rgba(255,255,255,0.55);
  padding: 1.1rem 1.15rem 1.2rem;
  position: relative;
  z-index: 1;
}
.pipe-stage-kicker {
  color: var(--accent-deep);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
  text-transform: none;
}
.journey-detail .h3 { margin-bottom: 0.55rem; }
.journey-detail p { color: var(--muted); }
.pipe-pass {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hair);
  font-size: 0.9rem;
  color: var(--text) !important;
}
.pipe-pass::before {
  content: "-> ";
  color: var(--accent-deep);
  font-weight: 600;
}

.office-terminal {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(21,32,40,0.14);
  background: #1a222a;
  color: #c9d6df;
  min-height: 0;
  max-height: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.term-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  background: #12181f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.term-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #E07A5F;
}
.term-dot:nth-child(2) { background: #D4A017; }
.term-dot:nth-child(3) { background: #3AAFA9; }
.term-title {
  margin-left: 0.45rem;
  font-size: var(--fs-chip);
  font-family: var(--font-mono);
  color: #8aa0ae;
}
.term-body {
  padding: 0.7rem 1rem 0.9rem 0.85rem;
  font-size: var(--fs-eyebrow);
  font-family: var(--font-mono);
  line-height: 1.6;
  max-height: none;
  overflow: visible;
  scrollbar-gutter: stable;
}
.term-line {
  margin: 0 0 0.25rem;
  color: #7f93a1;
  opacity: 0.7;
}
.term-line.is-on {
  color: #9fe3f5;
  opacity: 1;
}
.term-line.is-approve { color: #f0d48a; }

.ai-pillars {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--hair);
}
.ai-pillars li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 0.9rem;
  position: relative;
}
.ai-pillars li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}
.ai-pillars strong { color: var(--text); font-weight: 600; }

@media (max-width: 899px) {
  .journey-rooms {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5rem;
  }
  .journey-room {
    flex: 0 0 88px;
    scroll-snap-align: center;
  }
  .journey-stage { min-height: 280px; }
}

@media (min-width: 900px) {
  .journey-stage { min-height: 300px; }
  .journey-rooms { min-height: 250px; padding: 3rem 0.85rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-walker { transition: none; }
  .journey-spot { transition: none; }
  .journey-walker.is-walking .walker-sprite { animation: none; }
  .journey-room { transition: none; }
}

/* ========== 5. ACHIEVEMENTS (flat panels = Tools group chrome) ========== */

.achieve-bento {
  display: grid;
  gap: 1.15rem; /* ~18px mobile */
  grid-template-columns: 1fr;
}
/* Match .tool-group chrome; roomier padding for readability */
.achieve-cell {
  --tone: var(--accent-deep);
  border-radius: var(--radius-shell);
  border: 1px solid var(--hair);
  background: rgba(255, 252, 248, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), var(--shadow-soft);
  padding: 1.5rem 1.55rem 1.6rem; /* ~24-26px */
  min-width: 0;
}
.achieve-cell > p:not(.stat) {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 38ch;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
}
.achieve-cell .stat {
  color: var(--tone);
  margin: 0 0 0.7rem; /* ~11px to title */
  line-height: 1.15;
}
.achieve-cell .h3 {
  margin: 0 0 0.5rem; /* ~8px to body */
  font-size: var(--fs-body); /* calmer than default H3; still type-scale */
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-h3);
  line-height: 1.3;
  color: var(--text);
}
/* Word-style headline stats sit a step smaller than numbers */
.achieve-cell .stat-text {
  font-size: var(--fs-mono-stat-sm);
  letter-spacing: var(--ls-h3);
}
@media (min-width: 768px) {
  .achieve-bento { gap: 1.5rem; } /* 24px */
  .achieve-cell { padding: 1.6rem 1.7rem 1.75rem; } /* ~26-28px */
  .achieve-cell .stat { min-height: 1.9rem; display: flex; align-items: flex-end; }
}

/* 9 cards: mobile = 1 col; tablet = hero full-width + 2-up pairs;
   desktop = even 3x3 grid. */
@media (min-width: 768px) {
  .achieve-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achieve-health { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .achieve-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem; /* 28px desktop */
  }
  .achieve-health { grid-column: auto; }
}

/* ========== 6. PROJECTS (calm editorial rows, no hover glow) ========== */
.project-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair);
}
.project {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--hair);
  transition: none;
}
.project-head { max-width: 28rem; }
.project-role {
  margin: 0 0 0.45rem;
  color: var(--accent-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.project-title {
  font-family: var(--font-sans);
  font-size: var(--fs-h3-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-h3);
  text-transform: none;
  line-height: 1.2;
  margin: 0;
}
.project-body p {
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 0.9rem;
}
.project-results {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}
.project-results li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}
.project-results li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

@media (min-width: 880px) {
  .project {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    padding: 2.4rem 0;
    align-items: start;
  }
}

/* ========== 7. EXPERIENCE ========== */
.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding-left: 1.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 0.4rem; bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--hair));
  opacity: 0.55;
}
.timeline-item {
  position: relative;
  display: grid;
}
.timeline-marker {
  position: absolute;
  left: -1.4rem;
  top: 1.55rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(62, 196, 232, 0.18);
}
.timeline-when {
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-mono);
  margin-bottom: 0.45rem;
}
.timeline-co {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  margin: 0.15rem 0 0.75rem;
}
.timeline-card .core-card p:last-child { color: var(--muted); }

@media (min-width: 880px) {
  .timeline {
    padding-left: 0;
    gap: 1.5rem;
  }
  .timeline::before {
    left: 11.5rem;
  }
  .timeline-item {
    grid-template-columns: 10.5rem 1fr;
    gap: 2rem;
    align-items: start;
  }
  .timeline-marker {
    left: 11.15rem;
  }
  .timeline-when {
    text-align: right;
    padding-top: 1.55rem;
    margin: 0;
  }
  .timeline-item > .timeline-marker + .timeline-card {
    /* marker is first in DOM currently - restructure via CSS order */
  }
}

/* Timeline desktop: when is inside card on mobile; on desktop we want when left.
   Current HTML has when inside card. For simple sticky-safe timeline, keep when in card
   and use a cleaner single-column with left rail - already works. Override desktop to keep simple. */
@media (min-width: 880px) {
  .timeline {
    padding-left: 1.75rem;
    max-width: 780px;
  }
  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-marker { left: -1.75rem; top: 1.7rem; }
  .timeline-when { text-align: left; padding-top: 0; }
}

/* ========== 8. CONTACT ========== */
.contact {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}
.contact-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}
.contact-title {
  font-size: var(--fs-display-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-display);
  text-transform: none;
  max-width: 16ch;
  line-height: 1.08;
  padding-bottom: 0.1em; /* italic descender clearance if any */
}
.contact-sub {
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}
.contact-email { margin-top: 0.75rem; }
.contact-alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hair);
  padding: 1.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: var(--fs-small);
}
.footer-note { margin: 0; }

/* Reduced motion / transparency */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .marquee-row { animation: none; }
  * { scroll-behavior: auto !important; }
  .sf-path,
  .sf-node,
  .sf-sat,
  .sf-cloud,
  .sf-hub,
  .sf-hub-ring,
  .sf-packet {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .sf-hub-ring { opacity: 0.28 !important; }
  .sf-packet { opacity: 0.75 !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .menu {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #FFFCF8;
  }
}

@media (max-width: 767px) {
  .container { width: min(100% - 1.75rem, var(--max)); }
  .hero-stage { width: min(100% - 1.75rem, var(--max)); padding-top: 4.75rem; }
  .brand-name { display: none; }
}

.marquee [data-marquee].marquee-duped {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee [data-marquee].marquee-duped .marquee-row {
  animation: none;
}
html.reduced .marquee [data-marquee].marquee-duped {
  animation: none;
}


/* ========== WOW LAYER ========== */

.section-tint {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out-expo), background 1.1s var(--ease-out-expo);
  background: radial-gradient(ellipse at 30% 20%, rgba(62,196,232,0.10), transparent 55%);
}
.section-tint[data-tone="teal"] { background: radial-gradient(ellipse at 20% 15%, rgba(62,196,232,0.12), transparent 55%); opacity: 1; }
.section-tint[data-tone="warm"] { background: radial-gradient(ellipse at 70% 20%, rgba(224,122,95,0.10), transparent 55%); opacity: 1; }
.section-tint[data-tone="sky"] { background: radial-gradient(ellipse at 50% 10%, rgba(91,164,207,0.12), transparent 55%); opacity: 1; }
.section-tint[data-tone="mint"] { background: radial-gradient(ellipse at 30% 30%, rgba(58,175,169,0.11), transparent 55%); opacity: 1; }
.section-tint[data-tone="coral"] { background: radial-gradient(ellipse at 80% 20%, rgba(224,122,95,0.11), transparent 55%); opacity: 1; }
.section-tint[data-tone="violet"] { background: radial-gradient(ellipse at 40% 20%, rgba(123,107,181,0.10), transparent 55%); opacity: 1; }
.section-tint[data-tone="amber"] { background: radial-gradient(ellipse at 50% 30%, rgba(212,160,23,0.12), transparent 55%); opacity: 1; }

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 75;
  overflow: hidden;
}
.confetti-bit {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 1px;
  opacity: 0.9;
  will-change: transform, opacity;
}

/* Stronger reveals */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(12px);
  clip-path: inset(8% 0 0 0);
  transition:
    opacity 1.05s var(--ease-out-expo),
    transform 1.05s var(--ease-out-expo),
    filter 1.05s var(--ease-out-expo),
    clip-path 1.05s var(--ease-out-expo);
}
.js [data-reveal].is-in {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: inset(0 0 0 0) !important;
}
html.reduced.js [data-reveal],
html.reduced [data-reveal] {
  clip-path: none !important;
}

/* Nav section spotlight */
.nav-links a {
  position: relative;
}
.nav-links a.is-active {
  color: var(--text);
  background: rgba(62, 196, 232, 0.14);
  box-shadow: inset 0 0 0 1px rgba(62, 196, 232, 0.18);
}

/* CTA liquid hover */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 48%, transparent 62%);
  transform: translateX(-60%);
  transition: transform 0.7s var(--ease-out-expo);
  pointer-events: none;
}
.btn-primary:hover::before { transform: translateX(40%); }
.btn-shimmer {
  box-shadow: 0 10px 28px rgba(62, 196, 232, 0.28), 0 0 0 1px rgba(255,255,255,0.35) inset;
  animation: shimmer-border 3.6s var(--ease) infinite;
}
@keyframes shimmer-border {
  0%, 100% { box-shadow: 0 10px 28px rgba(62,196,232,0.28), 0 0 0 1px rgba(255,255,255,0.35) inset; }
  50% { box-shadow: 0 12px 34px rgba(62,196,232,0.42), 0 0 0 1px rgba(255,255,255,0.55) inset, 0 0 24px rgba(62,196,232,0.2); }
}

/* Skills 3D tilt + icon pop */
.skill-card[data-tilt-card] {
  transform-style: preserve-3d;
  perspective: 800px;
}
.skill-card[data-tilt-card] .core-card {
  transition: transform 0.45s var(--ease-out-expo);
  transform-style: preserve-3d;
  will-change: transform;
}
.skill-icon[data-icon-pop].is-pop {
  animation: icon-bounce 0.7s var(--ease-spring) both;
}
@keyframes icon-bounce {
  0% { transform: translateY(8px) scale(0.7); opacity: 0.4; }
  55% { transform: translateY(-6px) scale(1.12); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

/* Timeline draw */
.timeline {
  position: relative;
}
.timeline-draw {
  position: absolute;
  left: 5px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--coral), var(--amber));
  transform-origin: top center;
  transform: scaleY(0);
  border-radius: 2px;
  z-index: 0;
  opacity: 0.75;
}
.timeline::before { opacity: 0.2; }
.timeline-marker {
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease);
}
.timeline-item.is-pop .timeline-marker {
  transform: scale(1.35);
  box-shadow: 0 0 0 6px rgba(62, 196, 232, 0.22);
}
@media (min-width: 880px) {
  .timeline-draw { left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-shimmer { animation: none; }
  .btn-primary::before { display: none; }
  .skill-icon[data-icon-pop].is-pop { animation: none; }
  .timeline-draw { transform: scaleY(1); }
  .section-tint { display: none; }
}


/* ========== 3b. TOOLS I'VE OWNED ========== */
.section.tools { overflow: hidden; }
@supports (overflow: clip) { .section.tools { overflow: clip; } }
.tools-stage { position: relative; isolation: isolate; }
.tools-glow {
  position: absolute;
  inset: -6% -4%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 18% 28%, rgba(62,196,232,0.20), transparent 70%),
    radial-gradient(34% 42% at 82% 22%, rgba(224,122,95,0.16), transparent 70%),
    radial-gradient(36% 44% at 66% 82%, rgba(123,107,181,0.14), transparent 70%),
    radial-gradient(30% 40% at 28% 86%, rgba(212,160,23,0.14), transparent 70%);
  filter: blur(28px);
  opacity: 0.9;
  animation: tools-drift 26s ease-in-out infinite alternate;
}
@keyframes tools-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) rotate(2deg) scale(1.03); }
  100% { transform: translate3d(-2%, 1.5%, 0) rotate(-2deg) scale(1); }
}

.tools-board { display: grid; gap: 1.15rem; }
.tools-row { display: grid; gap: 1.15rem; }

.tool-group {
  --tone: var(--accent-deep);
  border-radius: var(--radius-shell);
  border: 1px solid var(--hair);
  background: rgba(255, 252, 248, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), var(--shadow-soft);
  padding: 1.5rem 1.55rem 1.6rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .tools-board, .tools-row { gap: 1.5rem; }
  .tool-group { padding: 1.6rem 1.7rem 1.75rem; }
}
@media (min-width: 1100px) {
  .tools-board, .tools-row { gap: 1.75rem; }
}
.tone-teal   { --tone: #1489A8; }
.tone-coral  { --tone: #C45C42; }
.tone-amber  { --tone: #A67C0C; }
.tone-violet { --tone: #5F5294; }
.tone-mint   { --tone: #2A8F8A; }
.tone-sky    { --tone: #2F7DAE; }
.tone-indigo { --tone: #5B4B8A; }

.tool-group-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: var(--fs-h3); /* same tier as Outcomes / Skills card titles */
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-h3);
  text-transform: none;
  color: var(--tone);
  margin: 0.1rem 0.1rem 0.85rem;
  line-height: 1.2;
}
.tool-group-title { flex: 1; min-width: 0; }
.tool-count {
  margin-left: auto;
  flex: none;
  font-family: var(--font-sans);
  font-size: var(--fs-chip);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-body);
  line-height: 1;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
  white-space: nowrap;
  text-transform: none;
}
.tool-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 16%, transparent);
  flex: none;
}

.tool-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tool-tile {
  perspective: 700px;
  border-radius: 16px;
  outline: none;
  min-width: 0;
}
.tool-core {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 100%;
  min-height: 58px;
  padding: 0.6rem 0.75rem;
  border-radius: 16px;
  background: linear-gradient(165deg, #FFFFFF, var(--bg-elev));
  border: 1px solid rgba(21, 32, 40, 0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 2px 6px rgba(28,40,52,0.04);
  transform-style: preserve-3d;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
  will-change: transform;
}
.tool-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  overflow: visible;
}
.tool-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.9);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.tool-tile--word .tool-logo { width: 84px; height: 24px; }
.tool-name {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text);
  line-height: 1.2;
  min-width: 0;
}
.tool-tile--word .tool-name {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Hover / focus: logo lifts from muted to brand colour; soft brand rim */
.tool-tile:hover .tool-logo img,
.tool-tile:focus-visible .tool-logo img {
  filter: saturate(1.15);
  transform: translateZ(14px) scale(1.06);
}
.tool-tile:hover .tool-core,
.tool-tile:focus-visible .tool-core {
  border-color: color-mix(in srgb, var(--brand) 32%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 10px 26px color-mix(in srgb, var(--brand) 16%, transparent);
}
.tool-tile:focus-visible .tool-core {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}


/* Salesforce feature tile */
.tool-tile--feature { grid-column: 1 / -1; }
.tool-tile--feature .tool-core { gap: 1rem; padding: 0.85rem 1rem; }
.tool-tile--feature .tool-logo { width: 64px; height: 46px; }
.tool-feature-copy { display: grid; gap: 0.45rem; min-width: 0; }
.tool-tile--feature .tool-name { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.tool-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tool-chips span {
  font-size: var(--fs-eyebrow);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0,161,224,0.22);
  background: rgba(0,161,224,0.07);
  color: #0B6E99;
  white-space: nowrap;
}

/* Mobile: odd-count groups span last tile for an even 2-up finish */
.tool-group--fin .tool-tile:last-child { grid-column: 1 / -1; }

/* Staggered reveal of tiles (panel uses global data-reveal) */
.js .tool-group .tool-tile {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 70ms + 180ms);
}
.js .tool-group.is-in .tool-tile { opacity: 1; transform: none; }

/* Tablet: 2-up panels; AI + Integration full-width for even tile grids */
@media (min-width: 768px) {
  .tools-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-row { display: contents; }
  .tool-group--ai { order: 6; grid-column: 1 / -1; }
  .tool-group--data { order: 7; grid-column: 1 / -1; }
  .tool-group--collab { order: 5; }
  .tool-tiles { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .tool-group--fin .tool-tile:last-child { grid-column: auto; }
  .tool-core {
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    min-height: 96px;
    padding: 0.85rem 0.5rem 0.75rem;
    text-align: center;
  }
  .tool-logo { width: 80%; height: 28px; }
  .tool-tile--word .tool-logo { width: 80%; height: 24px; }
  .tool-tile--word .tool-name {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
  }
  .tool-name { font-size: var(--fs-small); color: var(--muted); }
  .tool-tile--feature .tool-core { flex-direction: row; text-align: left; justify-content: flex-start; padding: 0.85rem 1.25rem; }
  .tool-tile--feature .tool-logo { width: 72px; height: 50px; }
  .tool-tile--feature .tool-name { color: var(--text); }
  .tool-group--sales .tool-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-group--ai .tool-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-group--data .tool-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Desktop: rows with panel widths proportional to tile count */
@media (min-width: 1100px) {
  .tools-board { display: grid; grid-template-columns: 1fr; }
  .tools-row { display: grid; grid-template-columns: var(--cols); }
  .tool-group--ai,
  .tool-group--data,
  .tool-group--collab { order: 0; grid-column: auto; }
  .tool-group--sales .tool-tiles,
  .tool-group--ai .tool-tiles,
  .tool-group--data .tool-tiles { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .tool-group--crm .tool-tile--feature .tool-core { min-height: 96px; }
}

/* Reduced motion: static, no tilt, no glow drift, no stagger */
@media (prefers-reduced-motion: reduce) {
  .tools-glow { animation: none; }
  .js .tool-group .tool-tile { opacity: 1; transform: none; transition: none; }
  .tool-core, .tool-logo img { transition: none; }
  .tool-tile:hover .tool-logo img, .tool-tile:focus-visible .tool-logo img { transform: none; }
}
html.reduced .tools-glow { animation: none; }
html.reduced .js .tool-group .tool-tile,
html.reduced.js .tool-group .tool-tile { opacity: 1; transform: none; transition: none; }
