:root {
  --ink: #101010;
  --ink-soft: #2a2a2a;
  --paper: #f4f5f1;
  --white: #ffffff;
  --line: rgba(16, 16, 16, 0.15);
  --line-light: rgba(255, 255, 255, 0.18);
  --muted: #686a66;
  --raspberry: #c91558;
  --oxide: #943324;
  --green: #284f47;
  --violet: #3e2461;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

main,
section {
  min-width: 0;
}

main section[id] {
  scroll-margin-top: 76px;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: var(--raspberry);
  color: var(--white);
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  left: 0;
  position: fixed;
  top: 0;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  width: 100%;
  z-index: 20;
}

.site-header.scrolled {
  backdrop-filter: blur(18px);
  background: rgba(244, 245, 241, 0.92);
  border-color: var(--line);
  color: var(--ink);
}

.nav {
  align-items: center;
  display: flex;
  height: 76px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1500px;
  padding: 0 clamp(20px, 5vw, 76px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-glyph {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-family: var(--serif);
  height: 36px;
  justify-content: center;
  width: 36px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
  text-transform: uppercase;
}

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

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

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 7px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.menu-toggle span {
  background: currentColor;
  display: block;
  height: 1px;
  transition: transform 180ms ease;
  width: 24px;
}

.menu-toggle.open span:first-child {
  transform: translateY(4px) rotate(35deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-35deg);
}

.hero {
  align-items: end;
  background:
    radial-gradient(circle at 76% 28%, rgba(201, 21, 88, 0.34), transparent 34%),
    radial-gradient(circle at 14% 76%, rgba(40, 79, 71, 0.36), transparent 30%),
    var(--ink);
  color: var(--white);
  display: grid;
  gap: clamp(22px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(640px, 82svh, 860px);
  overflow: hidden;
  padding: 110px max(clamp(20px, 6vw, 88px), calc((100vw - 1500px) / 2 + 76px)) 42px;
  position: relative;
}

.hero-image,
.hero-shade {
  inset: 0;
  position: absolute;
}

.hero-image {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.04));
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.54), rgba(8, 8, 8, 0.16)),
    linear-gradient(0deg, rgba(8, 8, 8, 0.4), rgba(8, 8, 8, 0.02) 50%);
}

.hero-content,
.hero-avatar {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 940px;
}

.hero-avatar {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: absolute;
  right: max(clamp(24px, 6vw, 88px), calc((100vw - 1500px) / 2 + 76px));
  top: clamp(112px, 15vh, 150px);
  width: clamp(150px, 16vw, 220px);
}

.hero-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.eyebrow,
.section-label p,
.experience-time,
.project-type,
.paper-venue,
.site-footer {
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 4.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero h1 span {
  display: inline;
}

.hero-statement {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
  margin-top: 24px;
  max-width: 740px;
}

.hero-statement + .hero-statement {
  margin-top: 14px;
}

.hero-statement a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
}

.hero-statement a:hover {
  border-color: currentColor;
}

.hero-intent {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 800;
  margin-top: 16px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  justify-content: center;
  letter-spacing: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 0 20px;
  text-align: center;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.58);
}

.button-stacked {
  flex-direction: column;
  gap: 3px;
  line-height: 1;
  min-height: 54px;
  padding-block: 7px;
}

.button-stacked small {
  font-size: 0.62rem;
  font-weight: 800;
  opacity: 0.68;
  text-transform: none;
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

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

.photo-strip {
  display: grid;
  gap: clamp(12px, 1.8vw, 24px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  margin: 0 auto;
  max-width: 1080px;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 6vw, 88px) 0;
}

.photo-strip figure {
  background: var(--ink);
  height: clamp(190px, 24vw, 300px);
  overflow: hidden;
  width: 100%;
}

.photo-strip img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-strip figure:first-child img {
  object-position: center 62%;
}

.photo-strip figure:nth-child(2) img {
  object-position: center 54%;
}

.opening-strip {
  border-bottom: 1px solid var(--line);
  padding: clamp(42px, 6vw, 76px) clamp(20px, 8vw, 124px);
}

.opening-strip p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.2vw, 4.8rem);
  line-height: 1.02;
  max-width: 1180px;
}

.section {
  padding: clamp(52px, 6vw, 84px) clamp(20px, 6vw, 88px);
}

.section-label {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  margin-bottom: clamp(26px, 4vw, 48px);
  padding-top: 16px;
}

.section-label span {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  min-width: 30px;
}

.section-label p {
  color: var(--muted);
}

