/* White-led Editorial — Wenyu Chiou */
:root {
  /* Soft off-white, very light paper tones */
  --bg: oklch(0.985 0.004 260);
  --bg-2: oklch(0.97 0.005 260);
  --bg-3: oklch(0.95 0.006 260);
  --paper: #ffffff;
  --ink: oklch(0.16 0.02 260);
  --ink-2: oklch(0.38 0.015 260);
  --ink-3: oklch(0.6 0.01 260);
  --rule: oklch(0.9 0.008 260);
  --rule-2: oklch(0.94 0.006 260);

  /* Signature accent: deep ink-indigo — distinctive, scholarly, unmistakable */
  --accent: oklch(0.32 0.17 272);
  --accent-2: oklch(0.55 0.2 282);
  --accent-soft: oklch(0.95 0.04 272);
  --accent-ink: oklch(0.2 0.16 272);

  /* Signature highlighter — a warm chartreuse used VERY sparingly */
  --mark: oklch(0.92 0.18 108);

  --shadow: 0 1px 2px oklch(0.2 0.05 260 / 0.05), 0 8px 24px oklch(0.2 0.05 260 / 0.06);
  --shadow-lg: 0 2px 4px oklch(0.2 0.05 260 / 0.06), 0 24px 60px oklch(0.2 0.05 260 / 0.1);

  --serif: "Instrument Serif", "Source Serif 4", "Noto Serif TC", Georgia, serif;
  --sans: "Inter Tight", "Noto Sans TC", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 60px);
}

[data-theme="dark"] {
  --bg: oklch(0.14 0.015 260);
  --bg-2: oklch(0.18 0.018 260);
  --bg-3: oklch(0.22 0.02 260);
  --paper: oklch(0.17 0.015 260);
  --ink: oklch(0.96 0.005 260);
  --ink-2: oklch(0.78 0.01 260);
  --ink-3: oklch(0.58 0.015 260);
  --rule: oklch(0.28 0.015 260);
  --rule-2: oklch(0.24 0.012 260);
  --accent: oklch(0.78 0.18 282);
  --accent-2: oklch(0.68 0.2 272);
  --accent-soft: oklch(0.3 0.08 272);
  --accent-ink: oklch(0.85 0.15 282);
  --mark: oklch(0.85 0.2 108);
  --shadow: 0 1px 2px #0006, 0 8px 24px #0004;
  --shadow-lg: 0 2px 4px #0008, 0 24px 60px #0005;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  transition: background-color .4s ease, color .4s ease;
  overflow-x: hidden;
}

/* Signature grid — faint vertical guide lines, VERY subtle, a research-notebook cue */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right,
      transparent 0, transparent calc(50% - 600px),
      oklch(0.9 0.01 260 / 0.4) calc(50% - 600px), oklch(0.9 0.01 260 / 0.4) calc(50% - 599px),
      transparent calc(50% - 599px), transparent calc(50% + 599px),
      oklch(0.9 0.01 260 / 0.4) calc(50% + 599px), oklch(0.9 0.01 260 / 0.4) calc(50% + 600px),
      transparent calc(50% + 600px)
    );
  opacity: 1;
}
[data-theme="dark"] body::before {
  background-image:
    linear-gradient(to right,
      transparent 0, transparent calc(50% - 600px),
      oklch(0.3 0.01 260 / 0.6) calc(50% - 600px), oklch(0.3 0.01 260 / 0.6) calc(50% - 599px),
      transparent calc(50% - 599px), transparent calc(50% + 599px),
      oklch(0.3 0.01 260 / 0.6) calc(50% + 599px), oklch(0.3 0.01 260 / 0.6) calc(50% + 600px),
      transparent calc(50% + 600px)
    );
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(46px, 7vw, 104px); line-height: 0.98; font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
p { margin: 0 0 1em; color: var(--ink-2); }

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-size: .9em; }
.italic { font-style: italic; }
.muted { color: var(--ink-3); }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); transition: color .2s, border-color .2s; }
a:hover { color: var(--accent); border-color: var(--accent); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--rule-2);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; border: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: .4;
}
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-name .zh { color: var(--ink-3); margin-left: 8px; font-size: 15px; font-style: italic; white-space: nowrap; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 6px;
  transition: all .2s;
  position: relative;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.nav-links a::before {
  content: attr(data-num);
  color: var(--accent);
  margin-right: 6px;
  font-size: 10px;
  opacity: .5;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::before { opacity: 1; }

.nav-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s;
  font-family: var(--serif);
  font-size: 13px;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 16px; height: 16px; }

/* Section framing */
section { padding: clamp(80px, 11vh, 140px) 0; position: relative; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
}
.section-head-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 500;
}
.section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-3);
  white-space: nowrap;
}
.section-rule { flex: 1; height: 1px; background: var(--rule); }
.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* HERO — editorial, giant italic serif */
.hero { padding-top: clamp(40px, 6vh, 80px); padding-bottom: clamp(60px, 10vh, 140px); position: relative; }
.hero-meta-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 12px; margin-bottom: clamp(40px, 6vw, 80px);
}
.hero-meta-top .live {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
}
.hero-meta-top .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--accent); opacity: 1; }
  50% { box-shadow: 0 0 0 6px transparent; opacity: .6; }
}

