/* ===== TOKENS ===== */
:root {
  --navy: #0B1130;
  --navy-2: #131A40;
  --navy-3: #1A2350;
  --cream: #F8F7F2;
  --orange: #FF5C14;
  --orange-glow: rgba(255, 92, 20, 0.6);
  --green: #4DFFA0;
  --green-glow: rgba(77, 255, 160, 0.55);
  --violet: #8F6CFF;
  --violet-glow: rgba(143, 108, 255, 0.55);
  --grey: #8088A0;
  --grey-line: rgba(248, 247, 242, 0.16);
  --grey-line-soft: rgba(248, 247, 242, 0.08);
  --glass-bg: rgba(19, 26, 64, 0.58);
  --glass-border: rgba(248, 247, 242, 0.18);

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

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

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ===== GLOBAL MESH BACKGROUND ===== */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform, opacity;
  animation-name: meshPulse;
}

@keyframes meshPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.62; }
}

.mesh-blob-1 {
  width: 50vw; height: 50vw;
  top: -10%; left: -10%;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  animation: meshDrift1 22s ease-in-out infinite, meshPulse 7s ease-in-out infinite;
}
.mesh-blob-2 {
  width: 45vw; height: 45vw;
  top: 30%; right: -15%;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  animation: meshDrift2 26s ease-in-out infinite, meshPulse 8.5s ease-in-out infinite;
}
.mesh-blob-3 {
  width: 40vw; height: 40vw;
  bottom: -15%; left: 15%;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  opacity: 0.32;
  animation: meshDrift3 24s ease-in-out infinite, meshPulse 6.5s ease-in-out infinite;
}
.mesh-blob-4 {
  width: 35vw; height: 35vw;
  bottom: 10%; right: 20%;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: 0.26;
  animation: meshDrift1 30s ease-in-out infinite reverse, meshPulse 9s ease-in-out infinite;
}

@keyframes meshDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5vw, 8vh) scale(1.1); }
  66% { transform: translate(-3vw, 4vh) scale(0.95); }
}
@keyframes meshDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8vw, 6vh) scale(1.15); }
}
@keyframes meshDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(6vw, -5vh) scale(1.05); }
  70% { transform: translate(-4vw, -8vh) scale(0.92); }
}

.mesh-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245,243,237,0.025) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob { animation: none; }
}

@media (max-width: 900px) {
  .mesh-blob { filter: blur(50px); opacity: 0.22; }
}

/* ===== CURSOR GLOW (glow-follow) ===== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,0,0.10) 0%, rgba(124,92,255,0.05) 45%, transparent 75%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.active { opacity: 1; }

@media (max-width: 900px), (hover: none) {
  .cursor-glow { display: none; }
}

/* ===== TICKER RAIL — glassmorphism signature element ===== */
.ticker-rail {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 168px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 32px rgba(0,0,0,0.25);
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 0;
}

.ticker-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  padding: 0 20px;
}

.ticker-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--grey-line-soft);
  padding: 10px 8px 14px;
  margin: 0 -8px;
  border-radius: 10px;
  transition: transform 0.45s var(--ease-spring), background 0.3s var(--ease-out), border-color 0.3s;
}

.ticker-stat:hover {
  transform: translateX(-4px) scale(1.04);
  background: rgba(255,255,255,0.04);
}

.ticker-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green);
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px var(--green-glow);
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.ticker-stat-now {
  border-bottom: none;
}

.ticker-stat-now .ticker-value {
  color: var(--orange);
  font-size: 0.85rem;
  text-shadow: 0 0 18px var(--orange-glow);
}

@media (max-width: 900px) {
  .ticker-rail {
    width: 100%;
    height: 60px;
    bottom: 0;
    top: auto;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    flex-direction: row;
    overflow-x: auto;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
  }
  .ticker-rail-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0 16px;
  }
  .ticker-stat {
    border-bottom: none;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 8px;
  }
  .ticker-stat:hover { transform: translateY(-2px) scale(1.04); }
  .ticker-value { font-size: 1rem; }
  .ticker-stat-now { display: none; }
}

/* ===== NAV ===== */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 168px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 50;
  background: rgba(10,14,39,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--grey-line-soft);
  pointer-events: none;
}
.topnav > * { pointer-events: auto; }

