/* ════════════════════════════════════════════════
   iatharva.tech — shared stylesheet
   Design system: Space Grotesk + Inter · emerald #22C97E
════════════════════════════════════════════════ */

:root[data-theme="dark"] {
  --bg:         #0D0D0F;
  --bg-soft:    #0F0F12;
  --surface:    #141416;
  --surface-2:  #18181C;
  --border:     #1E1E24;
  --border-hi:  #2A2A33;
  --accent:     #22C97E;
  --accent-2:   #3EE89A;
  --accent-dim: #1E5A3E;
  --accent-ghost: rgba(34, 201, 126, 0.12);
  --text:       #E8E8F0;
  --muted:      #6B6B7A;
  --muted-2:    #9A9AAB;
  --tag-bg:     #1A1A22;
  --glow:       radial-gradient(60% 60% at 50% 40%, rgba(34,201,126,0.35), transparent 70%);
  --grid-line:  rgba(255,255,255,0.025);
  --aurora-1:   rgba(34, 201, 126, 0.22);
  --aurora-2:   rgba(62, 232, 154, 0.16);
  --aurora-3:   rgba(86, 180, 150, 0.14);
}
:root[data-theme="light"] {
  --bg:         #F5F5F8;
  --bg-soft:    #EFEFF4;
  --surface:    #FFFFFF;
  --surface-2:  #FAFAFD;
  --border:     #E2E2EA;
  --border-hi:  #D2D2DE;
  --accent:     #1FA968;
  --accent-2:   #178F56;
  --accent-dim: #DFF7EA;
  --accent-ghost: rgba(31, 169, 104, 0.08);
  --text:       #111114;
  --muted:      #7A7A8A;
  --muted-2:    #565664;
  --tag-bg:     #EDEDF5;
  --glow:       radial-gradient(60% 60% at 50% 40%, rgba(31,169,104,0.30), transparent 70%);
  --grid-line:  rgba(0,0,0,0.03);
  --aurora-1:   rgba(31, 169, 104, 0.30);
  --aurora-2:   rgba(23, 143, 86, 0.24);
  --aurora-3:   rgba(86, 180, 150, 0.20);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* ── Aurora: slow-drifting, faint colour wash behind everything ── */
html::before,
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
}
html::before {
  background:
    radial-gradient(40% 40% at 22% 28%, var(--aurora-1), transparent 60%),
    radial-gradient(36% 36% at 82% 68%, var(--aurora-2), transparent 60%);
  filter: blur(44px);
  animation: aurora-a 16s ease-in-out infinite;
}
body::after {
  background:
    radial-gradient(34% 34% at 70% 22%, var(--aurora-3), transparent 58%),
    radial-gradient(32% 32% at 28% 82%, var(--aurora-1), transparent 58%);
  filter: blur(48px);
  animation: aurora-b 20s ease-in-out infinite;
}
@keyframes aurora-a {
  0%, 100% { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.75; }
  50%      { transform: translate3d(1%, 1%, 0) scale(1.35); opacity: 1; }
}
@keyframes aurora-b {
  0%, 100% { transform: translate3d(2%, 1%, 0) scale(1.08); opacity: 0.7; }
  50%      { transform: translate3d(-1%, -1%, 0) scale(1.4); opacity: 1; }
}

/* dotted grid backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ════════ NAV ════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 66px;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo .mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-right: 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.nav-logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); }
.nav-link {
  position: relative;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { width: 100%; }

.nav-resume {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-hi);
  padding: 7px 14px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-resume:hover { border-color: var(--accent); color: var(--accent); }

.theme-toggle {
  position: relative;
  width: 46px; height: 25px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
[data-theme="light"] .theme-toggle::after { transform: translateX(21px); }

/* mobile nav toggle */
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 6px; }
.nav-burger svg { width: 22px; height: 22px; }

/* ════════ BUTTONS ════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 9px;
  padding: 12px 24px;
  transition: transform 0.2s, opacity 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-ghost { color: var(--text); border-color: var(--border-hi); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* ════════ HOME HERO ════════ */
