/* ============================================================
   Josh Charles | Analytical Chemist
   Design system & styles
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f2efe6;
  --bg-soft: #eae6d9;
  --surface: #faf8f1;
  --surface-raised: #fffdf7;
  --ink: #101915;
  --ink-soft: #2f3d37;
  --muted: #64706a;
  --line: rgba(16, 25, 21, 0.14);
  --line-strong: rgba(16, 25, 21, 0.28);
  --teal: #0b5b4d;
  --teal-bright: #0f7a67;
  --lime: #d8f56e;
  --lime-soft: rgba(216, 245, 110, 0.32);
  --dark: #0a1512;
  --dark-soft: #0e1d18;
  --on-dark: #f3f6ec;
  --on-dark-muted: #a9b8b0;
  --shadow: 0 30px 70px -40px rgba(10, 21, 18, 0.45);
  --shadow-soft: 0 16px 40px -30px rgba(10, 21, 18, 0.35);
  --grid: rgba(16, 25, 21, 0.055);
  --glow-a: rgba(216, 245, 110, 0.2);
  --glow-b: rgba(11, 91, 77, 0.09);

  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #08110e;
  --bg-soft: #0b1612;
  --surface: #0f1c17;
  --surface-raised: #12211b;
  --ink: #edf3eb;
  --ink-soft: #c7d3cc;
  --muted: #93a39a;
  --line: rgba(237, 243, 235, 0.14);
  --line-strong: rgba(237, 243, 235, 0.3);
  --teal: #7adcc5;
  --teal-bright: #97ead6;
  --lime: #d8f56e;
  --lime-soft: rgba(216, 245, 110, 0.16);
  --dark: #060d0b;
  --dark-soft: #0c1814;
  --on-dark: #f3f6ec;
  --on-dark-muted: #a9b8b0;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 16px 40px -30px rgba(0, 0, 0, 0.6);
  --grid: rgba(237, 243, 235, 0.05);
  --glow-a: rgba(216, 245, 110, 0.07);
  --glow-b: rgba(122, 220, 197, 0.06);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 88% -8%, var(--glow-a), transparent 62%),
    radial-gradient(820px 520px at -8% 18%, var(--glow-b), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, p, dl, dd, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

section {
  scroll-margin-top: 96px;
}

::selection {
  background: var(--lime);
  color: #0a1512;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- Utilities ---------- */
.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

.section {
  padding-block: clamp(84px, 11vw, 132px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-label {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.section-label i {
  font-style: normal;
  color: var(--teal);
  font-weight: 500;
}

.section-label::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--line-strong);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.8vw, 3.9rem);
  font-weight: 380;
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
  font-weight: 380;
  color: var(--teal);
}

.section-head__intro {
  max-width: 40ch;
  padding-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--dark {
  background: var(--ink);
  color: var(--bg);
}

.btn--dark:hover {
  background: var(--teal);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--surface);
  transform: translateY(-2px);
}

.btn--lime {
  background: var(--lime);
  color: #0a1512;
}

