:root {
  color-scheme: dark;
  --bg: #080a08;
  --bg-2: #101410;
  --ink: #f5f7f2;
  --muted: #b4bdb0;
  --soft: #e9ece5;
  --paper: #f6f7f2;
  --paper-ink: #151914;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(12, 16, 12, 0.16);
  --green: #7bbd22;
  --green-2: #9ad746;
  --cyan: #53c7d4;
  --amber: #d7a02f;
  --danger: #e15d44;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --header-height: 72px;
  --light-section-grid: 92px;
  --light-section-grid-y: rgba(21, 25, 20, 0.035);
  --light-section-grid-x: rgba(21, 25, 20, 0.026);
  --light-section-kicker: #5f9f13;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow-x: hidden;
  overflow-y: scroll;
}

button,
a {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--green);
  color: #071007;
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(8, 10, 8, 0.64);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 260ms ease, border-color 260ms ease;
}

.site-header.scrolled {
  background: rgba(8, 10, 8, 0.92);
  border-color: var(--line);
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(123, 189, 34, 0.5);
  background: #11170d;
  color: var(--green-2);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 4px;
}

.brand-word {
  font-weight: 760;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle,
.menu-toggle {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.lang-toggle {
  min-width: 56px;
  height: 38px;
  padding: 0 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

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

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

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  padding: 12px 20px 22px;
  background: rgba(8, 10, 8, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  padding: calc(var(--header-height) + 36px) 40px 68px;
  background:
    linear-gradient(110deg, rgba(8, 10, 8, 0.96), rgba(8, 10, 8, 0.78) 48%, rgba(8, 10, 8, 0.9)),
    radial-gradient(circle at 70% 20%, rgba(123, 189, 34, 0.16), transparent 34%),
    #080a08;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 8, 0.86));
  pointer-events: none;
}

.field-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.58fr);
  gap: 56px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 46px;
  font-size: clamp(5.2rem, 9vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  max-width: none;
}

.hero-copy h1,
.hero-copy .eyebrow {
  transform-origin: 35% 60%;
  will-change: transform;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.15rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lede {
  display: grid;
  gap: 14px;
  max-width: 800px;
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.62;
}

.hero-lede p {
  margin: 0;
}

.hero-lede a {
  color: var(--green-2);
  border-bottom: 1px solid rgba(154, 215, 70, 0.42);
}

.hero-lede a:hover,
.hero-lede a:focus-visible {
  border-color: var(--green-2);
}

.tagline,
.project-tag,
.publication-venue {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.82rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 760;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #071007;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green-2);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 470px;
  transform-style: preserve-3d;
  transition: transform 260ms ease;
}

.portrait-shell {
  --impact-x-1: 0px;
  --impact-y-1: 0px;
  --impact-r-1: 0deg;
  --impact-x-2: 0px;
  --impact-y-2: 0px;
  --impact-r-2: 0deg;
  --impact-x-3: 0px;
  --impact-y-3: 0px;
  --impact-r-3: 0deg;
  --impact-x-4: 0px;
  --impact-y-4: 0px;
  --impact-r-4: 0deg;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  background: #151914;
  transform: translate3d(0, 0, 0);
  transform-origin: center center;
  will-change: transform;
}

.portrait-shell::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0.34) 58%, transparent 76%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72), transparent 48%);
  opacity: 0;
  transform: translate3d(-28%, 0, 0) rotate(8deg);
  mix-blend-mode: screen;
}

.portrait-shell.is-impacting {
  animation: hero-portrait-impact 360ms cubic-bezier(0.18, 0.88, 0.28, 1) both;
}

.portrait-shell.is-flashing::before {
  animation: hero-portrait-flash 380ms ease-out both;
}

.portrait-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 5, 0.06), rgba(5, 6, 5, 0.48)),
    linear-gradient(90deg, rgba(5, 6, 5, 0.4), transparent 45%);
}

.portrait-shell img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.94) contrast(1.04);
  transition: opacity 120ms ease, filter 180ms ease;
}

.portrait-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  color: rgba(245, 247, 242, 0.62);
  font-size: 0.68rem;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0;
}

.metric-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  max-width: 1320px;
  margin: 0 auto;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-band {
  padding: 34px 40px 52px;
  background: var(--bg);
  color: var(--ink);
}

.metric-rail div {
  min-height: 90px;
  padding: 18px 22px;
  background: var(--bg);
}

.metric-rail strong {
  display: block;
  color: var(--green-2);
  font-size: 1.16rem;
  line-height: 1.15;
}

.metric-rail span {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.95rem;
}

.section,
.strategy-band {
  position: relative;
}

.section {
  padding: 86px 40px;
  background: var(--paper);
  color: var(--paper-ink);
}