.hero { position: relative; z-index: 1; padding-top: clamp(3.5rem, 9vw, 6.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-ghost); border: 1px solid var(--accent-dim);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 1.6rem;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: #3ECf8e;
  box-shadow: 0 0 0 0 rgba(62,207,142,0.6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(62,207,142,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(62,207,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); }
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }

/* rotating word */
.rotator { display: inline-block; position: relative; color: var(--accent); }
.rotator .word {
  display: inline-block; opacity: 0; transform: translateY(0.4em);
  animation: rotate-word 9s infinite; position: absolute; left: 0; white-space: nowrap;
}
.rotator .word:nth-child(1) { animation-delay: 0s; }
.rotator .word:nth-child(2) { animation-delay: 3s; }
.rotator .word:nth-child(3) { animation-delay: 6s; }
.rotator .sizer { visibility: hidden; }
@keyframes rotate-word {
  0%   { opacity: 0; transform: translateY(0.4em); }
  6%   { opacity: 1; transform: translateY(0); }
  27%  { opacity: 1; transform: translateY(0); }
  33%  { opacity: 0; transform: translateY(-0.4em); }
  100% { opacity: 0; transform: translateY(-0.4em); }
}

.hero p.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted-2); line-height: 1.7; max-width: 32em; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero-socials { display: flex; gap: 0.5rem; margin-top: 2rem; }

.social {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); background: var(--accent-ghost); }
.social svg { width: 17px; height: 17px; }

/* hero photo */
.hero-photo { position: relative; justify-self: center; width: min(330px, 80vw); aspect-ratio: 1 / 1.12; }
.hero-photo::before {
  content: ''; position: absolute; inset: -18% -12% -8% -12%;
  background: var(--glow); filter: blur(14px); z-index: -1;
  animation: float-glow 7s ease-in-out infinite;
}
@keyframes float-glow {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.04); }
}
.photo-frame {
  position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-hi);
  background: linear-gradient(135deg, var(--accent-dim), var(--surface));
  display: grid; place-items: center;
}
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-monogram { font-family: 'Space Grotesk', sans-serif; font-size: 5rem; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); opacity: 0.55; }
.hero-photo.has-photo .photo-monogram { display: none; }
.status-chip {
  position: absolute; left: -8px; bottom: 18px;
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border-hi); border-radius: 12px;
  padding: 9px 14px; font-size: 0.78rem; color: var(--text);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18); animation: float-chip 5.5s ease-in-out infinite;
}
.status-chip strong { font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.status-chip .sub { color: var(--muted); }
@keyframes float-chip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ════════ PAGE HERO (inner pages) ════════ */
.page-hero { position: relative; z-index: 1; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
}
.page-hero p { margin-top: 1rem; color: var(--muted-2); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; max-width: 38em; }

/* ════════ SECTION SCAFFOLD ════════ */
section { position: relative; z-index: 1; }
.section-pad { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 640px; }
.kicker {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 0.9rem;
}
.kicker::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.section-head p { margin-top: 0.9rem; color: var(--muted-2); font-size: clamp(0.95rem, 1.4vw, 1.05rem); line-height: 1.7; }
.divider { height: 1px; background: var(--border); }

/* ════════ STATS / AT A GLANCE ════════ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}
.stat:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.stat .lab { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }

/* ════════ NOW CARDS ════════ */
.now-cards { display: grid; gap: 0.9rem; }
.now-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.now-card {
  display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; padding: 1.1rem 1.25rem; transition: border-color 0.25s, transform 0.25s;
}
.now-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.now-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-ghost); display: grid; place-items: center; color: var(--accent); }
.now-ic svg { width: 19px; height: 19px; }
.now-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.98rem; font-weight: 600; margin-bottom: 3px; }
.now-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.now-card p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); transition: border-color 0.2s; }
.now-card p a:hover { border-color: var(--accent); }

/* ════════ ABOUT ════════ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-lead { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.about-lead em { font-style: normal; color: var(--accent); }
.about-body { color: var(--muted-2); font-size: 0.98rem; line-height: 1.8; }
.about-body p + p { margin-top: 1rem; }
.about-photo-frame {
  aspect-ratio: 1 / 1.05; max-width: 280px; border-radius: 16px; border: 1px solid var(--border-hi);
  margin-bottom: 1.4rem; background: linear-gradient(135deg, var(--accent-dim), var(--surface));
  display: grid; place-items: center; overflow: hidden;
}
.about-photo { width: 70%; display: block; }
.about-facts { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fact { font-size: 0.78rem; color: var(--muted-2); background: var(--tag-bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; }
.fact strong { color: var(--text); font-weight: 600; }

/* ════════ EXPERIENCE TIMELINE ════════ */
.timeline { position: relative; margin-left: 8px; padding-left: 2rem; border-left: 2px solid var(--border); display: grid; gap: 2rem; }
.tl-item { position: relative; }
.tl-item::before {
  content: ''; position: absolute; left: calc(-2rem - 7px); top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border);
}
.tl-item.current::before { box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px var(--accent-ghost); }
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.tl-role { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.tl-co { color: var(--accent); font-weight: 600; }
.tl-date { font-size: 0.8rem; color: var(--muted); font-family: 'Space Grotesk', sans-serif; white-space: nowrap; }
.tl-meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.tl-body { margin-top: 0.7rem; color: var(--muted-2); font-size: 0.9rem; line-height: 1.7; }
.tl-body ul { list-style: none; display: grid; gap: 0.4rem; }
.tl-body li { position: relative; padding-left: 1.1rem; }
.tl-body li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.tl-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); transition: border-color 0.2s; }
.tl-body a:hover { border-color: var(--accent); }