.hero-display { margin: 0 0 60px; }
.hero-display h1 {
  font-weight: 400;
}
.hero-display h1 .line { display: block; }
.hero-display h1 em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
}
.hero-display h1 .mark {
  color: var(--accent);
  font-style: italic;
  position: relative;
}
.hero-display h1 .mark::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.08em;
  height: 2px;
  background: var(--accent);
  opacity: 0.35;
}
.hero-display h1 .arrow-link {
  display: inline-block;
  transform: translateY(-4px) rotate(-10deg);
  font-size: 0.4em;
  color: var(--accent);
  margin-left: .1em;
}

.hero-grid-b { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 30ch;
  font-weight: 400;
}
.hero-lede .hl { color: var(--accent); font-style: italic; }

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-stat {
  padding: 20px 0;
  border-right: 1px solid var(--rule-2);
}
.hero-stat:last-child { border-right: none; padding-left: 20px; }
.hero-stat .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.hero-stat .value { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.15; }
.hero-stat .value em { color: var(--accent); font-style: italic; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .25s;
}
.btn:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn svg { width: 15px; height: 15px; }

/* Hero sidebar (aside) — researcher card */
.hero-side-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 4px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-side-frame {
  aspect-ratio: 3/4;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.95 0.04 272), oklch(0.88 0.08 272) 70%);
  position: relative;
  overflow: hidden;
}
.hero-side-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(0.2 0.04 60 / 0.4) 100%);
  pointer-events: none;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(0.92);
}
[data-theme="dark"] .hero-photo { filter: saturate(0.85) brightness(0.88); }
.hero-side-frame .initials {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(80px, 12vw, 140px);
  color: var(--accent);
  letter-spacing: -.05em;
  font-weight: 400;
}
.hero-side-frame .stamp {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  background: oklch(0.2 0.04 60 / 0.55);
  padding: 5px 10px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.hero-side-frame .bc {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--mono); font-size: 10px;
  color: #fff;
  background: oklch(0.2 0.04 60 / 0.55);
  padding: 5px 10px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.14em; text-transform: uppercase;
  z-index: 2;
}
.hero-side-info {
  padding: 14px 18px 16px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.hero-side-info .name { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }
.hero-side-info .sub { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.hero-side-info .id { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-align: right; letter-spacing: .1em; }

/* Marquee strip of research keywords */
.marquee-strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: -0.01em;
}
.marquee-track {
  display: inline-flex; gap: 60px;
  animation: marquee 40s linear infinite;
  padding-left: 60px;
}
.marquee-track span::before {
  content: "✦";
  color: var(--accent-2);
  font-style: normal;
  margin-right: 60px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.about-body p { font-size: 18px; line-height: 1.65; color: var(--ink); font-family: var(--serif); }
.about-body p + p { margin-top: 1em; color: var(--ink-2); font-size: 17px; font-family: var(--sans); line-height: 1.7; }
.about-body .drop-cap::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 5.2em;
  float: left;
  line-height: 0.85;
  margin: 10px 14px 0 -4px;
  color: var(--accent);
  font-weight: 400;
}
.about-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  position: sticky; top: 90px;
  box-shadow: var(--shadow);
  position: relative;
}
.about-card::before {
  content: "CV / profile";
  position: absolute;
  top: -10px; left: 20px;
  background: var(--bg);
  padding: 0 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.about-card dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; margin: 0; }
.about-card dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.about-card dd { margin: 0; font-size: 14px; color: var(--ink); font-family: var(--serif); }

