/* Shared stylesheet for the personal page, work page, and lifting page.
   Minimalist editorial paper aesthetic: crisp warm alabaster canvas, pure white
   cards with hairline borders, Newsreader serif headings, Inter body, one calm
   forest-green accent, and slightly rounded architectural radii (no pills, no
   glows, no gradients, no heavy neumorphic blobs). */

:root {
  color-scheme: light;
  --surface: #f7f6f2;
  --card: #ffffff;
  --well: #f0eee8;
  --text: #181613;
  --text-2: #4a463f;
  --text-3: #736d62;
  --line: rgba(24, 22, 19, 0.09);
  --line-strong: rgba(24, 22, 19, 0.16);
  --track: #d9d4c9;
  --rail: #d6d0c4;
  --accent: #1f5c3a;
  --accent-hover: #16442a;
  --accent-soft: #eaf2ed;
  --hover: #1f5c3a;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --r-xs: 6px;
  --shadow-card: 0 1px 2px rgba(24, 22, 19, 0.04), 0 4px 12px rgba(24, 22, 19, 0.025);
  --shadow-sm: 0 1px 2px rgba(24, 22, 19, 0.05);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--text);
  font: 400 15.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

h1,
h2 {
  font-family: var(--display);
}

h3 {
  font-family: var(--font);
}

ul {
  list-style: none;
}

p {
  color: var(--text-2);
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1060px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- surfaces ---------- */

.raised {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.inset {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.note,
.meta,
.count {
  font-size: 13.5px;
  color: var(--text-3);
}

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--text);
  font: 500 14.5px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: rgba(24, 22, 19, 0.28);
  color: var(--text);
}

.btn:active,
.btn[aria-pressed="true"] {
  background: var(--well);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn-sm {
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
}

.filters .btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: rgba(31, 92, 58, 0.35);
  color: var(--accent);
}

/* Status indicator: clean static dot (no fake toggle switch). */
.switch {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 13px;
}

.brand {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--well);
}

.nav a {
  padding: 6px 12px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.nav a[aria-current="true"],
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(26px, 4.5vw, 46px);
}