/* ════════ SKILLS ════════ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.skill-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 9px; }
.skill-col h4 .ic { color: var(--accent); display: grid; place-items: center; }
.skill-col h4 .ic svg { width: 16px; height: 16px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag { font-size: 0.82rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 7px 13px; border-radius: 8px; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.skill-tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ════════ EDUCATION ════════ */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.edu-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; transition: border-color 0.25s, transform 0.25s; }
.edu-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.edu-card .deg { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.edu-card .org { color: var(--muted-2); font-size: 0.9rem; margin-top: 0.3rem; }
.edu-card .yr { font-size: 0.8rem; color: var(--muted); font-family: 'Space Grotesk', sans-serif; margin-top: 0.6rem; }

/* ════════ CARDS / WORK ════════ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.16); }
.card-art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); display: grid; place-items: center; background: radial-gradient(80% 120% at 70% 10%, var(--accent-ghost), transparent 60%), var(--surface-2); }
.card-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 13px, var(--border) 13px, var(--border) 14px); opacity: 0.18; }
.card-art .glyph { position: relative; font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); opacity: 0.85; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; gap: 0.7rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-ghost); padding: 4px 10px; border-radius: 999px; }
.card-year { font-size: 0.78rem; color: var(--muted); font-family: 'Space Grotesk', sans-serif; }
.card-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.card-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; flex: 1; }
.card-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: 0.72rem; color: var(--muted-2); background: var(--tag-bg); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }
.card-link { margin-top: 0.4rem; display: inline-flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.84rem; color: var(--accent); text-decoration: none; }
.card-link svg { transition: transform 0.2s; }
.card-link:hover svg { transform: translateX(3px); }

/* featured work (large) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: border-color 0.25s; }
.feature:hover { border-color: var(--accent); }
.feature-art { position: relative; min-height: 280px; display: grid; place-items: center; background: radial-gradient(80% 120% at 70% 10%, var(--accent-ghost), transparent 60%), var(--surface-2); border-right: 1px solid var(--border); }
.feature-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 16px, var(--border) 16px, var(--border) 17px); opacity: 0.16; }
.feature-art .glyph { position: relative; font-family: 'Space Grotesk', sans-serif; font-size: 3.6rem; font-weight: 700; color: var(--accent); opacity: 0.85; letter-spacing: -0.03em; }
.feature-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 0.9rem; }
.feature-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; }
.feature-body p { color: var(--muted-2); font-size: 0.95rem; line-height: 1.7; }

/* archive list */
.archive { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.archive a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.4rem; text-decoration: none; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.archive a:last-child { border-bottom: none; }
.archive a:hover { background: var(--surface-2); }
.archive .a-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; }
.archive .a-meta { color: var(--muted); font-size: 0.82rem; }
.archive .a-arrow { color: var(--accent); }

/* ════════ BLOG ════════ */
.post-list { display: grid; gap: 1.1rem; }
.post {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem 1.5rem;
  text-decoration: none; transition: border-color 0.25s, transform 0.25s;
}
.post:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-thumb { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 120% at 60% 10%, var(--accent-ghost), transparent 60%), var(--surface-2); border: 1px solid var(--border); color: var(--accent); flex-shrink: 0; }
.post-thumb svg { width: 28px; height: 28px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-img { width: 100%; border-radius: 16px; border: 1px solid var(--border); margin-top: 2rem; }
.post-main .post-tags { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.post-main h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.post-main p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-top: 0.35rem; }
.post-date { font-size: 0.78rem; color: var(--muted); font-family: 'Space Grotesk', sans-serif; white-space: nowrap; text-align: right; }
.empty-note { color: var(--muted); font-size: 0.92rem; margin-top: 1.5rem; }

/* ════════ ARTICLE ════════ */
.article { max-width: 760px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 0.85rem; font-family: 'Space Grotesk', sans-serif; margin-bottom: 1.5rem; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }
.back-link svg { transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-3px); }
.article-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.article-sub { color: var(--muted-2); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; margin-top: 0.9rem; }
.article-meta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; font-family: 'Space Grotesk', sans-serif; margin-top: 1.4rem; }
.article-meta .card-tag { font-family: 'Space Grotesk', sans-serif; }
.article-meta .sep { opacity: 0.5; }
.article-body { color: var(--muted-2); font-size: 1rem; line-height: 1.8; margin-top: 2.5rem; }
.article-body h2 { font-family: 'Space Grotesk', sans-serif; color: var(--text); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin: 2.4rem 0 0.8rem; }
.article-body h3 { font-family: 'Space Grotesk', sans-serif; color: var(--text); font-size: 1.1rem; font-weight: 600; margin: 1.7rem 0 0.6rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul { margin: 0 0 1rem 1.2rem; display: grid; gap: 0.45rem; }
.article-body ul ul { margin: 0.45rem 0 0.2rem 1.1rem; }
.article-body li { line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body code { background: var(--tag-bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: 0.86em; font-family: 'Space Grotesk', monospace; }
.article-body a { color: var(--accent); }
.article-cb { list-style: none; margin-left: 0; }
.article-cb li { position: relative; padding-left: 1.7rem; }
.article-cb li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border: 1.5px solid var(--accent); border-radius: 4px; }

/* ════════ TESTIMONIALS ════════ */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color 0.25s, transform 0.25s; }
.quote:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.quote .mark { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; line-height: 0.6; color: var(--accent); opacity: 0.5; }
.quote p { font-size: 0.9rem; color: var(--muted-2); line-height: 1.7; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 0.75rem; }
.quote .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.85rem; }
.quote .who strong { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 600; display: block; }
.quote .who small { color: var(--muted); font-size: 0.76rem; }