@media (max-width: 900px) {
  .topnav { right: 0; }
}

.topnav-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--grey-line);
  padding: 6px 10px;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-spring);
}
.topnav-mark:hover {
  border-color: var(--green);
  box-shadow: 0 0 16px var(--green-glow);
  transform: translateY(-1px);
}

.topnav-toggle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--grey-line);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease-spring);
}
.topnav-toggle:hover { border-color: var(--orange); background: rgba(255,77,0,0.08); transform: translateY(-1px); }
.topnav-toggle:active { transform: translateY(0) scale(0.97); }

.topnav-menu {
  position: absolute;
  top: 56px;
  right: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  transform-origin: top right;
}
.topnav-menu.open {
  display: flex;
  animation: menuPop 0.32s var(--ease-spring);
}
@keyframes menuPop {
  from { opacity: 0; transform: scale(0.92) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.topnav-menu a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.topnav-menu a:hover { background: rgba(255,77,0,0.1); color: var(--orange); padding-left: 16px; }
.topnav-menu a span.range { color: var(--grey); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  margin-right: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 64px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero { margin-right: 0; margin-bottom: 60px; padding: 0 24px; }
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.hb-1 {
  width: 42vw; height: 42vw;
  top: -8%; right: -5%;
  background: radial-gradient(circle, rgba(255,77,0,0.55) 0%, transparent 70%);
  animation: heroFloat1 18s ease-in-out infinite;
}
.hb-2 {
  width: 30vw; height: 30vw;
  bottom: -10%; left: 5%;
  background: radial-gradient(circle, rgba(124,92,255,0.45) 0%, transparent 70%);
  animation: heroFloat2 22s ease-in-out infinite;
}
.hb-3 {
  width: 22vw; height: 22vw;
  top: 40%; left: 35%;
  background: radial-gradient(circle, rgba(57,255,136,0.3) 0%, transparent 70%);
  animation: heroFloat3 20s ease-in-out infinite;
}
@keyframes heroFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-4vw, 5vh) scale(1.12); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(5vw, -4vh) scale(1.08); }
}
@keyframes heroFloat3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-3vw, -6vh) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh-blob { animation: none; }
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,77,0,0.08), transparent 50%),
                     radial-gradient(circle at 10% 80%, rgba(57,255,136,0.05), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Animated title lines */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.title-line {
  display: block;
  position: relative;
  background: linear-gradient(100deg, var(--cream) 30%, var(--orange) 50%, var(--cream) 70%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--cream);
  transform: translateY(110%);
  opacity: 0;
  animation:
    titleRise 1s var(--ease-out) forwards,
    titleSheen 3.2s ease-in-out 1.1s 1;
}
.title-line[data-line="1"] { animation-delay: 0.05s, 1.1s; }
.title-line[data-line="2"] { animation-delay: 0.2s, 1.25s; }

@keyframes titleRise {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes titleSheen {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .title-line { transform: translateY(0); opacity: 1; animation: none; background-position: 0 0; }
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--cream);
  opacity: 0.85;
  max-width: 36ch;
  margin-top: 28px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 36px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-meta .dot { opacity: 0.5; }

.hero-scroll {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: rgba(245,243,237,0.03);
  border: 1px solid var(--grey-line);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 999px;
  margin-top: 36px;
  width: fit-content;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-spring), box-shadow 0.3s;
  position: relative;
  z-index: 1;
}
.hero-scroll:hover {
  border-color: var(--green);
  background: rgba(57,255,136,0.1);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px var(--green-glow);
}
.hero-scroll:active { transform: translateY(-1px) scale(0.98); }

/* Reveal-on-load lines (eyebrow, sub, meta, scroll, logos) */
.reveal-line {
  animation: lineRise 0.8s var(--ease-out) forwards;
  animation-delay: var(--d, 0.3s);
  opacity: 0;
  transform: translateY(14px);
}
@keyframes lineRise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-line { opacity: 1; transform: translateY(0); animation: none; }
}

