:root {
  --bg: #030303;
  --surface: #0b0a0b;
  --surface-raised: #121012;
  --surface-soft: #1b1718;
  --ink: #eee9e5;
  --muted: #aaa09d;
  --faint: #766c6a;
  --line: rgba(213, 187, 180, 0.13);
  --line-strong: rgba(213, 187, 180, 0.28);
  --accent: #981f24;
  --accent-hot: #d83b3f;
  --accent-soft: rgba(152, 31, 36, 0.16);
  --cloud: #9c908d;
  --bone: #d5bbb4;
  --iron: #3f403f;
  --radius: 8px;
  --max: 1220px;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(111, 13, 18, 0.34), transparent 32rem),
    radial-gradient(circle at 8% 32%, rgba(80, 22, 21, 0.13), transparent 26rem),
    linear-gradient(155deg, rgba(255, 255, 255, 0.015), transparent 32%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.3;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(213, 187, 180, 0.024) 48%, transparent 49% 100%),
    linear-gradient(rgba(213, 187, 180, 0.018) 1px, transparent 1px);
  background-size: 110px 110px, 100% 72px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.62) 52%, transparent 92%);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: -12%;
  content: "";
  opacity: 0.2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(216, 59, 63, 0.46) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(213, 187, 180, 0.32) 0 1px, transparent 1.5px);
  background-position: 0 0, 48px 76px;
  background-size: 137px 173px, 193px 227px;
  animation: ash-drift 28s linear infinite;
}

@keyframes ash-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(2.5%, -3%, 0); }
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

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

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

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(calc(100% - 40px), var(--max));
  margin: 18px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(152, 31, 36, 0.35);
  background: rgba(5, 5, 6, 0.88);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), inset 3px 0 0 rgba(152, 31, 36, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent-hot);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(216, 59, 63, 0.11), 0 0 22px rgba(152, 31, 36, 0.2);
  clip-path: polygon(0 0, 83% 0, 100% 17%, 100% 100%, 17% 100%, 0 83%);
}

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

.desktop-nav a,
.header-cta {
  color: #c8c8cf;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
}

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

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(120deg, rgba(152, 31, 36, 0.16), rgba(255, 255, 255, 0.025));
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  --pointer-x: 68%;
  --pointer-y: 30%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 70px;
  align-items: center;
  min-height: 900px;
  padding-top: 136px;
  padding-bottom: 64px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 54px -7vw 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(152, 31, 36, 0.22), transparent 22rem),
    radial-gradient(circle at 78% 43%, rgba(80, 22, 21, 0.33), transparent 24rem),
    linear-gradient(112deg, transparent 0 57%, rgba(213, 187, 180, 0.045) 57.15%, transparent 57.5% 100%);
  transition: background-position 180ms ease;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 22%;
  right: 18%;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(152, 31, 36, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  box-shadow:
    0 0 0 44px rgba(152, 31, 36, 0.018),
    0 0 0 92px rgba(152, 31, 36, 0.012),
    inset 0 0 90px rgba(0, 0, 0, 0.74),
    0 0 130px rgba(111, 13, 18, 0.14);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-bottom: 26px;
}

.eyebrow,
.mono-label,
.section-number {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--bone);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58db8b;
  box-shadow: 0 0 0 5px rgba(88, 219, 139, 0.09);
}

.status-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid #58db8b;
  border-radius: inherit;
  content: "";
  animation: ping 2.5s ease-out infinite;
}

@keyframes ping {
  0%, 45% { opacity: 0; transform: scale(0.65); }
  55% { opacity: 0.65; }
  100% { opacity: 0; transform: scale(1.8); }
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(3.75rem, 7.2vw, 7.05rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.066em;
  text-shadow: 0 20px 56px rgba(0, 0, 0, 0.86);
}

.hero h1 span {
  color: var(--accent-hot);
  text-shadow: 0 0 42px rgba(152, 31, 36, 0.34);
}

.hero-lede {
  max-width: 700px;
  margin: 32px 0 0;
  color: #b9afac;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-hot), #791418);
  color: white;
  box-shadow: 0 18px 46px rgba(111, 13, 18, 0.32);
}

.button-primary:hover {
  background: var(--accent-hot);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.065);
}

.identity-card {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding: 18px 18px 0;
  border: 0;
  border-radius: 50% 50% 8px 8px;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.identity-card::before {
  position: absolute;
  z-index: -1;
  inset: -7% -7% 16%;
  border: 1px solid rgba(152, 31, 36, 0.3);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(152, 31, 36, 0.18), transparent 58%),
    conic-gradient(from 210deg, transparent, rgba(213, 187, 180, 0.12), transparent 20%, transparent 76%, rgba(152, 31, 36, 0.22), transparent);
  box-shadow: 0 0 100px rgba(111, 13, 18, 0.22), inset 0 0 80px rgba(0, 0, 0, 0.7);
  animation: sigil-turn 36s linear infinite;
}

