/* Kartik Soni — portfolio */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f8f8f5;
  --surface: #ffffff;
  --surface-2: #f1f1ec;
  --line: #e4e4dd;
  --line-strong: #cfcfc6;
  --ink: #16181b;
  --ink-2: #3b4148;
  --muted: #5f6670;
  --accent: #1d6b47;
  --accent-hover: #155537;
  --accent-soft: #e3f0e8;
  --on-accent: #ffffff;
  --badge-bg: #fbf1d6;
  --badge-ink: #6b4d00;
  --focus: #2563c9;
  --shadow: 0 1px 2px rgba(20, 22, 25, .04), 0 10px 30px -18px rgba(20, 22, 25, .18);
  --nav-bg: rgba(248, 248, 245, .86);

  /* chart series, validated against #ffffff */
  --c-fp16: #2a78d6;
  --c-fp4: #d9661f;
  --c-nf4: #8b4fd0;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1113;
  --surface: #16191c;
  --surface-2: #1c2024;
  --line: #262b30;
  --line-strong: #353b42;
  --ink: #eceef0;
  --ink-2: #c4cad1;
  --muted: #8f98a2;
  --accent: #6fcf9c;
  --accent-hover: #8adbb0;
  --accent-soft: rgba(111, 207, 156, .12);
  --on-accent: #0b2417;
  --badge-bg: rgba(240, 190, 80, .14);
  --badge-ink: #f0c66a;
  --focus: #7cb2ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .6);
  --nav-bg: rgba(15, 17, 19, .82);

  /* validated against #16191c */
  --c-fp16: #3d8cd8;
  --c-fp4: #cf6e22;
  --c-nf4: #a861d1;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

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

[id] { scroll-margin-top: 80px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--sm { width: 14px; height: 14px; }

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .wrap { width: min(1120px, 100% - 64px); }
}

