@font-face {
  font-family: "Espial Display";
  src: url("../fonts/Espial_Display/Espial-Display.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Minion";
  src: url("../fonts/Minion_Variable_Concept/MinionPro-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --warm-white: #f7f3ea;
  --paper: #fffdf7;
  --stone: #c8c0ad;
  --stone-dark: #7e796d;
  --olive: #5f6948;
  --spring: #a5b96f;
  --timber: #9d8063;
  --ink: #21251d;
  --muted: #686c5e;
  --line: rgba(33, 37, 29, 0.14);
  --shadow: 0 18px 60px rgba(33, 37, 29, 0.09);
  --serif: "Espial Display", "Minion", Georgia, serif;
  --sans: "DM Sans", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-white);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(33, 37, 29, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(33, 37, 29, 0.03) 1px, transparent 1px);
  background-size: 76px 76px;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(22px);
}

.brand img {
  width: 152px;
  height: auto;
  filter: brightness(0);
}

.section-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
}

.section-nav a,
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.section-nav a.is-active,
.section-nav a:hover,
.nav-link:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.72);
}

.simple-header {
  grid-template-columns: 180px 1fr;
}

.simple-header .nav-link {
  justify-self: end;
  color: var(--ink);
  border-color: var(--line);
  background: #fffdf7;
}

.simple-header .nav-link:hover {
  color: #fffdf7;
  border-color: var(--olive);
  background: var(--olive);
}

.presentation-app,
.library-app,
.project-library-app {
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto 80px;
}

.slide {
  position: relative;
  width: min(100%, 1123px);
  min-height: min(794px, calc(100vh - 112px));
  margin: 0 auto 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 20px 70px rgba(33, 37, 29, 0.055);
  break-after: page;
}

.slide-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: inherit;
  padding: clamp(28px, 5vw, 64px);
}

.slide-kicker {
  margin: 0 0 18px;
  color: var(--olive);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.slide-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 8.6vw, 118px);
  font-weight: 400;
  line-height: 0.9;
}

.slide-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.cover {
  color: white;
  background: #222;
}

.concept-cover {
  color: white;
  background: #20231b;
}

.cover::before,
.concept-cover::before,
.image-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(11, 16, 9, 0.72), rgba(11, 16, 9, 0.12));
  z-index: 2;
}

.cover::before {
  display: none;
}

.concept-cover::before {
  background:
    linear-gradient(90deg, rgba(10, 13, 9, 0.76), rgba(10, 13, 9, 0.46)),
    linear-gradient(180deg, rgba(10, 13, 9, 0.18), rgba(10, 13, 9, 0.34));
}

.cover .hero-image,
.concept-cover .hero-image,
.image-band .hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}

.cover .slide-inner,
.concept-cover .slide-inner {
  align-content: stretch;
  max-width: none;
  padding: 0;
}

.cover .slide-inner::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 10, 8, 0.82) 0%, rgba(9, 10, 8, 0.66) 34%, rgba(9, 10, 8, 0.38) 56%, rgba(9, 10, 8, 0.1) 100%),
    linear-gradient(180deg, rgba(9, 10, 8, 0.08), rgba(9, 10, 8, 0.24));
}

.cover .slide-title,
.concept-cover .slide-title,
.cover .slide-copy,
.concept-cover .slide-copy,
.cover .slide-kicker,
.concept-cover .slide-kicker,
.cover .meta-row {
  color: white;
}

.concept-cover .meta-row {
  color: white;
}

.concept-cover-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: inherit;
  padding: clamp(34px, 4.4vw, 50px);
  color: white;
}

.concept-cover-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  width: 100%;
  font-size: clamp(13px, 1.18vw, 18px);
  font-weight: 500;
  line-height: 1.2;
}

.concept-cover-top span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.concept-cover-top span:nth-child(2) {
  text-align: center;
}

.concept-cover-top span:last-child {
  text-align: right;
}

.concept-cover-title {
  align-self: center;
  justify-self: center;
  max-width: 760px;
  margin: 24px 0 0;
  text-align: center;
}

.concept-cover-title h1,
.concept-cover-title h2 {
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: clamp(54px, 7.1vw, 88px);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
}

.concept-cover-title p {
  max-width: 460px;
  margin: 42px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.45;
}

