:root {
  color-scheme: light;
  --ink: #20383a;
  --muted: #526565;
  --deep: #183c42;
  --green: #567d69;
  --gold: #d3a85e;
  --paper: #fffefa;
  --mist: #eef3ef;
  --line: #d9e1da;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

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

a {
  color: #2a665d;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #173d3a;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.17;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
}

h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.45rem;
}

p {
  max-width: 75ch;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.65rem;
}

figure {
  margin: 0;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--deep);
  transform: translateY(-160%);
}

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

.section-wrap {
  width: min(var(--content), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem max(1.5rem, calc((100% - var(--content)) / 2));
  background: rgba(255, 254, 250, 0.97);
  border-bottom: 1px solid rgba(32, 56, 58, 0.1);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--deep);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 58px;
  height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.8vw, 1.7rem);
  font-size: 0.9rem;
}

.site-nav > a,
.site-nav summary {
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.site-nav > a:hover,
.site-nav summary:hover {
  color: var(--green);
}

.site-nav details {
  position: relative;
}

.site-nav summary {
  list-style: none;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav summary::after {
  content: "⌄";
  padding-left: 0.35rem;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: -1rem;
  display: grid;
  min-width: 250px;
  padding: 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(24, 60, 66, 0.13);
}

.nav-dropdown a {
  padding: 0.5rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: var(--mist);
}

.hero {
  display: grid;
  min-height: min(680px, calc(100vh - 76px));
  align-items: center;
  padding: 5rem max(1.5rem, calc((100% - var(--content)) / 2));
  color: white;
  background:
    linear-gradient(90deg, rgba(14, 43, 46, 0.82), rgba(14, 43, 46, 0.2)),
    url("../images/cropped-Blauwbos-Home.jpg") center 48% / cover;
}

.hero-content {
  max-width: 790px;
}

.hero h1,
.hero p {
  color: white;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e4c990;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.7rem 1.25rem;
  color: white;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button:hover {
  color: white;
  background: var(--deep);
  border-color: var(--deep);
}

.button-outline {
  color: var(--deep);
  background: transparent;
  border-color: rgba(24, 60, 66, 0.35);
}

.button-outline:hover {
  color: white;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.75fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: 7rem;
}

.lead {
  color: #3e5855;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.timeline {
  margin-block: 1.5rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--line);
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 0.7rem 0.8rem;
}

.timeline li::before {
  position: absolute;
  top: 0.65rem;
  left: -1.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border: 3px solid var(--paper);
  border-radius: 50%;
  content: "";
}

.timeline strong {
  color: var(--deep);
}

.portrait {
  position: sticky;
  top: 110px;
  margin-top: 1rem;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait figcaption {
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.content-section {
  padding-block: 6rem;
}

.tinted {
  background: var(--mist);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.wide-image {
  margin-top: 2.5rem;
}

.wide-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

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

.topic-card {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: end;
  overflow: hidden;
  color: white;
  background: var(--deep);
  text-decoration: none;
}

.topic-card::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(14, 43, 46, 0.86));
  content: "";
}

.topic-card img,
.card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.card-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  background: linear-gradient(140deg, #7d9988, #345b54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.topic-card > span:last-child {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.topic-card:hover img,
.topic-card:hover .card-placeholder {
  transform: scale(1.04);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.detail-image {
  position: sticky;
  top: 110px;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.city-image {
  background:
    linear-gradient(145deg, rgba(24, 60, 66, 0.08), rgba(24, 60, 66, 0.3)),
    url("../images/cropped-Blauwbos-Home.jpg") center / cover;
}

.project-list {
  padding-left: 0;
  list-style: none;
}

.project-list li {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.project-list strong {
  color: var(--deep);
}

.experience-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  margin-top: 2rem;
}

.experience-links a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}

.contact-section {
  padding-block: 6rem;
  background: #e7eee8;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  align-items: center;
  gap: 3rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-actions .button {
  margin-top: 0.4rem;
}

address {
  padding: 1.7rem;
  background: var(--paper);
  font-style: normal;
}

.privacy {
  max-width: 850px;
}

.privacy h3 {
  margin-top: 2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-footer {
  padding-block: 2.5rem;
  color: #e8efea;
  background: var(--deep);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-content p {
  margin: 0;
  color: #d1ddd5;
  font-size: 0.9rem;
}

.footer-brand,
.footer-content > a:last-child {
  color: white;
  text-decoration: none;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.footer-brand span {
  display: block;
  color: #d1ddd5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding-block: 0.6rem;
  }

  .brand img {
    width: 48px;
    height: 38px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .nav-dropdown {
    z-index: 5;
  }

  .hero {
    min-height: 570px;
    padding-inline: 2rem;
  }

  .intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(210px, 0.7fr);
    gap: 2rem;
    padding-block: 5rem;
  }

  .detail-layout {
    grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1.35fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 9rem;
  }

  .section-wrap {
    width: min(100% - 2rem, var(--content));
  }

  .site-header {
    position: relative;
    padding-inline: 1rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.7rem;
  }

  .site-nav {
    align-items: flex-start;
    column-gap: 0.9rem;
    row-gap: 0.45rem;
    font-size: 0.78rem;
  }

  .nav-dropdown {
    position: fixed;
    top: 7.5rem;
    left: 0.75rem;
    right: 0.75rem;
    max-height: 65vh;
    overflow-y: auto;
  }

  .hero {
    min-height: 520px;
    padding: 4rem 1rem;
    background-position: 58% center;
  }

  .intro,
  .detail-layout,
  .contact-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-block: 4rem;
  }

  .portrait,
  .detail-image {
    position: static;
    max-height: none;
  }

  .portrait {
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .portrait img {
    aspect-ratio: 4 / 3;
  }

  .content-section,
  .contact-section {
    padding-block: 4rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .topic-card {
    min-height: 170px;
  }

  .topic-card > span:last-child {
    padding: 0.8rem;
    font-size: 1.05rem;
  }

  .experience-links {
    grid-template-columns: 1fr;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