.strategy-band {
  padding: 70px 40px;
  background: #101410;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.dark-section {
  background:
    linear-gradient(180deg, rgba(8, 10, 8, 0.96), rgba(14, 17, 13, 0.98)),
    #0f120e;
  color: var(--ink);
}

.projects-section {
  overflow: hidden;
  background:
    linear-gradient(var(--light-section-grid-y) 1px, transparent 1px),
    linear-gradient(90deg, var(--light-section-grid-x) 1px, transparent 1px),
    linear-gradient(180deg, #f5f7f0 0%, #edf2e9 100%);
  background-attachment: scroll, scroll, scroll;
  background-position: center top;
  background-size: var(--light-section-grid) var(--light-section-grid), var(--light-section-grid) var(--light-section-grid), auto;
}

.matrix-section {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(var(--light-section-grid-y) 1px, transparent 1px),
    linear-gradient(90deg, var(--light-section-grid-x) 1px, transparent 1px),
    linear-gradient(180deg, #f7f9f2 0%, #eef3eb 100%);
  background-attachment: scroll, scroll, scroll;
  background-position: center top;
  background-size: var(--light-section-grid) var(--light-section-grid), var(--light-section-grid) var(--light-section-grid), auto;
}

.stack-section {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(var(--light-section-grid-y) 1px, transparent 1px),
    linear-gradient(90deg, var(--light-section-grid-x) 1px, transparent 1px),
    linear-gradient(180deg, #f5f7f0 0%, #edf2e9 100%);
  background-attachment: scroll, scroll, scroll;
  background-position: center top;
  background-size: var(--light-section-grid) var(--light-section-grid), var(--light-section-grid) var(--light-section-grid), auto;
  color: var(--paper-ink);
}

.publication-section {
  overflow: hidden;
  background:
    linear-gradient(var(--light-section-grid-y) 1px, transparent 1px),
    linear-gradient(90deg, var(--light-section-grid-x) 1px, transparent 1px),
    linear-gradient(180deg, #f1f2e8 0%, #e7eee5 52%, #edf3e8 100%);
  background-attachment: scroll, scroll, scroll;
  background-position: center top;
  background-size: var(--light-section-grid) var(--light-section-grid), var(--light-section-grid) var(--light-section-grid), auto;
}

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(8, 10, 8, 0.96), rgba(8, 10, 8, 0.78) 48%, rgba(8, 10, 8, 0.9)),
    radial-gradient(circle at 70% 20%, rgba(123, 189, 34, 0.16), transparent 34%),
    #080a08;
  color: var(--ink);
}

.contact-field-canvas {
  opacity: 0.82;
}

.section-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.split,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.72fr);
  gap: 70px;
  align-items: start;
}

.section-heading {
  max-width: 790px;
}

.section-heading.narrow {
  max-width: 870px;
}

.section-heading p:not(.eyebrow) {
  color: inherit;
  opacity: 0.74;
  font-size: 1.05rem;
}

.dark-section .section-heading p:not(.eyebrow),
.contact-section .section-heading p:not(.eyebrow) {
  color: var(--soft);
  opacity: 0.88;
}

.matrix-intro .eyebrow,
.stack-section .section-heading .eyebrow {
  color: var(--light-section-kicker);
}

.stack-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(248px, 0.92fr) minmax(340px, 1.08fr) minmax(248px, 0.92fr);
  grid-template-areas:
    "lane-1 hub lane-2"
    "lane-3 hub lane-4";
  gap: 22px;
  align-items: stretch;
  margin-top: 42px;
  background: transparent;
  border: 0;
  perspective: 1100px;
}

