:root {
  color-scheme: dark;
  --bg: #071113;
  --bg-deep: #040a0b;
  --surface: #0d1a1d;
  --surface-raised: #122326;
  --surface-soft: #152a2d;
  --line: rgba(221, 255, 246, 0.13);
  --line-strong: rgba(221, 255, 246, 0.26);
  --ink: #f3f8f5;
  --muted: #9eb0ac;
  --faint: #728783;
  --accent: #9ae6d8;
  --accent-bright: #c5ff6f;
  --accent-deep: #143d3b;
  --header-bg: rgba(7, 17, 19, 0.8);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100vw - 48px));
  --header-height: 82px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2ed;
  --bg-deep: #e6ebe5;
  --surface: #f8faf6;
  --surface-raised: #ffffff;
  --surface-soft: #e7efea;
  --line: rgba(8, 34, 32, 0.12);
  --line-strong: rgba(8, 34, 32, 0.24);
  --ink: #0a1b1a;
  --muted: #4e6561;
  --faint: #71847f;
  --accent: #0a7369;
  --accent-bright: #476f08;
  --accent-deep: #d3e8e2;
  --header-bg: rgba(238, 242, 237, 0.86);
  --shadow: 0 24px 70px rgba(25, 49, 45, 0.11);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 84% 5%, color-mix(in srgb, var(--accent) 8%, transparent) 0, transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-bright);
  color: var(--bg-deep);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-color: var(--line);
  background: var(--header-bg);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 28px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--accent) 5%, transparent);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-copy span {
  margin-top: 3px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.desktop-nav a {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--surface-raised);
  color: var(--ink);
}

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

.icon-button {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.theme-icon {
  font-size: 18px;
  line-height: 1;
  transform: rotate(-35deg);
}

.menu-toggle {
  display: none;
  align-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease;
}

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

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

.mobile-nav {
  width: var(--shell);
  margin-inline: auto;
  padding: 8px 0 22px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  min-height: max(760px, 100svh);
  gap: clamp(44px, 7vw, 110px);
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 72px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-bright) 10%, transparent);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(3.3rem, 6.3vw, 6.65rem);
  font-weight: 720;
  letter-spacing: -0.068em;
  line-height: 0.91;
}

.hero h1 em {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-intro {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 20px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--accent-bright);
  color: var(--bg-deep);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.hero-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 38px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  font-weight: 650;
  list-style: none;
}

.hero-context li {
  position: relative;
}

.hero-context li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-visual::before {
  position: absolute;
  width: min(100%, 490px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 63%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 58px, color-mix(in srgb, var(--accent) 8%, transparent) 59px 60px);
  content: "";
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(76%, 350px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #080d0d;
  box-shadow: var(--shadow), inset 0 0 0 10px rgba(255, 255, 255, 0.03);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04);
}

.portrait-orbit {
  position: absolute;
  z-index: 1;
  width: min(100%, 490px);
  aspect-ratio: 1;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  animation: orbit 28s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-bright) 60%, transparent);
}

.dot-one { top: 9%; left: 25%; }
.dot-two { right: 4%; bottom: 29%; width: 6px; height: 6px; background: var(--accent); }

.status-card {
  position: absolute;
  right: 0;
  bottom: 54px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  width: min(290px, 72%);
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.status-pulse {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-bright) 9%, transparent);
}

.status-card div {
  display: flex;
  flex-direction: column;
}

.status-card strong {
  font-size: 12px;
}

.status-card span:last-child {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.signal-strip {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
}

.signal-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 28px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-track span:not(:last-child)::after {
  margin-left: clamp(24px, 3.5vw, 56px);
  color: var(--accent);
  content: "✦";
}

.section {
  padding-block: clamp(92px, 12vw, 156px);
  scroll-margin-top: var(--header-height);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(44px, 7vw, 82px);
}

.section-heading h2,
.notes-intro h2,
.contact-inner h2 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.8vw, 5.15rem);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading > p:last-child,
.split-heading > p,
.notes-intro > p:last-child,
.contact-inner > p {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: end;
  max-width: none;
  gap: clamp(40px, 8vw, 120px);
}

.split-heading h2 {
  margin-bottom: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 95%, transparent), var(--surface));
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 18px;
}

.profile-story {
  padding: clamp(28px, 5vw, 58px);
}

.profile-story p {
  max-width: 66ch;
  color: var(--muted);
}

.profile-story p:last-child {
  margin-bottom: 0;
}

.profile-story .lead {
  margin-bottom: 30px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.25;
}

