/* =========================================================
   Ashutosh Aman — Portfolio
   Palette: Forest Obsidian · Pine · Sage · Mist · Cream
   ========================================================= */

:root {
  --obsidian: #101D18;
  --obsidian-2: #0B1511;
  --pine: #244B3A;
  --sage: #5F8C6D;
  --mist: #DFE8D9;
  --cream: #F7F4EA;

  --text: var(--cream);
  --text-dim: rgba(223, 232, 217, 0.72);
  --text-faint: rgba(223, 232, 217, 0.45);
  --line: rgba(223, 232, 217, 0.1);
  --line-strong: rgba(223, 232, 217, 0.18);
  --surface: rgba(36, 75, 58, 0.22);
  --surface-2: rgba(36, 75, 58, 0.4);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--obsidian);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }

::selection { background: var(--sage); color: var(--cream); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { color: var(--cream); font-weight: 600; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 1000;
  background: var(--cream); color: var(--obsidian);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--obsidian-2); }
::-webkit-scrollbar-thumb { background: var(--pine); border-radius: 10px; border: 2px solid var(--obsidian-2); }
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

/* ---------- Ambient layers ---------- */
#bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(95, 140, 109, 0.22), transparent 60%),
    radial-gradient(800px 600px at -10% 40%, rgba(36, 75, 58, 0.45), transparent 60%),
    radial-gradient(700px 500px at 60% 110%, rgba(36, 75, 58, 0.35), transparent 60%),
    var(--obsidian);
}
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, 5%); }
  80% { transform: translate(4%, -2%); }
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; z-index: -1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(95, 140, 109, 0.16), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.4s;
}
body.has-pointer .cursor-glow { opacity: 1; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 200;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--pine), var(--sage), var(--mist));
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: var(--obsidian);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader-mark {
  font-family: var(--font-mono); font-weight: 600; font-size: 28px; color: var(--cream);
  animation: pulse 1.2s ease-in-out infinite;
}
.loader-bar { width: 140px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader-bar span {
  display: block; height: 100%; width: 40%; background: var(--sage);
  animation: load 1s var(--ease) infinite;
}
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(16, 29, 24, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.hidden { transform: translateY(-100%); }
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.logo-mark {
  font-family: var(--font-mono); font-size: 14px;
  padding: 6px 10px; border-radius: 10px;
  background: var(--pine); border: 1px solid rgba(95, 140, 109, 0.5);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); background: var(--sage); }
.logo-text { font-size: 16px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--text-dim);
  padding: 8px 14px; border-radius: 999px; transition: color 0.25s, background 0.25s;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--sage);
  transform: translateX(-50%) scale(0); transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after { transform: translateX(-50%) scale(1); }
.nav-links .nav-cta {
  margin-left: 8px; color: var(--obsidian); background: var(--cream); font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--mist); color: var(--obsidian); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 12px; border: 1px solid var(--line-strong); }
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn-primary {
  background: var(--cream); color: var(--obsidian);
  box-shadow: 0 10px 30px -10px rgba(247, 244, 234, 0.35);
}
.btn-primary:hover { background: var(--mist); box-shadow: 0 14px 40px -10px rgba(223, 232, 217, 0.5); }
.btn-secondary { background: var(--surface); border: 1px solid var(--line-strong); color: var(--cream); backdrop-filter: blur(8px); }
.btn-secondary:hover { border-color: var(--sage); background: var(--surface-2); }
.btn-large { padding: 17px 30px; font-size: 16px; }

