:root {
  --ink: #171717;
  --muted: #5d6664;
  --paper: #f5f8f7;
  --surface: #ffffff;
  --line: #d9e2df;
  --teal: #0f766e;
  --teal-dark: #0b4c47;
  --gold: #b7791f;
  --wine: #8a2432;
  --shadow: 0 24px 70px rgba(17, 24, 24, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.42);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 247, 0.88);
  border-bottom: 1px solid rgba(217, 226, 223, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal-dark);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #27312f;
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.65rem;
}

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

.section-band {
  padding: 6rem 1rem;
}

.section-band.light {
  background: var(--surface);
}

.hero {
  min-height: 820px;
  padding-top: 3.8rem;
  padding-bottom: 4rem;
  color: #fff;
  background: linear-gradient(135deg, #0b4c47 0%, #0f5f58 46%, #1b2826 100%);
}

.hero-inner,
.about-grid,
.timeline-layout,
.project-grid,
.achievement-grid,
.presence-grid,
.gallery-grid,
.contact-layout,
.site-footer,
.section-head {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  grid-column: 1 / 7;
  padding-right: 1rem;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: 4.2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title {
  margin: 1.4rem 0 0;
  max-width: 680px;
  color: #d8f3ee;
  font-size: 1.35rem;
  font-weight: 700;
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 640px;
  margin: 1rem 0 0;
  color: #e6f3ef;
  font-size: 1.04rem;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.78rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-media {
  grid-column: 8 / 13;
  align-self: stretch;
}

.hero-media picture,
.about-photo picture,
.presence-photo picture,
.project-media picture,
.gallery-button picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-media picture {
  height: min(68vh, 680px);
  box-shadow: var(--shadow);
  background: #e7eeec;
}

.hero-media img,
.about-photo img,
.presence-photo img,
.project-media img,
.gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  object-position: center 20%;
}

.image-caption,
figcaption {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.hero-metrics {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.6rem 0 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-metrics div {
  padding: 1.25rem;
  background: rgba(12, 39, 36, 0.62);
}

.hero-metrics dt {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 0.45rem 0 0;
  color: #dcefed;
  font-size: 0.94rem;
}

.section-head {
  margin-bottom: 2.4rem;
}

.section-head h2,
.presence-copy h2,
.contact-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.18fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  margin: 0;
}

.about-photo picture {
  aspect-ratio: 4 / 5;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.1);
}

.about-photo figcaption,
.presence-photo figcaption,
.project-media figcaption,
.gallery-item figcaption {
  color: var(--muted);
}

.about-copy {
  font-size: 1.04rem;
}

.about-copy p:first-child {
  margin-top: 0;
}

.identity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.identity-list li {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf9;
}

.identity-list strong,
.identity-list span,
.identity-list a {
  display: block;
  overflow-wrap: anywhere;
}

.identity-list strong {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.skill-grid,
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card,
.achievement,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(20, 30, 30, 0.06);
}

.skill-card,
.achievement {
  padding: 1.35rem;
}

.skill-card h3,
.achievement h3,
.project-card h3,
.timeline h3,
.timeline-item h4 {
  margin: 0;
  line-height: 1.2;
}

.skill-card p,
.achievement p,
.project-card p,
.timeline-item p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
}

.tag-list li {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  padding: 0.34rem 0.65rem;
  color: var(--teal-dark);
  background: #eff8f6;
  font-size: 0.85rem;
  font-weight: 750;
}

.timeline-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.timeline {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.timeline h3 {
  margin-bottom: 1.25rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.45rem 1.35rem;
  border-left: 2px solid rgba(15, 118, 110, 0.22);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.3rem;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px #e5f4f1;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  overflow: hidden;
}

.project-card:not(.featured) {
  display: flex;
  flex-direction: column;
}

.project-card.featured {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) 1.08fr;
  grid-column: span 3;
}

.project-media {
  margin: 0;
  background: #e9efed;
}

.project-media picture {
  height: 320px;
  border-radius: 0;
}

.project-card.featured .project-media picture {
  height: 100%;
  min-height: 360px;
}

.project-body {
  padding: 1.35rem;
  min-width: 0;
}

.project-kicker {
  margin: 0 0 0.5rem;
  color: var(--wine);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.route-card {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-height: 360px;
  padding: 1.35rem;
  background: #0e2e2b;
}

.route-card svg {
  width: 100%;
}

.route-card rect {
  fill: #143b37;
}

.route-card .grid-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.route-card polyline {
  fill: none;
  stroke: #d9a63b;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-card circle {
  fill: #ffffff;
  stroke: var(--wine);
  stroke-width: 3;
}

.route-card a {
  justify-self: start;
  color: #fff;
  font-weight: 800;
}

.achievement span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  aspect-ratio: 1;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal-dark);
  font-weight: 900;
}

.presence-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas:
    "copy wide"
    "small wide";
  gap: 1rem;
  align-items: stretch;
}

.presence-copy {
  grid-area: copy;
  align-self: center;
}

.presence-copy p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.presence-photo {
  margin: 0;
}

.presence-photo picture {
  height: 100%;
  min-height: 280px;
}

.presence-photo.wide {
  grid-area: wide;
}

.presence-photo:not(.wide) {
  grid-area: small;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  min-width: 0;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-button {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.gallery-button picture {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: #e9efed;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.gallery-item.wide .gallery-button picture {
  aspect-ratio: 16 / 10;
}

.gallery-button:hover picture {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(20, 30, 30, 0.12);
}

.gallery-item figcaption {
  font-size: 0.84rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
}

.contact-links a {
  display: inline-flex;
  width: fit-content;
  font-weight: 800;
  color: var(--teal-dark);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-form label {
  font-weight: 850;
  color: #24302e;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd8d5;
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: #fbfdfc;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .button {
  margin-top: 0.65rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 680px;
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(8, 17, 16, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(92vw, 920px);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #0d2421;
}

.lightbox figcaption {
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (max-width: 1040px) {
  .hero {
    background: linear-gradient(135deg, #0b4c47 0%, #0f5f58 52%, #1b2826 100%);
  }

  .hero-copy {
    grid-column: 1 / 8;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .hero-media {
    grid-column: 8 / 13;
  }

  .skill-grid,
  .achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card,
  .project-card.featured {
    grid-column: auto;
  }

  .project-card.featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem;
  }

  .section-band {
    padding: 4.2rem 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    background: var(--teal-dark);
  }

  .hero-inner,
  .about-grid,
  .timeline-layout,
  .presence-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media,
  .hero-metrics {
    grid-column: 1 / -1;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: 2.8rem;
  }

  .hero-title {
    font-size: 1.12rem;
    max-width: 30ch;
  }

  .hero-lead {
    max-width: 34ch;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-media picture {
    height: 560px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .presence-copy h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .identity-list,
  .skill-grid,
  .achievement-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .presence-grid {
    grid-template-areas:
      "copy"
      "wide"
      "small";
  }

  .gallery-item.wide {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 2.28rem;
  }

  .hero-media picture {
    height: 430px;
  }

  .button {
    width: 100%;
  }

  .project-media picture {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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