/* Sanjeet Rai — portfolio (warm ink + bronze theme) */

:root {
  /* Warm ink + bronze — editorial, avoids generic “tech blue” slate */
  --bg0: #0a0908;
  --bg1: #12100e;
  --bg2: #181512;
  --surface: #1c1915;
  --surface2: #242019;
  --text: #f5f0e8;
  --text2: #b9aea3;
  --text3: #85786a;
  --line: rgba(212, 175, 120, 0.11);
  --line2: rgba(212, 175, 120, 0.2);
  --accent: #e4b867;
  --accent2: #c49a6c;
  /* Amber → brass → wheat */
  --gradient: linear-gradient(125deg, #c9a227 0%, #d4a574 45%, #e8c078 100%);
  --gradient-soft: linear-gradient(
    135deg,
    rgba(212, 165, 116, 0.22),
    rgba(184, 140, 80, 0.12)
  );
  --glow: rgba(212, 175, 120, 0.38);
  --glow-soft: rgba(212, 175, 120, 0.22);
  /* Shared hovers / rings (replaces scattered blue RGBAs) */
  --ring: rgba(212, 175, 120, 0.1);
  --ring-hover: rgba(212, 175, 120, 0.22);
  --ring-strong: rgba(212, 175, 120, 0.35);
  --highlight-tint: rgba(196, 154, 108, 0.1);
  --highlight-tint-desk: rgba(196, 154, 108, 0.06);
  --on-accent: #1a1510;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 680px;
  --content: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .logo-marquee-track {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text2);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10002;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--gradient);
  pointer-events: none;
  box-shadow: 0 0 24px var(--glow-soft);
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg0);
  font-weight: 600;
  z-index: 100000;
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: #fff;
}

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

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

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: var(--max);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 18px var(--glow-soft);
}

.nav {
  display: none;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .nav {
    gap: 1.75rem;
  }
}

.nav .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text3);
  position: relative;
  padding-bottom: 2px;
}

.nav .nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav .nav-link.is-active {
  color: var(--text);
}

.nav .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text3);
}

.header-link:hover {
  color: var(--text2);
}

.menu-btn {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.menu-btn:hover {
  background: var(--surface2);
}

@media (min-width: 900px) {
  .nav,
  .header-actions {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--gradient);
  color: var(--on-accent);
  box-shadow: 0 4px 28px var(--glow-soft);
}

.btn-primary:hover {
  color: var(--on-accent);
  box-shadow: 0 8px 36px var(--glow);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--line2);
}

.btn-secondary:hover {
  border-color: var(--text3);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--text3);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  background: var(--bg1);
  gap: 0;
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer .nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text2);
}

.nav-drawer .nav-link:hover,
.nav-drawer .nav-link.is-active {
  color: #fff;
}

.nav-drawer .drawer-cta {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1rem;
  background: var(--gradient);
  border: none;
  border-radius: 999px;
  color: var(--on-accent);
}

/* Hero */
.hero {
  position: relative;
  padding-top: 5.5rem;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 85% at 50% -25%, rgba(200, 150, 90, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 45% at 95% 5%, rgba(165, 110, 70, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 40% at 5% 25%, rgba(140, 95, 55, 0.07), transparent 45%),
    var(--bg0);
  pointer-events: none;
}

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

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.orb-a {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  top: -10%;
  right: -5%;
  background: rgba(200, 155, 95, 0.34);
  animation: float-a 18s ease-in-out infinite;
}

.orb-b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  bottom: 10%;
  left: -8%;
  background: rgba(165, 120, 85, 0.26);
  animation: float-b 22s ease-in-out infinite;
}

.orb-c {
  width: min(35vw, 280px);
  height: min(35vw, 280px);
  top: 40%;
  left: 35%;
  background: rgba(210, 170, 110, 0.16);
  animation: float-c 20s ease-in-out infinite;
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, 30px) scale(1.05);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(25px, -15px);
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-15px, 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-a,
  .orb-b,
  .orb-c {
    animation: none;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  padding: 3rem 0 2.5rem;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 4rem;
    padding: 4.5rem 0 3rem;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4a574;
  box-shadow: 0 0 14px rgba(212, 160, 95, 0.5);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 36rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.9375rem;
}

.hero-contact a {
  color: var(--text2);
}

.hero-contact a:hover {
  color: #fff;
}

.hero-contact .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text3);
}

/* Hero metrics panel */
.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .hero-panel {
    gap: 1rem;
  }
}

.metric-card {
  padding: 1.15rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.metric-card:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
}

.metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text3);
}

.metric-card--accent {
  background: var(--gradient-soft);
  border-color: var(--ring-strong);
}

/* Marquee */
.logo-marquee {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.logo-marquee span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1rem;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-tight {
  padding: 3rem 0 4rem;
}

/* Principles */
.principles {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg0) 0%, rgba(18, 16, 14, 0.72) 100%);
}