.concept-cover-location {
  justify-self: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Minion", Georgia, serif;
  font-size: clamp(13px, 1.2vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cover .pill {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.13);
}

.contents-grid,
.gallery-grid,
.cards-grid,
.plant-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contents-item,
.info-card,
.plant-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.52);
}

.contents-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  min-height: 142px;
  padding: 24px 24px 22px;
  text-decoration: none;
  color: inherit;
}

.contents-item span {
  color: var(--olive);
  font-size: 13px;
  font-weight: 750;
}

.contents-item strong,
.info-card h3,
.plant-card h3,
.project-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.contents-item p,
.info-card p,
.plant-card p,
.project-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-card h2 a {
  color: inherit;
  text-decoration: none;
}

.project-card h2 a:hover {
  color: var(--olive);
}

.project-card .meta-row {
  margin-bottom: 50px;
}

.project-card .master-plan-link {
  color: var(--ink);
  border-color: var(--line);
  background: #fffdf7;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.project-card .master-plan-link:hover {
  color: #fffdf7;
  border-color: var(--olive);
  background: var(--olive);
  transform: translateY(-1px);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(34px, 4vw, 54px);
  align-items: start;
}

.moodboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.moodboard img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
}

.moodboard img:first-child {
  grid-column: 1 / -1;
  height: 300px;
  object-fit: contain;
  background: #11150f;
}

.concept-slide .slide-inner {
  align-content: center;
}

.concept-slide .slide-title {
  max-width: 760px;
}

.concept-slide .slide-copy {
  max-width: 680px;
  color: rgba(33, 37, 29, 0.62);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}

.concept-slide .objective-list {
  margin-top: 10px;
}

.objective-list,
.note-list,
.plant-specs,
.filter-row {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.objective-list li,
.note-list li {
  padding: 14px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.swatch {
  min-height: 145px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.swatch-color {
  height: 56px;
  margin-bottom: 14px;
  border-radius: 6px;
  border: 1px solid rgba(33, 37, 29, 0.13);
}

.image-band {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 320px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 8px;
  color: white;
}

.image-band .slide-inner {
  z-index: 3;
}

.image-band .slide-copy,
.image-band .slide-title {
  color: white;
}

.technical-slide .image-band::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 7, 0.58), rgba(8, 12, 7, 0.18) 52%, rgba(8, 12, 7, 0.08)),
    linear-gradient(180deg, rgba(8, 12, 7, 0.18), rgba(8, 12, 7, 0.28));
}

.technical-slide .editorial-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.technical-slide .note-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.technical-slide .note-list li {
  padding: 0 0 18px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.technical-slide .cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.technical-slide .info-card {
  min-height: 178px;
}

.construction-slide .slide-copy,
.planting-slide .slide-copy {
  max-width: none;
  margin-bottom: 50px;
  white-space: nowrap;
}

.seasonal-planting {
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 18px 56px rgba(33, 37, 29, 0.07);
}

.seasonal-planting img {
  display: block;
  width: 100%;
  height: auto;
}

.technical-actions {
  display: flex;
  justify-content: center;
  margin: 30px 0 34px;
}

.technical-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(33, 37, 29, 0.12);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.technical-link:hover {
  transform: translateY(-1px);
  background: var(--olive);
  box-shadow: 0 18px 42px rgba(33, 37, 29, 0.16);
}

.gallery-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.technical-slide .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-button {
  position: relative;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  border-radius: 8px;
  background: #ddd;
}

.gallery-button:first-child {
  grid-row: span 2;
}

.technical-slide .gallery-button:first-child {
  grid-row: auto;
}

.technical-slide .gallery-button {
  min-height: 230px;
  background: #f7f6f1;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.technical-slide .gallery-button img {
  object-fit: contain;
}

.gallery-button:hover img {
  transform: scale(1.045);
}

.gallery-button span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  color: white;
  text-align: left;
  border-radius: 6px;
  background: rgba(20, 24, 18, 0.58);
}

.info-card {
  padding: 24px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--olive);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(165, 185, 111, 0.15);
  font-size: 20px;
}

.construction-note {
  margin-top: 18px;
  padding-top: 16px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-family: "Minion", Georgia, serif;
  font-size: 17px;
}

.plant-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.plant-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.plant-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.plant-card-body {
  padding: 14px;
}

.plant-card h3 {
  font-size: 25px;
}