.interests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule-2); }
.chip {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; border-radius: 100px;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
}
.chip.accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

/* EXPERIENCE — timeline with vertical axis */
.timeline { display: grid; gap: 0; position: relative; padding-left: 4px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 148px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--rule) 0%, var(--rule-2) 50%, transparent 100%);
}
.t-item {
  display: grid; grid-template-columns: 140px 32px 1fr; gap: 0;
  padding: 32px 0;
  position: relative;
  border-top: 1px solid var(--rule-2);
  position: relative;
  transition: background .3s;
}
.t-item:last-child { border-bottom: 1px solid var(--rule-2); }
.t-item:hover .t-date { color: var(--accent); }
.t-item:hover .t-dot { background: var(--accent); transform: scale(1.3); box-shadow: 0 0 0 6px var(--accent-soft); }
.t-date { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; padding-top: 10px; transition: color .3s; text-align: right; padding-right: 16px; }
.t-dot {
  justify-self: center;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
  margin-top: 14px;
  transition: all .3s;
  z-index: 1;
}
.t-body { padding-left: 20px; }
.t-body h3 { margin-bottom: 4px; font-size: 22px; }
.t-body .t-org { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 16px; margin-bottom: 12px; display: block; }
.t-body p { font-size: 15px; margin-bottom: 12px; }
.t-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ======================================================
   CAREER TRACK — horizontal interactive timeline
   ====================================================== */
.career {
  --node-count: 6;
  position: relative;
  margin: 8px 0 56px;
  padding: 8px 0 0;
  outline: none;
}
.career:focus-visible { box-shadow: 0 0 0 2px var(--accent-soft); border-radius: 12px; }

/* AXIS */
.career-axis {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: start;
  padding: 16px 8px 28px;
}
.career-line {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--rule) 0%, var(--rule-2) 80%, transparent 100%);
  pointer-events: none;
}

.career-node {
  position: relative;
  background: none;
  border: 0;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  transition: transform .25s ease;
}
.career-node:hover { transform: translateY(-2px); }

.node-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-3);
  position: relative;
  z-index: 1;
  transition: all .25s ease;
  box-shadow: 0 0 0 4px var(--paper);
}
.career-node:hover .node-dot { border-color: var(--accent); }
.career-node.is-active .node-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px var(--accent-soft);
  transform: scale(1.15);
}

.node-dot-future {
  background: repeating-linear-gradient(
    45deg,
    var(--accent-soft),
    var(--accent-soft) 3px,
    transparent 3px,
    transparent 6px
  );
  border-color: var(--accent);
  border-style: dashed;
  animation: career-pulse 2.4s ease-in-out infinite;
}
@keyframes career-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 4px var(--paper), 0 0 0 12px transparent; }
}

.node-year {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.career-node.is-active .node-year { color: var(--accent); }

.node-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.node-role { color: var(--ink); font-weight: 500; }
.node-org  { color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 12px; }
.career-node.is-active .node-role { color: var(--accent); }

.career-node-next {
  cursor: default;
  opacity: .8;
}
.career-node-next .node-role { color: var(--accent); font-weight: 600; }
.career-node-next .node-org  { color: var(--ink-2); }

/* PANEL */
.career-panel {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px 36px;
  background: var(--paper);
  box-shadow: var(--shadow);
  min-height: 200px;
  animation: career-fade .35s ease;
}
@keyframes career-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.career-panel-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-2);
  margin-bottom: 20px;
}
.career-date {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.career-org-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
}
.career-role {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.career-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* CONTROLS */
.career-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}
.career-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.career-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.career-btn:disabled { opacity: .35; cursor: not-allowed; }
.career-count { font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; }

