:root {
  --void: #09090b;
  --panel: #111114;
  --panel-raised: #17171b;
  --border: #29292f;
  --border-bright: #3a3a43;
  --text: #f4f4f5;
  --muted: #9797a1;
  --faint: #85858f;
  --active: #ef6a73;
  --active-rgb: 239, 106, 115;
  --online: #4ade80;
  --online-rgb: 74, 222, 128;
  --display: "Space Grotesk", "Segoe UI Variable", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  --shell: 1120px;
  --radius-small: 6px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  min-width: 300px;
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  content: "";
  pointer-events: none;
}

::selection {
  background: rgba(var(--active-rgb), 0.3);
  color: var(--text);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border: 1px solid var(--active);
  border-radius: var(--radius-small);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.ambient {
  position: fixed;
  top: -260px;
  right: -220px;
  z-index: -1;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--active-rgb), 0.13), rgba(var(--active-rgb), 0.03) 42%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.ambient-career {
  top: -340px;
  right: 10%;
  opacity: 0.62;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(41, 41, 47, 0.82);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(18px) saturate(135%);
}

.header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand b {
  color: var(--faint);
  font-weight: 400;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--active-rgb), 0.45);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(var(--active-rgb), 0.24), rgba(var(--active-rgb), 0.06));
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 5px 22px rgba(var(--active-rgb), 0.12);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav a,
.header-switch {
  border-radius: var(--radius-small);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.desktop-nav a {
  padding: 8px 10px;
}

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

.header-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.header-switch:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

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

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.availability i,
.status-light,
.eyebrow-dot,
.project-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 12px rgba(var(--online-rgb), 0.7);
}

.hero {
  min-height: min(780px, calc(100svh - 62px));
  display: grid;
  align-items: center;
  padding-block: 108px;
}

.personal-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(54px, 8vw, 110px);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  display: inline-block;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 102px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.career-hero h1 {
  max-width: 810px;
  font-size: clamp(54px, 7vw, 91px);
  line-height: 0.95;
}

.hero-alias {
  margin: 26px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.hero-alias strong {
  color: var(--active);
  font-weight: 500;
}

.hero-lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: #c5c5cc;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 35px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

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

.button-primary {
  border-color: var(--active);
  background: var(--active);
  color: #0c0b0f;
  box-shadow: 0 8px 30px rgba(var(--active-rgb), 0.18);
}

.button-primary:hover {
  background: #ff8590;
  box-shadow: 0 11px 36px rgba(var(--active-rgb), 0.25);
}

.button-quiet {
  color: var(--muted);
}

.button-quiet:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.hero-terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 17, 20, 0.86);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.035);
}

.hero-terminal::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--active-rgb), 0.045), transparent 34%);
  content: "";
  pointer-events: none;
}

.terminal-bar {
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.terminal-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.terminal-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--online);
}

.terminal-body {
  min-height: 302px;
  padding: 27px 25px;
  color: #c8c8cf;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
}

.terminal-body p {
  margin: 0 0 8px;
}

.terminal-body .prompt {
  margin-right: 9px;
  color: var(--active);
}

.terminal-response {
  padding-left: 20px;
  color: var(--faint);
}

.terminal-ready {
  color: var(--online);
}

.terminal-caret {
  width: 7px;
  height: 15px;
  display: inline-block;
  margin: 5px 0 0 20px;
  background: var(--active);
  animation: caret 1.1s steps(1, end) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.section {
  padding-block: clamp(82px, 11vw, 138px);
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.section-note {
  max-width: 330px;
  margin: 0 0 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(55px, 9vw, 120px);
  align-items: start;
}

.about-copy {
  max-width: 690px;
}

.about-copy p {
  margin: 0 0 22px;
  color: #c9c9cf;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.about-ledger {
  margin: 0;
  border-top: 1px solid var(--border);
}

.about-ledger div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.about-ledger dt,
.about-ledger dd {
  margin: 0;
  font-size: 12px;
}

.about-ledger dt {
  color: var(--faint);
  font-family: var(--mono);
}

.about-ledger dd {
  color: #d6d6db;
}

.project-inspector {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 35px 95px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.03);
}

.project-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #0d0d10;
}

.project-tabs::before {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 17px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  content: "PROJECT_INDEX";
}

