:root {
  color-scheme: light dark;
  --bg: #f3f5f3;
  --surface: #ffffff;
  --surface-strong: #e7ece9;
  --text: #11201f;
  --muted: #5b6866;
  --line: #ccd5d1;
  --accent: #0b6b68;
  --accent-strong: #075653;
  --accent-soft: #d9ece9;
  --on-accent: #ffffff;
  --header-bg: rgb(243 245 243 / 0.92);
  --radius-card: 16px;
  --radius-control: 10px;
  --radius-button: 999px;
  --content: 1240px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1716;
    --surface: #17201f;
    --surface-strong: #202b29;
    --text: #edf4f1;
    --muted: #a9b7b3;
    --line: #34423f;
    --accent: #54b9b3;
    --accent-strong: #75cbc6;
    --accent-soft: #173b39;
    --on-accent: #081615;
    --header-bg: rgb(15 23 22 / 0.92);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Aptos, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

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

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.brand img {
  width: 152px;
  height: auto;
}

.site-nav {
  justify-self: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
  color: var(--text);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--accent-strong);
}

.button:active {
  transform: translateY(1px);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section-compact {
  padding-block: clamp(48px, 6vw, 80px);
}

.section-muted {
  background: var(--surface-strong);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 5.7vw, 5.7rem);
}

h2 {
  max-width: 16ch;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
}

.hero {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  align-items: center;
  padding-block: clamp(40px, 7vw, 84px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.hero-copy .lead {
  max-width: 45ch;
  margin-bottom: 30px;
}

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

.hero-media {
  position: relative;
  min-height: min(68dvh, 720px);
}

.hero-media::before {
  position: absolute;
  inset: 6% -5% -5% 16%;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  content: "";
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.hero-note {
  position: absolute;
  left: -28px;
  bottom: 28px;
  max-width: 240px;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.88rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-intro,
.metric {
  padding: 26px clamp(18px, 3vw, 38px);
}

.trust-intro {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.metric {
  border-left: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: clamp(34px, 5vw, 64px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.project-card {
  grid-column: span 5;
  color: inherit;
  text-decoration: none;
}

.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3) {
  grid-column: span 7;
}

.project-card figure {
  margin: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  object-fit: cover;
  transition: transform 350ms ease;
}

.project-card:nth-child(even) img {
  aspect-ratio: 16 / 10;
}

.project-card:hover img {
  transform: scale(1.015);
}

.project-card figcaption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px 28px;
}

.project-card h3 {
  margin-bottom: 6px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card .arrow {
  color: var(--accent);
  font-size: 1.5rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: start;
}

.story-points {
  display: grid;
  gap: 32px;
  padding-top: 12px;
}

.story-point {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.story-point p {
  color: var(--muted);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--on-accent);
}

.cta-band h2 {
  margin: 0;
}

.cta-band .button {
  background: var(--on-accent);
  color: var(--accent-strong);
}

.page-hero {
  padding-block: clamp(70px, 10vw, 144px) clamp(56px, 8vw, 104px);
}

.page-hero .lead {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.archive-grid .project-card {
  grid-column: auto;
}

.detail-hero {
  padding-block: clamp(54px, 7vw, 90px);
}

.breadcrumbs {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--accent);
}

.detail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 36px;
}

.detail-head h1 {
  margin-bottom: 0;
}

.detail-facts {
  display: flex;
  gap: 30px;
}

.detail-fact span,
.detail-fact strong {
  display: block;
}

.detail-fact span {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-media img {
  width: 100%;
  max-height: 760px;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.detail-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.35fr);
  gap: clamp(48px, 10vw, 140px);
}

.detail-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-panel {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.contact-panel .button {
  width: 100%;
  margin-top: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 28px;
  margin: 0;
}

.contact-list div {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-list dd {
  margin: 4px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
}

.map-shell {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 42px;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
  text-align: center;
}

.map-shell p {
  max-width: 34ch;
  color: var(--muted);
}

.site-footer {
  padding-block: 68px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.8fr;
  gap: 60px;
}

.footer-brand img {
  width: 168px;
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 38ch;
  color: var(--muted);
}

.footer-nav h2,
.footer-contact h2 {
  margin-bottom: 18px;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-nav ul,
.footer-contact ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.footer-contact a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions > .button {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    padding: 34px 24px;
    background: var(--bg);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.35rem;
  }

  .hero-grid,
  .story-grid,
  .detail-copy,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 56dvh;
  }

  .hero-note {
    left: 20px;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-intro {
    grid-column: 1 / -1;
  }

  .metric:nth-child(even) {
    border-left: 0;
  }

  .metric:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand img {
    width: 138px;
  }

  .section {
    padding-block: 68px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.3rem);
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-media {
    min-height: 52dvh;
  }

  .hero-media::before {
    display: none;
  }

  .hero-note {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  .project-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: 1;
  }

  .cta-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-facts {
    flex-wrap: wrap;
  }

  .map-shell {
    min-height: 360px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

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

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

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