/* EDUCATION compact list below */
.edu-compact { margin-top: 64px; }
.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-2);
}
.edu-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-2);
}
.edu-date { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
.edu-body { display: flex; flex-direction: column; gap: 2px; }
.edu-role { font-size: 17px; color: var(--ink); font-weight: 500; }
.edu-org  { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 15px; }
.edu-tags { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .career-axis {
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
    gap: 14px;
    padding: 0;
  }
  .career-line { display: none; }
  .career-node { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; }
  .career-node .node-label { flex-direction: row; gap: 8px; align-items: baseline; }
  .career-node.is-active { border-color: var(--accent); background: var(--accent-soft); }
  .career-panel { padding: 22px; }
  .edu-row { grid-template-columns: 1fr; gap: 8px; }
}

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.skill-card, .skill-cat {
  background: var(--paper);
  padding: 28px;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.skill-card:hover, .skill-cat:hover { background: var(--accent-soft); z-index: 1; }
.skill-head, .skill-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skill-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--bg);
  transition: all .3s;
}
.skill-cat:hover .skill-icon, .skill-card:hover .skill-icon { background: var(--accent); }
.skill-icon svg { width: 17px; height: 17px; }
.skill-cat h4, .skill-card h4 { font-family: var(--serif); font-style: italic; font-size: 19px; font-weight: 400; }
.skill-list, .skill-items { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-pill {
  font-family: var(--mono); font-size: 12px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--rule-2);
  transition: all .2s;
}
.skill-pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.project::after {
  content: "";
  position: absolute; inset: -1px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.project:hover::after { opacity: 1; }
.project-cover {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule-2);
}
.project-cover svg { width: 100%; height: 100%; display: block; }
.project-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.project-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.project h3 { margin-bottom: 10px; font-size: 24px; font-family: var(--serif); font-style: italic; font-weight: 400; }
.project-desc { font-size: 14px; line-height: 1.55; margin-bottom: 16px; flex: 1; color: var(--ink-2); }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.project-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--rule-2); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.project-foot .arrow { transition: transform .3s; }
.project:hover .arrow { transform: translate(4px,-4px); color: var(--accent); }

/* PUBLICATIONS */
.pub-summary {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-bottom: 32px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.pub-sum-item {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 3px;
}
.pub-sum-item:last-child { border-right: none; }
.pub-sum-num {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.pub-sum-lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}

.pub-list { display: flex; flex-direction: column; }
.pub {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--rule-2);
  align-items: start;
  transition: padding .3s;
}
.pub:hover { padding-left: 14px; }
.pub:last-child { border-bottom: 1px solid var(--rule-2); }
.pub-featured {
  background: linear-gradient(90deg, oklch(0.985 0.008 85) 0%, transparent 60%);
  margin-left: -24px; padding-left: 24px; padding-right: 12px;
  border-left: 2px solid var(--accent);
}
.pub-featured:hover { padding-left: 38px; }
.pub-num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.pub-body { min-width: 0; }

.pub-meta-top {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.pub-type {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  border: 1px solid var(--rule);
  color: var(--ink-3); line-height: 1;
}
.pub-type-journal { color: #2f5fa6; border-color: rgba(47, 95, 166, 0.3); background: rgba(47, 95, 166, 0.06); }
.pub-type-poster { color: #a66100; border-color: rgba(166, 97, 0, 0.3); background: rgba(166, 97, 0, 0.05); }
.pub-type-report { color: #555; background: oklch(0.97 0 0); }
.pub-q {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 3px;
  background: #2f7d4f; color: #fff;
  line-height: 1;
}
.pub-featured-badge {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  background: var(--accent); color: var(--bg);
  line-height: 1;
}
.pub-venue-short {
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-left: auto;
}

.pub-title {
  font-family: var(--serif); font-size: 21px; line-height: 1.3;
  color: var(--ink); margin: 0 0 8px; font-weight: 400;
  cursor: pointer;
  transition: color .2s;
  text-wrap: balance;
}
.pub-title:hover { color: var(--accent); }
.pub-authors { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.pub-authors .me { font-weight: 600; color: var(--accent); border-bottom: 1.5px solid var(--accent); padding: 0 1px; }
.pub-venue { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-3); }
.pub-year { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--ink-3); text-align: right; padding-top: 2px; }

.pub-abstract {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.6;
  color: var(--ink-2); margin: 12px 0 0;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 2px solid var(--accent);
  text-wrap: pretty;
  animation: pub-slide 0.3s ease-out;
}
@keyframes pub-slide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.pub-actions {
  display: flex; gap: 8px; align-items: center;
  margin-top: 12px; flex-wrap: wrap;
}
.pub-cites {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 0;
  letter-spacing: 0.02em;
}
.pub-cites svg { opacity: 0.6; }
.pub-link {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--rule);
  color: var(--ink-2); text-decoration: none;
  letter-spacing: 0.06em;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s;
}
.pub-link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pub-expand { margin-left: auto; }

@media (max-width: 760px) {
  .pub-summary { grid-template-columns: repeat(2, 1fr); }
  .pub-sum-item:nth-child(2) { border-right: none; }
  .pub-sum-item:nth-child(1), .pub-sum-item:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* REPOS */
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.repo {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: all .3s;
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--rule);
}
.repo:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.repo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.repo-head svg { width: 16px; height: 16px; color: var(--accent); }
.repo-name { font-family: var(--mono); font-size: 14px; color: var(--ink); font-weight: 500; }
.repo-desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; flex: 1; margin-bottom: 14px; }
.repo-foot { display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); align-items: center; }
.repo-lang { display: inline-flex; align-items: center; gap: 5px; }
.repo-lang::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lang-color, var(--accent)); }