.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--mist); background: var(--surface);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.icon-btn:hover { border-color: var(--sage); color: var(--cream); background: var(--pine); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 56px) 0 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 13px; color: var(--mist); backdrop-filter: blur(8px);
}
.badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #7FCF95; }
.badge-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #7FCF95; animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title {
  margin: 28px 0 22px;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.js .hero-title .word {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
.hero-title .serif { font-weight: 400; font-size: 1.12em; letter-spacing: -0.02em; padding-right: 0.08em; }
body.loaded .hero-title .word { transform: translateY(0); }
body.loaded .hero-title .line:nth-child(2) .word { transition-delay: 0.1s; }
body.loaded .hero-title .line:nth-child(3) .word { transition-delay: 0.2s; }

.shimmer {
  background: linear-gradient(100deg, var(--sage) 0%, var(--mist) 30%, var(--cream) 50%, var(--mist) 70%, var(--sage) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

.hero-role { font-family: var(--font-mono); font-size: clamp(15px, 1.6vw, 18px); color: var(--mist); margin-bottom: 18px; }
.hero-role .mono { color: var(--sage); margin-right: 6px; }
.typed { color: var(--cream); font-weight: 500; }
.caret { color: var(--sage); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.hero-subtitle { max-width: 580px; font-size: 17px; color: var(--text-dim); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.hero-socials { display: flex; gap: 10px; margin-left: 4px; }

/* Orbit visual */
.hero-visual { display: grid; place-items: center; }
.orbit-system { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.orbit-ring {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(223, 232, 217, 0.16);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ring-1 { width: 44%; height: 44%; }
.ring-2 { width: 70%; height: 70%; border-style: solid; border-color: rgba(95, 140, 109, 0.22); }
.ring-3 { width: 96%; height: 96%; }
.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--sage), var(--pine) 60%, #183427);
  box-shadow: 0 0 0 10px rgba(95, 140, 109, 0.08), 0 0 80px rgba(95, 140, 109, 0.45), inset 0 -10px 30px rgba(0,0,0,0.3);
  animation: core 5s ease-in-out infinite;
}
@keyframes core { 50% { box-shadow: 0 0 0 18px rgba(95, 140, 109, 0.05), 0 0 110px rgba(95, 140, 109, 0.55), inset 0 -10px 30px rgba(0,0,0,0.3); } }
.core-label { font-weight: 800; font-size: clamp(16px, 2vw, 22px); letter-spacing: -0.02em; }
.core-sub { font-family: var(--font-mono); font-size: 10px; color: var(--mist); opacity: 0.75; text-transform: uppercase; letter-spacing: 0.15em; }

.orbit-track { position: absolute; top: 50%; left: 50%; border-radius: 50%; animation: spin linear infinite; }
.track-1 { width: 44%; height: 44%; margin: -22% 0 0 -22%; animation-duration: 18s; }
.track-2 { width: 70%; height: 70%; margin: -35% 0 0 -35%; animation-duration: 28s; animation-direction: reverse; }
.track-3 { width: 96%; height: 96%; margin: -48% 0 0 -48%; animation-duration: 40s; }
.planet {
  position: absolute; top: 0; left: 50%;
  translate: -50% -50%;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(16, 29, 24, 0.85); border: 1px solid rgba(95, 140, 109, 0.55);
  backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: counter linear infinite;
}
.planet small { font-family: var(--font-mono); font-size: 10px; color: var(--sage); }
.track-1 .planet { animation-duration: 18s; }
.track-2 .planet { animation-duration: 28s; animation-direction: reverse; }
.track-3 .planet { animation-duration: 40s; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes counter { to { rotate: -360deg; } }
/* give each planet a different starting angle */
.track-2 .planet { top: 85%; left: 15%; }
.track-3 .planet { top: 50%; left: 100%; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.stat-card {
  padding: 22px 22px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.stat-card:hover { border-color: rgba(95, 140, 109, 0.6); transform: translateY(-4px); }
.stat-number { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--cream); }
.stat-label { font-size: 13px; color: var(--text-faint); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-strong);
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--mist); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: rgba(36, 75, 58, 0.18); padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 32px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--mist); white-space: nowrap; }
.marquee span:nth-of-type(even) { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--sage); }
.marquee i { font-style: normal; color: var(--sage); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 130px 0; position: relative; }
.section-header { max-width: 720px; margin-bottom: 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--sage); margin-bottom: 16px;
}
.tag-num { padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--mist); }
.section-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em;
}
.section-title .serif { color: var(--mist); font-size: 1.1em; }
.section-description { margin-top: 18px; font-size: 17px; color: var(--text-dim); }

/* Reveal on scroll */
/* uses the `translate` property so `transform` stays free for hover / tilt effects */
html.js .reveal { opacity: 0; translate: 0 36px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s, background 0.3s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s, 0s; }
html.js .reveal.in { opacity: 1; translate: none; }

