:root {
  --paper: #f9f9f6;
  --white: #fff;
  --graphite: #262a24;
  --ink: #242722;
  --muted: #5b6057;
  --line: #d5d8ce;
  --olive: #4d5b44;
  --light-ink: #d7dcd0;
  --display: Prata, Georgia, serif;
  --body: Manrope, Arial, sans-serif;
  --gutter: clamp(23px, 5.55vw, 94px);
  color: var(--ink);
  background: var(--paper);
  font: 500 15px/1.65 var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, figure, h1, h2, h3, dl, dd { margin: 0; }
button, select { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #80916c; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 30;
  inset: 1rem auto auto 1rem;
  padding: .5rem 1rem;
  transform: translateY(-180%);
  background: white;
}
.skip:focus { transform: none; }
.section { padding-block: clamp(62px, 8.2vw, 128px); }
.section-label {
  width: max-content;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.section-label::before {
  content: "";
  width: 23px;
  height: 1px;
  background: currentColor;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1.13; letter-spacing: -.055em; text-wrap: balance; }
h3 { font-size: clamp(26px, 3vw, 43px); line-height: 1.12; letter-spacing: -.036em; }

.header { position: absolute; z-index: 5; top: 0; inset-inline: 0; color: var(--white); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 85px;
  border-bottom: 1px solid rgb(255 255 255 / 32%);
}
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-size: 19px; font-weight: 800; letter-spacing: .045em; }
.tree {
  display: block;
  width: 22px;
  height: 25px;
  background: currentColor;
  clip-path: polygon(50% 1%, 79% 45%, 66% 45%, 93% 82%, 57% 82%, 57% 100%, 43% 100%, 43% 82%, 7% 82%, 34% 45%, 21% 45%);
}
.nav { display: flex; gap: clamp(20px, 3vw, 50px); font-size: 13px; font-weight: 700; }
.header a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-contact { justify-self: end; font-size: 13px; font-weight: 800; border: 1px solid rgb(255 255 255 / 44%); padding: 9px 14px; }
.header-contact span { margin-inline-start: 12px; }
.menu-toggle, .nav-contact { display: none; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #162019; color: var(--white); }
.hero-photo, .hero-shade, .hero-plan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgb(16 23 17 / 85%), rgb(16 23 17 / 48%) 48%, rgb(16 23 17 / 7%) 83%),
    linear-gradient(0deg, rgb(12 18 14 / 65%), transparent 28%, transparent 78%, rgb(12 18 14 / 55%));
}
.hero-plan {
  object-fit: cover;
  object-position: 55% center;
  clip-path: inset(0 0 0 100%);
  transition: clip-path .85s cubic-bezier(.55, 0, .2, 1);
}
.hero[data-view="plan"] .hero-plan { clip-path: inset(0); }
.hero[data-intro] .hero-plan { animation: plan-intro 1.7s cubic-bezier(.55, 0, .2, 1) both; }
@keyframes plan-intro {
  0% { clip-path: inset(0); }
  30% { clip-path: inset(0 0 0 43%); }
  100% { clip-path: inset(0 0 0 100%); }
}
.hero-inner {
  position: relative;
  min-height: clamp(650px, 86svh, 940px);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding-top: 109px;
}
.hero-copy { padding: 34px 0 46px; }
.hero-label { margin-bottom: 25px; font-size: clamp(12px, 1.1vw, 15px); font-weight: 750; }
.hero h1 { font-size: clamp(55px, 8.35vw, 139px); line-height: 1.01; letter-spacing: -.052em; }
.hero-copy p:not(.hero-label) { max-width: 410px; margin-top: 23px; font-size: clamp(15px, 1.3vw, 18px); color: #eff1eb; }
.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  width: max-content;
  max-width: 100%;
  min-height: 51px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
}
.button-light { background: #f2f3eb; color: #252923; }
.button-light:hover { background: #dce2d2; }
.hero-copy .button { margin-top: 31px; }
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 18px 25px;
  border-top: 1px solid rgb(255 255 255 / 44%);
}
.hero-caption { font-size: 11px; color: #f0f1e9; }
.hero-switch { display: flex; padding: 3px; gap: 2px; border: 1px solid rgb(255 255 255 / 56%); background: rgb(27 33 28 / 57%); }
.hero-switch button { border: 0; background: transparent; color: inherit; padding: 6px 12px; font-weight: 750; font-size: 12px; white-space: nowrap; }
.hero-switch button[aria-pressed="true"] { background: #f0f2ea; color: #232823; }

.about { display: grid; grid-template-columns: 1fr 3fr; align-items: baseline; gap: 24px; }
.about-copy { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 32px; }
.about-copy p, .nursery-grid p { max-width: 43ch; color: var(--muted); }
.portfolio { background: #edf0e8; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: clamp(23px, 4vw, 52px); }
.section-head p { color: var(--muted); margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button {
  min-height: 42px;
  border: 1px solid #a7aea0;
  padding: 6px 15px;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}
.filters button[aria-pressed="true"], .filters button:hover { color: white; border-color: var(--graphite); background: var(--graphite); }
.project-grid { display: grid; align-items: start; grid-template-columns: 1.21fr 1fr; gap: clamp(24px, 3vw, 44px); }
.project { display: block; width: 100%; border: 0; padding: 0; background: transparent; text-align: left; }
.project-media { display: block; overflow: hidden; background: #d6ddcf; }
.project-media img { height: auto; width: 100%; aspect-ratio: 6/4; object-fit: cover; }
.project:hover .project-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 15px; }
.project-name { display: block; font: 400 clamp(25px, 3vw, 43px)/1.13 var(--display); letter-spacing: -.035em; }
.project-category { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.project-open { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border: 1px solid #a7aea0; }

.services { background: var(--graphite); color: var(--white); }
.services .section-label, .services .section-head p { color: var(--light-ink); }
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #5c6359; }
.package { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding: clamp(20px, 3vw, 42px); }
.package + .package { border-left: 1px solid #5c6359; }
.package > p, .package details { color: var(--light-ink); }
.package details { margin-bottom: 17px; width: 100%; font-size: 13px; }
.package summary { color: white; cursor: pointer; font-weight: 800; }
.package details ul { margin-block: 12px 0; padding-left: 20px; }
.package details p { margin-top: 12px; }
.package-price, .package .button { margin-top: auto; }
.package-price strong { display: block; margin-bottom: 4px; color: white; font-size: 23px; }
.package-price small { font-size: 12px; }
.price-note { margin-top: 16px; color: var(--light-ink); font-size: 12px; }
.works { display: grid; grid-template-columns: 1fr 1.1fr .75fr; gap: 24px; margin-top: 54px; padding-top: 24px; border-top: 1px solid #5c6359; }
.works p, .works ul { margin: 0; color: var(--light-ink); }
.works ul { padding-left: 18px; }
.works li + li { margin-top: 4px; }

.nursery-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(26px, 7vw, 105px); }
.nursery-grid img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.nursery-grid figcaption { color: var(--muted); margin-top: 7px; font-size: 11px; }
.nursery-grid p { margin: 22px 0; }
.text-link { font-weight: 800; border-bottom: 1px solid; padding-bottom: 5px; }
.text-link span { margin-inline-start: 12px; }

.footer { color: white; background: var(--graphite); }
.footer .section-label, .footer p { color: var(--light-ink); }
.footer .section { padding-bottom: 27px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: baseline; gap: 26px; }
.contact-grid h2 { text-wrap: initial; }
.contact-grid p { margin-top: 12px; }
.contact-grid dl > div { display: grid; grid-template-columns: minmax(135px, 1fr) 1fr; gap: 10px; border-bottom: 1px solid #60675e; padding: 9px 0; }
.contact-grid dd { color: var(--light-ink); font-size: 13px; }
.contact-grid dd a + a { margin-inline-start: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid #60675e; margin-top: clamp(54px, 8vw, 110px); padding-top: 18px; font-size: 12px; }

body:has(dialog[open]) { overflow: hidden; }
.dialog {
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(16px, 3vw, 40px);
  width: min(950px, 100% - 34px);
  max-width: none;
  max-height: 92dvh;
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog::backdrop { background: rgb(14 18 14 / 77%); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog h2 { font-size: clamp(29px, 4vw, 53px); text-wrap: initial; }
.dialog .muted { color: var(--muted); }
#gallery-description { margin-block: 10px 18px; }
.icon-button { display: grid; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid #a7aea0; background: transparent; padding: 0 10px; font-size: 23px; line-height: 1; }
.icon-button:hover, .icon-button:focus-visible { background: #e3e8db; }
#gallery-zoom { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; border: 0; background: #e6e9df; padding: 0; cursor: zoom-in; }
#gallery-zoom img { width: 100%; height: min(52dvh, 520px); min-height: 150px; object-fit: contain; }
#gallery-zoom[aria-pressed="true"] { cursor: zoom-out; }
#gallery-zoom[aria-pressed="true"] img { height: auto; min-height: 52dvh; }
.zoom-label { position: absolute; inset: auto 8px 8px auto; display: grid; place-items: center; width: 34px; height: 34px; background: var(--paper); font-size: 22px; line-height: 1; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; text-align: center; }
.thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.thumbnails button { padding: 3px; border: 1px solid transparent; background: transparent; }
.thumbnails button[aria-current="true"] { border-color: var(--olive); }
.thumbnails img { width: 76px; height: 52px; object-fit: cover; }
.calculator { width: min(650px, 100% - 34px); }
.calculator form { display: grid; gap: 14px; margin-top: 20px; }
.calculator label, .calculator legend { font-weight: 750; }
.calculator select { width: 100%; min-height: 46px; padding: 7px 10px; border: 1px solid #a7aea0; background: var(--white); }
.calculator fieldset { border: 1px solid #a7aea0; padding: 8px 13px 13px; margin: 0; min-inline-size: 0; }
.scheme-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-block: 7px; }
.scheme-row + .scheme-row { border-top: 1px solid var(--line); }
.scheme-row label { display: flex; align-items: baseline; gap: 7px; }
.scheme-row input { accent-color: var(--olive); }
.scheme-price { text-align: right; flex-shrink: 0; color: var(--muted); font-size: 12px; }
.calculator output { padding: 11px 13px; background: #e8ecdf; }

@media (max-width: 920px) {
  .about, .about-copy { grid-template-columns: 1fr; gap: 0; }
  .about-copy p { margin-top: 17px; }
  .works { grid-template-columns: .6fr 1fr; }
  .works p { grid-column: 2; }
}
@media (max-width: 760px) {
  .header-inner { height: 71px; position: relative; grid-template-columns: 1fr auto; }
  .header-contact { display: none; }
  .nav-contact { display: block; }
  .nav { display: none; }
  .nav.is-open {
    display: grid;
    position: absolute;
    top: 70px;
    inset-inline: 0;
    gap: 0;
    background: var(--graphite);
    padding: 8px 18px;
  }
  .nav a { padding-block: 12px; }
  .nav a + a { border-top: 1px solid #60675e; }
  .menu-toggle { display: flex; align-items: center; min-height: 44px; gap: 10px; border: 0; background: transparent; color: inherit; font-weight: 800; padding: 0; }
  .menu-toggle i { display: block; width: 19px; height: 8px; border-block: 1px solid currentColor; }
  .hero-inner { min-height: max(610px, 86svh); padding-top: 90px; }
  .section-head { align-items: start; flex-direction: column; }
  .packages, .nursery-grid, .contact-grid { grid-template-columns: 1fr; }
  .package + .package { border-left: 0; border-top: 1px solid #5c6359; }
  .works { grid-template-columns: 1fr; gap: 12px; }
  .works p { grid-column: 1; }
  .contact-grid h2 { text-wrap: balance; text-align: left; }
}
@media (max-width: 520px) {
  h2 { font-size: clamp(33px, 9.6vw, 49px); }
  .hero h1 { font-size: clamp(45px, 11.7vw, 61px); }
  .hero-shade { background: linear-gradient(0deg, rgb(12 18 14 / 81%), rgb(12 18 14 / 59%) 46%, rgb(12 18 14 / 27%) 73%, rgb(12 18 14 / 62%)); }
  .hero-plan { object-position: 69% center; }
  .hero-caption { max-width: 95px; line-height: 1.35; }
  .project-grid { grid-template-columns: 1fr; }
  .filters button { padding-inline: 11px; }
  .scheme-row label { font-size: 13px; }
  .contact-grid dl > div { grid-template-columns: minmax(105px, .95fr) 1.05fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-plan { transition: none; }
  .hero[data-intro] .hero-plan { animation: none; }
}