.stack-lane {
  --lane-accent: #6da91f;
  --lane-bg: #f1f7e9;
  --lane-line: rgba(109, 169, 31, 0.32);
  --lane-title: #416a13;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 2;
  min-height: 238px;
  padding: 24px 22px 22px;
  overflow: visible;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42)),
    var(--lane-bg);
  border: 1px solid rgba(21, 25, 20, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(21, 25, 20, 0.08);
  transform: perspective(900px) translate3d(0, 0, 0) rotateX(0) rotateY(0);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 70ms linear, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.stack-lane.reveal {
  transition: opacity 220ms ease, transform 70ms linear, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.stack-lane-1 {
  grid-area: lane-1;
}

.stack-lane-2 {
  grid-area: lane-2;
  --lane-accent: #2a9aa8;
  --lane-bg: #eaf7f7;
  --lane-line: rgba(42, 154, 168, 0.3);
  --lane-title: #23727b;
}

.stack-lane-3 {
  grid-area: lane-3;
  --lane-accent: #c88b1f;
  --lane-bg: #fff4dd;
  --lane-line: rgba(200, 139, 31, 0.28);
  --lane-title: #8a6418;
}

.stack-lane-4 {
  grid-area: lane-4;
  --lane-accent: #60705a;
  --lane-bg: #edf2ea;
  --lane-line: rgba(96, 112, 90, 0.3);
  --lane-title: #44513e;
}

.stack-lane::before {
  content: "";
  position: absolute;
  inset: 0 34% auto 0;
  z-index: -1;
  height: 3px;
  background: linear-gradient(90deg, var(--lane-accent), transparent);
  border-radius: 8px 0 0 0;
}

.stack-lane::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.stack-board[data-active-stack="1"] .stack-lane-1,
.stack-board[data-active-stack="2"] .stack-lane-2,
.stack-board[data-active-stack="3"] .stack-lane-3,
.stack-board[data-active-stack="4"] .stack-lane-4,
.stack-lane:hover,
.stack-lane:focus-within {
  z-index: 5;
  transform: perspective(900px) translate3d(0, -9px, 24px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5)),
    var(--lane-bg);
  border-color: rgba(21, 25, 20, 0.2);
  box-shadow: 0 20px 44px rgba(21, 25, 20, 0.12);
}

.stack-connector {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lane-accent));
  opacity: 0.58;
  pointer-events: none;
  transform: translateY(-50%);
  transform-style: preserve-3d;
}

.stack-connector::before,
.stack-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 999px;
  transform: translateY(-50%);
}

.stack-connector::before {
  width: 100%;
  height: 9px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--lane-accent) 18%, transparent));
  filter: blur(6px);
}

.stack-connector::after {
  right: -3px;
  width: 7px;
  height: 7px;
  background: var(--lane-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lane-accent) 13%, transparent);
}

.stack-lane-1 .stack-connector,
.stack-lane-3 .stack-connector {
  right: -88px;
}

.stack-lane-2 .stack-connector,
.stack-lane-4 .stack-connector {
  left: -88px;
  background: linear-gradient(90deg, var(--lane-accent), transparent);
}

.stack-lane-2 .stack-connector::before,
.stack-lane-4 .stack-connector::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--lane-accent) 18%, transparent), transparent);
}

.stack-lane-2 .stack-connector::after,
.stack-lane-4 .stack-connector::after {
  right: auto;
  left: -3px;
}

.stack-lane-1 .stack-connector {
  top: 46%;
  right: -84px;
  width: 88px;
}

.stack-lane-2 .stack-connector {
  top: 46%;
  left: -84px;
  width: 88px;
}

.stack-lane-3 .stack-connector {
  top: 44%;
  right: -62px;
  width: 66px;
}

.stack-lane-4 .stack-connector {
  top: 44%;
  left: -62px;
  width: 66px;
}

.stack-lane h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--lane-title);
  font-size: 0.82rem;
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.stack-lane-index {
  display: inline-flex;
  width: 34px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: var(--lane-accent);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(21, 25, 20, 0.08);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 860;
  line-height: 1;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 9px;
  color: rgba(21, 25, 20, 0.78);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 25, 20, 0.08);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 660;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.skill-icon {
  flex: 0 0 28px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(21, 25, 20, 0.08);
  border-radius: 6px;
}

.skill-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  background: transparent;
}

.skill-fallback {
  color: var(--lane-accent);
  font-size: 0.68rem;
  font-weight: 880;
  line-height: 1;
}

.skill-name {
  min-width: 0;
}

.stack-hub {
  grid-area: hub;
  position: relative;
  display: grid;
  min-height: 500px;
  margin: 0;
  place-items: center;
  isolation: isolate;
}

.stack-hub::before,
.stack-hub::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

.stack-hub::before {
  display: none;
}

