:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #1d1d1f;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --soft-line: rgba(29, 29, 31, 0.06);
  --accent: #4b2e83;
  --accent-hover: #5f3fa1;
  --linear: #7c5fb2;
  --engineering: #b7a57a;
  --gold: #b7a57a;
  --dark: #211a35;
  --dark-panel: #eee9f8;
  --dark-panel-2: #e4edf8;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-pill: 999px;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 2%, rgba(75, 46, 131, 0.16), transparent 22%),
    radial-gradient(circle at 72% 8%, rgba(124, 95, 178, 0.14), transparent 20%),
    radial-gradient(circle at 84% 32%, rgba(183, 165, 122, 0.12), transparent 20%),
    linear-gradient(90deg, rgba(29, 29, 31, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(29, 29, 31, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 28px 28px, 28px 28px, auto;
  overflow-x: hidden;
}

.metal-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(29, 29, 31, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 0 46%, transparent 84%);
  opacity: 0.18;
}

.cursor-glow {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(75, 46, 131, 0.16) 0 18%, rgba(183, 165, 122, 0.12) 19% 32%, transparent 68%);
  filter: blur(8px);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 180ms ease;
  mix-blend-mode: multiply;
}

body.is-pointer-active .cursor-glow {
  opacity: 1;
}

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

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

button {
  color: inherit;
}

.uw-watermark {
  display: none;
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 8px 12px 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.055);
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark), #2f2f35);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.topnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.topnav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.75fr);
  gap: 18px;
  margin-top: 26px;
}

.hero-copy,
.hero-panel,
.card,
.footer {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.4);
}

.interactive-surface {
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.interactive-surface > :not(.surface-glow) {
  position: relative;
  z-index: 1;
}

.surface-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(75, 46, 131, 0.16), transparent 34%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(183, 165, 122, 0.16), transparent 22%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.interactive-surface:hover {
  border-color: rgba(29, 29, 31, 0.24);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.12);
}

.interactive-surface:hover .surface-glow {
  opacity: 1;
}

.hero-copy {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 62px);
  background:
    radial-gradient(circle at 12% 14%, rgba(132, 109, 184, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(117, 174, 213, 0.17), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(244, 242, 250, 0.95));
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 70%, rgba(29, 29, 31, 0.08) 70%, rgba(29, 29, 31, 0.08) 70.2%, transparent 70.2%),
    linear-gradient(18deg, transparent 0 58%, rgba(75, 46, 131, 0.1) 58%, rgba(75, 46, 131, 0.1) 58.2%, transparent 58.2%),
    linear-gradient(132deg, transparent 0 62%, rgba(183, 165, 122, 0.16) 62%, rgba(183, 165, 122, 0.16) 62.2%, transparent 62.2%),
    radial-gradient(circle at 76% 30%, transparent 0 96px, rgba(29, 29, 31, 0.08) 97px 98px, transparent 99px);
  opacity: 0.5;
}