.hero-main {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.profile {
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
  min-width: 0;
}

.avatar {
  display: grid;
  place-items: center;
  align-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: var(--well);
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
}

.intro {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.role {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
}

.bio {
  max-width: 46ch;
  font-size: 15.5px;
  color: var(--text-2);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px;
  border-radius: var(--r-xs);
  border: 1px solid rgba(31, 92, 58, 0.22);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.linkstack {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.linkcards {
  display: grid;
  gap: 8px;
  width: 100%;
}

.linkcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

a.linkcard:hover {
  background: var(--card);
  border-color: var(--line-strong);
}

.lc-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.lc-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.lc-sub {
  font-size: 13px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

.lc-go {
  flex: none;
  font-size: 15px;
  color: var(--text-3);
}

/* ---------- quick facts ---------- */

.facts {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 22px 26px;
}

.facts dl {
  display: grid;
  gap: 16px;
}

.facts dl > div {
  display: grid;
  gap: 3px;
}

.facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.facts dd {
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- headings & sections ---------- */

.hero h1,
h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--text);
}

.lede {
  max-width: 64ch;
  font-size: 16px;
  color: var(--text-2);
}

h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}

h3 {
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--text);
}

.block {
  padding-block: clamp(44px, 6.5vw, 72px);
}

.head {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.head .lede {
  margin-top: 4px;
}

/* ---------- benchmark showcase ---------- */

.bench-card {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
}

.bench-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}

.bench-intro {
  display: grid;
  gap: 10px;
  max-width: 64ch;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.kpi-val {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.kpi-val.accent {
  color: var(--accent);
}

.kpi-label {
  font-size: 12.5px;
  color: var(--text-3);
}

.bench-viz-grid {
  display: grid;
  gap: 20px;
}

.bench-bars {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.bench-bars-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
}

.bench-bars-head h3 {
  font-size: 15.5px;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-item {
  display: grid;
  gap: 5px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
}

.bar-name {
  color: var(--text-2);
}

.bar-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.bar-track {
  position: relative;
  height: 10px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: 3px;
  background: var(--accent);
}

.bar-fill.muted {
  background: #8d867a;
}

.bar-fill.swarm {
  background: #143f27;
}

.re-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.re-tags span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--card);
  font-size: 12.5px;
  color: var(--text-2);
}

.chart-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chart-tab {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--card);
  color: var(--text-2);
  font: 500 12.5px/1.2 var(--font);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.chart-tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chart-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.chart-frame {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #ffffff;
  overflow: hidden;
}

.chart-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.chart-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- grids and cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.text-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--accent-hover);
}

.wide {
  grid-column: 1 / -1;
}

/* Compact FID comparison gauge */
.gauge {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.gauge-row {
  display: grid;
  grid-template-columns: minmax(0, 6.2rem) minmax(0, 1fr) 2.8rem;
  align-items: center;
  gap: 12px;
}

.gauge-name {
  font-size: 13px;
  color: var(--text-2);
}

.gauge-value {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.meter {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.meter i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.meter i.base {
  background: var(--track);
}

/* ---------- work history ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 28px clamp(20px, 3vw, 36px) 28px 50px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.timeline li {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -26px;
  top: 20px;
  bottom: -28px;
  width: 2px;
  background: var(--rail);
}

.timeline time {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.org {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.engagements {
  margin-top: 16px;
}

.plain {
  display: grid;
  gap: 10px;
}

.plain li {
  color: var(--text-2);
}

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

.edu-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}

.edu-muted {
  font-size: 12.5px;
  color: var(--text-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------- contact ---------- */

.contact {
  padding: 6px 24px;
  background: var(--card);
}

.row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row > a,
.row > span:not(.eyebrow) {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.row > a {
  justify-self: start;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.row > a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px 44px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-3);
}

.foot p {
  color: var(--text-3);
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--accent);
}

/* ---------- lifting page ---------- */

.big {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.big-head {
  display: grid;
  gap: 6px;
}

.big h3 {
  font-size: clamp(20px, 2.8vw, 24px);
}

.readout {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-radius: var(--r-md);
}

.digits {
  font-size: clamp(46px, 8vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.feature .digits {
  font-size: clamp(56px, 10vw, 84px);
}

.unit {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lb {
  font-size: 14.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.big-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.big-facts dt {
  font-size: 12.5px;
  color: var(--text-3);
}

.big-facts dd {
  font-size: 14.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(31, 92, 58, 0.25);
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: var(--accent);
}

.toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.search {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  background: var(--card);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 15px var(--font);
}

.search input::placeholder {
  color: var(--text-3);
}

.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.count {
  margin: 4px 0 18px;
  font-variant-numeric: tabular-nums;
}

.lift {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.lift-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.lift h3 {
  font-size: 15.5px;
}

.lift-set {
  font-size: 13.5px;
  color: var(--text-2);
}

.lift-est {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.lift-est b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.lift-est span {
  font-size: 13px;
  color: var(--text-3);
}

.tag-kind {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- breakpoints ---------- */

@media (min-width: 640px) {
  .grid.two,
  .grid.auto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wide,
  .big.feature {
    grid-column: 1 / -1;
  }

  .facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 32px;
  }
}

@media (min-width: 960px) {
  .grid.auto {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wide {
    grid-column: span 2;
  }

  .bench-viz-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr);
    align-items: stretch;
  }
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }

  .hero.single {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .row .btn {
    justify-self: start;
  }

  .card,
  .big,
  .bench-card {
    padding: 20px;
  }

  .facts {
    padding: 18px 20px;
  }

  .contact {
    padding: 4px 18px;
  }

  .topbar .bar {
    flex-wrap: nowrap;
    gap: 10px;
    padding-block: 10px;
  }

  .brand {
    flex: none;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: none;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav a,
  .linkcard,
  .chart-tab {
    transition: none;
  }
}