.stack-hub::after {
  width: min(88%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(21, 25, 20, 0.1);
  border-radius: 50%;
  background:
    linear-gradient(rgba(21, 25, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 20, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.6;
}

.stack-hub-rings {
  position: absolute;
  z-index: -1;
  width: min(102%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: auto;
}

.stack-hub-rings::before,
.stack-hub-rings::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  pointer-events: none;
}

.stack-hub-rings::before {
  border: 2px solid rgba(22, 89, 97, 0.22);
}

.stack-hub-rings::after {
  inset: 28%;
  border: 1px solid rgba(109, 169, 31, 0.18);
}

.stack-arc {
  --arc-color: rgba(109, 169, 31, 0.58);
  --arc-angle: -45deg;
  --arc-gap: 1.4deg;
  --arc-sweep: calc(90deg - var(--arc-gap));
  --arc-x: 0px;
  --arc-y: -14px;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--arc-angle), var(--arc-color) 0deg var(--arc-sweep), transparent var(--arc-sweep) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  opacity: 1;
  pointer-events: auto;
  cursor: default;
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-arc-1 {
  --arc-color: rgba(109, 169, 31, 0.58);
  --arc-angle: calc(270deg + var(--arc-gap) / 2);
  --arc-x: -10px;
  --arc-y: -10px;
}

.stack-arc-2 {
  --arc-color: rgba(42, 154, 168, 0.6);
  --arc-angle: calc(var(--arc-gap) / 2);
  --arc-x: 10px;
  --arc-y: -10px;
}

.stack-arc-3 {
  --arc-color: rgba(200, 139, 31, 0.52);
  --arc-angle: calc(180deg + var(--arc-gap) / 2);
  --arc-x: -10px;
  --arc-y: 10px;
}

.stack-arc-4 {
  --arc-color: rgba(96, 112, 90, 0.52);
  --arc-angle: calc(90deg + var(--arc-gap) / 2);
  --arc-x: 10px;
  --arc-y: 10px;
}

.stack-board[data-active-stack="1"] .stack-arc-1,
.stack-board[data-active-stack="2"] .stack-arc-2,
.stack-board[data-active-stack="3"] .stack-arc-3,
.stack-board[data-active-stack="4"] .stack-arc-4 {
  transform: translate3d(var(--arc-x), var(--arc-y), 0);
}

.stack-dog {
  position: relative;
  z-index: 2;
  width: min(88%, 430px);
  max-height: 380px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 24px 34px rgba(21, 25, 20, 0.22));
  transform: translateY(8px);
}

.opportunity-panel {
  border-top: 1px solid rgba(123, 189, 34, 0.5);
  padding-top: 18px;
}

.segmented-control,
.project-toolbar,
.publication-switch {
  --segment-left: 4px;
  --segment-top: 4px;
  --segment-width: 0px;
  --segment-height: 38px;
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.segment-selection {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: var(--segment-width);
  height: var(--segment-height);
  background: var(--green);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--segment-left), var(--segment-top));
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}

.segment-selection.ready {
  opacity: 1;
}

.segmented-control button,
.project-toolbar button,
.publication-switch button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 740;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.segmented-control button:not(.active):hover,
.segmented-control button:not(.active):focus-visible,
.project-toolbar button:not(.active):hover,
.project-toolbar button:not(.active):focus-visible,
.publication-switch button:not(.active):hover,
.publication-switch button:not(.active):focus-visible {
  color: #151914;
  background: rgba(21, 25, 20, 0.075);
  border-color: rgba(123, 189, 34, 0.76);
}

.segmented-control button.active,
.project-toolbar button.active,
.publication-switch button.active {
  color: #071007;
  background: transparent;
  border-color: transparent;
}

.track-copy {
  margin-top: 22px;
}

.track-copy p {
  color: var(--soft);
  font-size: 1.08rem;
}

.track-copy ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.track-copy li {
  padding-left: 18px;
  color: var(--muted);
  border-left: 2px solid var(--green);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.research-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--paper);
}

.card-index {
  color: var(--green);
  font-weight: 820;
}

.research-card p {
  color: rgba(21, 25, 20, 0.7);
}

.tagline {
  align-self: flex-start;
  color: var(--paper-ink);
  background: rgba(21, 25, 20, 0.05);
  border-color: rgba(21, 25, 20, 0.14);
}

.matrix-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(560px, 1fr);
  gap: 64px;
  align-items: center;
}

.matrix-intro {
  max-width: 660px;
}

.matrix-intro .eyebrow {
  margin-bottom: 24px;
  color: #5f9f13;
}

.matrix-intro h2 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: 4rem;
  line-height: 1.12;
  text-wrap: balance;
}

.matrix-intro p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(21, 25, 20, 0.72);
  font-size: 1.08rem;
  line-height: 1.72;
  opacity: 1;
}

.matrix-section b,
.matrix-section strong {
  line-height: 1.35;
}

.matrix-board {
  display: grid;
  gap: 14px;
}

.matrix-core-card {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 30px 28px;
  background:
    linear-gradient(118deg, rgba(123, 189, 34, 0.2), rgba(255, 255, 255, 0.74) 48%, rgba(83, 199, 212, 0.18)),
    rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(21, 25, 20, 0.15);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(21, 25, 20, 0.11);
}

.matrix-core-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(21, 25, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 20, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.34;
  pointer-events: none;
}

.matrix-core-card span,
.matrix-core-card h3 {
  position: relative;
  z-index: 1;
}

.matrix-core-card span {
  margin-bottom: 18px;
  color: #5f9f13;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.matrix-core-card h3 {
  max-width: 760px;
  margin: 0;
  color: var(--paper-ink);
  font-size: 2.15rem;
  line-height: 1.08;
}

.research-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
  background: transparent;
  border: 0;
}