.hero-copy::after {
  content: "ML / VISION / EDGE AI";
  position: absolute;
  right: 36px;
  bottom: 32px;
  color: rgba(75, 46, 131, 0.065);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.9;
  max-width: 8ch;
  text-align: right;
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.name-line { display: block; }
.name-detail { color: var(--accent); font-size: 0.42em; font-weight: 500; letter-spacing: -0.035em; text-transform: none; vertical-align: 0.28em; white-space: nowrap; }

.eyebrow,
.panel-label,
.project-type {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::after,
.panel-label::after,
.project-type::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 9px;
  background: var(--ink);
}

.hero-tagline {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.96;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.8rem, 7.2vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.9;
  text-transform: uppercase;
}

h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.target-roles {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
}

.availability-pill {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-weight: 700;
}

.hero-lead {
  max-width: 33ch;
  margin: 22px 0 12px;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.hero-summary,
.footer-copy,
.project-card p,
.statement-card p,
.spotlight-panel p,
.signal-list article p,
.skill-card p,
.contact-points,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.hero-summary {
  max-width: 64ch;
  margin: 0;
}

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

.button,
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.button::before,
.chip::before {
  content: "";
  position: absolute;
  inset: -40% -120%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 180ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover,
.chip:hover {
  transform: translateY(-2px) scale(1.015);
}

.button:hover::before,
.chip:hover::before {
  opacity: 1;
  transform: translateX(35%);
}

.button::after,
.chip::after,
.topnav a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: scale(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.button:hover::after,
.chip:hover::after,
.topnav a:hover::after {
  opacity: 0.55;
  transform: scale(1);
}

.button-primary,
.chip.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 12px 34px rgba(75, 46, 131, 0.22);
}

.button-secondary {
  color: var(--ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 600;
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  background:
    radial-gradient(circle at 78% 0, rgba(113, 83, 170, 0.22), transparent 30%),
    radial-gradient(circle at 8% 18%, rgba(107, 174, 213, 0.2), transparent 24%),
    linear-gradient(180deg, var(--dark-panel), var(--dark-panel-2));
  color: var(--ink);
}

.portrait-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #efefec;
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.portrait-frame:hover img {
  filter: contrast(1.04) saturate(1.04);
  transform: scale(1.035);
}

.uw-collage-card,
.signal-list article,
.metric,
.project-impact {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.hero-panel .panel-label,
.hero-panel .signal-list span,
.hero-panel .uw-collage-card strong {
  color: var(--ink);
}

.hero-panel .panel-label::after {
  background: var(--accent);
}

.hero-panel .uw-collage-card,
.hero-panel .signal-list article,
.hero-panel .landscape-strip {
  border-color: rgba(75, 46, 131, 0.13);
  background: rgba(255, 255, 255, 0.62);
}

.hero-panel .uw-collage-card p,
.hero-panel .uw-collage-card span,
.hero-panel .signal-list article p {
  color: #5f6070;
}

.uw-collage-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.collage-w {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--linear));
  color: #fff;
  font-family: "Source Serif 4", serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.uw-collage-card p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.uw-collage-card strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.uw-collage-card span {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 0.95rem;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-list article {
  padding: 14px;
}

.signal-list span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}

.landscape-strip {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.landscape-strip img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.04);
}

.section {
  margin-top: 48px;
  scroll-margin-top: 104px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.card {
  padding: 24px;
}

.about-grid,
.skills-grid,
.snapshot-grid {
  display: grid;
  gap: 16px;
}

.about-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

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

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

.statement-card,
.snapshot-card,
.skill-card {
  background: var(--surface-strong);
}

.statement-card p:first-child {
  margin-top: 0;
}

.statement-card p:last-child {
  margin-bottom: 0;
}

.metrics-card {
  display: grid;
  gap: 12px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 2.8rem;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.snapshot-card ul,
.timeline-item ul,
.project-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 14px;
  counter-reset: experience;
}

.timeline-item {
  position: relative;
  background: var(--surface-strong);
}

.timeline-item::after {
  counter-increment: experience;
  content: "0" counter(experience);
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(8, 8, 8, 0.08);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-right: 66px;
}

.timeline-top p {
  margin: 6px 0 0;
  color: var(--muted);
}

.timeline-top span {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: project;
}

.project-visual { min-height: 220px; padding: 24px; border: 1px solid rgba(75, 46, 131, 0.1); background: radial-gradient(circle at 18% 12%, rgba(139, 117, 190, 0.22), transparent 36%), linear-gradient(145deg, #f3f0fa, #e6f1f8); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; }
.project-visual span, .project-visual strong { grid-column: 1 / -1; text-align: center; font-family: "Space Grotesk", sans-serif; }
.project-visual span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.project-visual b { padding: 12px 8px; border: 1px solid rgba(75, 46, 131, 0.14); border-radius: 10px; background: rgba(255, 255, 255, 0.72); color: #3f355b; font-size: 0.78rem; text-align: center; }
.project-visual strong { margin-top: 4px; padding: 14px; border-radius: 12px; color: #0c1020; background: linear-gradient(135deg, #d8b4fe, #67e8f9); }
.project-link { display: inline-flex; margin-top: 12px; color: var(--accent); font-family: "Space Grotesk", sans-serif; font-weight: 700; text-decoration: none; }
.project-link:hover { color: #315f86; }
.featured-project { border-color: rgba(196, 181, 253, 0.28); }

.project-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  min-height: 430px;
  scroll-margin-top: 110px;
  background: var(--surface-strong);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--engineering);
  box-shadow: 0 0 0 6px rgba(183, 165, 122, 0.16);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card::after {
  counter-increment: project;
  content: "0" counter(project);
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(8, 8, 8, 0.08);
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.project-card:hover {
  transform: translateY(-5px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.project-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  position: relative;
  margin: -24px 0 -24px -24px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #ecece8;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 40%, rgba(255, 255, 255, 0.26) 48%, transparent 56%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 8px);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 220ms ease, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media::after,
.project-card.is-feature-active .project-media::after {
  opacity: 1;
  transform: translateX(70%);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  filter: saturate(0.92);
}

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

.split-media img {
  min-height: 430px;
}

.project-impact {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(75, 46, 131, 0.055), rgba(183, 165, 122, 0.09));
  border-color: rgba(75, 46, 131, 0.12);
}

.project-card > :not(.project-media):not(.surface-glow) {
  align-self: start;
}

.project-content {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 2px 4px 2px 0;
}

.project-content h3 {
  max-width: calc(100% - 64px);
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
}

.project-content p {
  margin: 8px 0;
}

.project-card .project-type {
  margin-top: 4px;
}

.spotlight-panel {
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at 88% 16%, rgba(75, 46, 131, 0.12), transparent 25%),
    radial-gradient(circle at 12% 90%, rgba(183, 165, 122, 0.12), transparent 22%),
    var(--surface-strong);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 10px;
  padding: 28px;
}

.contact-panel {
  display: grid;
  gap: 11px;
  align-content: start;
  justify-items: start;
}

.contact-panel a,
.contact-panel span {
  color: var(--muted);
  font-weight: 600;
}

.contact-form-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  background: var(--surface-strong);
}

.contact-form-copy,
.contact-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.contact-points {
  margin: 0;
  padding-left: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--ink);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 12px 2px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.honey-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
}

.form-status.is-error {
  color: #8c2c2c;
}

.form-status.is-success {
  color: #1d6a4f;
}

.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  filter: blur(16px);
  clip-path: inset(12% 0 0 0 round 22px);
  transform: translateY(44px) scale(0.985);
  transition:
    opacity 780ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 780ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay);
  will-change: opacity, filter, clip-path, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0 0 0 0 round 0);
  transform: translateY(0) scale(1);
}

.section.reveal {
  opacity: 1;
  filter: none;
  clip-path: none;
  transform: none;
}

.section-heading.reveal {
  opacity: 1;
  filter: none;
  clip-path: none;
  transform: none;
}

.project-card.reveal,
.timeline-item.reveal,
.snapshot-card.reveal,
.skill-card.reveal {
  transform: translateY(54px) scale(0.97);
}

.project-card.reveal {
  opacity: 1;
  filter: none;
  clip-path: none;
  transform: translateY(86px) scale(0.92);
  transition:
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.reveal.is-visible {
  transform: translateY(0) scale(1);
}

.project-card.is-feature-active {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 34px 110px rgba(75, 46, 131, 0.16);
}

.project-card.reveal .project-media img {
  transform: scale(1.08);
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay);
}

.project-card.reveal.is-visible .project-media img {
  transform: scale(1);
}

.hero-copy,
.hero-panel {
  animation: heroEntrance 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-panel {
  animation-delay: 120ms;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(34px) scale(0.985);
  }

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

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

  .cursor-glow,
  .surface-glow,
  .metal-canvas,
  .project-media::after {
    display: none;
  }
}

@media (max-width: 1040px) {
  .hero,
  .project-grid,
  .about-grid,
  .snapshot-grid,
  .skills-grid,
  .contact-form-shell,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .footer {
    display: grid;
  }

  .split-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 16px, 100%);
    padding-top: 10px;
  }

  .topbar,
  .timeline-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    gap: 4px;
  }

  .topnav a {
    padding: 8px 10px;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .footer {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-copy {
    background:
      radial-gradient(circle at 10% 10%, rgba(132, 109, 184, 0.14), transparent 24%),
      linear-gradient(145deg, #fff, #f4f2fa);
  }

  .hero-copy::after {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  h2 {
    max-width: none;
  }

  .hero-actions,
  .hero-meta,
  .filter-bar,
  .form-actions {
    width: 100%;
  }

  .button,
  .chip {
    width: 100%;
  }

  .timeline-top {
    padding-right: 0;
  }

  .timeline-item::after,
  .project-card::after {
    display: none;
  }

  .project-media {
    margin: -18px -18px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .split-media {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-content {
    padding: 0;
  }

  .two-up,
  .uw-collage-card {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