/* REPOS v2 — grouped list */
.repo-groups { display: flex; flex-direction: column; gap: 64px; }
.repo-group-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.repo-group-label {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.repo-group-tag {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--ink-3);
}
.repo-list { display: flex; flex-direction: column; }
.repo-row {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.repo-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--accent-soft); opacity: 0;
  transition: opacity .25s;
  z-index: -1; border-radius: 6px;
  margin: 0 -14px;
}
.repo-row:hover::before { opacity: 1; }
.repo-row:hover { color: inherit; padding-left: 18px; }
.repo-row:hover .repo-row-arrow { opacity: 1; transform: translateX(4px); }
.repo-row-num {
  font-size: 13px; color: var(--ink-3);
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}
.repo-row-body { min-width: 0; }
.repo-row-top {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.repo-row-name {
  font-family: var(--mono); font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.repo-row-lang {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.repo-row-lang::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lang-color, var(--accent));
}
.repo-row-desc {
  font-family: var(--serif); font-size: 16px; line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 68ch;
  text-wrap: pretty;
}
.repo-status {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  line-height: 1;
  display: inline-flex; align-items: center; gap: 5px;
}
.repo-status::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3);
}
.repo-status-active { color: #2f7d4f; border-color: rgba(47, 125, 79, 0.3); background: rgba(47, 125, 79, 0.05); }
.repo-status-active::before { background: #2f7d4f; box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.18); }
.repo-status-experimental { color: #a66100; border-color: rgba(166, 97, 0, 0.3); background: rgba(166, 97, 0, 0.05); }
.repo-status-experimental::before { background: #a66100; }
.repo-status-archived { color: var(--ink-3); opacity: 0.75; }

.repo-row-stats {
  display: flex; align-items: center; gap: 16px;
  margin-top: 10px;
  font-size: 12.5px; color: var(--ink-3);
}
.repo-stat {
  display: inline-flex; align-items: center; gap: 5px;
  font-variant-numeric: tabular-nums;
}
.repo-stat svg { opacity: 0.75; }
.repo-stat-date { font-size: 11px; letter-spacing: 0.02em; }
.repo-row-arrow {
  color: var(--ink-3); opacity: 0;
  transition: all .25s;
  display: grid; place-items: center;
}
.repo-row-arrow svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .repo-row { grid-template-columns: 32px 1fr 20px; gap: 14px; padding: 18px 4px; }
  .repo-row-name { font-size: 17px; }
  .repo-row-desc { font-size: 15px; }
  .repo-group-label { font-size: 24px; }
  .repo-groups { gap: 48px; }
}

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-post {
  text-decoration: none; color: inherit; border: none;
  display: block; border-bottom: none;
  transition: transform .3s;
}
.blog-post:hover { transform: translateY(-3px); color: inherit; }
.blog-cover {
  aspect-ratio: 4/3;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.blog-cover svg { width: 100%; height: 100%; }
.blog-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.blog-post h3 { font-size: 21px; line-height: 1.25; margin-bottom: 8px; font-family: var(--serif); font-style: italic; font-weight: 400; }
.blog-post:hover h3 { color: var(--accent); }
.blog-excerpt { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* CONTACT */
.contact { padding-bottom: 40px; }
.contact-inner {
  background: var(--ink);
  color: var(--bg);
  border-radius: 20px;
  padding: clamp(50px, 7vw, 90px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-inner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in oklch, var(--accent) 35%, transparent), transparent 45%),
    radial-gradient(circle at 85% 75%, color-mix(in oklch, var(--accent-2) 30%, transparent), transparent 45%);
  pointer-events: none;
}
.contact-inner > * { position: relative; }
.contact h2 { margin-bottom: 18px; font-size: clamp(36px, 4.5vw, 64px); font-style: italic; color: var(--bg); }
.contact p { font-size: 17px; max-width: 50ch; margin: 0 auto 36px; color: oklch(0.8 0 0); }
.contact-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.contact-actions .btn { background: transparent; color: var(--bg); border-color: oklch(1 0 0 / 0.3); }
.contact-actions .btn:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.contact-actions .btn.primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.contact-actions .btn.primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* FOOTER */
.footer { padding: 40px 0 60px; border-top: 1px solid var(--rule-2); font-size: 13px; color: var(--ink-3); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer .mono { font-size: 12px; }

/* TWEAKS panel */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: none;
  min-width: 240px;
}
.tweaks-panel.active { display: block; animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tweaks-panel h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; font-weight: 500; }
.tweak-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font-size: 13px; }
.tweak-row + .tweak-row { border-top: 1px solid var(--rule-2); }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 8px; padding: 2px; border: 1px solid var(--rule-2); }
.seg button { background: none; border: none; padding: 5px 10px; font-size: 12px; color: var(--ink-2); cursor: pointer; border-radius: 6px; font-family: var(--mono); }
.seg button.on { background: var(--ink); color: var(--bg); }

/* SCROLL reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .4s; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid-b, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid, .skills-grid, .repo-grid, .blog-grid { grid-template-columns: 1fr; }
  .t-item { grid-template-columns: 1fr; gap: 10px; }
  .t-item .t-dot { display: none; }
  .timeline::before { display: none; }
  .t-date { text-align: left; padding-right: 0; }
  .t-body { padding-left: 0; }
  .nav-links { display: none; }
  .about-card { position: static; }
}

/* ================================================
   v2 — Editorial, photo-driven layout
   ================================================ */

.section-pad { padding: 100px 0; }

.section-intro { max-width: 58ch; margin-bottom: 44px; font-size: 17px; color: var(--ink-2); font-family: var(--serif); line-height: 1.55; }

/* Hero v2 — magazine split */
.hero-v2 {
  padding: 120px 0 80px;
  position: relative;
  z-index: 2;
}
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.hero-v2-photo {
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}
.hero-v2-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: saturate(0.95);
}
[data-theme="dark"] .hero-v2-photo img { filter: saturate(0.85) brightness(0.88); }
.hero-v2-photo-cap {
  position: absolute; bottom: 14px; left: 14px;
  background: oklch(0.2 0.04 60 / 0.6);
  color: #fff;
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-v2-photo-cap .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 8px var(--mark); }

.hero-v2-text { padding-top: 10px; }
.hero-v2-eyebrow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.hero-v2-eyebrow .sep { width: 4px; height: 4px; background: var(--ink-3); border-radius: 50%; opacity: 0.5; }
.hero-v2-eyebrow .live {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.hero-v2-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-v2-h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-v2-h1 .mark {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-style: italic;
}
.hero-v2-h1 .mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.12em;
  height: 0.35em;
  background: var(--mark);
  z-index: -1;
  opacity: 0.6;
}
.hero-v2-h1 .serif-italic { font-style: italic; color: var(--ink-2); }
.hero-v2-h1 .tail { font-size: 0.82em; }

.hero-v2-lede {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-v2-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-v2-currently {
  display: flex; align-items: flex-start; gap: 14px;
  margin: -16px 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-left: 2px solid oklch(0.62 0.16 150);
  background: oklch(0.985 0.005 85);
}
.hero-currently-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
  white-space: nowrap;
  position: relative;
}
.hero-currently-label::after {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.62 0.16 150);
  margin-left: 6px; vertical-align: middle;
  box-shadow: 0 0 0 3px oklch(0.62 0.16 150 / 0.18);
  animation: hero-pulse 2.2s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.62 0.16 150 / 0.18); }
  50%      { box-shadow: 0 0 0 6px oklch(0.62 0.16 150 / 0.04); }
}
.hero-currently-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 13px; color: var(--ink-2);
  flex: 1;
}
.hero-currently-list li {
  display: flex; align-items: center; gap: 8px;
  line-height: 1.4;
}
.hero-currently-dot {
  width: 5px; height: 5px; border-radius: 50%;
  flex-shrink: 0;
}