.btn--lime:hover {
  background: #e4ff8a;
  transform: translateY(-1px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

/* ---------- Progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.brand:hover .brand__mark {
  background: var(--lime);
  border-color: var(--lime);
  color: #0a1512;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.brand__role {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__list a:hover,
.nav__list a.is-active {
  color: var(--ink);
}

.nav__list a:hover::after,
.nav__list a.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.nav__cta svg {
  width: 14px;
  height: 14px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(126px, 16vh, 176px) 0 clamp(52px, 7vw, 88px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ea66a;
  box-shadow: 0 0 0 3px rgba(78, 166, 106, 0.18);
  animation: pulse 3s ease-in-out infinite;
}

.hero__loc {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(4rem, 10.2vw, 8.4rem);
  font-weight: 380;
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin-left: -0.04em;
}

.hero__title-line {
  display: block;
}

.hero__title em {
  font-style: italic;
  font-weight: 340;
  color: var(--teal);
}

.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: clamp(24px, 3vw, 34px);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__role span:first-child {
  color: var(--ink-soft);
}

.hero__role-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 12%, transparent);
}

.hero__lead {
  max-width: 48ch;
  margin-top: 20px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.72;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(26px, 3.5vw, 36px);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(32px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__facts dt {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__facts dd {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Lab card ---------- */
.hero__visual {
  min-width: 0;
}

.lab-wrap {
  position: relative;
  width: min(100%, 430px);
  margin-left: auto;
  perspective: 1100px;
}

.lab-card {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid rgba(216, 245, 110, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(216, 245, 110, 0.14), transparent 55%),
    linear-gradient(158deg, #0f241d 0%, #08130f 70%);
  color: var(--on-dark);
  box-shadow:
    0 50px 90px -45px rgba(4, 12, 9, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}

.lab-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.lab-card > * {
  position: relative;
}

.lab-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--on-dark-muted);
}

.lab-card__head .mono {
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.lab-card__id {
  color: var(--lime);
}

.lab-card__reading {
  padding-top: 18px;
}

.lab-card__label {
  display: block;
  color: var(--on-dark-muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.lab-card__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.lab-card__num {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5vw, 4.1rem);
  font-weight: 360;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--on-dark);
}

.lab-card__unit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.ph-scale {
  position: relative;
  height: 7px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e4572e 0%,
    #f2a65a 18%,
    #e9d25b 36%,
    #6fbf73 52%,
    #2f9e8f 66%,
    #3b6fb6 82%,
    #6a4c93 100%
  );
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ph-scale__marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  height: 15px;
  border: 3px solid #08130f;
  border-radius: 50%;
  background: #f3f6ec;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: left 1.5s var(--ease), opacity 0.3s ease;
}

.is-live .ph-scale__marker {
  left: var(--pos);
  opacity: 1;
}

.ph-scale__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(243, 246, 236, 0.4);
}

.lab-chart {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-chart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--on-dark-muted);
}

.lab-chart__head .mono {
  font-size: 8px;
  letter-spacing: 0.12em;
}

.lab-chart__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.chart-area {
  transition: opacity 1.4s ease 0.5s;
}

.chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.chart-dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.5s ease 1.8s, transform 0.5s var(--ease) 1.8s;
}

html.js .chart-area {
  opacity: 0;
}

html.js .chart-line {
  stroke-dashoffset: 1;
}

html.js .chart-dot {
  opacity: 0;
  transform: scale(0.4);
}

html.js .lab-card.is-live .chart-area {
  opacity: 1;
}

html.js .lab-card.is-live .chart-line {
  animation: draw-line 2.2s 0.3s var(--ease) forwards;
}

html.js .lab-card.is-live .chart-dot {
  opacity: 1;
  transform: scale(1);
}

.lab-chart__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: rgba(243, 246, 236, 0.38);
}

.lab-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-rows li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.lab-rows .mono {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--on-dark-muted);
}

.lab-rows__bar {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.lab-rows__bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(216, 245, 110, 0.5), var(--lime));
  transform-origin: left;
  animation: grow-bar 1.6s 0.9s var(--ease) both;
}

.lab-rows b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  white-space: nowrap;
}

.lab-rows b small {
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: rgba(243, 246, 236, 0.45);
}

.lab-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: rgba(243, 246, 236, 0.38);
}

.lab-card__foot span:first-child {
  color: var(--lime);
}

.seal {
  position: absolute;
  right: -28px;
  bottom: -28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--lime);
  color: #0a1512;
  box-shadow: 0 18px 40px -18px rgba(10, 21, 18, 0.55);
}

.seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(10, 21, 18, 0.38);
  border-radius: 50%;
  animation: spin 45s linear infinite;
}

.seal__svg {
  width: 100%;
  height: 100%;
}

.seal__text {
  fill: #0a1512;
  font-family: var(--mono);
  font-size: 8.6px;
  letter-spacing: 2.35px;
}

