:root {
  --bg: #fbfaf6;
  --paper: #ffffff;
  --paper-soft: #f7f4ed;
  --ink: #131711;
  --muted: #697067;
  --line: rgba(19, 23, 17, 0.12);
  --green: #1e4d39;
  --green-soft: #e8f1ea;
  --gold: #af873d;
  --shadow: 0 24px 70px rgba(22, 30, 24, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 241, 234, 0.92), rgba(251, 250, 246, 0) 420px),
    var(--bg);
  font-family: "Manrope", "Inter", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  font-family: "Inter", "Manrope", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4.6vw, 58px);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.18;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  padding: 8px 14px 8px 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 54px rgba(20, 28, 22, 0.09);
  backdrop-filter: blur(22px);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--paper-soft);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease;
}

main {
  overflow: hidden;
}

.hero,
.section,
.intro-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  padding: 34px 0 24px;
}

.hero-copy,
.hero-media,
.intro-strip,
.section {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-lead,
.section-heading p,
.contact-card p {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary,
.button.full {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(30, 77, 57, 0.24);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--green);
  background: var(--paper);
}

.button.full {
  width: 100%;
}

.hero-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transform: scale(1.04);
}

.media-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  padding: 16px;
  color: #fff;
  background: rgba(13, 25, 18, 0.42);
  backdrop-filter: blur(16px);
}

.media-note span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  padding: 0;
}

.intro-strip div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.65);
}

.intro-strip span,
.journey article span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.intro-strip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.intro-strip p,
.work-card p,
.journey p,
.news-card p,
.review-card p,
.team-card span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  margin-top: 22px;
  padding: clamp(24px, 4.6vw, 54px);
}

.section-heading {
  margin-bottom: 28px;
}

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.journey-track {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.runner {
  position: absolute;
  top: -7px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(30, 77, 57, 0.14);
  animation: travel 8s ease-in-out infinite;
}

.journey article {
  position: relative;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px 18px;
  background: var(--paper);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
}

.work-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper-soft);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.work-card:hover {
  box-shadow: 0 24px 60px rgba(22, 30, 24, 0.16);
}

.work-card img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(5, 12, 8, 0.78));
}

.work-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.work-card span,
.news-card time {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-card p {
  color: rgba(255, 255, 255, 0.78);
}

.news-grid,
.reviews-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.news-card,
.review-card,
.team-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}

.news-card,
.review-card {
  padding: 24px;
}

.news-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.photo-card {
  position: relative;
  height: 270px;
  border: 0;
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  background: var(--paper-soft);
  cursor: pointer;
}

.photo-card.tall {
  grid-row: span 2;
  height: auto;
  min-height: 552px;
}

.photo-card.wide {
  grid-column: span 2;
}

.photo-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.photo-card:hover img {
  filter: saturate(1.06);
  transform: scale(1.055);
}

.stars {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.review-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.team-grid {
  grid-template-columns: repeat(2, 1fr);
}

.team-card {
  overflow: hidden;
}

.team-card img {
  height: 440px;
  object-fit: cover;
  object-position: top center;
}

.team-card div {
  padding: 22px;
}

.team-card h3 {
  font-size: 26px;
}

.team-card a {
  color: var(--green);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 14px;
  margin-bottom: 34px;
}

.contact-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper);
}

.map {
  width: 100%;
  min-height: 410px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper-soft);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  width: min(100%, 1040px);
  max-height: 86svh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 28px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes travel {
  0%,
  100% {
    left: 0;
  }
  50% {
    left: calc(100% - 16px);
  }
}

@media (max-width: 1040px) {
  .main-nav {
    position: fixed;
    inset: 92px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .menu-button {
    display: block;
  }

  body.menu-open .menu-button span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  body.menu-open .menu-button span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

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

  .hero-media {
    min-height: 360px;
  }

  .hero-media img {
    min-height: 360px;
  }

  .intro-strip,
  .work-grid,
  .news-grid,
  .reviews-grid,
  .team-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .journey {
    grid-template-columns: repeat(3, 1fr);
  }

  .journey-track {
    display: none;
  }

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

@media (max-width: 720px) {
  .site-header,
  .hero,
  .section,
  .intro-strip {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

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

  .hero-copy {
    min-height: auto;
    padding: 24px;
  }

  .hero-media img {
    min-height: 300px;
  }

  .intro-strip,
  .journey {
    grid-template-columns: 1fr;
  }

  .journey article {
    min-height: auto;
  }

  .gallery-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .photo-card,
  .photo-card.tall,
  .photo-card.wide {
    flex: 0 0 82%;
    min-height: 360px;
    height: 360px;
    scroll-snap-align: start;
  }

  .team-card img {
    height: 360px;
  }

  .map {
    min-height: 320px;
  }
}

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

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