@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #070c14;
  --surface: #0d1522;
  --panel: #101b2a;
  --line: #223549;
  --text: #edf5ff;
  --muted: #aebdd0;
  --blue: #49b7ff;
  --heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 var(--body); }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: #b4e0ff; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #7bd7ff; outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, figure { margin-block-start: 0; }
p, li { color: var(--muted); }
p { margin-block-end: 1rem; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.02; }
h1 { font-size: clamp(4.8rem, 11.4vw, 10.5rem); letter-spacing: -.04em; margin-bottom: 1.15rem; }
h1 span { color: #a5d6ff; }
h2 { font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -.025em; margin-bottom: 1.1rem; }
h3 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin-bottom: .75rem; }
h4 { margin: 1rem 0 .25rem; }
button[hidden], form[hidden] { display: none; }
.wrap { width: min(1220px, calc(100% - 5rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--panel); z-index: 5; transform: translateY(-130%); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; font: 700 1.65rem/.94 var(--heading); white-space: nowrap; }
.brand small { display: block; margin-top: .32rem; color: var(--muted); font: 600 .72rem/1.15 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.monogram { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #4487b5; background: #0e2136; color: var(--blue); font-size: 1.45rem; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.25rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1.2rem; min-height: 46px; font-size: .93rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.button.primary { background: var(--blue); color: #070c14; }
.button.primary:hover { background: #91d4ff; color: #070c14; }
.button.outline, .menu-toggle { background: transparent; color: var(--text); border: 1px solid #46637d; }
.button.outline:hover { border-color: var(--blue); color: var(--blue); }
.hero { background: radial-gradient(ellipse at 79% 43%, #123b63 0%, transparent 51%), repeating-linear-gradient(0deg, transparent 0 63px, #5691c212 64px 65px), repeating-linear-gradient(90deg, transparent 0 63px, #5691c212 64px 65px), var(--bg); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; gap: clamp(2rem, 6vw, 6.5rem); padding-block: clamp(3.5rem, 8vw, 8rem); }
.eyebrow { margin-bottom: .75rem; color: var(--blue); font-size: .875rem; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; }
.hero-line { color: var(--text); font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 700; margin-bottom: .5rem; }
.intro { max-width: 33rem; }
.actions, .socials, .links { display: flex; flex-wrap: wrap; gap: .65rem 1.05rem; align-items: center; }
.actions { margin-top: 1.55rem; }
.socials { margin-top: 1.25rem; }
.socials a, .links a { font-weight: 700; }
.hero-media { margin: 0; border: 1px solid #476d8c; background: var(--surface); box-shadow: 20px 20px 0 #4a93ce21; }
.portrait { aspect-ratio: 1 / 1; overflow: hidden; background: #17324b; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.hero-media figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .9rem 1rem; }
.hero-media figcaption span { color: var(--muted); font-size: .875rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #0c1725; }
.stats > div { padding: 1.1rem 1.45rem; }
.stats > div + div { border-inline-start: 1px solid var(--line); }
.stats strong { color: var(--blue); display: block; font: 700 clamp(2rem, 5vw, 3.2rem)/1.1 var(--heading); }
.stats span { color: var(--muted); font-size: .92rem; }
.hero .stats { margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section { padding-block: clamp(3.75rem, 8vw, 7.75rem); border-bottom: 1px solid var(--line); }
.alternate { background: var(--surface); }
.section-head { margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 5.5rem); align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); min-width: 0; }
.plain, .tags, .results { list-style: none; padding: 0; }
.plain { margin: 0; }
.plain li { padding-block: .72rem; }
.plain li + li { border-top: 1px solid var(--line); }
.plain strong, .credential strong, .sub { color: var(--text); }
.skill-grid, .projects { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .85rem 0 0; }
.tags li { color: #c4ddf5; font-size: .875rem; padding: .17rem .55rem; background: #112237; border: 1px solid #30465e; }
.activity { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.activity img { width: 100%; }
.project { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.project.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.project-visual { background: #122338; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); display: grid; align-items: center; overflow: hidden; }
.project-visual img { width: 100%; height: 100%; object-fit: contain; }
.featured .project-visual { align-self: stretch; aspect-ratio: auto; min-height: 280px; border-right: 1px solid var(--line); border-bottom: 0; }
.mobile-visual { background: radial-gradient(ellipse, #28517b, #102037 67%); }
.mobile-visual img { height: 100%; width: auto; max-height: 100%; margin: auto; }
.project-body { padding: clamp(1.2rem, 3vw, 2rem); }
.results { display: grid; gap: .25rem; margin: 1.15rem 0 0; font-size: .92rem; }
.results strong { color: #8bd1ff; }
details { margin-top: 1.1rem; border-block: 1px solid var(--line); padding-block: .6rem; }
details summary { color: var(--text); font-weight: 700; }
details ul, .timeline ul:not(.tags) { padding-inline-start: 1.2rem; }
details li, .timeline li { margin-bottom: .28rem; }
.links { margin-top: 1rem; }
.timeline { display: grid; gap: 1.65rem; border-left: 1px solid #31516e; padding-left: 1.5rem; }
.timeline article { position: relative; }
.timeline article::before { position: absolute; left: calc(-1.5rem - 5px); top: .44rem; width: 9px; height: 9px; background: var(--blue); content: ""; }
.sub { font-weight: 700; }
.credential { display: flex; gap: .75rem; align-items: center; padding-block: .8rem; }
.credential + .credential { border-top: 1px solid var(--line); }
.credential img { width: 54px; height: 54px; object-fit: contain; }
.credential p { margin: .2rem 0 0; }
.study-stats { margin-top: 2rem; grid-template-columns: repeat(4, 1fr); }
.contact { background: radial-gradient(ellipse at 0% 100%, #13365b, transparent 65%), var(--bg); }
.text-email { font-size: clamp(1rem, 2vw, 1.23rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-form label { display: block; margin-bottom: .35rem; font-size: .92rem; font-weight: 700; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-bottom: .95rem; border: 1px solid #486681; padding: .65rem .75rem; color: var(--text); background: #0b1420; }
.contact-form textarea { min-height: 7rem; resize: vertical; }
.contact-form p { margin: .65rem 0 0; font-size: .875rem; }
.footer-inner { display: flex; gap: 1rem; justify-content: space-between; padding-block: 1.5rem; font-size: .875rem; color: var(--muted); }

@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; padding-block: .85rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; padding: .45rem .9rem; min-height: 44px; font-weight: 700; }
  nav { width: 100%; padding-top: .45rem; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + nav { display: none; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 2.2rem); }
  .hero-grid, .split, .skill-grid, .projects, .project.featured, .activity { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .hero-media { width: min(100%, 380px); box-shadow: 9px 9px 0 #4a93ce21; }
  .hero .stats, .study-stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: .85rem 1rem; }
  .stats > div:nth-child(odd) { border-inline-start: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero .stats > div:last-child { grid-column: 1 / -1; }
  .featured .project-visual { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