/* ════════ CTA BAND ════════ */
.cta-band { position: relative; border: 1px solid var(--accent-dim); border-radius: 22px; overflow: hidden; background: radial-gradient(90% 130% at 85% -10%, var(--accent-ghost), transparent 60%), var(--surface); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cta-band p { color: var(--muted-2); margin-top: 0.9rem; margin-bottom: 1.8rem; font-size: 1rem; max-width: 30em; margin-inline: auto; }

/* ════════ CONTACT ════════ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro p { color: var(--muted-2); line-height: 1.75; margin-bottom: 1.8rem; max-width: 28em; }
.contact-direct { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--text); text-decoration: none; padding: 12px 20px; border: 1px solid var(--border-hi); border-radius: 10px; transition: border-color 0.2s, color 0.2s; }
.contact-direct:hover { border-color: var(--accent); color: var(--accent); }
.contact-direct svg { color: var(--accent); }
.contact-socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.8rem; color: var(--muted-2); margin-bottom: 0.45rem; font-weight: 500; }
.field input, .field textarea { width: 100%; font-family: 'Inter', sans-serif; font-size: 0.92rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; transition: border-color 0.2s, background 0.2s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.form-submit { justify-self: start; display: inline-flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.92rem; color: #fff; background: var(--accent); border: none; padding: 12px 26px; border-radius: 10px; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.form-submit:hover { opacity: 0.9; transform: translateY(-2px); }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-note.ok { color: #3ECf8e; }
.form-note.err { color: #ff6b6b; }

/* ════════ FOOTER ════════ */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); margin-top: clamp(3rem, 7vw, 5rem); }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 2.25rem clamp(1.25rem, 5vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.footer-left { font-size: 0.85rem; color: var(--muted); }
.footer-left .name { font-family: 'Space Grotesk', sans-serif; color: var(--text); font-weight: 600; }
.footer-right { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-right a { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-right a:hover { color: var(--accent); }

/* ════════ SCROLL REVEAL ════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; margin-bottom: 0.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { border-right: none; border-bottom: 1px solid var(--border); min-height: 200px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 0.75rem 0; width: 100%; font-size: 0.95rem; }
  .nav-burger { display: inline-flex; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .post { grid-template-columns: 1fr; text-align: left; }
  .post-thumb { display: none; }
  .post-date { text-align: left; }
}
/* === 1. COORDINATES === */
.geo-coords {
  position: fixed;
  bottom: 1.75rem;
  right: clamp(1.25rem, 5vw, 2.5rem);
  font-family: 'Courier New', 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--muted);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  z-index: 97;
  transition: opacity 0.7s ease;
}
.geo-coords.is-hidden {
  opacity: 0;
}

/* === 2. SCROLL TEXT === */
.scroll-label {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  animation: scroll-bounce 2.8s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
.scroll-label.is-hidden {
  opacity: 0 !important;
  animation-play-state: paused;
}
.scroll-word {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}
.scroll-arrow {
  font-size: 13px;
  line-height: 1;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% + 6px)); }
}