/* Hero logo strip */
.hero-logos {
  margin-top: 40px;
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.hero-logos-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: logoScroll 32s linear infinite;
}
.hero-logos:hover .hero-logos-track { animation-play-state: paused; }

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  opacity: 0.55;
  filter: grayscale(0.3);
  transition: opacity 0.3s, filter 0.3s, transform 0.3s var(--ease-spring);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  white-space: nowrap;
}
.hero-logo-item:hover { opacity: 1; filter: grayscale(0); transform: translateY(-2px); }
.hero-logo-item img { height: 18px; width: auto; display: block; }
.hero-logo-item .logo-fallback-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-logos { margin-top: 44px; }
}

/* ===== EDUCATION — standalone section, visually distinct from work eras ===== */
.education {
  margin-right: 168px;
  padding: 56px 64px 8px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .education { margin-right: 0; padding: 40px 24px 4px; }
}

.education-card {
  background: linear-gradient(155deg, rgba(143,108,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 36px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}
.education-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, var(--violet-glow), transparent 70%);
  pointer-events: none;
}
.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.5), 0 0 40px -10px var(--violet-glow);
}

.education-range {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--violet);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.education-company {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.education-role {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--cream);
  opacity: 0.8;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.education-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.education-blurb {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.8;
  max-width: 62ch;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

/* ===== TIMELINE ===== */
.timeline {
  margin-right: 168px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .timeline { margin-right: 0; }
}

.era {
  padding: 60px 64px 48px;
  border-top: 1px solid var(--grey-line);
  position: relative;
}
@media (max-width: 900px) {
  .era { padding: 44px 24px 32px; }
}

.era-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  .era-header { grid-template-columns: 1fr; gap: 12px; }
}

.era-range {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.era-titleblock h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 6px;
}

.era-role {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--cream);
  opacity: 0.75;
  font-size: 1.05rem;
}

.era-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 4px;
}

.era-blurb {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.8;
  max-width: 62ch;
  margin-top: 16px;
}

.era-edu-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  box-shadow: 0 0 14px var(--green-glow);
}

/* ===== CLIENT CARDS — 3D tilt + spotlight cursor glow ===== */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.client-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  border: 1px solid var(--grey-line);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-spring), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  will-change: transform;
}

.client-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* ===== CLIENT VISUAL PANEL — industry glyph + animated mini-chart ===== */
.client-visual {
  position: relative;
  height: 112px;
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--sector-color) 35%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--sector-color) 22%, var(--navy-2)), var(--navy-2) 70%);
  border-bottom: 1px solid var(--grey-line-soft);
  overflow: hidden;
  color: var(--sector-color);
  flex-shrink: 0;
  z-index: 1;
}

.visual-glyph {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 30px;
  height: 30px;
  opacity: 0.92;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--sector-color) 70%, transparent));
  transition: transform 0.45s var(--ease-spring);
}
.client-card:hover .visual-glyph {
  transform: scale(1.12) rotate(-4deg);
}

.visual-stat-badge {
  position: absolute;
  bottom: 10px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: rgba(11, 17, 48, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(6px);
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- bars chart --- */
.visual-chart {
  position: absolute;
  right: 16px;
  bottom: 14px;
  top: 14px;
  width: 46%;
  max-width: 170px;
}
.visual-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
}
.vbar {
  flex: 1;
  background: linear-gradient(180deg, var(--sector-color), color-mix(in srgb, var(--sector-color) 40%, transparent));
  border-radius: 3px 3px 0 0;
  height: 6px;
  opacity: 0.85;
  transform-origin: bottom;
  transition: height 0.9s var(--ease-spring);
  transition-delay: calc(var(--i) * 0.07s);
  box-shadow: 0 0 12px color-mix(in srgb, var(--sector-color) 50%, transparent);
}
.chart-live .vbar { height: var(--h); }

/* --- line chart --- */
.visual-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.vline-path {
  stroke: var(--sector-color);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--sector-color) 70%, transparent));
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.3s var(--ease-out);
}
.chart-live .vline-path { stroke-dashoffset: 0; }
.vline-fill {
  fill: color-mix(in srgb, var(--sector-color) 22%, transparent);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 0.5s;
}
.chart-live .vline-fill { opacity: 1; }

