:root {
  --paper: #f7f2e8;
  --paper-strong: #fffaf0;
  --ink: #1d2424;
  --muted: #5f6865;
  --line: rgba(29, 36, 36, 0.14);
  --card: rgba(255, 250, 240, 0.78);
  --card-solid: #fff9ec;
  --cardinal: #9b2c2c;
  --cardinal-dark: #6f1f24;
  --teal: #147d7e;
  --green: #4f7a3b;
  --amber: #c8852c;
  --shadow: 0 24px 70px rgba(41, 33, 24, 0.13);
  --radius: 8px;
  --max: 1180px;
  --heading: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(155, 44, 44, 0.11), transparent 34rem),
    linear-gradient(245deg, rgba(20, 125, 126, 0.11), transparent 38rem),
    var(--paper);
  font-family: var(--body);
  line-height: 1.55;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(29, 36, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 36, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0.8rem auto 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(29, 36, 36, 0.1);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.82);
  box-shadow: 0 10px 35px rgba(41, 33, 24, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: white;
  background: var(--cardinal-dark);
  font-family: var(--heading);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a,
.filter-button {
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a.active,
.site-nav a:hover,
.filter-button.active,
.filter-button:hover {
  color: var(--ink);
  background: rgba(29, 36, 36, 0.08);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(29, 36, 36, 0.08);
}

.nav-toggle svg,
.button svg,
.card-topline svg {
  width: 1rem;
  height: 1rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.68fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  width: min(calc(100% - 2rem), var(--max));
  min-height: auto;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 2.8rem) 0 clamp(2.4rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 1rem 0 auto;
  height: 72%;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 250, 240, 0), rgba(255, 250, 240, 0.56)),
    repeating-linear-gradient(135deg, rgba(155, 44, 44, 0.14) 0 1px, transparent 1px 18px);
  border-radius: 48% 52% 45% 55% / 52% 42% 58% 48%;
  opacity: 0.55;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cardinal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 900px;
  font-size: 3.95rem;
}

h2 {
  max-width: 780px;
  font-size: 3.45rem;
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 690px;
  margin: 1.2rem 0 0;
  color: #3f4846;
  font-size: 1.08rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 720px;
  margin-top: 1rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  max-width: 100%;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(29, 36, 36, 0.12);
  border-radius: 999px;
  color: #3f4846;
  background: rgba(255, 250, 240, 0.65);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-link:hover {
  color: var(--ink);
  border-color: rgba(111, 31, 36, 0.24);
  background: rgba(255, 250, 240, 0.9);
}

.hero-link svg {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
}

.email-link {
  color: var(--cardinal-dark);
  background: rgba(155, 44, 44, 0.08);
}

.email-popover {
  position: relative;
  display: inline-flex;
}

.email-popover::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(17rem, 78vw);
  height: 0.55rem;
  content: "";
}

.email-copy-bubble {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 5;
  display: inline-flex;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(29, 36, 36, 0.12);
  border-radius: 12px;
  color: var(--cardinal-dark);
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 16px 40px rgba(35, 31, 29, 0.14);
  cursor: copy;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.email-copy-bubble:focus-visible {
  outline: 3px solid rgba(155, 44, 44, 0.2);
  outline-offset: 3px;
}

.email-copy-bubble.is-copied {
  color: #1d4f3a;
  background: rgba(235, 248, 241, 0.98);
}

.email-copy-bubble.is-copy-failed {
  color: var(--cardinal-dark);
  background: rgba(255, 238, 232, 0.98);
}

.email-copy-text {
  overflow-wrap: normal;
  user-select: text;
  white-space: nowrap;
}

.email-popover:hover .email-copy-bubble,
.email-popover:focus-within .email-copy-bubble {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.hero-actions,
.contact-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #fffaf0;
  background: var(--cardinal-dark);
  box-shadow: 0 14px 28px rgba(111, 31, 36, 0.18);
}

.button.secondary {
  border-color: rgba(29, 36, 36, 0.14);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.75);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.identity-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 19rem;
  border: 1px solid rgba(29, 36, 36, 0.14);
  border-radius: 32px 32px 8px 32px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 240, 0.95) 0 4.5rem, transparent 4.6rem),
    linear-gradient(135deg, rgba(155, 44, 44, 0.28), rgba(20, 125, 126, 0.22)),
    #efe2ca;
  box-shadow: var(--shadow);
}