/* === 3. GRAIN TEXTURE === */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  opacity: 0.045;
}

/* === 4. EASTER EGG === */
.dont-click {
  position: fixed;
  top: 74px;
  left: clamp(1.25rem, 5vw, 2.5rem);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text);
  opacity: 0.08;
  cursor: default;
  z-index: 98;
  user-select: none;
  letter-spacing: 0.02em;
  pointer-events: auto;
}
.egg-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 99999;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.egg-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.egg-overlay p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin: 0;
}
.egg-restore {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.egg-restore:hover {
  background: var(--accent-ghost);
}

/* === WORK SECTION === */
.labs-card {
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  background: var(--accent-ghost);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: border-color 0.25s;
}
.labs-card:hover { border-color: var(--accent); }
.labs-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.labs-card > p { color: var(--muted-2); font-size: clamp(0.9rem, 1.4vw, 1rem); line-height: 1.7; }
.labs-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1.2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
}
.labs-cta svg { transition: transform 0.2s; }
.labs-cta:hover svg { transform: translateX(4px); }

.experiments-details { opacity: 0.52; transition: opacity 0.3s; }
.experiments-details:hover,
.experiments-details[open] { opacity: 1; }

.experiments-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  padding: 0.25rem 0;
}
.experiments-summary::-webkit-details-marker { display: none; }
.experiments-summary::marker { display: none; }

.exp-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.exp-chevron { color: var(--muted); flex-shrink: 0; transition: transform 0.3s ease; }
.experiments-details[open] .exp-chevron { transform: rotate(180deg); }
.experiments-inner { margin-top: 1rem; }
.archive-muted .a-name { font-size: 0.875rem; }
.archive-muted .a-meta { font-size: 0.78rem; }
.archive-muted a { padding: 0.85rem 1.2rem; }

/* === VISUAL POLISH — skill hierarchy, avatar tints, edu numerals, timeline pills === */
.skill-tag.primary { border-color: var(--accent-dim); background: var(--accent-ghost); color: var(--accent); font-weight: 600; }
.skill-tag.primary:hover { border-color: var(--accent); }

.quote .avatar.t2 { background: rgba(29, 158, 117, 0.16); color: #2FA37F; }
.quote .avatar.t3 { background: rgba(239, 159, 39, 0.16); color: #C98A1C; }

.edu-card { position: relative; overflow: hidden; }
.edu-card::after {
  content: attr(data-year);
  position: absolute; right: 0.9rem; bottom: -0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.2rem; font-weight: 700; letter-spacing: -0.05em;
  color: var(--text); opacity: 0.05;
  pointer-events: none; user-select: none; line-height: 1;
}

.tl-date { background: var(--tag-bg); border: 1px solid var(--border); padding: 3px 12px; border-radius: 999px; }

/* === FEATURED BLOG POST === */
.post-feat {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
}
.post-feat:hover { border-color: var(--accent); transform: translateY(-3px); }
.pf-art { position: relative; min-height: 230px; border-right: 1px solid var(--border); }
.pf-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-body { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.7rem; }
.pf-body .post-tags { display: flex; gap: 0.5rem; }
.pf-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.pf-body p { color: var(--muted-2); font-size: 0.95rem; line-height: 1.7; flex: 1; }
.pf-meta { font-size: 0.8rem; color: var(--muted); font-family: 'Space Grotesk', sans-serif; }
@media (max-width: 760px) {
  .post-feat { grid-template-columns: 1fr; }
  .pf-art { min-height: 180px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* === UPCOMING TOPICS (blog) === */
.topic-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.topic { font-size: 0.82rem; color: var(--muted-2); border: 1px dashed var(--border-hi); border-radius: 999px; padding: 7px 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