.hero-v2-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.hero-v2-facts > div { display: contents; }
.hero-v2-facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: center;
}
.hero-v2-facts dd {
  margin: 0;
  color: var(--ink);
  align-self: center;
}
.hero-v2-facts dd.mono { font-family: var(--mono); font-size: 12px; }

/* ABOUT v2 */
.about-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px 72px;
  align-items: start;
  margin-bottom: 80px;
}
.about-v2-lead {
  grid-column: 1 / -1;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  max-width: 960px;
  margin-bottom: 8px;
}
.about-v2-lead .lead-text {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.about-v2-lead em { color: var(--accent); font-style: italic; }

.about-v2-body {
  grid-column: 1;
  grid-row: 2;
  max-width: 62ch;
}
.about-v2-body p {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.about-v2-body p:first-child {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.6;
  font-weight: 450;
}
.about-v2-body p em,
.about-v2-body p strong {
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
}

.about-v2-card {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 100px;
  align-self: start;
}
.about-v2-card-inner {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.about-v2-portrait {
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-2);
}
.about-v2-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: saturate(0.92);
}
.about-v2-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0 0 16px;
  font-size: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-2);
}
.about-v2-card dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: center;
}
.about-v2-card dd { margin: 0; color: var(--ink); align-self: center; font-size: 14px; }
.about-v2-card .interests { display: flex; flex-wrap: wrap; gap: 6px; }