.matrix-card {
  --card-accent: var(--green);
  position: relative;
  min-height: 206px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  padding: 24px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 249, 242, 0.86)),
    var(--paper);
  border: 1px solid rgba(21, 25, 20, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(21, 25, 20, 0.075);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.matrix-card:nth-child(2) {
  --card-accent: var(--cyan);
}

.matrix-card:nth-child(3) {
  --card-accent: var(--amber);
}

.matrix-card:nth-child(4) {
  --card-accent: #6b7a64;
}

.matrix-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 34%;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent), transparent);
  opacity: 0.9;
}

.matrix-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(21, 25, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 20, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.matrix-card:hover,
.matrix-card:focus-within {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 242, 0.96)),
    var(--paper);
  border-color: rgba(21, 25, 20, 0.24);
  box-shadow: 0 22px 46px rgba(21, 25, 20, 0.12);
}

.matrix-card:hover::after,
.matrix-card:focus-within::after {
  opacity: 1;
}

.matrix-card-head,
.matrix-card-body,
.matrix-card-foot {
  position: relative;
  z-index: 1;
}

.matrix-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.matrix-axis {
  color: rgba(21, 25, 20, 0.48);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.matrix-card h3 {
  margin: 20px 0 0;
  color: var(--paper-ink);
  font-size: 1.2rem;
  line-height: 1.22;
}

.matrix-card p {
  margin: 16px 0 0;
  color: rgba(21, 25, 20, 0.72);
  font-size: 0.98rem;
  line-height: 1.58;
}

.matrix-card .card-index {
  color: var(--card-accent);
  font-size: 0.92rem;
  line-height: 1;
}

.matrix-card-foot {
  margin-top: 24px;
}

.matrix-tagline {
  display: inline-flex;
  align-self: flex-start;
  flex-wrap: wrap;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  color: rgba(21, 25, 20, 0.62);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 740;
  line-height: 1.35;
  white-space: normal;
}

.publication-group-body[hidden] {
  display: none;
}

.project-toolbar {
  margin-top: 22px;
}

.project-toolbar,
.publication-switch {
  border-color: rgba(21, 25, 20, 0.18);
  background: rgba(21, 25, 20, 0.04);
}

.project-toolbar button,
.publication-switch button {
  color: rgba(21, 25, 20, 0.68);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
}

.project-empty {
  margin: 0;
  padding: 22px 0;
  color: rgba(21, 25, 20, 0.64);
}

.project-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(21, 25, 20, 0.14);
  border-radius: 8px;
  background: #fff;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(123, 189, 34, 0.8);
  box-shadow: 0 22px 70px rgba(21, 25, 20, 0.14);
}

.project-media {
  min-height: 100%;
  background: #fff;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  align-items: start;
  gap: 18px;
  padding: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-tag {
  min-height: 28px;
  color: rgba(21, 25, 20, 0.76);
  background: rgba(21, 25, 20, 0.05);
  border-color: rgba(21, 25, 20, 0.12);
}

.project-content p {
  color: rgba(21, 25, 20, 0.7);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-metrics span {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(21, 25, 20, 0.14);
  color: rgba(21, 25, 20, 0.66);
  font-size: 0.78rem;
}

.project-metrics strong {
  color: var(--paper-ink);
  font-size: 1rem;
}

.project-open {
  align-self: flex-start;
  margin-top: 18px;
  min-height: 32px;
  padding: 4px 0;
  color: #4b8615;
  background: transparent;
  border-bottom: 1px solid rgba(123, 189, 34, 0.58);
  font-weight: 780;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-open:hover,
.project-open:focus-visible {
  color: #2f5f0c;
  border-color: #4b8615;
  transform: translateX(3px);
}

.publication-list {
  display: grid;
  margin-top: 26px;
  border-top: 1px solid rgba(21, 25, 20, 0.16);
}

.publication-switch {
  margin-top: 18px;
  border-color: rgba(21, 25, 20, 0.18);
  background: rgba(21, 25, 20, 0.04);
  box-shadow: none;
}

.publication-switch button {
  min-height: 38px;
  padding: 8px 13px;
  color: rgba(21, 25, 20, 0.68);
  border-radius: 4px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.publication-switch button:not(.active):hover,
.publication-switch button:not(.active):focus-visible {
  color: var(--paper-ink);
  background: rgba(21, 25, 20, 0.055);
  border-color: rgba(123, 189, 34, 0.76);
}

.publication-switch button.active {
  color: #071007;
  background: transparent;
  box-shadow: none;
}

.publication-group {
  display: grid;
  border-bottom: 1px solid rgba(21, 25, 20, 0.16);
}

.publication-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 10px 0;
  color: var(--paper-ink);
  background: transparent;
  border-bottom: 1px solid rgba(21, 25, 20, 0.12);
  font-size: 0.86rem;
  font-weight: 840;
  text-align: left;
  text-transform: uppercase;
}

.publication-group-title:hover,
.publication-group-title:focus-visible {
  color: #243018;
}

.publication-group-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.publication-group-title strong {
  color: var(--green);
}

.publication-chevron {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  color: rgba(21, 25, 20, 0.74);
}

.publication-chevron::before,
.publication-chevron::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.publication-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.publication-group:not(.collapsed) .publication-chevron::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.3);
}

.publication-group-body {
  display: grid;
}

.publication-group-body .publication-item:last-child {
  border-bottom: 0;
}

.publication-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(21, 25, 20, 0.16);
}

