:root {
  --green: #005945;
  --green-dark: #003f32;
  --blue: #4d8cab;
  --ink: #1a1a1a;
  --muted: #5f6764;
  --paper: #f4f4f4;
  --cream: #f6f0e4;
  --white: #fff;
  --shell: 1120px;
  --shadow: 0 22px 65px rgba(9, 34, 27, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--muted);
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section { padding: 110px 0; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.12;
}
h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 700; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 22px; }
.rule { display: block; width: 154px; height: 3px; margin: 32px 0; background: var(--green); }
.rule--light { background: rgba(255,255,255,.8); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border: 0;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid #f4c95d; outline-offset: 3px; }
.button--green { background: var(--green); }
.button--green:hover { background: var(--green-dark); }
.button--blue { background: var(--blue); }
.button--blue:hover { background: #376f8a; }

.site-header {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}
.site-header img { width: 205px; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.12)); }

.hero {
  min-height: 960px;
  padding: 270px 0 90px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), url("images/hero.webp") center/cover no-repeat;
}
.hero__inner { position: relative; min-height: 570px; }
.hero__card {
  position: relative;
  z-index: 2;
  width: min(68%, 700px);
  padding: 48px 34px;
  background: rgba(255,255,255,.79);
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow);
}
.hero h1 span { color: var(--green); }
.hero__subhead { max-width: 430px; color: var(--ink); font-size: 27px; font-weight: 900; line-height: 1.35; }
.hero__photos { position: absolute; z-index: 3; top: 30px; right: -18px; width: 46%; height: 430px; }
.photo-frame {
  position: absolute;
  width: 78%;
  padding: 0;
  border: 7px solid #fff;
  background: #fff;
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-frame--top { top: 0; right: 0; }
.photo-frame--bottom { right: 15%; bottom: 0; }

.about__grid, .story__grid, .contact__grid, .footer-main__grid { display: grid; gap: 64px; align-items: center; }
.about__grid { grid-template-columns: 1fr 1.05fr; }
.about__media { position: relative; align-self: stretch; min-height: 720px; }
.about__media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.about__portrait {
  position: absolute;
  right: -34px;
  bottom: 38px;
  width: 210px;
  aspect-ratio: 1;
  border: 9px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.why-card { margin: 32px 0; padding: 28px 32px; border-left: 5px solid var(--blue); background: #fff; }
.why-card h3 { color: var(--blue); }
.why-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.why-card li { position: relative; padding-left: 24px; }
.why-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.story { padding-bottom: 70px; overflow: hidden; }
.story__grid { grid-template-columns: .82fr 1.18fr; }
.story__copy { padding: 42px; background: #fff; box-shadow: var(--shadow); }
.gallery { margin-top: 90px; }
.gallery__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track button { flex: 0 0 min(32vw, 460px); padding: 0; border: 0; background: none; scroll-snap-align: start; }
.gallery__track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter .2s ease, transform .25s ease; }
.gallery__track button:hover img { filter: brightness(.92); transform: scale(1.012); }
.gallery__controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.gallery__arrow { width: 50px; height: 50px; border: 0; background: var(--green); color: #fff; font-size: 24px; }

.contact {
  color: #fff;
  background: url("images/project-3.webp") center/cover no-repeat;
}
.contact__overlay { padding: 105px 0; background: rgba(0,49,38,.82); }
.contact__grid { grid-template-columns: 1fr 1fr; }
.contact h2 { color: #fff; }
.contact-form { padding: 36px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 700; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #c7cfcc;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 3px solid rgba(77,140,171,.35); border-color: var(--blue); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__submit { width: 100%; }
.contact-form__submit[disabled] { cursor: wait; opacity: .65; transform: none; }
.form-status { min-height: 1.5em; margin: 16px 0 0; color: var(--ink); font-weight: 700; }
.form-status[data-state="success"] { color: var(--green); }
.form-status[data-state="error"] { color: #9b231d; }

.footer-main { padding: 85px 0; background: var(--green); color: rgba(255,255,255,.84); }
.footer-main__grid { grid-template-columns: 1.1fr .9fr 1fr; }
.footer-brand img { width: 210px; margin-bottom: 22px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.footer-main h2 { color: #fff; font-size: 1.7rem; }
address { display: grid; gap: 16px; font-style: normal; }
address a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-photo { width: 100%; aspect-ratio: 1.08; object-fit: cover; border: 6px solid rgba(255,255,255,.85); }
.footer-bottom { padding: 28px 0; background: var(--cream); color: #3b403e; font-size: 15px; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-bottom a { font-weight: 700; }

.lightbox { max-width: min(94vw, 1200px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: -46px; right: 0; border: 0; background: transparent; color: #fff; font-size: 38px; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .site-header img { width: 160px; }
  .hero { min-height: auto; padding: 235px 0 75px; }
  .hero__inner { min-height: 820px; }
  .hero__card { width: 82%; }
  .hero__photos { top: auto; right: 0; bottom: 0; width: 62%; height: 310px; }
  .about__grid, .story__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 560px; }
  .story__copy { order: 2; }
  .gallery__track button { flex-basis: 55vw; }
  .footer-main__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .section { padding: 78px 0; }
  .site-header { top: 18px; }
  .site-header img { width: 135px; }
  .hero { padding-top: 190px; background-position: 56% center; }
  .hero__inner { min-height: 860px; }
  .hero__card { width: 100%; padding: 32px 24px; }
  .hero__subhead { font-size: 22px; }
  .hero__photos { width: 85%; height: 270px; }
  .photo-frame { border-width: 5px; }
  .about__media { min-height: 430px; }
  .about__portrait { right: -8px; width: 150px; border-width: 6px; }
  .why-card { padding: 24px; }
  .why-card ul { grid-template-columns: 1fr; }
  .story__copy { padding: 28px 24px; }
  .gallery__track button { flex-basis: 82vw; }
  .contact__overlay { padding: 75px 0; }
  .contact-form { padding: 26px 22px; }
  .footer-main__grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom__inner { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