.section-intro {
  display: grid;
  gap: clamp(20px, 4vw, 58px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  margin-bottom: clamp(28px, 4.8vw, 54px);
}

.section-intro > *,
.paper-feature > *,
.contact-layout > *,
.experience-grid > * {
  min-width: 0;
}

.section-intro h2,
.paper-copy h3,
.project-copy h2,
.contact-layout h2 {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.7vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  overflow-wrap: break-word;
}

.section-intro p {
  align-self: end;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
}

.news-section {
  background: var(--paper);
}

.news-layout {
  margin-inline: auto;
  max-width: 1080px;
  width: 100%;
}

.news-list {
  border-top: 1px solid var(--line);
  list-style: none;
}

.news-item {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(20px, 3vw, 42px);
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 18px 0;
}

.news-item time {
  color: var(--raspberry);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.news-item p {
  color: var(--ink-soft);
  font-size: clamp(0.94rem, 1.1vw, 1.03rem);
  line-height: 1.55;
}

.news-item a {
  border-bottom: 1px solid rgba(16, 16, 16, 0.35);
  font-weight: 750;
}

.news-item a:hover {
  border-color: currentColor;
}

.paper-section {
  background: var(--white);
}

.paper-feature {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(300px, 0.36fr) minmax(0, 0.64fr);
  margin-inline: auto;
  min-width: 0;
  width: min(100%, 1080px);
}

.paper-feature + .paper-feature {
  margin-top: clamp(20px, 3vw, 34px);
}

.paper-figure {
  align-content: center;
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: clamp(20px, 2.2vw, 26px);
}

.paper-figure-link {
  display: grid;
  gap: 14px;
}

.paper-figure img {
  background: #ffffff;
  border: 1px solid rgba(16, 16, 16, 0.1);
  width: 100%;
}

.paper-figure-link span {
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  justify-self: start;
  text-transform: uppercase;
}

.paper-copy {
  min-width: 0;
  padding: clamp(26px, 3vw, 36px);
}

.paper-venue {
  color: var(--raspberry);
  margin-bottom: 18px;
}

.paper-copy h3 {
  font-size: clamp(1.6rem, 1.8vw, 1.9rem);
  line-height: 1.03;
}

.paper-copy > p:not(.paper-venue):not(.paper-authors) {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.28vw, 1.08rem);
  margin-top: 20px;
  max-width: 760px;
}

.paper-authors {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.16vw, 1rem);
  line-height: 1.55;
  margin-top: 18px;
  max-width: 880px;
}

.paper-links {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.paper-links a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  width: fit-content;
}

.experience-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  min-height: 260px;
  padding: clamp(20px, 2.5vw, 28px);
}

.experience-card.feature {
  background:
    linear-gradient(135deg, rgba(201, 21, 88, 0.12), transparent 58%),
    var(--white);
  grid-column: span 2;
}

.experience-time {
  align-self: start;
  color: var(--muted);
}

.experience-card h3 {
  align-self: end;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
  overflow-wrap: break-word;
}

.experience-card a {
  border-bottom: 1px solid rgba(16, 16, 16, 0.28);
}

.experience-card a:hover {
  border-color: currentColor;
}

.experience-card p:last-child {
  color: var(--muted);
  margin-top: 18px;
}

.education-section {
  background: var(--paper);
}

.education-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: clamp(30px, 4vw, 52px);
}

.education-time {
  color: var(--raspberry);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.education-card h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 400;
  line-height: 0.98;
}

.education-program {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 850;
}

.education-meta {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(18px, 3vw, 34px);
  margin-top: 8px;
  padding-top: 18px;
}

.education-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.service-section {
  background: var(--white);
}

.service-list {
  border-top: 1px solid var(--line);
  list-style-position: inside;
  margin-inline: auto;
  max-width: 1080px;
}

.service-heading {
  color: var(--raspberry);
  font-size: 0.76rem;
  font-weight: 850;
  margin: 0 auto 12px;
  max-width: 1080px;
  text-transform: uppercase;
}

.service-item {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 20px 0;
}

.service-item a {
  border-bottom: 1px solid rgba(16, 16, 16, 0.28);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.4vw, 1.3rem);
  line-height: 1.25;
  margin-left: 10px;
}

.service-item a:hover {
  border-color: currentColor;
}

.project-section {
  background: var(--ink);
  color: var(--white);
}

.project-section .section-label {
  border-color: var(--line-light);
}

.project-section .section-label span {
  background: var(--white);
  color: var(--ink);
}

.project-section .section-label p {
  color: rgba(255, 255, 255, 0.62);
}

.kaggle-project {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  overflow: hidden;
}

.project-copy {
  padding: clamp(24px, 3.8vw, 44px);
}

.project-type {
  color: #ff77aa;
  display: inline-block;
  margin-bottom: 14px;
}

.project-copy h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.3rem);
  line-height: 1.02;
}

.project-copy > p:not(.project-type) {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.98rem, 1.28vw, 1.08rem);
  margin-top: 16px;
  max-width: 620px;
}

.project-links {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.project-links a {
  border-bottom: 1px solid currentColor;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  width: fit-content;
}

.project-visual {
  background:
    linear-gradient(145deg, rgba(201, 21, 88, 0.18), transparent 48%),
    linear-gradient(320deg, rgba(62, 36, 97, 0.34), transparent 52%),
    #f8f8f5;
  color: var(--ink);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 340px;
}

.score-panel {
  align-content: end;
  display: grid;
  min-height: 150px;
  padding: clamp(22px, 3vw, 32px);
}

.score-panel span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4.4vw, 4.2rem);
  line-height: 0.9;
}

.score-panel p,
.score-grid p {
  color: var(--muted);
  font-weight: 850;
  margin-top: 10px;
  text-transform: uppercase;
}

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

.score-grid div {
  border-right: 1px solid var(--line);
  min-height: 94px;
  padding: 18px;
}

.score-grid div:nth-child(2n) {
  border-right: 0;
}

.score-grid div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.score-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.48rem, 2.35vw, 2.15rem);
  font-weight: 400;
  line-height: 0.95;
}

.contact-section {
  background: var(--green);
  color: var(--white);
}

.contact-section .section-label {
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-section .section-label span {
  background: var(--white);
  color: var(--green);
}

.contact-section .section-label p {
  color: rgba(255, 255, 255, 0.62);
}

.contact-layout {
  display: grid;
  gap: clamp(24px, 4.6vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
}

.contact-copy {
  align-self: end;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.contact-actions .button-muted {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 clamp(20px, 6vw, 88px);
}
