:root {
  --bg: #08100f;
  --surface: #101a19;
  --surface-2: #142120;
  --ink: #edf5f2;
  --muted: #9fb1ad;
  --line: rgba(214, 230, 224, 0.14);
  --accent: #36c19a;
  --accent-dark: #7ee0c0;
  --navy: #9fc3df;
  --soft-green: rgba(54, 193, 154, 0.12);
  --soft-blue: rgba(159, 195, 223, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --max: 1160px;
  --header: 76px;
  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: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--accent);
  color: #06100e;
  padding: 10px 14px;
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(8, 16, 15, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(15, 107, 87, 0.28);
  border-radius: 8px;
  color: #06100e;
  background: var(--soft-green);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(10px, 1.6vw, 22px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--header)));
  display: grid;
  align-items: center;
  padding-top: clamp(34px, 4vw, 70px);
  padding-bottom: clamp(58px, 7vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(54, 193, 154, 0.24), transparent 32%),
    radial-gradient(circle at 20% 72%, rgba(159, 195, 223, 0.16), transparent 34%),
    linear-gradient(135deg, #08100f 0%, #101a19 48%, #071413 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 15, 0.22) 0%, rgba(8, 16, 15, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 16, 15, 0.4), transparent 58%);
  z-index: 0;
}

.hero-grid,
.two-column,
.resume-grid,
.project-list,
.archive-list,
.split-header,
.location-map,
.contact-panel {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.64fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.eyebrow,
.section-label {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.section-label {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.6rem, 9vw, 7.2rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero h1 {
  color: #fff;
}

.headline {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  font-weight: 760;
  line-height: 1.2;
}

.hero .headline {
  color: rgba(255, 255, 255, 0.92);
}

.intro {
  max-width: 660px;
  margin-bottom: 34px;
  font-size: 1.08rem;
}

.hero .intro {
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 760;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #06100e;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--ink);
}

.button.text {
  color: var(--accent-dark);
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.hero .button.text {
  color: #fff;
}

.button.compact {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 0.95rem;
}

.profile-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(16, 26, 25, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.panel-kicker,
.profile-list dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-kicker {
  margin-bottom: 20px;
}

.profile-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-list div {
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-list div:last-child {
  padding-bottom: 0;
}

.profile-list dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 650;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.section-heading h2,
.split-header h2,
.contact-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-body p {
  font-size: 1.04rem;
}

.location-map {
  margin-top: 58px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(22, 51, 74, 0.06);
}

.map-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(20px, 4vw, 54px);
  align-items: end;
  margin-bottom: 22px;
}

.map-intro .eyebrow {
  margin-bottom: 0;
}

.map-intro h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1.12;
}

.map-track {
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 8px;
  border-bottom: 1px solid var(--line);
  background: #0b1514;
}

.map-track svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
}

.map-track path {
  fill: none;
  stroke-linecap: round;
}

.route-base {
  stroke: var(--line);
  stroke-width: 18;
}

.route-active {
  stroke: var(--accent);
  stroke-width: 4;
}

.map-track circle {
  fill: var(--surface);
  stroke: var(--accent-dark);
  stroke-width: 4;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.timeline div {
  position: relative;
  padding: 24px 18px 4px;
  border-right: 1px solid var(--line);
}

.timeline div:last-child {
  border-right: 0;
}

.timeline div::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(15, 107, 87, 0.35);
}

.timeline span,
.project-card span {
  color: var(--accent);
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin: 8px 0;
  font-size: 1.08rem;
}

.timeline p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.resume,
.portfolio {
  background: #0a1312;
}

.split-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.split-header p {
  max-width: 470px;
  margin-bottom: 4px;
}

.experience-focus {
  width: min(100%, var(--max));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.focus-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.focus-card picture,
.focus-card img {
  display: block;
  width: 100%;
}

.focus-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft-blue);
}

.focus-card > div {
  padding: clamp(22px, 3vw, 30px);
}

.focus-card .eyebrow {
  margin-bottom: 10px;
}

.focus-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.focus-card p:last-child {
  margin-bottom: 0;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.resume-block,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.resume-block {
  padding: clamp(22px, 3vw, 30px);
}

.resume-block.wide {
  grid-column: 1 / -1;
}

.resume-block h3 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 1.35rem;
}

.role + .role,
.resume-block h3 + p,
.resume-block .role + h3 {
  margin-top: 28px;
}

.role h4,
.skill-columns h4,
.project-card h3,
.archive-item h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1.05rem;
}

.role ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.skill-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 28px;
}

