:root {
  --ink: #edf3f7;
  --muted: #aebdc8;
  --surface: #111a21;
  --surface-raised: #19252e;
  --line: #31414c;
  --accent: #d73535;
  --accent-bright: #f05252;
  --paper: #f6f3ed;
  --paper-ink: #1c252b;
  --max-width: 72rem;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #0b1116;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 12, 16, .68), rgba(7, 12, 16, .97) 34rem),
    url("/assets/images/aboutme/cef334aef5347ea2cdf242bf582d265f.jpg") center top / cover no-repeat;
}

a { color: #ff8b82; text-underline-offset: .2em; }
a:hover { color: #ffb0aa; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .65rem 1rem;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: .35rem;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(9, 15, 20, .92);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 4.75rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand img { width: 3.25rem; height: 3.25rem; object-fit: contain; }

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  padding: .65rem .75rem;
  border-radius: .35rem;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: var(--surface-raised); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent-bright); }

main { min-height: calc(100vh - 15rem); }
.page-shell { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }

.page-hero {
  padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(2.75rem, 7vw, 5rem);
}
.eyebrow {
  margin: 0 0 .5rem;
  color: #ff8b82;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.page-hero h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.045em;
}
.page-hero .lede {
  max-width: 48rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.content-panel {
  margin-bottom: 4rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(17, 26, 33, .95);
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.22);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) 1fr;
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.profile-photo { width: 100%; border-radius: .5rem; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.35); }
.identity h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.identity .contact-line { margin: .3rem 0; color: var(--muted); }
.identity .bio { margin-top: 2rem; }
.identity .bio p { margin: 0 0 1rem; }
.social-links { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.social-links h3 { margin: 0 0 .6rem; font-size: 1rem; }
.social-links ul { margin: 0; padding-left: 1.2rem; }

.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  line-height: 1.15;
}
.intro { max-width: 58rem; margin: 0 0 2rem; color: var(--muted); font-size: 1.06rem; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.skill-group,
.job {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgba(25, 37, 46, .72);
}
.skill-group h2,
.job h2 { margin: 0 0 .7rem; color: #fff; font-size: 1.2rem; line-height: 1.3; }
.skill-group ul,
.job ul { margin: 0; padding-left: 1.2rem; }
.skill-group li + li,
.job li + li { margin-top: .38rem; }
.skill-group.wide { grid-column: 1 / -1; }

.jobs { display: grid; gap: 1rem; }
.job .dates { color: #ff9a92; font-weight: 700; }
.job ul { columns: 2; column-gap: 2.5rem; }
.job li { break-inside: avoid; }

.gallery-section { margin-bottom: 3.5rem; }
.gallery-section h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.gallery-grid button {
  min-height: 12rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.gallery-grid button:hover img { transform: scale(1.025); }
.gallery-note { margin: -.45rem 0 1rem; color: var(--muted); font-size: .9rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.video-grid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .5rem; background: #000; }

.notice { max-width: 48rem; font-size: clamp(1.15rem, 2.6vw, 1.45rem); }

.site-footer { border-top: 1px solid var(--line); background: #070c10; }
.footer-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer-shell p { margin: 0; }

.lightbox {
  width: min(94vw, 76rem);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: .6rem;
  background: #05080a;
  color: #fff;
  box-shadow: 0 2rem 7rem rgba(0,0,0,.7);
}
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox img { max-width: 94vw; max-height: 86vh; margin: auto; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(0,0,0,.68);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    display: none;
    padding: .7rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #0b1217;
  }
  .site-nav[data-open="true"] { display: grid; }
  .site-nav a { padding: .75rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { width: min(70%, 17rem); }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-group.wide { grid-column: auto; }
  .job ul { columns: 1; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
  .footer-shell { display: block; }
  .footer-shell p + p { margin-top: .35rem; }
}

@media (max-width: 440px) {
  .brand img { width: 2.75rem; height: 2.75rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-grid img { transition: none; }
}
