@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/montserrat-800.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/open-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/open-sans-600.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --page: #0b1122;
  --panel: #323b50;
  --footer: #324056;
  --text: #fff;
  --muted: #c2c9d8;
  --green: #00d646;
  --heading-font: Montserrat, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.9 "Open Sans", "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--green); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
::selection { color: var(--page); background: var(--green); }
.accent { color: var(--green); }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 8px 16px; z-index: 20; color: var(--page); background: var(--green); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); color: var(--page); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 10; transition: background .2s, box-shadow .2s; }
.site-header.scrolled { background: rgb(24 31 45 / 97%); box-shadow: 0 1px 0 rgb(255 255 255 / 8%); }
.navigation { display: flex; align-items: center; justify-content: center; max-width: 1000px; min-height: 64px; margin: auto; padding: 0 24px; }
.navigation a { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; color: #d3d7e1; font-size: 13px; transition: color .2s; }
.navigation a:hover, .navigation a.active { color: var(--green); }
.brand { padding: 0 24px 0 0; white-space: nowrap; }
.nav-links { display: flex; align-items: center; }
.nav-links > a { min-width: 130px; padding: 0 18px; border-left: 1px solid rgb(0 214 70 / 65%); }
.external-icon { margin-left: 6px; font-size: 12px; opacity: .65; }
.menu-toggle { display: none; }

.hero { height: 1080px; background: linear-gradient(rgb(27 35 49 / 52%), rgb(27 35 49 / 58%)), url("assets/hero.jpg") center 44% / cover no-repeat; }
.hero-content { max-width: 570px; margin: auto; padding-top: 220px; }
.hero h1 { font: 800 64px/1.4 var(--heading-font); letter-spacing: .14em; text-transform: uppercase; }
.hero-subtitle { margin-top: 120px; font-size: 24px; letter-spacing: .14em; }
.hero-subtitle .accent { font-weight: 600; }

.about { position: relative; z-index: 1; display: grid; grid-template-columns: 1.55fr 1fr; align-items: start; gap: 48px; max-width: 820px; margin: -230px auto 0; padding: 68px 56px; background: var(--panel); box-shadow: 0 15px 45px rgb(0 0 0 / 8%); }
.about-copy { text-align: center; font-size: 14px; line-height: 2.2; }
.about-copy p + p { margin-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 28px; border: 1px solid var(--green); border-radius: 0; text-decoration: none; font-size: 12px; transition: background .2s, color .2s; }
.button-outline { margin-top: 38px; background: transparent; color: #fff; text-transform: uppercase; }
.button-outline:hover { background: var(--green); color: var(--page); }
.taped-photo { position: relative; }
.taped-photo img { width: 100%; filter: grayscale(1); }
.taped-photo::before, .taped-photo::after { content: ""; position: absolute; top: 4px; z-index: 1; width: 76px; height: 24px; border: 1px solid rgb(235 235 235 / 28%); background: rgb(206 212 223 / 17%); box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.taped-photo::before { left: -27px; transform: rotate(-47deg); }
.taped-photo::after { right: -27px; transform: rotate(47deg); }
.portrait { margin-top: 6px; }

.section-title { text-align: center; font: 800 42px/1.4 var(--heading-font); text-transform: uppercase; letter-spacing: .16em; }
.projects { padding-top: 72px; padding-bottom: 32px; }
.projects .section-title { margin-bottom: 42px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; max-width: 1440px; margin: auto; }
.project { position: relative; display: block; overflow: hidden; aspect-ratio: 1.85; background: #222b3a; text-decoration: none; }
.project > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-caption { position: absolute; inset: auto 0 0; padding: 58px 28px 24px; background: linear-gradient(transparent, rgb(8 13 25 / 94%)); color: #fff; }
.project h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 21px; line-height: 1.5; font-weight: 600; }
.project h3 span { color: var(--green); }
.project p { max-width: 580px; margin-top: 8px; font-size: 13px; line-height: 1.7; color: #e0e5ed; }
.project:hover > img { transform: scale(1.035); }
.project:focus-visible { z-index: 1; outline-offset: -5px; }

.experience { padding: 76px 24px 96px; background: linear-gradient(rgb(62 70 91 / 92%), rgb(62 70 91 / 86%)), url("assets/mountains.jpg") center / cover no-repeat; }
.experience .section-title { margin-bottom: 100px; }
.timeline { position: relative; max-width: 940px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--green); }
.timeline-item { position: relative; width: 50%; min-height: 180px; padding: 0 68px 44px 24px; text-align: right; color: var(--muted); font-size: 14px; line-height: 1.9; }
.timeline-item + .timeline-item { margin-top: -60px; }
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 24px 44px 68px; text-align: left; }
.timeline-item::before { content: ""; position: absolute; top: 9px; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.timeline-item:nth-child(even)::before { left: -6px; right: auto; }
.timeline-item .date { margin-bottom: 14px; color: var(--green); font-size: 15px; font-weight: 600; letter-spacing: .03em; }
.timeline-item h3 { margin-bottom: 16px; color: #fff; font-size: 23px; line-height: 1.45; font-weight: 400; }
.timeline-item h3 a { text-decoration-thickness: 1px; }
.timeline-item .role { color: #fff; font-weight: 600; }
.timeline-item p + p:not(.role) { margin-top: 5px; }
.courses { margin: 5px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.9; }

.contact { background: var(--footer); padding: 0 24px; }
.contact-panel { display: grid; grid-template-columns: 1fr 48px 1.3fr; gap: 42px; max-width: 980px; margin: auto; padding: 58px 54px; background: var(--panel); }
.contact h2 { margin-bottom: 28px; font-size: 27px; font-weight: 400; text-transform: uppercase; }
.contact-copy p { line-height: 1.9; }
.contact-photo { max-width: 228px; margin: 36px 14px 0; }
.social-links { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 0; list-style: none; }
.social-links a { display: grid; place-items: center; width: 48px; min-height: 48px; transition: opacity .2s; }
.social-links a:hover { opacity: .65; }
.social-links img { width: 40px; height: 40px; object-fit: contain; }
.contact-compose { align-self: center; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
form label { display: block; margin-bottom: 12px; color: #e0e5ed; font-size: 12px; line-height: 1.5; }
input, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #e7e9ee; border-radius: 0; background: #fff; color: #222a39; font-size: 13px; line-height: 1.6; }
input { min-height: 44px; }
input::placeholder, textarea::placeholder { color: #676c76; opacity: 1; }
textarea { min-height: 138px; resize: vertical; }
.button-green { width: 100%; background: var(--green); color: #091b11; font-weight: 600; }
.button-green:hover { background: #3ce873; border-color: #3ce873; color: #091b11; }
.form-note { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.form-status { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.form-status:empty { display: none; }
.draft-link { font-size: 13px; }
.direct-email { display: inline-block; margin-top: 14px; font-size: 13px; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: center; align-items: center; gap: 48px; padding: 36px 24px; background: var(--footer); color: #c2c9d8; font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .project-caption { opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
  .project:hover .project-caption, .project:focus-within .project-caption { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .nav-links > a { min-width: 110px; padding-inline: 14px; }
  .project-grid { gap: 24px; }
  .timeline-item { padding-right: 46px; padding-left: 0; }
  .timeline-item:nth-child(even) { padding-left: 46px; padding-right: 0; }
  .contact-panel { padding: 48px 32px; gap: 28px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 86px; }
  .site-header { background: rgb(24 31 45 / 97%); }
  .navigation { flex-wrap: wrap; justify-content: space-between; min-height: 64px; padding: 10px 24px; }
  .brand { padding: 0; }
  .nav-links { width: 100%; flex-wrap: wrap; justify-content: center; padding: 12px 0; }
  .nav-links > a { min-width: 0; padding-inline: 14px; border: 0; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 0; padding: 0 4px 0 12px; background: transparent; color: #fff; font-size: 13px; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 19px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .js .nav-links { display: none; padding-bottom: 12px; }
  .js .menu-toggle[aria-expanded="true"] + .nav-links { display: grid; grid-template-columns: repeat(2, 1fr); }
  .js .nav-links > a { justify-content: flex-start; padding-left: 0; }
  .hero { height: 800px; background-position: 50% center; }
  .hero-content { max-width: 570px; padding: 198px 32px 0; }
  .hero h1 { font-size: clamp(35px, 7.9vw, 54px); letter-spacing: .1em; }
  .hero-subtitle { margin-top: 88px; font-size: 18px; letter-spacing: .1em; }
  .about { max-width: calc(100% - 48px); margin-top: -140px; padding: 40px 32px; gap: 30px; grid-template-columns: 1.4fr 1fr; }
  .about-copy { font-size: 13px; line-height: 2; }
  .button-outline { margin-top: 28px; padding: 12px 18px; gap: 12px; }
  .section-title { font-size: 32px; letter-spacing: .12em; }
  .projects { padding-top: 58px; padding-bottom: 24px; }
  .project-grid { gap: 20px; padding: 0 24px; }
  .project { aspect-ratio: auto; }
  .project > img { aspect-ratio: 1.65; height: auto; }
  .project-caption { position: static; padding: 18px; background: #1b2437; }
  .project h3 { font-size: 18px; }
  .project p { font-size: 12px; }
  .experience { padding: 64px 24px; }
  .experience .section-title { margin-bottom: 64px; }
  .timeline-item { font-size: 13px; padding-right: 28px; }
  .timeline-item:nth-child(even) { padding-left: 28px; }
  .timeline-item h3 { font-size: 20px; }
  .contact-panel { grid-template-columns: 1fr 1.2fr; gap: 32px; padding: 40px 28px; }
  .social-links { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact h2 { font-size: 24px; }
  .contact-copy p { font-size: 14px; }
}

@media (max-width: 520px) {
  .hero { height: 730px; }
  .hero-content { padding: 190px 24px 0; }
  .hero h1 { font-size: clamp(28px, 8.2vw, 43px); }
  .hero-subtitle { margin-top: 84px; font-size: 16px; }
  .about { grid-template-columns: 1fr; margin-top: -120px; padding: 40px 28px; }
  .about-copy { font-size: 14px; }
  .portrait { grid-row: 1; width: 190px; margin: 0 auto 8px; }
  .projects .section-title { margin-bottom: 32px; }
  .project-grid { grid-template-columns: 1fr; }
  .project h3 { font-size: 20px; }
  .project p { font-size: 13px; }
  .timeline::before { left: 6px; }
  .timeline-item, .timeline-item:nth-child(even) { width: 100%; min-height: 0; margin: 0; padding: 0 0 44px 38px; text-align: left; font-size: 14px; }
  .timeline-item + .timeline-item { margin-top: 0; }
  .timeline-item::before, .timeline-item:nth-child(even)::before { left: 1px; right: auto; }
  .timeline-item:last-child { padding-bottom: 12px; }
  .timeline-item .date { margin-bottom: 10px; }
  .timeline-item h3 { margin-bottom: 10px; font-size: 23px; }
  .courses { font-size: 13px; }
  .contact-panel { display: flex; flex-direction: column; gap: 32px; padding: 36px 24px; }
  .contact-photo { width: 190px; margin: 28px auto 0; }
  .social-links { gap: 8px; }
  .social-links a { width: 40px; }
  .social-links img { width: 30px; height: 30px; }
  .contact-compose { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  input, textarea { font-size: 16px; }
  .site-footer { flex-direction: column; gap: 4px; padding: 24px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
