:root {
  --ink: #101116;
  --ink-soft: #555b68;
  --paper: #f5f6f8;
  --paper-deep: #e7e9ee;
  --night: #0b0c0f;
  --night-soft: #15171c;
  --night-line: #292c34;
  --white: #f7f8fb;
  --white-soft: #b8beca;
  --blue: #4058c7;
  --blue-bright: #8ea3ff;
  --line: #d7dae1;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Manrope", sans-serif;
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --scroll: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--night); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

::selection { background: var(--blue); color: var(--white); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #454a57; border: 3px solid var(--night); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; 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; top: .75rem; left: 50%; z-index: 9999; padding: .75rem 1rem; transform: translate(-50%, -180%); background: var(--white); color: var(--night); font-weight: 700; border-radius: .5rem; transition: transform .2s var(--ease); }
.skip-link:focus { transform: translate(-50%, 0); }

h1, h2, h3, h4, h5, p { margin-top: 0; }
h1, h2, h3, h4, h5 { font-family: var(--display); line-height: .98; letter-spacing: -.035em; }
h2 { max-width: 15ch; font-size: clamp(3rem, 6.6vw, 6rem); font-weight: 700; }

.section-shell { width: min(100%, var(--max)); margin: 0 auto; padding-inline: var(--gutter); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: .8rem var(--gutter);
  color: var(--white);
  background: rgba(11, 12, 15, .88);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  transition: background .35s var(--ease);
}
.site-header.is-compact { min-height: 64px; background: rgba(11, 12, 15, .96); }
.scroll-progress { position: absolute; bottom: -1px; left: 0; width: calc(var(--scroll) * 1%); height: 2px; background: var(--blue-bright); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: inherit; font-size: .82rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; background: var(--white); color: var(--night); border-radius: .55rem; font-family: var(--display); font-weight: 800; letter-spacing: -.05em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.2rem); }
.site-nav a { color: var(--white-soft); font-size: .78rem; font-weight: 650; text-decoration: none; transition: color .25s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--white); }
.site-nav .nav-resume { display: inline-flex; align-items: center; gap: .45rem; padding: .72rem 1rem; color: var(--night); background: var(--white); border-radius: .55rem; }
.site-nav .nav-resume:hover { color: var(--night); background: var(--blue-bright); }
.nav-resume svg, .button svg, .text-link svg, .project-copy a svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.nav-resume:hover svg, .button:hover svg, .text-link:hover svg, .project-copy a:hover svg { transform: translate(2px, -2px); }
.button-secondary:hover svg { transform: translateY(2px); }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .75rem; background: transparent; color: var(--white); border: 1px solid var(--night-line); border-radius: .55rem; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: .32rem 0; background: currentColor; transition: transform .25s var(--ease); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  grid-template-rows: 1fr;
  column-gap: clamp(3rem, 6vw, 7rem);
  width: 100%;
  min-height: 100svh;
  padding: clamp(8.5rem, 15vh, 11rem) max(var(--gutter), calc((100vw - var(--max)) / 2)) 0;
  color: var(--white);
  background: var(--night);
  overflow: hidden;
}
.capture .site-header { position: absolute; }
.capture .hero { min-height: 1000px; }
.capture body { padding-bottom: 8px; }
.hero::before { content: ""; position: absolute; inset: 76px auto auto 56%; width: 1px; height: calc(100% - 76px); background: linear-gradient(var(--night-line), transparent 82%); }
.hero-copy { position: relative; z-index: 1; align-self: center; max-width: 900px; padding-bottom: clamp(3rem, 7vh, 5.5rem); }
.hero h1 { max-width: 10.5ch; margin-bottom: 1.65rem; font-size: clamp(4.2rem, 8vw, 8.5rem); font-weight: 680; line-height: .85; letter-spacing: -.04em; text-wrap: balance; }
.hero h1 strong { color: var(--blue-bright); font-weight: inherit; }
.hero-intro { max-width: 62ch; margin-bottom: 2.15rem; color: var(--white-soft); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 50px; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: .6rem; font-size: .82rem; font-weight: 750; text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--white); color: var(--night); box-shadow: 0 8px 26px rgba(0,0,0,.22); }
.button-primary:hover { background: var(--blue-bright); box-shadow: 0 12px 32px rgba(0,0,0,.32); }
.button-secondary { color: var(--white); border-color: var(--night-line); background: var(--night-soft); }
.button-secondary:hover { border-color: #505563; background: #1d2026; }
.hero-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; }
.hero-links a { color: #9097a4; font-size: .72rem; font-weight: 650; text-decoration: none; }
.hero-links a:hover { color: var(--white); text-decoration: underline; }

.hero-portrait { position: relative; z-index: 1; align-self: center; width: min(100%, 440px); margin: 0 0 clamp(3rem, 7vh, 5.5rem) auto; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5.35; overflow: hidden; background: #272a31; border-radius: .85rem; box-shadow: 0 28px 70px rgba(0,0,0,.38); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.14); border-radius: inherit; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; filter: saturate(.82) contrast(1.03); }
.hero-portrait figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem; color: #7f8694; font-size: .65rem; font-weight: 650; }

.about { padding-block: clamp(7rem, 13vw, 13rem); }
.about-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(4rem, 10vw, 11rem); }
.about-layout h2 { max-width: 11ch; margin-bottom: 0; }
.about-story { max-width: 72ch; }
.about-story p { margin-bottom: 1.45rem; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.about-story p:first-child { color: var(--ink); font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.65; }
.about-story .about-interests { margin: 2.4rem 0 0; padding-top: 1.4rem; color: #666c78; font-size: .78rem; border-top: 1px solid var(--line); }
.skills-map { margin-top: clamp(6rem, 10vw, 10rem); }
.skills-heading { display: grid; grid-template-columns: minmax(220px, .5fr) 1fr; align-items: end; gap: clamp(2rem, 8vw, 8rem); padding-bottom: 2.5rem; }
.skills-heading h3 { margin-bottom: 0; font-size: clamp(2.25rem, 4vw, 4.5rem); }
.skills-heading p { max-width: 58ch; margin: 0; color: var(--ink-soft); }
.skill-groups { margin: 0; border-top: 1px solid var(--ink); }
.skill-groups > div { display: grid; grid-template-columns: minmax(220px, .4fr) 1fr; gap: clamp(2rem, 6vw, 7rem); padding: 1.65rem 0; border-bottom: 1px solid var(--line); }
.skill-groups dt { color: var(--ink); font-size: .76rem; font-weight: 750; }
.skill-groups dd { max-width: 85ch; margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.75; }
.projects-intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: clamp(3rem, 8vw, 9rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.projects-intro h2 { margin-bottom: 0; }
.projects-intro > p { max-width: 58ch; margin: 0; color: var(--ink-soft); font-size: clamp(1.02rem, 1.35vw, 1.18rem); }

.experience { padding-bottom: clamp(7rem, 13vw, 13rem); }
.experience-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding-bottom: 4.5rem; }
.experience-intro h2 { margin-bottom: 1.5rem; }
.experience-intro p { max-width: 66ch; margin-bottom: 0; color: var(--ink-soft); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .25rem; font-size: .78rem; font-weight: 750; text-decoration: none; border-bottom: 1px solid currentColor; }
.career { position: relative; display: grid; gap: clamp(3.5rem, 6vw, 5.5rem); margin: 0; padding: clamp(3rem, 5vw, 5rem) 0 0; list-style: none; border-top: 1px solid var(--ink); }
.career::before { content: ""; position: absolute; top: calc(clamp(3rem, 5vw, 5rem) + .65rem); bottom: .65rem; left: .22rem; width: 1px; background: var(--line); }
.career-item { position: relative; display: grid; grid-template-columns: minmax(220px, .38fr) 1fr; gap: clamp(2rem, 6vw, 7rem); padding-left: 1.6rem; }
.career-item::before { content: ""; position: absolute; z-index: 1; top: .45rem; left: 0; width: .48rem; height: .48rem; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px var(--paper); }
.career-featured { margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.career-featured::before { top: .32rem; left: -.1rem; width: .7rem; height: .7rem; }
.career-meta { display: flex; flex-direction: column; gap: .5rem; font-size: .76rem; font-weight: 650; }
.career-meta time { color: var(--blue); font-variant-numeric: tabular-nums; }
.career-meta span { color: var(--ink-soft); }
.career-body { max-width: 830px; }
.career-body h3 { margin-bottom: 1rem; font-size: clamp(1.8rem, 2.8vw, 3rem); }
.career-featured .career-body h3 { font-size: clamp(2.4rem, 3.8vw, 4rem); }
.career-compact .career-body h3 { font-size: clamp(1.65rem, 2.3vw, 2.4rem); }
.career-summary { max-width: 66ch; margin-bottom: 0; color: var(--ink-soft); font-size: 1rem; }
.career-featured .career-summary { color: var(--ink); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.career-compact .career-summary { max-width: 62ch; font-size: .9rem; }
.career-body ul { max-width: 73ch; margin: 1.8rem 0; padding-left: 1.2rem; color: var(--ink-soft); }
.career-body li { padding-left: .4rem; margin-bottom: .65rem; }
.career-stack { margin-bottom: 0; color: #686e7a; font-size: .7rem; font-weight: 700; }
.career-detail { max-width: 68ch; margin: .9rem 0 0; color: var(--ink-soft); font-size: .86rem; }
.career-detail + .career-stack { margin-top: .85rem; }
.projects { padding-block: clamp(7rem, 11vw, 10rem); color: var(--white); background: var(--night); }
.projects .section-shell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); row-gap: clamp(2.5rem, 4vw, 3.5rem); }
.projects-intro { grid-column: 1 / -1; padding-bottom: clamp(2.5rem, 4vw, 4rem); margin-bottom: .5rem; border-bottom: 1px solid var(--night-line); }
.projects-intro > div { max-width: 58ch; }
.projects-intro p { margin-bottom: 1.25rem; color: var(--white-soft); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.projects-intro .text-link { color: var(--white); }
.projects-intro .text-link:hover { color: var(--blue-bright); }
.project-grid, .project-history, .project-year-group, .project-gallery, .work-notes, .writing-list { display: contents; }
.project, .project-card, .writing-list article { min-width: 0; display: flex; flex-direction: column; background: transparent; }
.project-featured, .project-wide { grid-column: auto; }
.project-media, .project-card-media, .note-media { position: relative; display: flex; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f2ef; border-radius: .7rem; }
.project-featured .project-media, .project-wide .project-media { min-height: 0; border-radius: .7rem; }
.project-wide .project-media { order: initial; }
.project-media::after, .project-card-media::after, .note-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.12); border-radius: inherit; pointer-events: none; }
.project-media img, .project-card-media img, .note-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease), filter .65s var(--ease); }
.project-media:hover img, .project-card-media:hover img, .note-media:hover img { transform: scale(1.018); filter: contrast(1.035); }
.project-copy, .project-card-copy, .writing-list article > div { display: flex; flex: 1; flex-direction: column; padding: 1rem .1rem 0; }
.project-featured .project-copy, .project-wide .project-copy { justify-content: flex-start; min-height: 0; padding: 1rem .1rem 0; }
.project-copy > p, .project-card-copy > p { margin-bottom: .55rem; color: #858d9c; font-size: .62rem; font-weight: 700; }
.project-copy h3, .project-card-copy h3, .writing-list h3 { max-width: 28ch; margin-bottom: .65rem; color: var(--white); font-size: clamp(1.15rem, 1.55vw, 1.55rem); line-height: 1.08; text-wrap: balance; }
.project-copy > span, .project-card-copy > span, .writing-list p { display: block; max-width: 58ch; margin: 0; color: var(--white-soft); font-size: .76rem; line-height: 1.6; }
.project-copy > a, .project-card-copy > a, .writing-list > article > a:not(.note-media) { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; min-height: 44px; margin-top: auto; padding-top: .7rem; color: #a2a9b6; font-size: .66rem; font-weight: 750; text-decoration: none; border-bottom: 1px solid #555b68; }
.project-copy > a:hover, .project-card-copy > a:hover, .writing-list > article > a:not(.note-media):hover { color: var(--blue-bright); border-color: var(--blue-bright); }
.note-media > span { position: absolute; z-index: 1; left: .75rem; bottom: .75rem; padding: .38rem .5rem; color: var(--white); background: rgba(11,12,15,.84); font-size: .62rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.note-media time { color: inherit; }
.writing-list svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.writing-list a:hover svg { transform: translate(2px, -2px); }

.credentials { padding-block: clamp(7rem, 12vw, 12rem); }
.education-intro { display: grid; grid-template-columns: 1.08fr .92fr; align-items: end; gap: clamp(3rem, 8vw, 9rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.education-intro h2 { margin-bottom: 0; }
.education-intro > p { max-width: 58ch; margin: 0; color: var(--ink-soft); font-size: clamp(1.02rem, 1.35vw, 1.18rem); }
.education-list { border-top: 1px solid var(--ink); }
.education-item { display: grid; grid-template-columns: minmax(210px, .32fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 8rem); padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.education-meta { display: flex; flex-direction: column; gap: .75rem; }
.education-meta time { color: var(--blue); font-size: .7rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.education-meta span { color: var(--ink-soft); font-size: .78rem; font-weight: 650; }
.education-body { max-width: 850px; }
.education-body h3 { margin-bottom: .8rem; font-size: clamp(1.8rem, 3vw, 3.25rem); line-height: 1.05; }
.education-award { margin-bottom: 1.5rem; color: var(--ink); font-size: .82rem; font-weight: 700; }
.education-highlights { max-width: 72ch; margin: 0 0 1.75rem; padding-left: 1.15rem; color: var(--ink-soft); font-size: .84rem; }
.education-highlights li { margin-bottom: .65rem; padding-left: .35rem; }
.education-coursework { display: grid; grid-template-columns: minmax(140px, .27fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.education-coursework strong { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.education-coursework p { margin: 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.75; }

.contact { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: clamp(3rem, 8vw, 10rem); padding: clamp(7rem, 12vw, 12rem) var(--gutter); color: var(--white); background: #171b7a; }
.contact h2 { max-width: 12ch; margin-bottom: 1.5rem; font-size: clamp(3.5rem, 7vw, 7rem); }
.contact p { max-width: 60ch; margin-bottom: 0; color: #d5d9f2; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.contact-actions > a:not(.button) { color: #d5d9f2; font-size: .72rem; font-weight: 700; }
.contact-actions > a:not(.button):hover { color: var(--white); }
.button-light { color: var(--night); background: var(--white); box-shadow: 0 12px 32px rgba(7,9,42,.3); }
.button-light:hover { background: #dfe4ff; box-shadow: 0 16px 36px rgba(7,9,42,.4); }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 2rem; padding: 2rem var(--gutter); color: var(--white-soft); background: var(--night); border-top: 1px solid var(--night-line); }
.site-footer .brand { color: var(--white); }
.site-footer p { margin: 0; font-size: .68rem; }
.site-footer p:nth-child(2) { justify-self: center; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr minmax(280px, .55fr); column-gap: 3rem; }
  .hero::before { left: 61%; }
  .hero h1 { font-size: clamp(4rem, 8.5vw, 6.3rem); }
}

@media (max-width: 899px) {
  .projects .section-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .site-header { min-height: 66px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: grid; align-content: start; gap: 0; min-height: calc(100svh - 66px); padding: 1rem var(--gutter) 1.5rem; background: rgba(11,12,15,.99); border-bottom: 1px solid var(--night-line); transform: translateY(-115%); visibility: hidden; opacity: 0; transition: transform .35s var(--ease), opacity .25s ease, visibility .35s; }
  .site-nav.is-open { transform: translateY(0); visibility: visible; opacity: 1; }
  .site-nav a { padding: .8rem 0; font-size: .9rem; }
  .site-nav .nav-resume { justify-content: center; margin-top: .7rem; padding: .8rem 1rem; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; padding-top: 7.5rem; }
  .capture .hero { min-height: auto; }
  .capture body { padding-bottom: 26px; }
  .hero::before { display: none; }
  .hero-copy { padding-bottom: 3rem; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 6.2rem); }
  .hero-portrait { width: min(100%, 540px); margin: 0 0 3rem; }
  .hero-portrait figcaption { font-size: .62rem; }
  .about-layout, .skills-heading, .education-intro, .projects-intro { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
  .about-layout h2 { max-width: 12ch; margin-bottom: 1rem; }
  .skill-groups > div { grid-template-columns: minmax(170px, .42fr) 1fr; gap: 2rem; }
  .experience-intro { grid-template-columns: 1fr; align-items: start; }
  .career-item { grid-template-columns: 1fr; gap: 1.2rem; }
  .career-meta { flex-direction: row; justify-content: space-between; }
  .education-item { grid-template-columns: 1fr; gap: 1.25rem; }
  .education-meta { flex-direction: row; justify-content: space-between; }
  .contact { grid-template-columns: 1fr; align-items: start; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.15rem; }
  h2 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .brand > span:last-child { display: none; }
  .hero { padding-top: 6.8rem; }
  .hero h1 { font-size: clamp(3.5rem, 17.2vw, 5rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-links { justify-content: space-between; gap: .75rem; }
  .hero-portrait figcaption { flex-direction: column; gap: .2rem; }
  .skill-groups > div { grid-template-columns: 1fr; gap: .55rem; padding: 1.4rem 0; }
  .career-body h3 { font-size: 1.8rem; }
  .career-featured .career-body h3 { font-size: 2.15rem; }
  .career-meta { flex-direction: column; }
  .career-featured .career-summary { font-size: 1rem; }
  .career-item { padding-left: 1.35rem; }
  .education-meta { flex-direction: column; }
  .education-coursework { grid-template-columns: 1fr; gap: .55rem; }
  .contact h2 { font-size: clamp(3.3rem, 15vw, 5rem); }
  .contact-actions { align-items: flex-start; }
  .contact-actions .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr auto; }
}

@media (max-width: 599px) {
  .projects .section-shell { grid-template-columns: 1fr; row-gap: 3rem; }
  .projects-intro { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero-actions, .hero-links, .contact, .site-footer { display: none; }
  .hero { min-height: auto; padding: 2rem; color: #000; background: #fff; }
  .hero-portrait { max-width: 240px; }
  .projects { color: #000; background: #fff; }
}