.principles-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .principles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.principle-card {
  padding: 1.75rem 1.25rem;
  background: linear-gradient(165deg, #1f1b16 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.principle-card:hover {
  border-color: var(--ring-hover);
  transform: translateY(-3px);
}

.principle-card:hover::before {
  opacity: 1;
}

.principle-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.principle-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.principle-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text3);
}

.section-alt {
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .section-head {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 2rem;
  }
}

.section-head--center {
  text-align: center;
  justify-items: center;
  margin-bottom: 2.5rem;
}

.section-head--center .section-desc {
  max-width: 36rem;
}

.section-index {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text3);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.prose .lead {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text2);
  max-width: 52rem;
}

/* Case studies — optimized layout, lighter paint, mobile-first order */
.case {
  margin-bottom: 2.5rem;
  padding: 0;
  background: linear-gradient(165deg, #1f1b16 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.case:last-child {
  margin-bottom: 0;
}

.case:hover {
  border-color: var(--ring-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 44px rgba(0, 0, 0, 0.28),
    0 0 0 1px var(--ring);
}

.case-head {
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.case-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.65rem;
}

.case-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 52ch;
}

.case-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

/* Mobile: outcomes first — scan results before context */
@media (max-width: 799px) {
  .case-col--highlight {
    order: -1;
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 800px) {
  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
  }

  .case-col {
    padding: 1.5rem 1.35rem;
    min-height: 100%;
    border-right: 1px solid var(--line);
  }

  .case-col:last-child {
    border-right: none;
  }
}

@media (max-width: 799px) {
  .case-col {
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .case-col:last-child {
    border-bottom: none;
  }
}

.case-h {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}

.case-col p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.68;
}

.case-col--highlight {
  background: var(--highlight-tint);
}

@media (min-width: 800px) {
  .case-col--highlight {
    background: var(--highlight-tint-desk);
  }
}

.case-bullets {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.58;
}

.case-bullets li {
  margin-bottom: 0.45rem;
}

.case-bullets li:last-child {
  margin-bottom: 0;
}

.case-bullets li::marker {
  color: var(--accent2);
}

/* Single footer band: note + tech chips */
.case-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.08);
}

.case-footer--stack-only {
  gap: 0;
  padding-top: 1.15rem;
}

.case-foot {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.8125rem;
  color: var(--text3);
  line-height: 1.58;
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: none;
}

.case-stack span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  color: var(--text2);
  background: rgba(10, 9, 8, 0.5);
  border: 1px solid var(--line);
  border-radius: 6px;
  line-height: 1;
}

/* Impact */
.impact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 800px) {
  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.impact-tile {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.impact-tile:hover {
  transform: translateY(-3px);
  border-color: var(--ring-hover);
}

.impact-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.impact-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text3);
}

/* Snapshots — short impact stories */
.stories-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1000px) {
  .stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story-card {
  padding: 1.35rem 1.25rem;
  background: linear-gradient(165deg, #1f1b16 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.story-card:hover {
  border-color: var(--ring-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.story-where {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
}

.story-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}

.story-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text2);
}

.story-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Timeline jobs */
.timeline-pro {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 0.5rem;
  padding-left: 0;
}

.job {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

.job::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 1.85rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg1);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--glow-soft);
}

.job:last-child {
  border-bottom: none;
}

.job-time {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.75rem;
}

.job-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.job-co {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--accent2);
  font-weight: 500;
}

.job-sum {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.job--compact .job-sum {
  font-size: 0.875rem;
}

/* Leadership */
.lead-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.lead-icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: var(--gradient);
}

/* Skills */
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.skill-pill {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.skill-pill:hover {
  border-color: var(--ring-strong);
  background: var(--surface2);
}

.skill-pill--lg {
  font-size: 0.9375rem;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* Education */
.edu-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .edu-cards {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.edu-card {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}

.edu-what {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.edu-where {
  font-size: 0.875rem;
  color: var(--text3);
}

/* CTA */
.cta-final {
  padding: 6rem 0;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200, 150, 90, 0.1), transparent 55%),
    var(--bg0);
  border-top: 1px solid var(--line);
}

.cta-inner {
  max-width: 40rem;
}

.cta-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cta-desc {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text2);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 560px) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  padding: 3rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg0);
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

.footer-brand-block {
  max-width: 22rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text3);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.social-link:hover {
  color: #fff;
  border-color: var(--ring-strong);
  transform: translateY(-2px);
  text-decoration: none;
}

.social-link svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.footer-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text3);
  text-align: center;
}

.footer-meta a {
  color: var(--accent2);
  font-weight: 500;
}

.footer-meta a:hover {
  color: #fff;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9990;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 12px;
  color: var(--text2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s,
    border-color 0.2s var(--ease), color 0.2s var(--ease);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  color: #fff;
  border-color: var(--ring-strong);
}

.back-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Scroll reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