.identity-card::after {
  position: absolute;
  z-index: 2;
  inset: 18px 18px auto;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  box-shadow:
    inset 0 -70px 90px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(213, 187, 180, 0.12);
}

@keyframes sigil-turn {
  to { transform: rotate(360deg); }
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(213, 187, 180, 0.18);
  border-radius: 50%;
  box-shadow: var(--shadow), 0 0 70px rgba(111, 13, 18, 0.18);
  animation: portrait-breathe 7s ease-in-out infinite;
}

.identity-card img {
  display: block;
  width: 108%;
  max-width: none;
  height: auto;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.88) contrast(1.12) brightness(0.9);
  transform: translate(-3.7%, -1.8%);
}

@keyframes portrait-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.008); }
}

.scanline {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 8%;
  width: 84%;
  height: 2px;
  opacity: 0.3;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--bone), var(--accent-hot), transparent);
  box-shadow: 0 0 12px var(--accent);
  animation: scan 6s ease-in-out infinite;
}

@keyframes scan {
  0%, 15% { transform: translateY(-4px); opacity: 0; }
  20% { opacity: 0.34; }
  70% { transform: translateY(420px); opacity: 0.18; }
  75%, 100% { transform: translateY(430px); opacity: 0; }
}

.identity-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: -64px 10px 0;
  padding: 19px 20px 20px;
  border: 1px solid rgba(152, 31, 36, 0.42);
  background: rgba(5, 5, 6, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(16px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.identity-content h2 {
  margin: 4px 0 0;
  font-size: 1.48rem;
  letter-spacing: -0.03em;
}

.verified {
  padding: 7px 9px;
  border: 1px solid rgba(213, 187, 180, 0.24);
  border-radius: 999px;
  background: rgba(213, 187, 180, 0.07);
  color: var(--bone);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  white-space: nowrap;
}

.signal-row {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 6px 10px 0;
  border: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.88);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.signal-row span {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 16px 12px 18px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.61rem;
  text-align: center;
  text-transform: uppercase;
}

.signal-row span + span {
  border-left: 1px solid var(--line);
}

.signal-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.proof-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 22px 0;
  border-top: 1px solid rgba(152, 31, 36, 0.32);
  border-bottom: 1px solid rgba(152, 31, 36, 0.32);
  background: linear-gradient(90deg, rgba(152, 31, 36, 0.06), transparent 18% 82%, rgba(152, 31, 36, 0.06));
}

.proof-strip > p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.proof-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.proof-marquee span {
  color: #cfcfd5;
  font-size: 0.82rem;
  font-weight: 650;
}

.proof-marquee span::before {
  margin-right: 10px;
  color: var(--accent);
  content: "/";
}

.work,
.profile {
  position: relative;
  padding: 118px 0 30px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 60px;
  align-items: end;
  margin-bottom: 46px;
}

.section-number {
  margin-bottom: 11px;
  color: var(--accent);
}

.section-number::before {
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 10px;
  content: "";
  vertical-align: 0.22em;
  background: var(--accent-hot);
  box-shadow: 0 0 12px rgba(216, 59, 63, 0.36);
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2.65rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.explorer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-color: rgba(213, 187, 180, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(152, 31, 36, 0.055), transparent 22%),
    rgba(8, 7, 8, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: #b8b8c0;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-chip.is-active {
  border-color: rgba(232, 63, 63, 0.55);
  background: var(--accent-soft);
  color: #ff8e8e;
}

.search-field {
  display: flex;
  align-items: center;
  flex: 0 0 250px;
  gap: 9px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.025);
}

.search-field:focus-within {
  border-color: rgba(232, 63, 63, 0.55);
}

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

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

.explorer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.explorer-meta p {
  margin: 0;
}

.legend {
  display: flex;
  gap: 16px;
}

.type-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}

.type-dot.report { background: var(--accent); }
.type-dot.project { background: #58db8b; }
.type-dot.article { background: var(--cloud); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 350px;
  overflow: hidden;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.008);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  animation: card-in 280ms both;
}

.work-card:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--line);
}

.work-card:hover {
  z-index: 2;
  background:
    linear-gradient(145deg, rgba(152, 31, 36, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.026);
  box-shadow: inset 3px 0 0 var(--accent-hot);
  transform: translateY(-3px);
}

.work-card::after {
  position: absolute;
  top: -30px;
  right: -74px;
  width: 150px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 59, 63, 0.7), transparent);
  transform: rotate(-42deg);
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
}

.work-card:hover::after {
  opacity: 1;
  transform: translate(-44px, 44px) rotate(-42deg);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-type::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
}