/* Spotlight (mouse-tracking glow inside cards) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(95, 140, 109, 0.22), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.spotlight::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(223, 232, 217, 0.55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.glass {
  background: linear-gradient(160deg, rgba(36, 75, 58, 0.45), rgba(36, 75, 58, 0.15));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.about-text-card { padding: 40px; }
.about-text-card h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 20px; }
.about-text-card p { color: var(--text-dim); margin-bottom: 16px; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--mist);
  background: rgba(16, 29, 24, 0.5); border: 1px solid var(--line-strong);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.meta-pill:hover { border-color: var(--sage); transform: translateY(-2px); }
.meta-pill svg { color: var(--sage); }

.about-side { display: flex; flex-direction: column; gap: 16px; }
.terminal {
  border-radius: var(--radius-sm); overflow: hidden;
  background: rgba(8, 15, 12, 0.85); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); background: rgba(36, 75, 58, 0.25);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--pine); }
.terminal-bar i:nth-child(1) { background: #c9705f; }
.terminal-bar i:nth-child(2) { background: #d6b25e; }
.terminal-bar i:nth-child(3) { background: var(--sage); }
.terminal-bar span { margin-left: auto; margin-right: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); transform: translateX(-20px); }
.terminal-body {
  padding: 18px 20px; min-height: 196px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: var(--mist);
  white-space: pre-wrap; word-break: break-word;
}
.terminal-body .p { color: var(--sage); }
.terminal-body .k { color: #9fd3ae; }
.terminal-body .s { color: #e3d6a6; }
.terminal-body .c { color: var(--text-faint); }
.terminal-body .cur { display: inline-block; width: 8px; height: 15px; background: var(--mist); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

.side-cards { display: grid; gap: 16px; }
.side-card {
  padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px;
  transition: border-color 0.3s;
}
.side-card:hover { border-color: rgba(95, 140, 109, 0.6); }
.side-card-icon {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pine); color: var(--mist); border: 1px solid rgba(95, 140, 109, 0.5);
}
.side-card h4 { font-size: 16px; }
.side-card p { font-size: 14px; color: var(--text-dim); }

/* ---------- Ventures ---------- */
.parent-card {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
  padding: 44px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--pine) 0%, #1b3a2d 60%, #142b21 100%);
  border: 1px solid rgba(95, 140, 109, 0.55);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
}
.parent-glow {
  position: absolute; width: 480px; height: 480px; right: -140px; top: -220px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(223, 232, 217, 0.18), transparent 65%);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-40px, 30px); } }
.parent-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  padding: 5px 10px; border-radius: 6px; background: rgba(16, 29, 24, 0.5); color: var(--mist); margin-bottom: 16px;
}
.parent-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.parent-role { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--mist); margin: 8px 0 18px; }
.parent-desc { max-width: 640px; color: rgba(247, 244, 234, 0.8); }
.domain-tag {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 14px; padding: 10px 16px; border-radius: 999px;
  background: rgba(16, 29, 24, 0.55); border: 1px solid rgba(223, 232, 217, 0.25);
  transition: background 0.3s, border-color 0.3s;
}
.domain-tag:hover { background: var(--cream); color: var(--obsidian); border-color: var(--cream); }

.tree-connector { position: relative; height: 56px; margin: 0 auto; width: 66.6%; }
.tree-connector::before {
  content: ""; position: absolute; left: 50%; top: 0; height: 28px; width: 1px; background: var(--sage);
}
.tree-connector::after {
  content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: linear-gradient(90deg, var(--sage), var(--mist), var(--sage));
}
.tree-connector span { position: absolute; top: 28px; width: 1px; height: 28px; background: var(--sage); }
.tree-connector span:nth-child(1) { left: 0; }
.tree-connector span:nth-child(2) { left: 50%; }
.tree-connector span:nth-child(3) { right: 0; }