.identity-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(29, 36, 36, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 36, 36, 0.08) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
  opacity: 0.55;
}

.identity-visual::after {
  content: "";
  position: absolute;
  inset: 45% -12% -18% 10%;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    rgba(155, 44, 44, 0.08) 0 1px,
    transparent 1px 18px
  );
  border-radius: 999px;
}

.identity-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 8.2rem;
  height: 8.2rem;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 5px solid rgba(255, 250, 240, 0.96);
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 18px 34px rgba(29, 36, 36, 0.16);
}

.avatar-photo {
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center center;
  transform: translate(-2.4%, -5%);
}

.identity-track {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(29, 36, 36, 0), rgba(29, 36, 36, 0.35), rgba(29, 36, 36, 0));
}

.track-ai {
  left: 17%;
  top: 33%;
  width: 9rem;
  transform: rotate(-28deg);
}

.track-sys {
  right: 12%;
  top: 52%;
  width: 8.2rem;
  transform: rotate(12deg);
}

.track-game {
  left: 13%;
  bottom: 29%;
  width: 10rem;
  transform: rotate(24deg);
}

.identity-chip {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 3.55rem;
  min-height: 2.2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 999px;
  color: #fffaf0;
  background: rgba(29, 36, 36, 0.9);
  font-family: var(--heading);
  font-size: 0.76rem;
  font-weight: 700;
}

.chip-ai {
  left: 8%;
  top: 13%;
}

.chip-sys {
  right: 8%;
  top: 37%;
}

.chip-game {
  left: 9%;
  bottom: 12%;
}

.signal-card,
.feature-card,
.research-item,
.project-card,
.timeline-item,
.skill-bands > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 50px rgba(41, 33, 24, 0.07);
  backdrop-filter: blur(12px);
}

.signal-card {
  padding: 1rem;
}

.signal-label,
.card-topline,
.project-card span,
.year,
.timeline-date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--heading);
  font-size: 1.18rem;
  line-height: 1.1;
}