/* ---------- Shared pieces ---------- */
.label {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .01em;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { border-color: var(--ink-2); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.is-done { border-color: var(--accent); color: var(--accent); }

.icon-btn, .icon-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn:hover, .icon-link:hover { background: var(--surface-2); color: var(--ink); }
.icon-link { width: 42px; height: 42px; border-color: var(--line-strong); border-radius: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.badge .ico { width: 15px; height: 15px; }
.badge--muted { background: var(--surface-2); color: var(--muted); font-weight: 500; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.link:hover { color: var(--accent); }
.link .ico--sm { color: var(--muted); }
.link--accent { color: var(--accent); }
.link--accent:hover { color: var(--accent-hover); }
.link--accent .ico--sm { color: inherit; }
.project__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }

.points { display: grid; gap: 6px; }
.points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 1.5px;
  background: var(--muted);
}
.points b { color: var(--ink); font-weight: 600; }

.subhead {
  margin: 48px 0 18px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__toggle { display: none; }
.ico--moon, .ico--close { display: none; }
:root[data-theme="dark"] .ico--sun { display: none; }
:root[data-theme="dark"] .ico--moon { display: block; }
.nav.is-open .ico--menu { display: none; }
.nav.is-open .ico--close { display: block; }

@media (max-width: 879px) {
  .nav__toggle { display: inline-grid; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .35);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a[aria-current] { box-shadow: none; color: var(--accent); }
}
@media (max-width: 380px) {
  .nav__resume { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 104px) 0 0; }
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: end;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 64px; }
}
.hero h1 {
  margin: 14px 0 20px;
  font-family: var(--serif);
  font-size: clamp(46px, 7.4vw, 86px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero__lede {
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 20.5px);
  line-height: 1.55;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
}
.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ping 2.6s ease-out infinite;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }

.now { padding: 24px; }
.now__list { display: grid; gap: 14px; margin-top: 14px; }
.now__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.now__k { color: var(--accent); font-family: var(--mono); font-size: 12.5px; padding-top: 2px; }
.now__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
}
.highlights li {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 22px 20px 26px 0;
}
.highlights li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.highlights li:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .highlights li { padding: 24px 20px 28px; border-left: 1px solid var(--line); border-top: 0 !important; }
  .highlights li:first-child { padding-left: 0; border-left: 0; }
}
.hl__value {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.hl__label { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section + .section, .hero + .section { border-top: 1px solid var(--line); }
.section__grid { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .section__grid { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
  .section__head { position: sticky; top: 96px; align-self: start; }
}
.section__num { display: block; color: var(--accent); font-family: var(--mono); font-size: 13px; margin-bottom: 6px; }
.section__head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -.015em;
}
.section__body { min-width: 0; }

.prose { display: grid; gap: 16px; max-width: 66ch; font-size: 17.5px; color: var(--ink-2); }
.prose p:first-child { color: var(--ink); }
.prose-p { max-width: 66ch; color: var(--ink-2); }

/* About */
.focus {
  display: grid;
  gap: 24px 32px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .focus { grid-template-columns: 1fr 1fr; }
}
.focus div { padding-top: 16px; border-top: 1px solid var(--line); }
.focus dt { font-weight: 600; font-size: 16px; }
.focus dd { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Research ---------- */
.study h3 {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.study__cols {
  display: grid;
  gap: 28px;
  margin: 28px 0 32px;
}
@media (min-width: 760px) {
  .study__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.spec { border-top: 1px solid var(--line); }
.spec div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
}
.spec dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding-top: 2px; }
.findings { counter-reset: f; display: grid; gap: 12px; margin-top: 12px; }
.findings li {
  counter-increment: f;
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.findings li::before {
  content: counter(f);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}
.findings strong { color: var(--ink); }
.findings li:nth-child(2)::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.study__next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 20px; color: var(--ink-2); font-size: 15px; }
.study--small { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.study--small h3 { font-size: clamp(22px, 2.4vw, 26px); }
.links-inline { margin-top: 14px; }
.links-inline a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.links-inline a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* chart */
.chart { margin: 0; padding: clamp(18px, 3vw, 28px); }
.chart__cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.chart__cap h4 { font-size: 16px; font-weight: 600; }
.chart__cap p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw--fp16 { background: var(--c-fp16); }
.sw--fp4 { background: var(--c-fp4); }
.sw--nf4 { background: var(--c-nf4); }

.chart__grid {
  display: grid;
  gap: 28px 40px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .chart__grid { grid-template-columns: 1fr 1fr; }
}
.mini h5 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.mini h5 span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 1px; }
.mini--key { position: relative; }
.mini--key::before {
  content: "";
  position: absolute;
  inset: -12px -14px;
  border-radius: 10px;
  background: var(--accent-soft);
  z-index: -1;
}
.mini--key { isolation: isolate; }
.bar-row {
  display: grid;
  grid-template-columns: 38px 1fr 52px;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border-radius: 4px;
}
.bar-row__k { color: var(--ink-2); font-family: var(--mono); font-size: 11.5px; }
.bar-row__v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row--na .bar-row__v { color: var(--muted); font-weight: 400; }
.bar-track { display: block; height: 12px; border-left: 1px solid var(--line-strong); }
.bar {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 0 4px 4px 0;
  transition: filter .15s;
}
.bar--fp16 { background: var(--c-fp16); }
.bar--fp4 { background: var(--c-fp4); }
.bar--nf4 { background: var(--c-nf4); }
.bar-row:hover .bar, .bar-row:focus-visible .bar { filter: brightness(1.12); }
.axis {
  display: flex;
  justify-content: space-between;
  margin: 4px 60px 0 46px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.mini__delta { margin-top: 8px; color: var(--ink-2); font-size: 13px; }
.mini__delta b { color: var(--ink); }

.chart__table { margin-top: 24px; }
.chart__table summary { cursor: pointer; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.chart__table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.chart__table th, .chart__table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.chart__table th:first-child { text-align: left; font-weight: 500; }
.chart__table thead th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.chart__table td { font-variant-numeric: tabular-nums; }
.chart__note { margin-top: 14px; color: var(--muted); font-size: 13px; }

.tip {
  position: fixed;
  z-index: 90;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
}

/* ---------- Projects ---------- */
.project {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 28px);
  transition: border-color .2s ease;
}
.project:hover { border-color: var(--line-strong); }
.project > p, .project__main > p { color: var(--ink-2); font-size: 15.5px; }
.project__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.project h3 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.project__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project--featured { margin-bottom: 24px; }
@media (min-width: 900px) {
  .project--featured { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
}
.project--featured h3 { font-size: clamp(26px, 3vw, 32px); }
.project__main { display: flex; flex-direction: column; gap: 18px; }

.pipeline {
  counter-reset: s;
  display: grid;
  gap: 8px;
}
@media (min-width: 640px) {
  .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pipeline li {
  counter-increment: s;
  position: relative;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.35;
}
.pipeline li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}
.pipeline b { display: block; font-weight: 600; }
.pipeline span { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .facts { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); padding-left: 28px; }
}
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 12.5px; }
.facts dd { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.facts__lead { grid-column: 1 / -1; }
.facts__lead dd { font-family: var(--serif); font-size: 40px; color: var(--accent); letter-spacing: -.02em; line-height: 1.1; }

.project-grid { display: grid; gap: 24px; }
@media (min-width: 760px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}

.more { border-top: 1px solid var(--line); }
.more li {
  display: grid;
  gap: 2px 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .more li { grid-template-columns: 240px 1fr; }
}
.more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: start;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
}
.more a:hover { color: var(--accent); }
.more a .ico--sm { color: var(--muted); }
.more p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Experience ---------- */
.timeline { border-top: 1px solid var(--line); }
.entry {
  display: grid;
  gap: 6px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .entry { grid-template-columns: 170px 1fr; }
}
.entry__when { color: var(--muted); font-family: var(--mono); font-size: 13px; padding-top: 3px; }
.entry h3 { font-size: 18px; font-weight: 600; }
.entry__org { color: var(--ink-2); font-size: 15.5px; margin-top: 2px; }
.entry .points { margin-top: 12px; }
.entry__note { margin-top: 10px; color: var(--muted); font-size: 15px; }
.section__body > .subhead:first-child { margin-top: 0; }

/* ---------- Skills & awards ---------- */
.skills {
  display: grid;
  gap: 28px 40px;
}
@media (min-width: 680px) {
  .skills { grid-template-columns: 1fr 1fr; }
}
.skills__group { padding-top: 16px; border-top: 1px solid var(--line); }
.dotlist { display: flex; flex-wrap: wrap; margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.dotlist li:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--muted); }

.awards { display: grid; gap: 0 40px; }
@media (min-width: 760px) {
  .awards { grid-template-columns: 1fr 1fr; }
}
.award-list { border-top: 1px solid var(--line); }
.award-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}
.award-list__when { color: var(--muted); font-family: var(--mono); font-size: 12.5px; padding-top: 2px; }
.award-list b { display: block; font-weight: 600; }
.award-list span span, .award-list li > span:last-child { color: var(--muted); }
.award-list b { color: var(--ink); }

/* ---------- Contact ---------- */
.contact__lede { max-width: 56ch; color: var(--ink-2); font-size: 18px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.email {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--accent);
}
.email:hover { color: var(--accent); }
.contact__time { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.contact__time .ico { width: 16px; height: 16px; }
.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
@media (min-width: 640px) {
  .contact-links { grid-template-columns: 1fr 1fr; }
}
.contact-links a {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .15s;
}
.contact-links a:hover { border-color: var(--accent); }
.contact-links b { display: block; font-size: 15px; font-weight: 600; }
.contact-links small { color: var(--muted); font-size: 13.5px; }
.contact-links .ico--sm { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Motion ---------- */
@keyframes ping {
  0% { transform: scale(.6); opacity: .7; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .nav, .tip, .hero__actions, .chart__table { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; }
  .section { padding: 32px 0; }
}