.project-tab {
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background 170ms ease, color 170ms ease;
}

.project-tab::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--active);
  content: "";
  transform: scaleY(0);
  transition: transform 170ms var(--ease);
}

.project-tab:hover {
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
}

.project-tab[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(var(--active-rgb), 0.105), rgba(var(--active-rgb), 0.018));
  color: var(--text);
}

.project-tab[aria-selected="true"]::before {
  transform: scaleY(1);
}

.project-tab-index {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.project-tab-copy {
  min-width: 0;
}

.project-tab-name,
.project-tab-category {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-tab-name {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-tab-category {
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.project-tab-arrow {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  transition: color 170ms ease, transform 170ms ease;
}

.project-tab[aria-selected="true"] .project-tab-arrow {
  color: var(--active);
  transform: translateX(2px);
}

.project-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 84% 18%, rgba(var(--active-rgb), 0.11), transparent 34%),
    var(--panel);
}

.project-panel.is-changing .project-panel-content,
.project-panel.is-changing .project-panel-topline,
.project-panel.is-changing .project-link {
  opacity: 0;
  transform: translateY(5px);
}

.project-panel-topline {
  min-height: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.project-monogram {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--active-rgb), 0.48);
  border-radius: var(--radius-small);
  background: rgba(var(--active-rgb), 0.085);
  color: var(--active);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.project-status i {
  width: 6px;
  height: 6px;
}

.project-panel-content {
  flex: 1;
  max-width: 690px;
  padding: 34px clamp(25px, 5vw, 66px) 44px;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.project-category {
  margin: 0 0 13px;
  color: var(--active);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-panel h3 {
  margin: 0;
  font-size: clamp(39px, 5vw, 66px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-description {
  margin: 25px 0 0;
  color: #b9b9c1;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

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

.tag-list li {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.project-link {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  transition: background 150ms ease, color 150ms ease, opacity 180ms var(--ease), transform 180ms var(--ease);
}

.project-link:hover {
  background: rgba(var(--active-rgb), 0.07);
  color: var(--text);
}

.project-inspector-career .project-panel {
  background:
    linear-gradient(135deg, rgba(var(--online-rgb), 0.025), transparent 48%),
    radial-gradient(circle at 84% 18%, rgba(var(--active-rgb), 0.08), transparent 34%),
    var(--panel);
}

.interests-placeholder {
  min-height: 245px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  background: rgba(17, 17, 20, 0.56);
}

.placeholder-orbit {
  position: relative;
  width: 130px;
  height: 130px;
}

.placeholder-orbit span {
  position: absolute;
  inset: 50%;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.placeholder-orbit span:nth-child(1) { width: 34px; height: 34px; border-color: rgba(var(--active-rgb), 0.52); background: rgba(var(--active-rgb), 0.09); }
.placeholder-orbit span:nth-child(2) { width: 78px; height: 78px; opacity: 0.75; }
.placeholder-orbit span:nth-child(3) { width: 128px; height: 128px; opacity: 0.38; }

.placeholder-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.interests-placeholder p:not(.placeholder-title) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.preview-flag {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.link-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 18px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  transition: transform 170ms var(--ease), border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.link-card:hover {
  border-color: var(--border-bright);
  background: var(--panel-raised);
  color: var(--text);
  transform: translateY(-3px);
}

.link-card-label {
  grid-column: 1 / -1;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.link-card strong {
  color: inherit;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.link-card-accent {
  border-color: rgba(var(--active-rgb), 0.38);
  background: linear-gradient(135deg, rgba(var(--active-rgb), 0.11), rgba(var(--active-rgb), 0.025));
}

.career-hero {
  padding-block: 105px 120px;
}

.career-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: end;
}

.career-snapshot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 17, 20, 0.82);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.035);
}

.snapshot-heading {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.snapshot-id {
  color: var(--active);
}

.career-snapshot dl {
  margin: 0;
  padding: 9px 15px;
}

.career-snapshot dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(41, 41, 47, 0.62);
}

.career-snapshot dl div:last-child {
  border-bottom: 0;
}

.career-snapshot dt,
.career-snapshot dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
}

.career-snapshot dt {
  color: var(--faint);
}

.career-snapshot dd {
  color: #c6c6cd;
}

.career-snapshot dd:has(.status-light) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-light {
  display: inline-block;
  flex: 0 0 auto;
}

.career-snapshot > a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  transition: background 150ms ease, color 150ms ease;
}

.career-snapshot > a:hover {
  background: rgba(var(--active-rgb), 0.07);
  color: var(--text);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.capability-grid article {
  min-height: 275px;
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 20, 0.55);
  transition: background 170ms ease;
}

.capability-grid article:hover {
  background: var(--panel);
}

.capability-code {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-bright);
  border-radius: 5px;
  color: var(--active);
  font-family: var(--mono);
  font-size: 10px;
}

.capability-grid h3 {
  margin: 55px 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.028em;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.technology-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 9vw, 130px);
  align-items: center;
}

.technology-band h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.technology-band ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technology-band li {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--panel);
  color: #bdbdc5;
  font-family: var(--mono);
  font-size: 10px;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 8vw, 110px);
  padding: clamp(31px, 6vw, 66px);
  overflow: hidden;
  border: 1px solid rgba(var(--active-rgb), 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(var(--active-rgb), 0.105), transparent 46%),
    var(--panel);
}

.contact-panel::after {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(var(--active-rgb), 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(var(--active-rgb), 0.025), 0 0 0 84px rgba(var(--active-rgb), 0.015);
  content: "";
  pointer-events: none;
}

.contact-copy,
.contact-methods,
.copy-status {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  font-size: clamp(36px, 4.7vw, 57px);
}

.contact-copy > p:last-child {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--muted);
}

.contact-methods {
  border-top: 1px solid var(--border);
}

.contact-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.contact-row > span:first-child {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.contact-row a {
  overflow-wrap: anywhere;
  color: #d7d7dc;
  transition: color 150ms ease;
}

.contact-row a:hover {
  color: var(--active);
}

.contact-row button {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.contact-row button:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.contact-outbound {
  color: var(--faint);
}

.copy-status {
  position: absolute;
  right: clamp(31px, 6vw, 66px);
  bottom: 24px;
  margin: 0;
  color: var(--online);
  font-family: var(--mono);
  font-size: 9px;
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.footer-signature span {
  color: var(--active);
}

.reveal {
  animation: reveal 760ms var(--ease) both;
}

.reveal-delay {
  animation-delay: 110ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .header-career-actions {
    margin-left: auto;
  }

  .personal-hero,
  .career-hero-grid {
    gap: 50px;
  }

  .personal-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid article {
    min-height: 235px;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .personal-hero,
  .career-hero-grid,
  .about-grid,
  .technology-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 92px;
  }

  .personal-hero {
    gap: 65px;
  }

  .hero-terminal {
    width: min(100%, 570px);
  }

  .about-grid,
  .technology-band,
  .contact-panel {
    gap: 48px;
  }

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

  .project-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    scrollbar-width: thin;
  }

  .project-tabs::before {
    display: none;
  }

  .project-tab {
    min-width: 145px;
    min-height: 82px;
    grid-template-columns: 1fr auto;
    padding: 13px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .project-tab::before {
    top: auto;
    right: 0;
    bottom: 0;
    width: auto;
    height: 2px;
    transform: scaleX(0);
  }

  .project-tab[aria-selected="true"]::before {
    transform: scaleX(1);
  }

  .project-tab-index {
    display: none;
  }

  .project-tab-category {
    white-space: normal;
  }

  .project-panel {
    min-height: 480px;
  }

  .interests-placeholder {
    grid-template-columns: 110px 1fr;
  }

  .placeholder-orbit {
    width: 100px;
    height: 100px;
  }

  .placeholder-orbit span:nth-child(3) { width: 98px; height: 98px; }

  .preview-flag {
    grid-column: 2;
    justify-self: start;
  }

  .contact-panel {
    padding-bottom: 75px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 58px;
    gap: 12px;
  }

  .brand {
    font-size: 10px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .header-switch {
    margin-left: auto;
    padding: 6px 8px;
    font-size: 9px;
  }

  .header-career-actions {
    gap: 7px;
  }

  .availability {
    display: none;
  }

  .hero {
    padding-block: 76px;
  }

  .hero h1,
  .career-hero h1 {
    font-size: clamp(45px, 15vw, 68px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .terminal-body {
    min-height: 282px;
    padding: 22px 17px;
    font-size: 10px;
  }

  .section {
    padding-block: 76px;
  }

  .section-heading-row {
    display: block;
  }

  .section-note {
    margin-top: 17px;
  }

  .about-ledger div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

  .project-panel {
    min-height: 460px;
  }

  .project-panel-topline {
    min-height: 82px;
    padding: 16px;
  }

  .project-monogram {
    width: 45px;
    height: 45px;
    font-size: 14px;
  }

  .project-panel-content {
    padding: 27px 18px 35px;
  }

  .project-panel h3 {
    font-size: clamp(36px, 12vw, 51px);
  }

  .project-description {
    font-size: 15px;
  }

  .project-link {
    padding: 0 17px;
  }

  .interests-placeholder {
    grid-template-columns: 1fr;
  }

  .placeholder-orbit {
    width: 90px;
    height: 90px;
  }

  .placeholder-orbit span:nth-child(3) { width: 88px; height: 88px; }

  .preview-flag {
    grid-column: 1;
  }

  .link-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article {
    min-height: 220px;
  }

  .career-snapshot dl div {
    grid-template-columns: 82px 1fr;
  }

  .contact-row {
    grid-template-columns: 55px 1fr auto;
    gap: 10px;
  }

  .site-footer {
    min-height: 145px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    display: none;
  }

  .brand {
    max-width: 195px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-switch > span:first-child {
    display: none;
  }

  .header-switch {
    min-width: 30px;
    justify-content: center;
  }

  .career-header .header-switch {
    font-size: 0;
  }

  .career-header .header-switch span {
    font-size: 10px;
  }

  .hero h1,
  .career-hero h1 {
    font-size: clamp(42px, 14.5vw, 56px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .terminal-title {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-status {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-row {
    grid-template-columns: 1fr auto;
    padding-block: 13px;
  }

  .contact-row > span:first-child {
    grid-column: 1 / -1;
  }

  .copy-status {
    right: 25px;
  }
}

@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;
  }
}

/* Authenticated editor */
.admin-mode {
  padding-bottom: 112px;
}

.admin-mode [data-admin-editable="true"] {
  border-radius: 3px;
  outline: 1px dashed transparent;
  outline-offset: 3px;
  transition: outline-color 140ms ease, background-color 140ms ease;
}

.admin-mode [data-admin-editable="true"]:hover {
  outline-color: rgba(74, 222, 128, 0.55);
}

.admin-mode [data-admin-editable="true"]:focus {
  background: rgba(74, 222, 128, 0.08);
  outline: 2px solid #4ade80;
}

.admin-toolbar {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 860px;
  min-height: 70px;
  margin-inline: auto;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(74, 222, 128, 0.48);
  border-radius: 10px;
  background: rgba(17, 17, 20, 0.96);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.admin-toolbar-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-toolbar-copy strong {
  color: #4ade80;
  font: 600 0.68rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
}

.admin-toolbar-copy span {
  overflow: hidden;
  color: var(--muted);
  font: 0.76rem/1.35 "IBM Plex Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-toolbar-copy span[data-state="saved"] {
  color: #86efac;
}

.admin-toolbar-copy span[data-state="error"] {
  color: #fda4af;
}

.admin-toolbar-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-toolbar button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font: 700 0.74rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.admin-logout {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted-light);
}

.admin-save {
  border: 1px solid #4ade80;
  background: #4ade80;
  color: #07130b;
  box-shadow: 0 8px 28px rgba(74, 222, 128, 0.2);
}

.admin-save:hover,
.admin-save:focus-visible {
  background: #86efac;
}

.admin-save:disabled {
  cursor: wait;
  opacity: 0.68;
}

.admin-dirty .admin-save {
  animation: admin-save-pulse 1.8s ease-in-out infinite;
}

@keyframes admin-save-pulse {
  50% { box-shadow: 0 8px 34px rgba(74, 222, 128, 0.42); }
}

@media (max-width: 560px) {
  .admin-mode {
    padding-bottom: 136px;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .admin-toolbar-actions,
  .admin-toolbar button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-dirty .admin-save {
    animation: none;
  }
}