.signal-card p,
.feature-card p,
.research-item p,
.project-card p,
.timeline-item p,
.skill-bands p {
  color: var(--muted);
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.profile-summary {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-top: 1.5rem;
}

.profile-kicker {
  position: sticky;
  top: 7rem;
}

.profile-kicker h2 {
  max-width: 8ch;
}

.profile-copy {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.profile-copy p {
  margin: 0;
  color: #37423f;
  font-size: clamp(1.02rem, 1.6vw, 1.17rem);
  line-height: 1.72;
}

.section-heading {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.section-heading > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 20rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.feature-card.large {
  grid-column: 1 / -1;
  min-height: auto;
}

.recap-card {
  display: grid;
  grid-template-columns: minmax(310px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.recap-card .card-topline {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.recap-card .project-figure {
  margin: 0;
}

.recap-figures {
  display: grid;
  gap: 0.75rem;
}

.recap-card::after {
  display: none;
}

.feature-copy {
  display: grid;
  gap: 0.75rem;
}

.feature-copy h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
}

.paper-meta {
  margin: 0;
  color: #4b5552 !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.systems-note {
  max-width: 28rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(29, 36, 36, 0.12);
  color: #34413e !important;
  font-size: 0.95rem;
  font-weight: 700;
}

.meta-row,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-row a {
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(111, 31, 36, 0.18);
  border-radius: 999px;
  color: var(--cardinal-dark);
  background: rgba(255, 250, 240, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
}

.feature-card::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(29, 36, 36, 0.08);
  transform: rotate(12deg);
  background: rgba(20, 125, 126, 0.07);
  pointer-events: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-topline a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: white;
  background: var(--ink);
}

.project-figure {
  margin: 0.35rem 0 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(29, 36, 36, 0.1);
  border-radius: var(--radius);
  background: #fffdf7;
}

.project-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.recap-figure {
  padding: 0.7rem;
}

.recap-subtree-figure {
  padding: 0.55rem;
}

.rgcn-figure {
  margin: 0 0 1rem;
  padding: 0.55rem;
  background: #fffaf0;
}

.compact-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  position: relative;
  padding-left: 1.2rem;
  color: #3f4846;
}

.compact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cardinal);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.tag-row span {
  padding: 0.38rem 0.6rem;
  border: 1px solid rgba(29, 36, 36, 0.12);
  border-radius: 999px;
  color: #34413e;
  background: rgba(255, 250, 240, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
}

.media-card {
  padding-top: 0;
}

.media-card img {
  width: calc(100% + clamp(2.2rem, 5vw, 3.2rem));
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: 0 calc(clamp(1.1rem, 2.5vw, 1.6rem) * -1) 1rem;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 6rem;
}

.research-list {
  display: grid;
  gap: 1rem;
}

.research-item {
  padding: clamp(1.1rem, 2.3vw, 1.5rem);
}

.research-item h3,
.project-card h3,
.timeline-item h3,
.skill-bands h3 {
  margin-top: 0.5rem;
}

.link-row {
  margin-top: 1rem;
}

.link-row a,
.project-card a {
  color: var(--cardinal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 4.75rem 12.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.1rem, 2.3vw, 1.5rem);
}

.org-logo {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0.42rem;
  border: 1px solid rgba(29, 36, 36, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.org-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.org-logo.stanford,
.org-logo.stripe,
.org-logo.jj {
  border-color: rgba(255, 250, 240, 0.32);
}

.org-logo.kromo {
  background: #fff;
  padding: 0.55rem;
}

.role a {
  color: var(--cardinal-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.role {
  margin: 0.35rem 0 0.75rem;
  color: var(--cardinal-dark) !important;
  font-weight: 700;
}

.project-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.62);
}

.filter-button {
  border: 0;
  cursor: pointer;
  background: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 15.5rem;
  padding: 1.15rem;
}

.priority-card {
  grid-column: span 2;
}

.featured-project {
  grid-column: span 2;
}

.project-card .project-figure {
  flex: 0 0 auto;
}

.project-card p {
  flex: 1;
}

.project-links {
  margin-top: auto;
}

.project-card[data-category="game"] {
  background: rgba(255, 250, 240, 0.58);
}

.project-card[hidden] {
  display: none;
}

.skills-section {
  padding-top: 2rem;
}

.skill-bands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.skill-bands > div {
  min-height: 13rem;
  padding: 1.2rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto clamp(1rem, 3vw, 2rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: var(--radius);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(111, 31, 36, 0.96), rgba(29, 36, 36, 0.97)),
    var(--ink);
  box-shadow: var(--shadow);
}

.contact-section .eyebrow {
  color: #f2c572;
}

.contact-section h2 {
  max-width: 760px;
  font-size: 2.55rem;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-section .button.secondary {
  border-color: rgba(255, 250, 240, 0.18);
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

@media (max-width: 980px) {
  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .hero,
  .split-section,
  .contact-section,
  .profile-summary {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 42rem;
  }

  .feature-grid,
  .skill-bands {
    grid-template-columns: 1fr;
  }

  .recap-card {
    grid-template-columns: 1fr;
  }

  .profile-kicker {
    position: static;
  }

  .profile-kicker h2 {
    max-width: none;
  }

  .feature-card.large {
    grid-column: auto;
  }

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

  .sticky-heading {
    position: static;
  }

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

@media (max-width: 760px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .contact-section h2 {
    font-size: 2rem;
  }

  .site-header {
    border-radius: 24px;
    align-items: flex-start;
  }

  .nav-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(247, 242, 232, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 14px;
  }

  .timeline-item {
    grid-template-columns: 4.75rem 1fr;
  }

  .timeline-date {
    align-self: center;
  }

  .timeline-item > div:last-child {
    grid-column: 1 / -1;
  }

  .project-heading {
    display: grid;
    align-items: start;
  }

  .filter-group {
    border-radius: var(--radius);
  }

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

  .featured-project {
    grid-column: auto;
  }

  .priority-card {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .brand-text {
    display: none;
  }

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

  .feature-card,
  .project-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