.ventures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.venture-card {
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(36, 75, 58, 0.42), rgba(16, 29, 24, 0.6));
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.venture-card:hover { border-color: rgba(95, 140, 109, 0.7); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.venture-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.venture-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--pine); color: var(--cream); border: 1px solid rgba(95, 140, 109, 0.55);
  transition: transform 0.5s var(--ease), background 0.3s;
}
.venture-card:hover .venture-icon { transform: rotate(-8deg) scale(1.08); background: var(--sage); }
.venture-badge {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 10px; border-radius: 999px; color: var(--mist); border: 1px solid var(--line-strong);
}
.venture-index { font-family: var(--font-mono); font-size: 12px; color: var(--sage); }
.venture-title { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 4px; }
.venture-tagline { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--mist); margin-bottom: 14px; }
.venture-tagline b { font-family: var(--font-sans); font-style: normal; font-weight: 700; color: var(--cream); font-size: 15px; }
.venture-body { font-size: 14.5px; color: var(--text-dim); margin-bottom: 22px; flex: 1; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags span {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(223, 232, 217, 0.07); color: var(--mist); border: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.tech-tags span:hover { background: rgba(95, 140, 109, 0.25); border-color: rgba(95, 140, 109, 0.6); }

.wave { display: flex; align-items: center; gap: 3px; height: 28px; margin: -6px 0 18px; }
.wave i { flex: 1; max-width: 4px; height: 30%; border-radius: 2px; background: var(--sage); animation: wave 1.2s ease-in-out infinite; opacity: 0.8; }
.venture-card:hover .wave i { background: var(--mist); }
.wave i:nth-child(3n) { animation-delay: -0.3s; }
.wave i:nth-child(3n+1) { animation-delay: -0.6s; }
.wave i:nth-child(4n) { animation-delay: -0.9s; }
.wave i:nth-child(5n) { animation-delay: -0.15s; }
@keyframes wave { 50% { height: 100%; } }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card {
  padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.skill-card:hover { border-color: rgba(95, 140, 109, 0.65); transform: translateY(-6px); }
.skill-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.skill-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pine); color: var(--mist); border: 1px solid rgba(95, 140, 109, 0.5);
}
.skill-head h3 { font-size: 18px; }
.skill-list { list-style: none; display: flex; flex-direction: column; }
.skill-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line); font-weight: 500;
}
.skill-list li:first-child { border-top: 0; }
.chip { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }
.level { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mist); font-family: var(--font-mono); }
.level::before {
  content: ""; width: 54px; height: 6px; border-radius: 6px;
  background:
    linear-gradient(90deg, var(--sage) 0 var(--fill, 0%), rgba(223,232,217,0.12) var(--fill, 0%) 100%);
  transition: --fill 1.2s var(--ease);
}
@property --fill { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.skill-card.in .level[data-level="3"] { --fill: 100%; }
.skill-card.in .level[data-level="2"] { --fill: 66%; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 48px; max-width: 900px; }
.timeline-line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline-fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--mist), var(--sage), var(--pine)); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute; left: -48px; top: 30px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--obsidian); border: 2px solid var(--sage);
  display: grid; place-items: center;
}
.timeline-marker::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); transition: transform 0.4s var(--ease), background 0.3s; }
.timeline-item:hover .timeline-marker::after { transform: scale(1.4); background: var(--cream); }
.timeline-card {
  padding: 30px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.timeline-card:hover { border-color: rgba(95, 140, 109, 0.65); transform: translateX(6px); }
.timeline-card.featured { background: linear-gradient(140deg, rgba(36, 75, 58, 0.75), rgba(36, 75, 58, 0.25)); border-color: rgba(95, 140, 109, 0.55); }
.timeline-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.role-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 6px; background: var(--cream); color: var(--obsidian); font-weight: 600; margin-bottom: 12px;
}
.timeline-card h3 { font-size: 21px; letter-spacing: -0.02em; }
.timeline-card h4 { font-size: 14px; font-weight: 500; color: var(--sage); margin-top: 4px; }
.timeline-date {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; color: var(--mist);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(16, 29, 24, 0.5);
}
.timeline-card > p { color: var(--text-dim); font-size: 15px; }
.timeline-card ul { list-style: none; margin: 14px 0 18px; display: grid; gap: 8px; }
.timeline-card li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 14.5px; }
.timeline-card li::before { content: "→"; position: absolute; left: 0; color: var(--sage); font-family: var(--font-mono); }
.timeline-card .tech-tags { margin-top: 18px; }