.plant-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.plant-card small {
  display: block;
  margin-top: 4px;
  color: var(--olive);
  font-weight: 700;
}

.plant-card-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 320ms ease, opacity 220ms ease, transform 220ms ease;
}

.plant-card:hover,
.plant-card.is-expanded,
.plant-card:focus-visible {
  z-index: 4;
  border-color: rgba(100, 111, 79, 0.42);
  box-shadow: 0 18px 45px rgba(33, 37, 29, 0.12);
  transform: translateY(-2px);
}

.plant-card:hover .plant-card-details,
.plant-card.is-expanded .plant-card-details,
.plant-card:focus-visible .plant-card-details {
  max-height: 620px;
  margin-top: 14px;
  opacity: 1;
  transform: translateY(0);
}

.plant-card:hover p,
.plant-card.is-expanded p,
.plant-card:focus-visible p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.plant-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.plant-card .plant-specs {
  gap: 8px;
  margin-top: 0;
}

.plant-card .meta-row {
  gap: 7px;
  margin-top: 10px;
}

.plant-card .pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.plant-specs li {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 243, 234, 0.62);
  font-size: 13px;
}

.plant-specs b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.library-hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.library-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  font-weight: 400;
}

.library-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.filters {
  position: sticky;
  top: 88px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(247, 243, 234, 0.9);
  backdrop-filter: blur(18px);
}

.filters input,
.filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.filters input[type="search"] {
  grid-column: span 2;
}

.project-card {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  overflow: hidden;
  will-change: transform, box-shadow;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 1.5s ease;
}

.project-card:hover {
  z-index: 3;
  border-color: rgba(95, 105, 72, 0.34);
  box-shadow: 0 42px 110px rgba(33, 37, 29, 0.2);
  transform: translateY(-12px) scale(1.028);
}

.project-card-media {
  display: block;
  min-height: 100%;
}

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

.project-card-body {
  padding: clamp(26px, 4vw, 46px);
}

.lightbox {
  width: min(980px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(18, 22, 16, 0.72);
  backdrop-filter: blur(10px);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px;
  color: white;
  background: rgba(18, 22, 16, 0.9);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.lightbox-close {
  position: absolute;
  top: -52px;
  right: 0;
  color: var(--ink);
}

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

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

.project-card.reveal.is-visible {
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 1.5s ease;
}

.project-card.reveal.is-visible:hover {
  z-index: 3;
  border-color: rgba(95, 105, 72, 0.34);
  box-shadow: 0 46px 120px rgba(33, 37, 29, 0.22);
  transform: translateY(-14px) scale(1.04);
}

.error-state {
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 900px) {
  .site-header,
  .library-hero,
  .editorial-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .section-nav {
    justify-content: start;
  }

  .slide {
    min-height: auto;
  }

  .slide-inner {
    padding: clamp(24px, 7vw, 38px);
  }

  .slide-title {
    font-size: clamp(42px, 14vw, 72px);
    line-height: 0.94;
    overflow-wrap: anywhere;
  }

  .construction-slide .slide-title {
    font-size: clamp(42px, 13vw, 64px);
  }

  .construction-slide .slide-copy,
  .planting-slide .slide-copy {
    white-space: normal;
  }

  .construction-slide .slide-copy {
    max-width: 100%;
    margin-bottom: 34px;
    font-size: clamp(16px, 5vw, 20px);
    line-height: 1.48;
  }

  .construction-slide .info-card {
    min-width: 0;
    padding: 22px;
  }

  .construction-slide .info-card h3 {
    font-size: clamp(28px, 9.5vw, 40px);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .construction-slide .info-card p,
  .construction-slide .construction-note {
    font-size: clamp(16px, 4.6vw, 19px);
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .contents-grid,
  .cards-grid,
  .technical-slide .note-list,
  .technical-slide .cards-grid,
  .plant-grid,
  .palette-grid,
  .gallery-grid,
  .filters {
    grid-template-columns: 1fr;
  }

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

  .moodboard img,
  .moodboard img:first-child {
    height: auto;
    min-height: 190px;
    max-height: 320px;
  }

  .gallery-button:first-child {
    grid-row: auto;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  body {
    background: white;
  }

  body::before,
  .site-header,
  .filters {
    display: none;
  }

  .presentation-app {
    width: 1123px;
    margin: 0;
  }

  .slide {
    width: 1123px;
    min-height: 794px;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

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