/* --- radial chart --- */
.visual-radial {
  width: 64px;
  height: 64px;
  right: 16px;
  top: 14px;
  bottom: auto;
}
.visual-radial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vradial-bg {
  fill: none;
  stroke: rgba(248,247,242,0.12);
  stroke-width: 3;
}
.vradial-fg {
  fill: none;
  stroke: var(--sector-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--sector-color) 70%, transparent));
  transition: stroke-dashoffset 1.1s var(--ease-spring);
}
.chart-live .vradial-fg { stroke-dashoffset: calc(97.4 - (97.4 * var(--pct) / 100)); }
.vradial-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cream);
}

@media (max-width: 520px) {
  .client-visual { height: 96px; }
  .visual-radial { width: 52px; height: 52px; }
}

/* spotlight layer, position set via --mx/--my custom properties from JS */
.client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), rgba(255,92,20,0.26), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.client-card:hover::before { opacity: 1; }

/* thin glowing border sweep on hover */
.client-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%), rgba(77,255,160,0.5), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.client-card:hover::after { opacity: 0.7; }

.client-card:hover {
  border-color: rgba(255,77,0,0.45);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.5), 0 0 40px -8px var(--orange-glow);
}

.client-card > * {
  position: relative;
  z-index: 1;
}

.client-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.client-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-logo-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--green);
  letter-spacing: -0.02em;
}

.client-sector {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--grey);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}

.client-objective {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.55;
  font-style: italic;
  line-height: 1.45;
}

.client-work {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.85;
  line-height: 1.55;
}

.client-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.client-metric {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  display: flex;
  gap: 8px;
  line-height: 1.4;
}
.client-metric::before {
  content: "▸";
  color: var(--orange);
  flex-shrink: 0;
}

.client-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--grey-line-soft);
}

.platform-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  opacity: 0.8;
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.25s, opacity 0.25s;
}
.platform-tag:hover { border-color: var(--green); opacity: 1; }
.platform-tag img { width: 12px; height: 12px; display: block; flex-shrink: 0; }

@media (hover: none) {
  .client-card::before, .client-card::after { display: none; }
}

/* ===== CREDENTIALS ===== */
.credentials {
  margin-right: 168px;
  padding: 64px 64px;
  border-top: 1px solid var(--grey-line);
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .credentials { margin-right: 0; padding: 48px 24px; }
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 28px;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.cred-col {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--grey-line-soft);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.4s var(--ease-spring), border-color 0.3s, background 0.3s;
}
.cred-col:hover {
  transform: translateY(-4px);
  border-color: var(--grey-line);
  background: rgba(255,255,255,0.035);
}

.cred-col h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cred-col h3 img { width: 16px; height: 16px; }

.cred-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.cred-col li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--cream);
  opacity: 0.75;
  line-height: 1.4;
}

.cred-tools {
  margin-top: 32px;
}

.cred-tools h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  padding: 7px 16px 7px 10px;
  color: var(--cream);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.3s, transform 0.35s var(--ease-spring), background 0.3s;
}
.tool-pill:hover {
  border-color: var(--orange);
  background: rgba(255,77,0,0.08);
  transform: translateY(-2px);
}
.tool-pill img { width: 14px; height: 14px; display: block; flex-shrink: 0; }

/* ===== CONTACT ===== */
.contact {
  margin-right: 168px;
  padding: 72px 64px 56px;
  border-top: 1px solid var(--grey-line);
  text-align: left;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
@media (max-width: 900px) {
  .contact { margin-right: 0; padding: 56px 24px 72px; }
}

.contact::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 36vw;
  height: 36vw;
  background: radial-gradient(circle, rgba(255,77,0,0.18), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.contact-sub {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.7;
  max-width: 40ch;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 6px;
  width: fit-content;
  display: inline-block;
  transition: color 0.3s, border-color 0.3s, transform 0.35s var(--ease-spring), text-shadow 0.3s;
  position: relative;
  z-index: 1;
}
.contact-email:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
  text-shadow: 0 0 24px var(--orange-glow);
}

.contact-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 24px;
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.contact-meta .dot { opacity: 0.5; }

.contact-foot {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
  margin-top: 40px;
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

/* ===== SCROLL REVEAL (JS-driven via .is-visible) ===== */
.client-card.reveal,
.era-header.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.client-card.reveal.is-visible,
.era-header.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