.profile-cards {
  display: grid;
  gap: 18px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 174px;
  padding: 26px 30px;
}

.metric-label {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-card strong {
  margin-bottom: 7px;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  letter-spacing: -0.035em;
}

.metric-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-work {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
}

.section-work::before {
  position: absolute;
  top: 5%;
  left: 64%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  filter: blur(90px);
  content: "";
  pointer-events: none;
}

.project-list {
  position: relative;
  display: grid;
  gap: 30px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  min-height: 550px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.12);
}

.project-card-reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
}

.project-card-reverse .project-media {
  order: 2;
}

.project-media {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 56%),
    var(--surface-soft);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.project-card-reverse .project-media {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.project-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 35%, rgba(0, 0, 0, 0.24));
  content: "";
  pointer-events: none;
}

.project-media img {
  position: relative;
  z-index: 1;
}

.project-media-logo img {
  width: min(42%, 170px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
}

.project-media-wide img {
  width: min(88%, 720px);
  max-height: 72%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.34);
}

.project-media-phone img {
  width: min(40%, 205px);
  max-height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.42));
}

.project-number,
.media-caption {
  position: absolute;
  z-index: 2;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-number {
  top: 22px;
  left: 24px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.media-caption {
  right: 24px;
  bottom: 22px;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 5vw, 66px);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.project-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.project-copy h3 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.project-lead {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.project-details {
  border-top: 1px solid var(--line);
}

.project-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.project-details summary::-webkit-details-marker {
  display: none;
}

.project-details summary span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 16px;
  transition: transform 180ms ease;
}

.project-details[open] summary span {
  transform: rotate(45deg);
}

.details-content {
  padding: 6px 0 8px;
}

.details-content p {
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 4px;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 222px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 64px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-marker {
  position: absolute;
  top: 41px;
  left: 218px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
}

.timeline-period {
  padding-top: 3px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.timeline-body h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: -0.035em;
}

.timeline-body p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.publications-section {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.publication-toolbar {
  display: grid;
  grid-template-columns: 150px minmax(260px, 480px) 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.publication-toolbar label,
.search-status {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color 180ms ease;
}

.search-wrap:focus-within {
  border-color: var(--accent);
}

.search-wrap span {
  color: var(--faint);
  font-size: 20px;
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-wrap input::placeholder {
  color: var(--faint);
}

.search-status {
  text-align: right;
}

.publication-list {
  display: grid;
}

.publication {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 44px;
  align-items: start;
  gap: clamp(20px, 4vw, 54px);
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 160ms ease;
}

.publication[hidden] {
  display: none;
}

.publication-year {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.publication h3 {
  margin-bottom: 8px;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 680;
  letter-spacing: -0.022em;
  line-height: 1.35;
}

.publication p {
  margin-bottom: 3px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.publication p strong {
  color: var(--muted);
}

.publication .journal {
  color: var(--muted);
}

.publication > a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 15px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.publication > a:hover {
  background: var(--accent-deep);
  transform: translate(2px, -2px);
}

.no-results {
  margin: 0;
  padding: 54px 0;
  color: var(--muted);
  text-align: center;
}

.notes-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  overflow: hidden;
  gap: clamp(46px, 9vw, 120px);
  padding: clamp(34px, 7vw, 82px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 34%),
    var(--surface-raised);
}

.notes-panel::after {
  position: absolute;
  right: -140px;
  bottom: -210px;
  width: 480px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 0 0 60px color-mix(in srgb, var(--accent) 2%, transparent), inset 0 0 0 120px color-mix(in srgb, var(--accent) 2%, transparent);
  content: "";
  pointer-events: none;
}

.notes-intro,
.notes-topics {
  position: relative;
  z-index: 1;
}

.notes-intro h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
}

.notes-topics {
  display: grid;
  align-content: center;
}

.notes-topics div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.notes-topics span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.notes-topics strong {
  font-size: 14px;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 15vw, 190px);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.contact-section::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 960px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  content: "";
  transform: translate(-50%, -50%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-inner h2 {
  max-width: 980px;
  font-size: clamp(2.8rem, 6.5vw, 7rem);
}

.contact-inner > p {
  max-width: 630px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 720px);
  min-height: 82px;
  margin-top: 48px;
  padding: 18px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-link span:last-child {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-bright);
  color: var(--bg-deep);
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.site-footer {
  padding: 42px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
}

.footer-inner strong {
  font-size: 13px;
}

.footer-inner > div span,
.footer-inner p,
.footer-inner a,
.disclaimer {
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-inner a {
  justify-self: end;
  text-decoration: none;
}

.disclaimer {
  max-width: 900px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  line-height: 1.55;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Application-notes list (index #notes) */
.notes-list div {
  align-items: start;
}

.notes-list span {
  padding-top: 4px;
}

.notes-list strong {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notes-list a {
  color: var(--ink);
  text-decoration: none;
  transition: color 180ms ease;
}

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

.notes-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.notes-planned strong {
  color: var(--faint);
}

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

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-height) + 92px);
    padding-bottom: 90px;
  }

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

  .hero h1 {
    font-size: clamp(3.7rem, 10.8vw, 6.4rem);
  }

  .hero-visual {
    width: min(100%, 560px);
    min-height: 520px;
    margin-inline: auto;
  }

  .signal-track {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .signal-track::-webkit-scrollbar {
    display: none;
  }

  .profile-grid,
  .split-heading,
  .notes-panel {
    grid-template-columns: 1fr;
  }

  .split-heading {
    align-items: start;
    gap: 28px;
  }

  .profile-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-card {
    min-height: 205px;
  }

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

  .project-media,
  .project-card-reverse .project-media {
    order: 0;
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .project-media-phone img {
    width: 150px;
  }

  .publication-toolbar {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .search-status {
    display: none;
  }

  .notes-panel {
    gap: 32px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
    --header-height: 72px;
    --radius-lg: 22px;
  }

  .brand-copy span {
    display: none;
  }

  .brand-mark,
  .icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .hero {
    gap: 38px;
    padding-top: calc(var(--header-height) + 70px);
    padding-bottom: 66px;
  }

  .eyebrow {
    align-items: flex-start;
    font-size: 9px;
  }

  .eyebrow span {
    margin-top: 4px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15.6vw, 5rem);
    line-height: 0.91;
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-context {
    display: grid;
    gap: 7px;
  }

  .hero-context li::after {
    display: none;
  }

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

  .hero-visual::before,
  .portrait-orbit {
    width: min(100%, 390px);
  }

  .portrait-frame {
    width: min(72%, 280px);
  }

  .status-card {
    right: 4px;
    bottom: 16px;
    width: 245px;
  }

  .section {
    padding-block: 88px;
  }

  .section-heading h2,
  .notes-intro h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .section-heading > p:last-child,
  .split-heading > p,
  .notes-intro > p:last-child {
    font-size: 15px;
  }

  .profile-cards {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 160px;
  }

  .project-list {
    gap: 18px;
  }

  .project-card {
    min-height: 0;
  }

  .project-media,
  .project-card-reverse .project-media {
    min-height: 270px;
  }

  .project-media-wide img {
    max-height: 62%;
  }

  .project-media-phone {
    min-height: 360px;
  }

  .project-media-phone img {
    width: 130px;
    max-height: 73%;
  }

  .project-copy {
    padding: 28px 22px 24px;
  }

  .project-topline {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .project-topline span:last-child {
    text-align: right;
  }

  .project-copy h3 {
    font-size: clamp(2.35rem, 12.4vw, 3.5rem);
  }

  .timeline::before {
    left: 4px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 28px 0 28px 30px;
  }

  .timeline-marker {
    top: 34px;
    left: 0;
  }

  .publication-toolbar {
    display: block;
  }

  .publication-toolbar label {
    display: block;
    margin-bottom: 10px;
  }

  .publication {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .publication > a {
    grid-column: 2;
    width: auto;
    height: 34px;
    margin-top: 6px;
    border-radius: 999px;
  }

  .notes-panel {
    padding: 30px 22px;
  }

  .contact-inner h2 {
    font-size: clamp(3rem, 14vw, 5.2rem);
  }

  .contact-link {
    min-height: 68px;
    padding: 10px 11px 10px 20px;
    font-size: 15px;
  }

  .contact-link span:last-child {
    width: 46px;
    height: 46px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }
}

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

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

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --bg-deep: #fff;
    --surface: #fff;
    --surface-raised: #fff;
    --surface-soft: #f4f4f4;
    --ink: #111;
    --muted: #333;
    --faint: #555;
    --line: #ddd;
    --line-strong: #bbb;
    --accent: #155e58;
    --accent-bright: #155e58;
  }

  .site-header,
  .signal-strip,
  .theme-toggle,
  .menu-toggle,
  .publication-toolbar,
  .contact-section::before,
  .notes-panel::after {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding-top: 30px;
  }

  .section {
    padding-block: 45px;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }

  .project-card {
    break-inside: avoid;
  }
}