.seal__initials {
  fill: #0a1512;
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
}

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.float-chip--one {
  top: 13%;
  left: -30px;
  transform: rotate(-6deg);
}

.float-chip--two {
  top: 58%;
  right: -24px;
  transform: rotate(4deg);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 15px 0;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.marquee__group span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__group .marquee__star {
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 0;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.about__lead {
  font-size: clamp(1.15rem, 1.7vw, 1.38rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}

.about__photo {
  width: min(100%, 300px);
  margin: 0 0 26px;
}

.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(9, 20, 15, 0.16);
}

@media (min-width: 720px) {
  .about__photo {
    float: left;
    width: 264px;
    margin: 6px 32px 18px 0;
  }
}

/* Between 961px and 1199px the About grid returns to two columns, which leaves
   the copy too narrow for a float, so the portrait sits above the text again. */
@media (min-width: 961px) and (max-width: 1199px) {
  .about__photo {
    float: none;
    width: min(100%, 300px);
    margin: 0 0 26px;
  }
}

.about__copy p + p {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.about__interests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  clear: both;
}

.about__interests-label {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

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

.chips li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.chips li:hover {
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
  color: var(--teal);
}

.chips--tight li {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.profile-card {
  --card-pad: 26px;
  position: sticky;
  top: 104px;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.profile-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.profile-card__head .mono {
  font-size: 9px;
  letter-spacing: 0.16em;
}

.profile-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-soft);
}

.profile-card__list {
  margin-top: 16px;
}

.profile-card__list > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.profile-card__list dt {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.profile-card__list dd {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.profile-card__link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--teal);
  word-break: break-word;
  transition: color 0.25s var(--ease);
}

.profile-card__link svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  transition: transform 0.25s var(--ease);
}

.profile-card__link:hover {
  color: var(--teal-bright);
}

.profile-card__link:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Experience ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.job:hover {
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.job__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.job__dates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--teal);
  white-space: nowrap;
}

.job__dates::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.job__place {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.job__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.job__head h3 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 420;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.pill {
  flex: none;
  margin-top: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.job__sub {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--teal);
}

.job__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  margin-top: 22px;
}

.job__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.job__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 60%, transparent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tags li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Band ---------- */
.band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

/* ---------- Expertise / bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 244px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  box-shadow: var(--shadow);
}

.card--wide {
  grid-column: span 7;
}

.card--feature {
  grid-column: span 5;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card__label {
  padding-top: 4px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--teal);
}

.card__icon svg {
  width: 19px;
  height: 19px;
}

.card h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 430;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.card p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--muted);
  text-wrap: pretty;
}

.card--wide h3 {
  margin-top: 28px;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.028em;
}

.card--wide p {
  max-width: 52ch;
  margin-top: 10px;
  font-size: 13.5px;
}

.method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 26px;
}

.method-list li {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 5%, transparent);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.card--feature {
  min-height: 320px;
  border-color: rgba(216, 245, 110, 0.2);
  background:
    radial-gradient(120% 110% at 100% 0%, rgba(216, 245, 110, 0.16), transparent 56%),
    linear-gradient(160deg, #0d2019, #08130f);
  color: var(--on-dark);
}

.card--feature:hover {
  border-color: rgba(216, 245, 110, 0.4);
}

.card--feature::after {
  content: "";
  position: absolute;
  right: -96px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(216, 245, 110, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.card--feature .card__label {
  color: rgba(243, 246, 236, 0.5);
}

.card--feature .card__icon {
  border-color: rgba(216, 245, 110, 0.24);
  background: rgba(216, 245, 110, 0.08);
  color: var(--lime);
}

.feature__standard {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
}

.feature__standard .mono {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--lime);
}

.feature__standard strong {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 4.6vw, 4.4rem);
  font-weight: 340;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--lime);
}

.card--feature h3 {
  margin-top: 14px;
  font-size: clamp(1.45rem, 2.1vw, 1.75rem);
  color: var(--on-dark);
}

.card--feature p {
  max-width: 38ch;
  color: var(--on-dark-muted);
  font-size: 12.5px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(243, 246, 236, 0.82);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  color: var(--lime);
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 16px;
  align-items: stretch;
}

.edu-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.edu-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  box-shadow: var(--shadow-soft);
}

.edu-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
}

.edu-card__top .mono {
  font-size: 8.5px;
  letter-spacing: 0.15em;
}

.edu-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--teal);
}

.edu-card__icon svg {
  width: 20px;
  height: 20px;
}

.edu-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  font-weight: 420;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.edu-card__org {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.edu-card__details {
  margin-top: auto;
  padding-top: 22px;
}

.edu-card__details > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.edu-card__details dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.edu-card__details dd {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.edu-card .chips {
  margin-top: 18px;
}

.edu-card__note {
  margin-top: 18px;
  padding-left: 10px;
  border-left: 2px solid var(--lime);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--teal);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 132px);
  background: var(--dark);
  color: var(--on-dark);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000, transparent 75%);
  pointer-events: none;
}

.contact__glow {
  position: absolute;
  top: -42%;
  right: -12%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 245, 110, 0.17), transparent 62%);
  pointer-events: none;
  filter: blur(10px);
}

.contact__inner {
  position: relative;
  z-index: 1;
}

.section-label--light {
  color: var(--on-dark-muted);
}

.section-label--light i {
  color: var(--lime);
}

.section-label--light::after {
  background: rgba(243, 246, 236, 0.24);
}

.contact__head {
  margin-bottom: clamp(40px, 6vw, 60px);
}

.contact__kicker {
  margin-top: 26px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--on-dark-muted);
}

.contact__title {
  max-width: 16ch;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  font-weight: 360;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.contact__title em {
  font-style: italic;
  color: var(--lime);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(32px, 5vw, 64px);
  padding-top: 40px;
  border-top: 1px solid rgba(243, 246, 236, 0.16);
}

.contact__label {
  display: block;
  margin-bottom: 12px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: rgba(243, 246, 236, 0.52);
}

.contact__email {
  display: inline;
  font-size: clamp(1.02rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(243, 246, 236, 0.28);
  padding-bottom: 4px;
  word-break: break-word;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact__email svg {
  display: inline;
  width: 0.72em;
  height: 0.72em;
  margin-left: 8px;
  vertical-align: baseline;
  transition: transform 0.25s var(--ease);
}

.contact__email:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.contact__email:hover svg {
  transform: translate(3px, -3px);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 14px;
  border: 1px solid rgba(243, 246, 236, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-muted);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.copy-btn svg {
  width: 13px;
  height: 13px;
}

.copy-btn:hover {
  color: var(--lime);
  border-color: rgba(216, 245, 110, 0.55);
  background: rgba(216, 245, 110, 0.06);
}

.copy-btn.is-copied {
  color: var(--lime);
  border-color: rgba(216, 245, 110, 0.55);
}

.contact__details {
  display: grid;
  gap: 26px;
  align-content: start;
}

.contact__details p,
.contact__details a {
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark);
}

.contact__details a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact__details a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 26px 0;
  background: var(--dark);
  border-top: 1px solid rgba(243, 246, 236, 0.12);
  color: var(--on-dark-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(243, 246, 236, 0.22);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 11px;
  color: var(--lime);
}

.footer__brand p {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--on-dark);
}

.footer__brand p span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__nav a,
.footer__top {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  transition: color 0.25s var(--ease);
}

.footer__nav a:hover,
.footer__top:hover {
  color: var(--lime);
}

.footer__note {
  font-size: 10.5px;
  color: rgba(243, 246, 236, 0.62);
}

.footer__top span {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.footer__top:hover span {
  transform: translateY(-2px);
}

/* ---------- Reveal ---------- */
html.js .reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.85s var(--ease), translate 0.85s var(--ease);
  transition-delay: var(--delay, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(78, 166, 106, 0.16); }
  50% { box-shadow: 0 0 0 5px rgba(78, 166, 106, 0.06); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes grow-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .job {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .edu-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .edu-card--lead {
    grid-column: span 2;
  }

  .edu-card--lead .edu-card__details {
    margin-top: 20px;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 118px;
  }

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

  .lab-wrap {
    margin-inline: auto;
  }

  .hero__visual {
    width: 100%;
  }

  .hero__facts {
    max-width: 620px;
  }

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

  .section-head__intro {
    padding-bottom: 0;
    max-width: 56ch;
  }

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

  .profile-card {
    position: static;
  }

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

  .job__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .job__place {
    text-align: right;
  }

  .card--wide,
  .card--feature {
    grid-column: span 12;
  }

  .bento .card {
    grid-column: span 6;
  }

  .bento .card--wide,
  .bento .card--feature {
    grid-column: span 12;
  }

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

  .contact__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .header__inner {
    height: 70px;
  }

  .menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 30px 70px -30px rgba(10, 21, 18, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.99);
    transform-origin: top center;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__list a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .nav__list a::after {
    display: none;
  }

  .nav__list a:hover,
  .nav__list a.is-active {
    background: var(--bg);
    color: var(--ink);
  }

  .nav__cta {
    height: 45px;
    margin-top: 4px;
    font-size: 13px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .section {
    padding-block: clamp(72px, 12vw, 100px);
  }
}

@media (max-width: 720px) {
  .edu-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .edu-card--lead {
    grid-column: auto;
  }

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

  .hero__title {
    font-size: clamp(3.7rem, 17vw, 6.4rem);
  }

  .hero__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 6px;
  }

  .hero__facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__facts > div:last-child {
    border-bottom: 0;
  }

  .hero__facts dd {
    margin-top: 0;
  }

  .bento .card {
    grid-column: span 12;
    min-height: 0;
  }

  .card__top {
    margin-bottom: 4px;
  }

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

  .footer__inner {
    justify-content: flex-start;
  }

  .footer__note {
    order: 4;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .brand__role {
    display: none;
  }

  .hero {
    padding-top: 108px;
  }

  .hero__eyebrow {
    gap: 10px;
  }

  .hero__role {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero__actions {
    gap: 8px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .lab-card {
    padding: 20px;
  }

  .seal {
    width: 92px;
    height: 92px;
    right: -14px;
    bottom: -22px;
  }

  .seal__text {
    font-size: 9px;
    letter-spacing: 2.2px;
  }

  .seal__initials {
    font-size: 23px;
  }

  .float-chip {
    display: none;
  }

  .lab-rows li {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .job {
    padding: 22px;
  }

  .job__head {
    flex-direction: column;
    gap: 8px;
  }

  .pill {
    margin-top: 0;
  }

  .profile-card {
    --card-pad: 22px;
    padding: var(--card-pad);
  }

  .profile-card__list > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .edu-card {
    padding: 22px;
  }

  .contact__title {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
  }

  .contact__actions .copy-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal {
    opacity: 1;
    translate: none;
  }
}

/* ---------- Print ---------- */
@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  body::before,
  .site-header,
  .progress,
  .hero__visual,
  .marquee,
  .contact__glow,
  .site-footer,
  .skip-link,
  .hero__actions,
  .copy-btn,
  .profile-card__link,
  .about__interests {
    display: none !important;
  }

  .hero {
    padding: 0 0 12px;
  }

  .hero__title {
    font-size: 44pt;
  }

  .section {
    padding-block: 14px;
    break-inside: avoid;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-title {
    font-size: 20pt;
  }

  .job,
  .card,
  .edu-card,
  .profile-card {
    break-inside: avoid;
    box-shadow: none;
    background: #fff;
    border-color: #ccc;
  }

  .band,
  .contact {
    background: #fff;
    color: #111;
    border-color: #ccc;
  }

  .contact__title em,
  .section-label--light i,
  .contact__email,
  .contact__details p,
  .contact__details a,
  .contact__kicker {
    color: #111;
  }

  .hero__facts {
    display: none;
  }
}
