@font-face {
  font-family: 'Bodoni Moda';
  src: url('./fonts/bodoni-moda.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e9;
  --ink: #282b2a;
  --muted: #5c605d;
  --accent: #345973;
  --line: #d8d2c8;
  --contact: #e9e2d6;
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 1184px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { color: var(--ink); background: #ddd5c8; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 1px; }
main:focus { outline: none; }
button { font: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h2, h3 { text-wrap: balance; }
svg { width: 19px; height: 19px; flex-shrink: 0; }
.wrapper { width: calc(100% - 112px); max-width: var(--max-width); margin-inline: auto; }
.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: 10; top: 12px; left: 12px; padding: 10px 18px; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 102px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 28px; line-height: 1; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; gap: 32px; margin-left: auto; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; }
.site-header nav a:hover { text-decoration: underline; }
.text-link { display: inline-flex; align-items: center; gap: 9px; width: fit-content; min-height: 36px; text-decoration: underline; }
.resume-link { margin-left: 20px; font-size: 14px; }
.hero { display: grid; grid-template-columns: .9fr 1.35fr; column-gap: 72px; padding-top: 81px; }
.hero-animation { --flow-ink: #787b78; --flow-red: #b23b3d; position: relative; align-self: start; height: 340px; overflow: hidden; contain: paint; border-bottom: 1px solid var(--line); }
.hero-animation-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.degree { margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-intro { max-width: 460px; padding-top: 32px; }
.hero-intro h2 { margin-bottom: 20px; font-family: var(--serif); font-size: 33px; line-height: 1.2; letter-spacing: -.02em; }
.hero-lead { color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr .9fr; column-gap: 72px; margin-top: 50px; }
.hero-about-copy { max-width: 72ch; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-about-copy p + p { margin-top: 17px; }
.hero-link { margin-top: 25px; font-size: 14px; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-top: 47px; padding-block: 21px; border-block: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.work-section { padding-top: 75px; }
.section-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-topline h2, .section-grid h2, .activities-section > h2 { font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.project { border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project summary, .project-row { display: grid; grid-template-columns: 1.2fr 1fr 28px; align-items: center; column-gap: 36px; padding-block: 28px; }
.project summary { list-style: none; cursor: pointer; }
.project summary::-webkit-details-marker { display: none; }
.project summary::marker { content: ''; }
.project summary:hover .project-title { color: var(--accent); }
.project-title { display: block; font-family: var(--serif); font-size: 29px; line-height: 1.3; letter-spacing: -.025em; }
.project-category { display: block; margin-top: 9px; font-size: 12px; color: var(--muted); }
.project-category span { padding-inline: 6px; }
.project-summary { max-width: 31ch; color: var(--muted); font-size: 14px; }
.project-toggle { display: flex; justify-content: flex-end; color: var(--accent); }
.disclosure-icon { width: 23px; height: 23px; }
.project[open] .vertical { display: none; }
.project-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 17px 36px; padding: 0 64px 30px 0; font-size: 14px; }
.project-body p { grid-column: 2; max-width: 64ch; }
.project-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 20px; }
.section-grid { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 100px; }
.small-heading { margin-bottom: 12px; font-size: 12px; font-weight: 500; color: var(--ink); }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px 0; padding: 0; margin: 0; list-style: none; font-size: 13px; }
.skill-list li:not(:last-child)::after { content: '/'; padding-inline: 13px; color: #8c8982; }
.experience-section { padding-top: 52px; padding-bottom: 62px; border-top: 1px solid var(--line); }
.experience-item { padding-bottom: 32px; }
.experience-item + .experience-item { padding-top: 28px; border-top: 1px solid var(--line); }
.experience-item:last-child { padding-bottom: 0; }
.experience-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.experience-topline h3 { font-size: 17px; font-weight: 500; line-height: 1.5; }
.period { flex-shrink: 0; color: var(--muted); font-size: 11px; }
.role { font-size: 12px; color: var(--accent); margin-top: 7px; }
.experience-description { color: var(--muted); font-size: 14px; margin-top: 15px; }
.activities-section { padding-bottom: 93px; }
.activities-section > h2 { padding-top: 36px; border-top: 1px solid var(--line); }
.activities-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 54px; margin-top: 32px; }
.activity h3 { font-size: 16px; font-weight: 500; }
.activity-label { margin-top: 7px; margin-bottom: 14px; color: var(--accent); font-size: 11px; }
.activity-label:last-child { margin-bottom: 0; }
.activity > p:not(.activity-label) { color: var(--muted); font-size: 13px; }
.contact-section { background: var(--contact); padding-block: 70px 57px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.contact-grid h2 { font-family: var(--serif); font-size: clamp(42px, 4.8vw, 60px); letter-spacing: -.035em; line-height: 1.12; }
.email-link { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(17px, 1.8vw, 23px); text-underline-offset: 8px; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 22px; font-size: 13px; }
.contact-links svg { width: 15px; height: 15px; }
.copy-email { padding: 6px 0; border: 0; border-bottom: 1px solid transparent; color: #4f5755; background: transparent; cursor: pointer; font-size: 12px; }
.copy-email:hover { color: var(--ink); border-bottom-color: currentColor; }
.copy-status { min-height: 22px; font-size: 12px; color: var(--accent); margin-top: 8px; }
.site-footer { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; color: var(--muted); }
.site-footer .text-link { white-space: nowrap; }
.site-footer svg { width: 16px; height: 16px; }

@media (min-width: 1500px) { .hero { padding-top: 96px; } }
@media (max-width: 1050px) {
  .wrapper { width: calc(100% - 72px); }
  .hero { column-gap: 45px; }
  .hero-details { column-gap: 45px; }
  .section-grid { column-gap: 58px; }
  .experience-topline { display: block; }
  .period { margin-top: 5px; }
  .activities-grid { gap: 30px; }
  .contact-grid { gap: 45px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 20px; }
  .wrapper { width: calc(100% - 40px); }
  .site-header { min-height: 112px; flex-wrap: wrap; gap: 0; padding-top: 22px; padding-bottom: 9px; }
  .wordmark { font-size: 25px; }
  .resume-link { margin-left: auto; min-height: 35px; font-size: 12px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; margin-top: 10px; gap: 12px; }
  .site-header nav a { min-height: 38px; font-size: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 47px; }
  .hero-animation { height: 245px; margin-top: 35px; }
  .degree { font-size: 12px; margin-top: 17px; }
  .hero-intro { max-width: 470px; padding-top: 28px; }
  .hero-intro h2 { font-size: 29px; margin-bottom: 14px; }
  .hero-lead { font-size: 15px; }
  .hero-details { grid-template-columns: 1fr; gap: 25px; margin-top: 35px; }
  .hero-about-copy { font-size: 14px; }
  .hero-link { margin-top: 18px; font-size: 13px; }
  .hero-bottom { flex-direction: column; gap: 5px; margin-top: 35px; padding-block: 17px; font-size: 11px; }
  .work-section { padding-top: 47px; }
  .section-topline { margin-bottom: 24px; gap: 10px; }
  .project summary, .project-row { grid-template-columns: 1fr 24px; gap: 15px; padding-block: 25px; }
  .project-title { font-size: 26px; }
  .project-category { font-size: 11px; }
  .project-summary { grid-column: 1; grid-row: 2; font-size: 13px; max-width: none; }
  .project-toggle { grid-row: 1; grid-column: 2; }
  .project-body { grid-template-columns: 1fr; gap: 9px; padding: 0 0 25px; font-size: 13px; }
  .project-body p, .project-links { grid-column: 1; }
  .section-grid { grid-template-columns: 1fr; gap: 28px; }
  .experience-section { padding-top: 35px; padding-bottom: 50px; }
  .experience-topline h3 { font-size: 17px; }
  .activities-section { padding-bottom: 60px; }
  .activities-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 26px; }
  .activity-label { margin-bottom: 9px; }
  .contact-section { padding-block: 48px 35px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid h2 { font-size: 47px; }
  .email-link { font-size: 19px; gap: 10px; }
  .contact-links { gap: 23px; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; min-height: 114px; padding-block: 20px; }
  .site-footer p { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Temporary motion diagnostic: CSS effects and anchor scrolling stop too. */
html[data-motion-frozen="true"],
html[data-motion-frozen="true"] *,
html[data-motion-frozen="true"] *::before,
html[data-motion-frozen="true"] *::after {
  animation-play-state: paused !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
