:root {
  --paper: #f7f7f3;
  --paper-deep: #ecece7;
  --surface: #fcfcfa;
  --ink: #171918;
  --muted: #626963;
  --line: rgba(23, 25, 24, 0.12);
  --line-strong: rgba(23, 25, 24, 0.22);
  --accent: #2e5bff;
  --accent-soft: #e8ecfb;
  --dark: #101713;
  --dark-muted: #aeb8b1;
  --radius-sm: 14px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 34px rgba(18, 25, 20, 0.06);
  --shadow-float: 0 20px 52px rgba(18, 25, 20, 0.1);
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans-font: "Aptos", "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono-font: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Consolas, monospace;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 2%, rgba(46, 91, 255, 0.055), transparent 25rem),
    var(--paper);
  font-family: var(--sans-font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

::selection {
  color: #fff;
  background: var(--accent);
}

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

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

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

a:focus-visible {
  outline: 3px solid rgba(36, 87, 255, 0.36);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.045em;
}

strong {
  font-weight: 650;
}

sup {
  font-size: 0.65em;
  line-height: 0;
}

main {
  counter-reset: report-section;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(245, 244, 239, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(245, 244, 239, 0.92);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-name::after {
  margin-top: 1px;
  color: var(--muted);
  content: "Research portfolio";
  font-family: var(--mono-font);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

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

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nav-contact:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  min-height: 760px;
  padding-top: clamp(70px, 9vw, 120px);
  padding-bottom: clamp(90px, 11vw, 150px);
  gap: clamp(50px, 7vw, 100px);
}

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

.eyebrow,
.section-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: var(--mono-font);
  font-size: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #35a76b;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(53, 167, 107, 0.11);
}

.hero-title {
  margin-bottom: 30px;
  font-size: clamp(5.4rem, 10.1vw, 9.4rem);
  font-weight: 580;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero-title span {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.065em;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.28;
}

.hero-lede[data-label]::before {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  content: attr(data-label);
  font-family: var(--mono-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-lede strong {
  font-weight: 620;
}

.hero-body {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.hero-body a,
.recognition a,
.paper-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(36, 87, 255, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.hero-body a:hover,
.recognition a:hover,
.paper-list a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

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

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

.hero-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.hero-focus span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.hero-focus span:not(:last-child)::after {
  width: 3px;
  height: 3px;
  content: "";
  background: var(--line-strong);
  border-radius: 50%;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 690px;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.report-meta div {
  min-width: 0;
  padding-right: 18px;
}

.report-meta div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.report-meta dt {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-meta dd {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.portrait-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.portrait-caption {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 6px 9px;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(16, 23, 19, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  font-family: var(--mono-font);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.portrait-caption span {
  color: #fff;
  font-weight: 700;
}

.portrait-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, rgba(10, 15, 12, 0.7), transparent);
}

.portrait-link {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.portrait-card:hover img {
  transform: scale(1.025);
}

.focus-card {
  position: relative;
  z-index: 2;
  width: min(86%, 330px);
  margin: -56px 0 0 auto;
  padding: 20px 22px;
  background: rgba(251, 250, 247, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.focus-card-label {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: var(--mono-font);
}

.focus-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.section {
  counter-increment: report-section;
  padding-block: clamp(90px, 10vw, 145px);
  scroll-margin-top: 90px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  margin-bottom: 48px;
  gap: 40px;
}

.section-heading .section-kicker {
  margin-bottom: 14px;
}

.section .section-kicker {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.section .section-kicker::before {
  margin-right: 0.5em;
  color: var(--accent);
  content: counter(report-section, decimal-leading-zero) " /";
}

.section-heading h2,
.about-intro h2,
.footer-main h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-note {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.highlight-card,
.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.highlight-card:hover,
.project-card:hover {
  border-color: rgba(36, 87, 255, 0.26);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.highlight-media,
.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d9d8d2;
}

.highlight-media video,
.highlight-media img,
.project-media video,
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 240ms ease;
}

.highlight-card:hover .highlight-media video,
.project-card:hover .project-media img {
  transform: scale(1.035);
}

.card-index {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.highlight-copy {
  padding: 24px 24px 26px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  padding: 5px 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.highlight-copy h3,
.project-copy h3 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.15;
}

.highlight-copy p,
.project-copy p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}

.text-link span {
  color: var(--accent);
  transition: transform 160ms ease;
}

.highlight-card:hover .text-link span {
  transform: translate(2px, -2px);
}

.research-list {
  border-top: 1px solid var(--line-strong);
}

.research-item {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  padding-block: 48px;
  border-bottom: 1px solid var(--line);
  gap: clamp(38px, 6vw, 88px);
}

.media-preview,
.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  border-radius: var(--radius-md);
}

.media-preview img,
.media-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.media-preview img {
  object-position: center;
}

.media-preview video,
.project-media video {
  opacity: 0;
}

.media-preview.is-playing img,
.project-media.is-playing img {
  opacity: 0;
}

.media-preview.is-playing video,
.project-media.is-playing video {
  opacity: 1;
}

.media-preview:hover img,
.media-preview.is-playing img,
.project-media:hover img,
.project-media.is-playing img {
  transform: scale(1.025);
}

.preview-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  color: #fff;
  background: rgba(16, 23, 19, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.media-preview.is-playing .preview-label {
  opacity: 0;
}

@media (hover: none) {
  .preview-label {
    display: none;
  }
}

.research-copy h3 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
  line-height: 1.15;
}

.research-copy h3 a {
  transition: color 160ms ease;
}

.research-copy h3 a:hover {
  color: var(--accent);
}

.authors {
  max-width: 760px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.authors a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.authors strong {
  color: var(--ink);
}

.paper-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 20px;
}

.publication {
  display: flex;
  min-height: 34px;
  padding: 7px 12px;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 4px 10px 10px 4px;
}

.fact-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.publication strong {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.stars-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  gap: 6px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.stars-badge svg {
  width: 12px;
  height: 12px;
  fill: var(--accent);
}

.stars-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stars-badge:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.stars-badge:hover svg {
  fill: #fff;
}

.stars-badge:hover .stars-label {
  color: rgba(255, 255, 255, 0.68);
}

.summary {
  max-width: 720px;
  margin-bottom: 22px;
  color: #38413c;
  font-size: 14px;
  line-height: 1.7;
}

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

.paper-links a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.paper-links a:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-media {
  border-radius: 0;
}

.project-media video {
  position: absolute;
  inset: 0;
}

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

.project-copy p {
  margin-bottom: 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(50px, 8vw, 120px);
}

.about-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.about-intro h2 {
  margin: 14px 0 28px;
}

.about-intro > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.timeline-item > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 4px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.recognition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 56px;
  gap: 38px;
}

.mini-heading {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recognition p:not(.mini-heading),
.paper-list {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.paper-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper-list li + li {
  margin-top: 16px;
}

.paper-list a {
  display: block;
}

.paper-list span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.paper-list span strong {
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  margin-top: clamp(70px, 9vw, 120px);
  padding-block: 80px 28px;
  color: #f4f3ee;
  background:
    radial-gradient(circle at 85% 25%, rgba(77, 118, 255, 0.21), transparent 30rem),
    var(--dark);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
}

.site-footer .section-kicker {
  margin-bottom: 15px;
  color: var(--dark-muted);
}

.footer-main h2 {
  max-width: 780px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-email:hover {
  color: #90a8ff;
  border-color: #90a8ff;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 20px;
  color: var(--dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-base a:hover {
  color: #fff;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

.hero-enter {
  animation: hero-in 850ms both cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-copy .hero-enter:nth-child(2) {
  animation-delay: 70ms;
}

.hero-copy .hero-enter:nth-child(3) {
  animation-delay: 140ms;
}

.hero-copy .hero-enter:nth-child(4) {
  animation-delay: 210ms;
}

.hero-copy .hero-enter:nth-child(5) {
  animation-delay: 280ms;
}

.hero-copy .hero-enter:nth-child(6) {
  animation-delay: 350ms;
}

.hero-visual.hero-enter {
  animation-delay: 180ms;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
    gap: 48px;
  }

  .hero-title {
    font-size: clamp(5rem, 10.8vw, 7.4rem);
  }

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

  .highlight-card:last-child,
  .project-card:last-child {
    grid-column: span 2;
  }

  .highlight-card:last-child .highlight-media,
  .project-card:last-child .project-media {
    aspect-ratio: 16 / 8;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-intro {
    position: static;
  }
}

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

  .nav-shell {
    min-height: 68px;
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .brand-name {
    display: none;
  }

  .hero {
    display: flex;
    min-height: auto;
    padding-top: 66px;
    padding-bottom: 92px;
    flex-direction: column;
    align-items: stretch;
    gap: 58px;
  }

  .hero-title {
    font-size: clamp(4.3rem, 22vw, 7rem);
  }

  .hero-lede {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
  }

  .hero-visual {
    max-width: 520px;
    align-self: center;
  }

  .portrait-card {
    aspect-ratio: 5 / 6;
  }

  .focus-card {
    width: 88%;
  }

  .section {
    padding-block: 82px;
  }

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

  .section-note {
    max-width: 480px;
  }

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

  .highlight-card:last-child,
  .project-card:last-child {
    grid-column: auto;
  }

  .highlight-card:last-child .highlight-media,
  .project-card:last-child .project-media {
    aspect-ratio: 4 / 3;
  }

  .research-item {
    grid-template-columns: 1fr;
    padding-block: 34px;
    gap: 28px;
  }

  .research-copy h3 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .recognition {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 32px;
  }

  .footer-email {
    justify-self: start;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-focus {
    font-size: 10px;
  }

  .portrait-card {
    border-radius: 24px;
  }

  .focus-card {
    margin-top: -38px;
    padding: 17px 18px;
  }

  .highlight-copy,
  .project-copy {
    padding: 21px 20px 24px;
  }

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

  .footer-base {
    margin-top: 60px;
  }
}

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

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