.work-card[data-type="project"] .card-type::before { background: #58db8b; }
.work-card[data-type="article"] .card-type::before { background: var(--cloud); }

.card-body {
  padding: 36px 0 24px;
}

.card-body h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: -0.032em;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.card-description {
  margin: 16px 0 0;
  color: #9d9da7;
  font-size: 0.87rem;
  line-height: 1.65;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-bottom: 22px;
}

.card-tags span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #8f8f99;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6rem;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #d5d5da;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-link span:last-child {
  color: var(--accent);
  transition: transform 150ms ease;
}

.card-link:hover span:last-child {
  transform: translate(3px, -3px);
}

.empty-state {
  padding: 64px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.empty-state button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.profile {
  padding-bottom: 80px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 16px;
}

.capability-panel,
.resume-panel {
  border: 1px solid var(--line);
  border-color: rgba(213, 187, 180, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(152, 31, 36, 0.045), transparent 28%),
    var(--surface);
}

.capability-panel {
  padding: 28px;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list li > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.process-list h3,
.skill-groups h3 {
  margin: 0;
  font-size: 0.92rem;
}

.process-list p,
.skill-groups p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.resume-panel {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(232, 63, 63, 0.075), transparent 34%),
    var(--surface);
}

.resume-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.resume-header h3 {
  margin: 6px 0 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.resume-header p:not(.mono-label),
.resume-header > span {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.resume-timeline {
  display: grid;
  gap: 24px;
  padding: 28px 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
}

.timeline-date {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
}

.timeline-item h4 {
  margin: 0;
  font-size: 0.9rem;
}

.timeline-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.credential-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.credential-row span {
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #bdbdc5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
}

.resume-note {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 0.72rem;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 16px;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(216, 59, 63, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 8%, rgba(152, 31, 36, 0.42), transparent 26rem),
    linear-gradient(128deg, #171011, #080708 62%);
  color: white;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52), inset 4px 0 0 var(--accent);
}

.contact-panel::after {
  position: absolute;
  top: -30%;
  right: 11%;
  width: 1px;
  height: 170%;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, rgba(216, 59, 63, 0.55), transparent);
  transform: rotate(28deg);
}

.contact-panel .section-number {
  color: rgba(255, 255, 255, 0.64);
}

.contact-panel h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.2rem);
}

.contact-panel p:not(.section-number) {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  display: grid;
  min-width: 210px;
}

.button-light {
  margin-bottom: 10px;
  background: var(--bone);
  color: #171011;
}

.contact-actions > a:not(.button) {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

footer {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 1.3fr) 1fr;
  gap: 30px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 36px 0 42px;
  color: var(--faint);
  font-size: 0.67rem;
}

footer p {
  margin: 0;
}

footer p:nth-child(2) {
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

.footer-brand {
  opacity: 0.74;
}

.reveal {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 360px;
    gap: 38px;
    min-height: 780px;
  }

  .hero::after {
    right: 9%;
    width: min(48vw, 540px);
  }

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

  .proof-strip {
    align-items: flex-start;
  }

  .filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    flex-basis: auto;
    width: 100%;
  }

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

  .work-card:not(:nth-child(3n + 1)) {
    border-left: 0;
  }

  .work-card:nth-child(even) {
    border-left: 1px solid var(--line);
  }

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

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    max-width: 310px;
  }
}

@media (max-width: 720px) {
  :root {
    --radius: 14px;
  }

  .section-shell,
  .site-header,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    margin-top: 10px;
    padding: 8px 9px 8px 12px;
  }

  .header-cta {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding-top: 132px;
    padding-bottom: 48px;
  }

  .hero::before {
    inset: 50px -14px 0;
    background:
      radial-gradient(circle at 68% 68%, rgba(152, 31, 36, 0.24), transparent 17rem),
      linear-gradient(112deg, transparent 0 63%, rgba(213, 187, 180, 0.04) 63.2%, transparent 63.5% 100%);
  }

  .hero::after {
    top: 48%;
    right: 2%;
    width: 92vw;
    opacity: 0.68;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .eyebrow {
    align-items: flex-start;
    font-size: 0.63rem;
  }

  .status-dot {
    flex: 0 0 auto;
    margin-top: 4px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
    letter-spacing: -0.065em;
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 1rem;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .identity-card {
    width: min(100%, 450px);
    margin: 0 auto;
    padding-inline: 12px;
  }

  .identity-card img {
    width: 108%;
  }

  .proof-strip {
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .proof-marquee {
    gap: 9px 18px;
  }

  .work,
  .profile {
    padding-top: 92px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 3.1rem;
  }

  .explorer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 320px;
  }

  .work-card:nth-child(even) {
    border-left: 0;
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .capability-panel,
  .resume-panel {
    padding: 22px;
  }

  .resume-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 70px 1fr;
  }

  .contact-panel {
    padding: 30px 24px;
  }

  .contact-panel h2 br {
    display: none;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 30px;
  }

  footer p:nth-child(2),
  footer p:last-child {
    text-align: left;
  }

  .footer-brand > span:last-child {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