.publication-venue {
  justify-self: stretch;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  color: var(--paper-ink);
  background: rgba(123, 189, 34, 0.12);
  border-color: rgba(123, 189, 34, 0.34);
  font-weight: 820;
}

.publication-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 780;
}

.publication-authors,
.publication-keywords {
  margin: 0;
  color: rgba(21, 25, 20, 0.66);
  font-size: 0.9rem;
}

.publication-link {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--paper-ink);
  border: 1px solid rgba(21, 25, 20, 0.16);
  border-radius: 4px;
  font-weight: 760;
}

.publication-link:hover,
.publication-link:focus-visible {
  border-color: var(--green);
}

.publication-link.muted {
  color: rgba(21, 25, 20, 0.34);
  background: rgba(21, 25, 20, 0.04);
}

.contact-layout {
  position: relative;
  z-index: 2;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
}

.contact-actions {
  justify-content: flex-end;
  align-items: center;
  justify-self: end;
  width: 100%;
}

.contact-actions .icon-button {
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  transition: transform 220ms ease, color 180ms ease, background 220ms ease, border-color 220ms ease;
}

.contact-actions .icon-button:hover,
.contact-actions .icon-button:focus-visible {
  color: var(--green);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(123, 189, 34, 0.62);
}

.icon-button {
  width: 46px;
  padding: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.icon-button span {
  font-weight: 860;
  line-height: 1;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.contact-actions .icon-button svg {
  fill: none;
  stroke: none;
}

.contact-actions .icon-button .icon-fill {
  fill: currentColor;
  stroke: currentColor;
}

.contact-actions .icon-button .icon-detail {
  fill: none;
  stroke: rgba(8, 10, 8, 0.88);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 40px;
  color: var(--muted);
  background: #050705;
  border-top: 1px solid var(--line);
}

.project-modal {
  --project-scroll-progress: 0%;
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  overflow: hidden;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  color: var(--paper-ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

.project-modal[open] {
  animation: project-modal-pop-in 260ms cubic-bezier(0.2, 0.92, 0.22, 1) both;
}

.project-modal.is-closing {
  pointer-events: none;
  animation: project-modal-pop-out 200ms cubic-bezier(0.4, 0, 1, 1) both;
}

.project-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-body {
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
  background: #fff;
}

.modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.project-modal[open]::backdrop {
  animation: dialog-backdrop-in 220ms ease-out both;
}

.project-modal.is-closing::backdrop {
  animation: dialog-backdrop-out 200ms ease-in both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  margin: 0;
  color: var(--ink);
  background: rgba(8, 10, 8, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, border-color 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(8, 10, 8, 0.72);
  border-color: rgba(123, 189, 34, 0.6);
}

.modal-scroll-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 3px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(123, 189, 34, 0.14);
  border-radius: 999px;
}

.modal-scroll-progress span {
  display: block;
  width: 100%;
  height: var(--project-scroll-progress);
  min-height: 16px;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(123, 189, 34, 0.42);
  transition: height 120ms ease-out;
}

.modal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  padding: 34px;
}

.modal-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.modal-kicker {
  color: var(--green);
  font-weight: 820;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.modal-copy {
  padding: 0 34px 34px;
}

.modal-copy a:not(.publication-link) {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.modal-copy a:not(.publication-link):hover,
.modal-copy a:not(.publication-link):focus-visible {
  color: var(--green-2);
}

.modal-copy h3 {
  margin: 32px 0 14px;
  padding-bottom: 10px;
  color: #171b16;
  border-bottom: 2px solid rgba(133, 96, 30, 0.72);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.68rem;
  font-weight: 700;
}

.modal-copy h4 {
  margin: 24px 0 10px;
  color: #222820;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.36rem;
  font-weight: 700;
}

.modal-copy ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.modal-copy > p,
.modal-copy > ul li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.project-detail-media {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.project-detail-media.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-detail-image {
  position: relative;
  width: 100%;
  max-width: var(--detail-image-width, 100%);
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 8px;
}

.project-detail-image.narrow {
  max-width: 640px;
  margin-inline: auto;
}

.project-detail-image::after {
  content: "↗";
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #071007;
  background: rgba(238, 247, 229, 0.9);
  border: 1px solid rgba(21, 25, 20, 0.16);
  border-radius: 4px;
  font-weight: 860;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-detail-image:hover::after,
.project-detail-image:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.project-detail-image img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #fff;
}

.project-publication-card {
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid rgba(21, 25, 20, 0.18);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21, 25, 20, 0.08);
}

.project-publication-card .publication-title {
  margin: 0 0 5px;
  color: #171b16;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.28;
}

.project-publication-card .publication-authors,
.project-publication-card .publication-keywords {
  line-height: 1.35;
}

.project-publication-card .publication-venue,
.project-publication-card .publication-link {
  align-self: center;
}

.project-publication-card .publication-link {
  min-height: 32px;
  padding: 6px 10px;
}

.project-publication-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
}

.project-video-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0 20px;
}

.project-video {
  overflow: hidden;
  background: #0b0f0b;
  border: 1px solid rgba(21, 25, 20, 0.16);
  border-radius: 8px;
}

.project-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.project-detail-links {
  margin-top: 16px;
}

.image-lightbox {
  --lightbox-load-progress: 0%;
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.82);
  border: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

.image-lightbox[open] {
  animation: image-lightbox-fade-in 220ms ease-out both;
}

.image-lightbox.is-closing {
  pointer-events: none;
  animation: image-lightbox-fade-out 200ms ease-in both;
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(6px);
}

.image-lightbox[open]::backdrop {
  animation: dialog-backdrop-in 220ms ease-out both;
}

.image-lightbox.is-closing::backdrop {
  animation: dialog-backdrop-out 200ms ease-in both;
}

.image-lightbox-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 34px;
}

.image-lightbox[open] .image-lightbox-stage {
  animation: image-stage-pop-in 260ms cubic-bezier(0.2, 0.92, 0.22, 1) both;
  transform-origin: center center;
}

.image-lightbox.is-closing .image-lightbox-stage {
  animation: image-stage-pop-out 200ms cubic-bezier(0.4, 0, 1, 1) both;
}

.image-lightbox img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 68px);
  max-height: calc(100svh - 68px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: grab;
  transform-origin: center center;
  opacity: 1;
  transition: opacity 180ms ease, transform 160ms ease;
  user-select: none;
  touch-action: none;
}

.image-lightbox.is-loading img,
.image-lightbox.is-error img {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.image-lightbox.is-zoomed img {
  cursor: grab;
}

.image-lightbox.dragging img {
  cursor: grabbing;
  transition: none;
}

.image-lightbox-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: min(320px, calc(100vw - 80px));
  gap: 10px;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
}

.image-lightbox-loader-track {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.image-lightbox-loader-track span {
  display: block;
  width: var(--lightbox-load-progress);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  border-radius: inherit;
  transition: width 140ms ease;
}

.image-lightbox-loader-value {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.image-lightbox.is-loading .image-lightbox-loader {
  opacity: 1;
}

.image-lightbox-controls {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 121;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(8, 10, 8, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  backdrop-filter: blur(12px);
}

.image-lightbox[open] .image-lightbox-controls {
  animation: image-controls-in 220ms ease-out both;
}

.image-lightbox.is-closing .image-lightbox-controls {
  animation: image-controls-out 160ms ease-in both;
}

.image-lightbox-controls button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.image-lightbox-controls button:hover,
.image-lightbox-controls button:focus-visible {
  color: #071007;
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.image-lightbox-controls svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes dialog-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dialog-backdrop-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes hero-portrait-impact {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    filter: saturate(1) contrast(1);
  }

  18% {
    transform: translate3d(var(--impact-x-1), var(--impact-y-1), 0) rotate(var(--impact-r-1));
    filter: saturate(1.08) contrast(1.08);
  }

  34% {
    transform: translate3d(var(--impact-x-2), var(--impact-y-2), 0) rotate(var(--impact-r-2));
  }

  52% {
    transform: translate3d(var(--impact-x-3), var(--impact-y-3), 0) rotate(var(--impact-r-3));
  }

  72% {
    transform: translate3d(var(--impact-x-4), var(--impact-y-4), 0) rotate(var(--impact-r-4));
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    filter: saturate(1) contrast(1);
  }
}

@keyframes hero-portrait-flash {
  0% {
    opacity: 0;
    transform: translate3d(-30%, 0, 0) rotate(8deg);
  }

  18% {
    opacity: 0.92;
  }

  58% {
    opacity: 0.34;
  }

  100% {
    opacity: 0;
    transform: translate3d(34%, 0, 0) rotate(8deg);
  }
}

@keyframes project-modal-pop-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  68% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.018);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes project-modal-pop-out {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@keyframes image-lightbox-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes image-lightbox-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes image-stage-pop-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  68% {
    opacity: 1;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes image-stage-pop-out {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.86);
  }
}

@keyframes image-controls-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes image-controls-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.modal-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  h1 {
    font-size: clamp(5rem, 12vw, 7.6rem);
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-grid,
  .matrix-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .matrix-layout {
    gap: 42px;
  }

  .matrix-intro {
    max-width: 880px;
  }

  .matrix-intro h2,
  .matrix-intro p:not(.eyebrow) {
    max-width: 820px;
  }

  .matrix-intro h2 {
    font-size: 3.55rem;
  }

  .hero-visual {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .stack-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hub hub"
      "lane-1 lane-2"
      "lane-3 lane-4";
  }

  .stack-hub {
    min-height: 430px;
  }

  .stack-hub-rings {
    width: min(82vw, 470px);
  }

  .project-card,
  .project-content {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1500px) and (min-height: 860px) {
  h1 {
    font-size: clamp(6rem, 8vw, 9rem);
  }

  .hero-visual {
    min-height: 570px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 18px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 28px;
    background:
      linear-gradient(90deg, rgba(8, 10, 8, 0.98), rgba(8, 10, 8, 0.9) 58%, rgba(8, 10, 8, 0.74)),
      linear-gradient(180deg, rgba(8, 10, 8, 0.3), rgba(8, 10, 8, 0.92)),
      url("resources/IMG_1334.webp") 86% 86px / 72% auto no-repeat,
      #080a08;
  }

  h1 {
    font-size: clamp(3.9rem, 17vw, 6.2rem);
    line-height: 1.02;
  }

  h2 {
    font-size: 2.1rem;
  }

  .matrix-layout {
    gap: 28px;
  }

  .matrix-intro .eyebrow {
    margin-bottom: 18px;
  }

  .matrix-intro h2 {
    font-size: 2.95rem;
    line-height: 1.1;
  }

  .matrix-intro p:not(.eyebrow) {
    font-size: 1rem;
  }

  .matrix-core-card {
    min-height: 148px;
    padding: 24px 20px;
  }

  .matrix-core-card h3 {
    font-size: 1.72rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-grid {
    display: block;
  }

  .hero-visual {
    display: none;
  }

  .metric-rail {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .research-grid,
  .research-matrix,
  .project-card,
  .project-content,
  .modal-hero {
    grid-template-columns: 1fr;
  }

  .matrix-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .stack-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hub"
      "lane-1"
      "lane-2"
      "lane-3"
      "lane-4";
    gap: 16px;
    margin-top: 30px;
  }

  .stack-lane {
    min-height: auto;
    padding: 22px 18px 18px;
  }

  .stack-hub {
    min-height: 340px;
  }

  .stack-hub::after {
    width: min(88vw, 330px);
  }

  .stack-hub-rings {
    width: min(94vw, 390px);
  }

  .stack-dog {
    width: min(92%, 330px);
    max-height: 286px;
  }

  .stack-connector,
  .stack-lane-1 .stack-connector,
  .stack-lane-2 .stack-connector,
  .stack-lane-3 .stack-connector,
  .stack-lane-4 .stack-connector {
    left: 50%;
    right: auto;
    top: -18px;
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, var(--lane-accent), transparent);
    transform: translateX(-50%);
  }

  .stack-connector::before {
    left: 50%;
    top: 0;
    width: 9px;
    height: 100%;
    background: linear-gradient(180deg, color-mix(in srgb, var(--lane-accent) 18%, transparent), transparent);
    transform: translateX(-50%);
  }

  .stack-connector::after,
  .stack-lane-2 .stack-connector::after,
  .stack-lane-4 .stack-connector::after {
    left: 50%;
    right: auto;
    top: -3px;
    transform: translateX(-50%);
  }

  .project-media img {
    min-height: 240px;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .publication-venue {
    justify-self: stretch;
  }

  .publication-link {
    justify-self: start;
  }

  .project-detail-media.compact {
    grid-template-columns: 1fr;
  }

  .project-publication-actions {
    justify-content: flex-start;
  }

  .contact-actions {
    justify-content: flex-start;
    justify-self: start;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .modal-hero,
  .modal-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.35rem, 18vw, 4.85rem);
  }

  h2 {
    font-size: 1.8rem;
  }

  .brand-word {
    display: none;
  }

  .metric-rail {
    grid-template-columns: 1fr;
  }

  .project-metrics {
    grid-template-columns: 1fr;
  }

  .stack-list {
    grid-template-columns: 1fr;
  }

  .stack-hub {
    min-height: 286px;
  }

  .stack-hub-rings {
    width: min(94vw, 320px);
  }

  .stack-dog {
    width: min(92%, 286px);
    max-height: 238px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .contact-actions .icon-button {
    width: 46px;
  }
}

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

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

  .field-canvas {
    display: none;
  }
}