/* Field strip — photo evidence */
.field-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--rule-2);
}
.field-item {
  margin: 0;
  position: relative;
}
.field-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  filter: saturate(0.9);
  transition: filter .4s, transform .6s cubic-bezier(.2,.8,.2,1);
}
.field-item:hover img { filter: saturate(1); transform: translateY(-3px); }
.field-item figcaption {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  font-size: 13px;
}
.field-item figcaption .y {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.field-item figcaption .t { color: var(--ink-2); }

/* Two-column experience + education */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-2);
  font-weight: 500;
}

/* Projects v2 */
.proj-v2-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.proj-v2 {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .3s;
}
.proj-v2.featured { grid-column: span 6; display: grid; grid-template-columns: 1.3fr 1fr; }
.proj-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink-3); }

.proj-v2-media {
  background: var(--bg-2);
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.proj-v2.featured .proj-v2-media { aspect-ratio: auto; min-height: 380px; }
.proj-v2-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.proj-v2:hover .proj-v2-media img { transform: scale(1.03); }
.proj-v2-placeholder { width: 100%; height: 100%; }
.proj-v2-placeholder svg { width: 100%; height: 100%; display: block; }

.proj-v2-body {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 12px;
}
.proj-v2.featured .proj-v2-body { padding: 40px; justify-content: center; }
.proj-v2-meta .pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 100px;
}
.proj-v2-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.proj-v2.featured .proj-v2-title { font-size: 34px; }
.proj-v2:hover .proj-v2-title { color: var(--accent); }
.proj-v2-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.proj-v2.featured .proj-v2-desc { font-size: 16px; }