.skill-columns p,
.project-card p,
.archive-item p {
  margin-bottom: 0;
}

.featured-project {
  width: min(100%, var(--max));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.95fr) minmax(260px, 0.68fr);
  border: 1px solid rgba(15, 107, 87, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(22, 51, 74, 0.08);
}

.project-video {
  position: relative;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(54, 193, 154, 0.2), rgba(159, 195, 223, 0.08)),
    repeating-linear-gradient(90deg, rgba(237, 245, 242, 0.06) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(237, 245, 242, 0.05) 0 1px, transparent 1px 36px),
    #0b1514;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-content {
  padding: clamp(26px, 5vw, 54px);
}

.project-content h3 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
}

.project-facts {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.project-facts div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-facts dt {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 5px 0 0;
  color: var(--muted);
}

.project-summary {
  display: grid;
  align-content: stretch;
  background: rgba(159, 195, 223, 0.07);
  border-left: 1px solid var(--line);
}

.project-summary div {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid rgba(22, 51, 74, 0.12);
}

.project-summary div:last-child {
  border-bottom: 0;
}

.project-summary span {
  color: var(--accent-dark);
  font-weight: 850;
}

.project-summary strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.project-summary p {
  margin: 0;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-card {
  padding: 24px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 107, 87, 0.26);
  box-shadow: 0 18px 44px rgba(22, 51, 74, 0.08);
}

.project-card h3 {
  margin-top: 22px;
}

.project-card p + p {
  margin-top: 16px;
}

.innovation {
  background:
    linear-gradient(115deg, rgba(10, 28, 36, 0.96), rgba(8, 54, 45, 0.86)),
    #08100f;
}

.innovation .section-label,
.innovation h2,
.innovation p {
  color: #fff;
}

.innovation p {
  color: rgba(255, 255, 255, 0.78);
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.source-gallery {
  width: min(100%, var(--max));
  margin: 52px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: 24px;
}

.gallery-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.gallery-heading p {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(54, 193, 154, 0.36);
  background: var(--surface-2);
}

.gallery-token {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(54, 193, 154, 0.28);
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--soft-green);
  font-size: 0.78rem;
  font-weight: 850;
}

.gallery-item span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-item strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.gallery-item p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.archive-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.archive-item time {
  color: var(--accent-dark);
  font-weight: 800;
}

.archive-item a,
.muted-link {
  color: var(--accent-dark);
  font-weight: 800;
}

.contact {
  padding-bottom: clamp(44px, 7vw, 84px);
}

.contact-panel {
  padding: clamp(34px, 6vw, 72px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10, 92, 76, 0.96), rgba(12, 38, 54, 0.96)),
    #0a5c4c;
}

.contact-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-panel h2 {
  max-width: 960px;
  margin-bottom: 22px;
  color: #fff;
}

.contact-panel .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel .button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .featured-project {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 620px;
  }

  .timeline,
  .resume-grid,
  .skill-columns,
  .project-list,
  .gallery-grid,
  .experience-focus {
    grid-template-columns: 1fr 1fr;
  }

  .map-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .timeline div:nth-child(2n) {
    border-right: 0;
  }

  .resume-block.wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --header: 68px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 22px;
    background: rgba(247, 249, 247, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.24s ease,
      opacity 0.24s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(3.15rem, 18vw, 4.7rem);
  }

  .headline {
    font-size: 1.25rem;
  }

  .hero-actions,
  .contact-actions,
  .split-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline,
  .resume-grid,
  .skill-columns,
  .project-list,
  .gallery-grid,
  .experience-focus,
  .gallery-heading {
    grid-template-columns: 1fr;
  }

  .location-map {
    padding: 20px;
  }

  .map-track svg {
    max-height: 220px;
  }

  .timeline {
    border-top: 1px solid var(--line);
  }

  .timeline div,
  .timeline div:nth-child(2n) {
    padding: 20px 0 18px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline div:last-child {
    border-bottom: 0;
  }

  .timeline div::before {
    top: 27px;
    left: 0;
  }

  .archive-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

}

@media (max-width: 430px) {
  .brand span:last-child {
    display: none;
  }

  .profile-panel,
  .resume-block,
  .project-card,
  .contact-panel {
    padding: 20px;
  }
}