/* ---------- Education ---------- */
.education-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.edu-card {
  padding: 34px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color 0.3s;
}
.edu-card.featured { background: linear-gradient(150deg, rgba(36, 75, 58, 0.7), rgba(36, 75, 58, 0.2)); border-color: rgba(95, 140, 109, 0.55); }
.edu-card:hover { border-color: rgba(95, 140, 109, 0.7); }
.edu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.edu-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--pine); color: var(--cream); border: 1px solid rgba(95, 140, 109, 0.55);
}
.edu-period { font-family: var(--font-mono); font-size: 12px; color: var(--mist); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.edu-badge { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage); }
.edu-card h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; margin: 10px 0 8px; }
.edu-card h4 { font-size: 16px; font-weight: 600; color: var(--mist); }
.edu-affil { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--text-dim); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-box {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 48px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(36, 75, 58, 0.55), rgba(16, 29, 24, 0.8));
  border: 1px solid rgba(95, 140, 109, 0.45);
}
.contact-aurora {
  position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(95, 140, 109, 0.35) 60deg, transparent 120deg, rgba(223, 232, 217, 0.12) 200deg, transparent 260deg);
  filter: blur(60px); animation: aurora 16s linear infinite;
}
.contact-box { isolation: isolate; }
@keyframes aurora { to { transform: rotate(360deg); } }
.contact-title { font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.contact-title .serif { display: block; color: var(--mist); font-size: 1.08em; }
.contact-subtitle { max-width: 560px; margin: 20px auto 0; color: var(--text-dim); font-size: 17px; }

.email-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 38px 0 44px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px; border-radius: 999px; font-size: 14px;
  border: 1px dashed rgba(223, 232, 217, 0.35); color: var(--mist);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.copy-btn:hover { border-style: solid; border-color: var(--sage); background: rgba(16, 29, 24, 0.5); color: var(--cream); }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; text-align: left; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: rgba(16, 29, 24, 0.55); border: 1px solid var(--line-strong);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.contact-card > svg:first-child { color: var(--sage); flex-shrink: 0; }
.contact-card div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact-label { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-card .arrow { color: var(--text-faint); transition: transform 0.35s var(--ease), color 0.3s; }
.contact-card:hover { border-color: var(--sage); transform: translateY(-4px); }
.contact-card:hover .arrow { transform: translate(3px, -3px); color: var(--cream); }

.location-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: rgba(11, 21, 17, 0.6); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-mono); font-weight: 600; }
.site-footer p { font-size: 14px; color: var(--text-faint); margin-top: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--text-dim); position: relative; }
.footer-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: var(--sage); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.footer-links a:hover { color: var(--cream); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 13px; }
.to-top { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background 0.3s, transform 0.4s var(--ease); }
.to-top:hover { background: var(--pine); transform: translateY(-4px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translate(-50%, 140%); opacity: 0;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--cream); color: var(--obsidian); box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.5s var(--ease), opacity 0.5s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: 2; }
  .orbit-system { width: min(380px, 90vw); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .ventures-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
  .ventures-grid .venture-card:last-child { grid-column: span 2; }
  .skills-grid .skill-card:last-child { grid-column: span 2; }
  .tree-connector { display: none; }
  .ventures-grid { margin-top: 20px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 8px;
    background: rgba(16, 29, 24, 0.97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-links a { font-size: 26px; font-weight: 700; color: var(--cream); padding: 10px 20px; }
  .nav-links .nav-cta { margin: 16px 0 0; font-size: 18px; padding: 14px 28px; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: transparent; backdrop-filter: none; border-color: transparent; }
  .logo { position: relative; z-index: 2; }

  .section { padding: 96px 0; }
  .education-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .parent-card { flex-direction: column; padding: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-socials { width: 100%; justify-content: center; margin: 0; }
  .stats-grid { gap: 10px; margin-top: 48px; }
  .stat-card { padding: 16px; }
  .stat-number { font-size: 19px; }
  .ventures-grid, .skills-grid { grid-template-columns: 1fr; }
  .ventures-grid .venture-card:last-child, .skills-grid .skill-card:last-child { grid-column: auto; }
  .about-text-card, .venture-card, .skill-card, .edu-card { padding: 24px; }
  .timeline { padding-left: 34px; }
  .timeline-line { left: 7px; }
  .timeline-marker { left: -34px; width: 16px; height: 16px; top: 28px; }
  .timeline-marker::after { width: 6px; height: 6px; }
  .timeline-card { padding: 22px; }
  .timeline-head { flex-direction: column; }
  .contact-box { padding: 56px 20px; border-radius: 22px; }
  .copy-btn { width: 100%; justify-content: center; }
  .email-row .btn { width: 100%; justify-content: center; }
  .planet { font-size: 11px; padding: 6px 10px; }
  .orbit-system { width: min(280px, 72vw); }
  .footer-bottom { gap: 16px; }
  .scroll-cue { display: none; }
  .logo-text { display: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; translate: none; }
  .hero-title .word { transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Progressive enhancement ---------- */
html:not(.js) .loader { display: none; }
html .magnetic { transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
html, body { overflow-x: clip; }