.proj-v2-role {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px;
  background: rgba(20, 20, 30, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.proj-v2-role-lead { background: oklch(0.35 0.14 250 / 0.88); }
.proj-v2-role-builder { background: oklch(0.40 0.13 160 / 0.88); }
.proj-v2-role-collab { background: oklch(0.38 0.10 30 / 0.88); }

.pill-featured {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}

.proj-v2-stack {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.proj-v2-stack-label {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.stack-pill {
  font-size: 10.5px;
  padding: 3px 7px; border-radius: 3px;
  background: oklch(0.96 0.005 85);
  color: var(--ink-2);
  border: 1px solid var(--rule);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.proj-v2-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-v2-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule-2);
  font-size: 12px;
  color: var(--ink-3);
}
.proj-v2-foot .mono { font-family: var(--mono); }
.proj-v2-foot .arr { color: var(--ink-3); transition: transform .3s, color .3s; }
.proj-v2:hover .arr { color: var(--accent); transform: translate(2px, -2px); }

/* Responsive v2 */
@media (max-width: 980px) {
  .hero-v2-grid { grid-template-columns: 1fr; }
  .hero-v2-photo { position: static; aspect-ratio: 3/4; max-width: 500px; }
  .about-v2 { grid-template-columns: 1fr; }
  .about-v2-card { position: static; grid-column: 1; grid-row: auto; }
  .field-strip { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .proj-v2 { grid-column: span 6; }
  .proj-v2.featured { grid-template-columns: 1fr; }
  .section-pad { padding: 70px 0; }
}

/* LINKEDIN */
.ln-head {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.ln-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ln-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  transition: all .28s;
  position: relative;
  overflow: hidden;
}
.ln-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,20,30,.05);
}
.ln-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: oklch(0.48 0.17 245);
  opacity: .7;
}
.ln-author {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px; align-items: start;
  margin-bottom: 14px;
}
.ln-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.55 0.15 245), oklch(0.42 0.18 260));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
}
.ln-author-meta { min-width: 0; line-height: 1.3; }
.ln-author-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 5px;
}
.ln-verify {
  font-size: 10px; color: #fff;
  background: oklch(0.48 0.17 245);
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-grid; place-items: center;
}
.ln-author-sub {
  font-size: 11px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.ln-author-time { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.ln-globe { font-size: 10px; opacity: 0.7; }
.ln-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: oklch(0.48 0.17 245);
  background: oklch(0.96 0.02 245);
  padding: 3px 8px; border-radius: 3px;
  align-self: start;
  white-space: nowrap;
}
.ln-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 20px; line-height: 1.3;
  color: var(--ink); margin: 0 0 10px;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.ln-excerpt {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2); margin: 0 0 16px;
  text-wrap: pretty;
}
.ln-reactions {
  display: flex; gap: 8px; align-items: center;
  padding-top: 12px; margin-top: auto;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-3);
}
.ln-react-dots { display: inline-flex; }
.ln-react-dot {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 9px;
  border: 1.5px solid var(--paper);
  margin-left: -4px;
}
.ln-react-dot:first-child { margin-left: 0; }
.ln-react-like { background: oklch(0.48 0.17 245); color: #fff; }
.ln-react-love { background: oklch(0.58 0.20 25); color: #fff; }
.ln-react-insight { background: oklch(0.72 0.15 85); color: #fff; }
.ln-react-count { font-size: 12px; color: var(--ink-2); }
.ln-react-sep { color: var(--ink-3); opacity: 0.5; }
.ln-more {
  margin-left: auto;
  font-family: var(--serif); font-style: italic; font-size: 12.5px;
  color: var(--ink-2);
  transition: color .2s;
}
.ln-card:hover .ln-more { color: oklch(0.48 0.17 245); }

@media (max-width: 900px) {
  .ln-grid { grid-template-columns: 1fr; }
  .ln-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* MODE SWITCH (industry / academic) */
.mode-switch {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 3px;
  box-shadow: 0 2px 12px rgba(20, 20, 30, 0.06);
}
.mode-opt {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: none;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-opt .mode-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.5;
}
.mode-opt:hover { color: var(--ink-2); }
.mode-opt.active {
  background: var(--ink);
  color: #fff;
}
.mode-opt.active .mode-dot { background: oklch(0.72 0.15 150); opacity: 1; }

@media (max-width: 640px) {
  .mode-switch { top: 8px; padding: 2px; }
  .mode-opt { padding: 5px 10px; font-size: 10px; }
}

/* Push nav down so it doesn't collide with mode switch */
[data-mode] .nav { top: 52px; }
@media (max-width: 640px) {
  [data-mode] .nav { top: 40px; }
}

/* IMPACT STRIP */
.impact-strip {
  background: linear-gradient(180deg, oklch(0.98 0.005 85), var(--bg));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
  margin-top: -1px;
}
.impact-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.impact-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 24px;
  border-right: 1px solid var(--rule);
  text-align: left;
}
.impact-item:first-child { padding-left: 0; }
.impact-item:last-child { border-right: none; padding-right: 0; }
.impact-num {
  font-family: var(--serif); font-weight: 500;
  font-size: 44px; line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.impact-lbl {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  text-wrap: balance;
}

@media (max-width: 900px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .impact-item {
    padding: 0 16px;
    border-right: 1px solid var(--rule);
  }
  .impact-item:nth-child(2n) { border-right: none; }
  .impact-item:nth-child(5) { border-right: none; grid-column: 1 / -1; padding-left: 0; }
  .impact-num { font-size: 34px; }
}

/* INDUSTRY HERO tweaks — keep layout, add subtle accent */
.hero-industry .hero-v2-h1 em {
  background: linear-gradient(180deg, transparent 60%, oklch(0.92 0.08 85) 60%);
  font-style: normal;
  padding: 0 2px;
}
