:root {
  color-scheme: light;
  --ink: #073b3d;
  --muted: #3d5c5c;
  --paper: #f8f7f2;
  --ice: #edf6f5;
  --mint: #deeeeb;
  --deep: #07494b;
  --line: #c1d7d3;
  --body: 'Segoe UI', system-ui, sans-serif;
  --display: Impact, 'Arial Narrow', 'Franklin Gothic Heavy', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .94;
  text-transform: uppercase;
}
h2 { font-size: clamp(2.5rem, 5.6vw, 5.6rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.2; }
button { font: inherit; }
:focus-visible { outline: 3px solid #a45c23; outline-offset: 4px; }
[id] { scroll-margin-top: 1rem; }
.frame { width: min(100% - 3rem, 90rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
}
.wordmark { font-weight: 850; letter-spacing: .13em; }
.site-header a, .site-footer a { text-decoration: none; }
.site-header a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.85rem, 3vw, 2.5rem); font-size: .9rem; font-weight: 650; }
nav a { padding-block: .5rem; }
main { display: grid; gap: 1rem; }
.panel { min-width: 0; background: var(--ice); padding: clamp(1.4rem, 3.5vw, 3.7rem); }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  overflow: hidden;
  min-height: min(42rem, 72vw);
  background: radial-gradient(ellipse at 76% 5%, #d5e9e5 0 36%, transparent 36.2%), var(--ice);
}
.hero-copy { z-index: 1; animation: arrive .65s ease-out both; }
.label { font-size: .875rem; font-weight: 750; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.hero h1 { margin: .45rem 0 1rem; font-size: clamp(4.1rem, 11.45vw, 10.5rem); }
.hero-name { font-size: clamp(1.35rem, 3.2vw, 2.7rem); font-weight: 780; line-height: 1.18; }
.hero-role { margin-top: .35rem; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem .95rem;
  border: 1px solid transparent;
  background: var(--deep);
  color: white;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hero .button { margin-top: 1.5rem; }
.button:hover { background: white; color: var(--ink); border-color: var(--ink); }
.portrait {
  align-self: stretch;
  height: 100%;
  min-height: 0;
  max-height: 35rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 54% 55%;
  animation: arrive .85s ease-out both;
}
.profile-grid { display: grid; grid-template-columns: 1.5fr .88fr 1fr; gap: 1rem; }
.profile-grid h2 { font-size: clamp(1.85rem, 3.35vw, 3.55rem); margin-bottom: 1.15rem; }
.about { background: white; }
.about p { max-width: 60ch; }
.education { background: var(--mint); }
.education .label { margin-top: 1.35rem; }
.gpa { font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 800; line-height: 1.1; }
.gpa span { font-size: 1rem; font-weight: 600; }
.skills ul { list-style: none; margin: 0; padding: 0; }
.skills li { padding-block: .5rem; border-bottom: 1px solid var(--line); }
.skills li:first-child { padding-top: 0; }
.achievements { background: var(--deep); color: white; }
.achievements h2 { margin-bottom: 1.5rem; }
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.credential-grid li { background: var(--ice); color: var(--ink); padding: clamp(1rem, 2.5vw, 2rem); }
.credential-grid strong { display: block; font: 800 clamp(2rem, 4.8vw, 4.5rem)/1 var(--display); }
.credential-grid span { display: block; margin-top: .65rem; }
.entered { animation: arrive .55s ease-out both; }
.experience h2 { margin-bottom: 1.6rem; }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.job { background: #fff; }
.job img { aspect-ratio: 16 / 9; object-fit: cover; }
.job-copy { padding: clamp(1.1rem, 2.4vw, 2rem); }
.job .label { color: var(--muted); margin-bottom: .55rem; }
.role { font-weight: 650; margin: .35rem 0 .7rem; }
.gallery { background: var(--mint); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .65rem 1rem; margin-bottom: 1.5rem; }
.section-heading p { color: var(--muted); font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.gallery-photo { display: block; overflow: hidden; background: var(--deep); }
.gallery-photo:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-photo img { height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.gallery-photo:hover img { transform: scale(1.045); opacity: .86; }
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
  background: var(--deep);
  color: white;
}
.contact h2 { font-size: clamp(3.55rem, 10vw, 9rem); }
.contact address { font-style: normal; display: grid; gap: 1rem; }
.contact .label { display: block; color: #bfe2df; }
.contact a { text-underline-offset: .2em; overflow-wrap: anywhere; }
.site-footer { font-size: .9rem; }
.photo-dialog { width: min(92vw, 65rem); max-height: 94vh; border: 0; padding: 1rem; background: var(--paper); color: var(--ink); }
.photo-dialog::backdrop { background: rgb(5 31 32 / .83); }
.photo-dialog form { display: flex; justify-content: end; margin-bottom: .7rem; }
.photo-dialog img { width: 100%; max-height: 72vh; object-fit: contain; }
.photo-dialog figcaption { padding-top: .6rem; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 62rem) {
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-column: 1 / -1; }
}

@media (max-width: 42rem) {
  .frame { width: calc(100% - 1.25rem); }
  .site-header { padding: .65rem .25rem; gap: .1rem .75rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 5.5rem); }
  .portrait { height: auto; max-height: 26rem; aspect-ratio: 5 / 4; }
  .profile-grid, .experience-grid, .contact { grid-template-columns: 1fr; }
  .credential-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-photo:first-child { grid-row: auto; }
  .contact h2 br { display: none; }
}

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