:root {
  --slate-900: #1c2128;
  --slate-800: #242c35;
  --slate-700: #33404d;
  --copper-500: #c46f3a;
  --copper-400: #de8a4f;
  --amber-300: #f1bb66;
  --forest-600: #3e5f52;
  --forest-500: #507667;
  --cream-100: #f8f3e9;
  --cream-200: #efe6d6;
  --text-900: #22201d;
  --text-700: #4a433d;
  --line: #d4c2a7;
  --shadow-soft: 0 16px 40px rgba(31, 23, 18, 0.14);
  --shadow-strong: 0 24px 60px rgba(24, 18, 13, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text-900);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.72;
  overflow-x: clip;
  background:
    radial-gradient(1100px 620px at 86% -8%, rgba(241, 187, 102, 0.32), transparent 70%),
    radial-gradient(900px 560px at 6% 36%, rgba(196, 111, 58, 0.2), transparent 70%),
    var(--cream-100);
}

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

p,
li,
label,
input,
textarea,
button,
summary,
.accordion-trigger,
.site-nav a,
.btn {
  font-family: Inter, "Segoe UI", sans-serif;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section h2,
.section h3 {
  margin-top: 0;
  line-height: 1.14;
}

.section h2 {
  color: #2f2a25;
  font-size: clamp(2rem, 4.3vw, 3.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.section-header {
  margin-bottom: 2.3rem;
}

.eyebrow {
  color: var(--forest-600);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.6rem 0.7rem;
  background: #fff;
  color: #000;
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid var(--copper-500);
  background: rgba(29, 34, 41, 0.9);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 4.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin: 0;
  color: #f5ead6;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: Inter, "Segoe UI", sans-serif;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: #f5ead6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.2rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--amber-300);
  transition: width 0.25s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-media video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(165deg, rgba(17, 22, 30, 0.84), rgba(57, 38, 27, 0.44) 48%, rgba(196, 111, 58, 0.2)),
    linear-gradient(to top, rgba(17, 22, 30, 0.52), rgba(17, 22, 30, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #f7efdf;
  width: min(860px, 92%);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 4rem) 0 2rem;
}

.hero-content .eyebrow {
  color: var(--amber-300);
}

.hero-content h1 {
  color: #fff8eb;
  font-size: clamp(1.9rem, 4.4vw, 3.9rem);
  margin: 0 0 0.6rem;
  max-width: 24ch;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subheadline {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.55;
  color: #f3e9d7;
}

.hero-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-actions .btn {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.82rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-300), var(--copper-400));
  color: #23180f;
  box-shadow: 0 12px 28px rgba(30, 20, 14, 0.34);
}

.btn-secondary {
  border-color: rgba(255, 241, 212, 0.78);
  background: rgba(21, 25, 33, 0.2);
  color: #fff7e8;
}

.btn-tertiary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.13);
  color: #fff7e8;
}

.hero-strip {
  margin-top: 0.5rem;
  display: inline-flex;
  max-width: 100%;
  white-space: normal;
  background: rgba(23, 28, 37, 0.64);
  border: 1px solid rgba(241, 187, 102, 0.45);
  color: #f7e4c2;
  border-radius: 14px;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  line-height: 1.35;
  padding: 0.5rem 0.95rem;
}

.at-a-glance {
  background: linear-gradient(180deg, #202830, #28343e);
  border-top: 2px solid var(--copper-500);
  border-bottom: 2px solid var(--forest-500);
}

.at-a-glance .section-header h2,
.at-a-glance .eyebrow {
  color: #f3e7d2;
}

.highlights-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.stat-card {
  background: rgba(247, 239, 225, 0.08);
  border: 1px solid rgba(255, 210, 141, 0.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-300), var(--copper-500));
  color: #24170e;
  font-weight: 800;
  font-family: Inter, "Segoe UI", sans-serif;
  display: inline-grid;
  place-items: center;
}

.stat-card h3 {
  color: #f7ead3;
  margin: 0.75rem 0 0.4rem;
  font-size: 1.05rem;
}

.stat-card p {
  margin: 0;
  color: #ddd0ba;
  line-height: 1.5;
  font-size: 0.92rem;
}

.summary {
  background: #fcf6ec;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary .container {
  max-width: 900px;
}

.summary p {
  font-size: 1.03rem;
  color: #433b34;
}

.scenic-band {
  position: relative;
  height: clamp(220px, 38vh, 410px);
  overflow: hidden;
}

.scenic-band-media {
  position: absolute;
  inset: -12% 0;
  background-position: center;
  background-size: cover;
  transform: translateY(0);
  will-change: transform;
}

.scenic-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22, 24, 27, 0.22), rgba(22, 24, 27, 0.42));
}

.gallery {
  background: linear-gradient(180deg, #fff8ee, #f6eddc);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.5rem;
}

.gallery-grid-unified {
  margin-bottom: 0.7rem;
  display: block;
  column-count: 4;
  column-gap: 0.35rem;
}

.gallery-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 0.35rem;
  border: 1px solid rgba(255, 250, 242, 0.85);
  box-shadow: 0 16px 36px rgba(33, 24, 17, 0.14);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  isolation: isolate;
  background: #f5ede0;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
  break-inside: avoid;
}

.gallery-card:nth-child(2),
.gallery-card:nth-child(4) {
  aspect-ratio: 4 / 5;
}

.gallery-card:nth-child(6),
.gallery-card:nth-child(8) {
  aspect-ratio: 3 / 2;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 198, 115, 0.08), rgba(14, 18, 24, 0.32));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.gallery-card::after {
  content: "View";
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 27, 34, 0.56);
  color: #fff6e7;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.35s ease;
  cursor: zoom-in;
}

.gallery-card figcaption {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(29, 20, 14, 0.2);
  border-color: rgba(255, 227, 181, 0.92);
}

.gallery-card:hover::before {
  opacity: 1;
}

.gallery-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.03);
}

/* ── Photo pile link (opens gallery.html) ── */
.photo-pile-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(196, 111, 58, 0.35);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.95), rgba(248, 238, 221, 0.95));
  color: #342d26;
  box-shadow: 0 12px 30px rgba(34, 26, 20, 0.11);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
  width: 100%;
  margin-top: 0.4rem;
}

.photo-pile-link:hover {
  border-color: rgba(196, 111, 58, 0.55);
  box-shadow: 0 16px 36px rgba(34, 26, 20, 0.15);
}

.photo-pile {
  position: relative;
  width: 92px;
  height: 70px;
  flex-shrink: 0;
}

.pile-photo {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(20, 15, 10, 0.22);
  background: #f0e8d8;
  transition: transform 0.3s ease;
}

.pile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pile-photo:nth-child(1) { transform: rotate(-8deg) translate(-8px, 5px); }
.pile-photo:nth-child(2) { transform: rotate(6deg) translate(7px, -4px); }
.pile-photo:nth-child(3) { transform: rotate(-1.5deg); }

.photo-pile-link:hover .pile-photo:nth-child(1) { transform: rotate(-13deg) translate(-13px, 8px); }
.photo-pile-link:hover .pile-photo:nth-child(2) { transform: rotate(10deg) translate(12px, -7px); }
.photo-pile-link:hover .pile-photo:nth-child(3) { transform: rotate(-2deg) scale(1.04); }

.photo-pile-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.photo-pile-copy strong {
  font-size: 1rem;
  color: #2f2a25;
  font-family: Inter, "Segoe UI", sans-serif;
}

.photo-pile-copy span {
  font-size: 0.88rem;
  color: var(--copper-500);
  font-weight: 600;
  font-family: Inter, "Segoe UI", sans-serif;
}

/* ── Gallery page (gallery.html) ── */
.gallery-page-section {
  background:
    radial-gradient(1100px 620px at 86% -8%, rgba(241, 187, 102, 0.22), transparent 70%),
    var(--cream-100);
}

.gallery-page-header {
  margin-bottom: 2.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--copper-500);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: Inter, "Segoe UI", sans-serif;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--copper-400);
}

.gallery-page-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: #2f2a25;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gallery-page-count {
  margin: 0;
  color: var(--text-700);
  font-size: 0.95rem;
  font-family: Inter, "Segoe UI", sans-serif;
}

.gallery-page-chapter {
  margin-bottom: 3.2rem;
}

.gallery-page-chapter-title {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-500);
  border-bottom: 2px solid rgba(196, 111, 58, 0.22);
  padding-bottom: 0.55rem;
  margin: 0 0 1.2rem;
}

.gallery-page-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 860px;
}

.gallery-page-full {
  aspect-ratio: unset;
  height: auto;
  display: block;
  cursor: pointer;
}

.gallery-page-col .gallery-card,
.gallery-page-col .gallery-card:nth-child(2),
.gallery-page-col .gallery-card:nth-child(4),
.gallery-page-col .gallery-card:nth-child(6),
.gallery-page-col .gallery-card:nth-child(8) {
  aspect-ratio: auto;
  height: auto;
}

.gallery-page-full img {
  height: auto;
  object-fit: unset;
}

.gallery-page-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.chapter-head h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  color: #362f29;
}

.chapter-head p {
  margin: 0.35rem 0 0;
  color: var(--text-700);
}

.chapter-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 1.5rem 0 1rem;
  perspective: 1200px;
}

.chapter-grid figure {
  margin: 0;
  height: 280px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 248, 235, 0.6);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(34, 26, 20, 0.15);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(248, 240, 227, 0.95));
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  transform-origin: center;
}

/* Variable heights for visual interest */
.chapter-grid figure:nth-child(2) { height: 340px; }
.chapter-grid figure:nth-child(4) { height: 300px; }
.chapter-grid figure:nth-child(6) { height: 350px; }
.chapter-grid figure:nth-child(8) { height: 320px; }
.chapter-grid figure:nth-child(10) { height: 340px; }

/* Staggered positioning for dynamic look */
.chapter-grid figure:nth-child(1) { transform: translateY(-8px) rotateZ(-1.5deg); }
.chapter-grid figure:nth-child(2) { transform: translateY(6px) rotateZ(1.2deg); }
.chapter-grid figure:nth-child(3) { transform: translateY(-4px) rotateZ(-0.8deg); }
.chapter-grid figure:nth-child(4) { transform: translateY(8px) rotateZ(1.5deg); }
.chapter-grid figure:nth-child(5) { transform: translateY(-6px) rotateZ(-1deg); }
.chapter-grid figure:nth-child(6) { transform: translateY(10px) rotateZ(1.8deg); }
.chapter-grid figure:nth-child(7) { transform: translateY(-8px) rotateZ(-1.2deg); }
.chapter-grid figure:nth-child(8) { transform: translateY(4px) rotateZ(0.9deg); }
.chapter-grid figure:nth-child(9) { transform: translateY(-10px) rotateZ(-1.8deg); }
.chapter-grid figure:nth-child(10) { transform: translateY(7px) rotateZ(1.3deg); }
.chapter-grid figure:nth-child(11) { transform: translateY(-5px) rotateZ(-0.6deg); }

.gallery-card:focus-visible,
.chapter-grid figure:focus-visible {
  outline: 3px solid rgba(241, 187, 102, 0.92);
  outline-offset: 4px;
}

.chapter-grid img {
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  width: 100%;
}

.chapter-grid figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 24, 30, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.chapter-grid figcaption {
  display: none;
}

.chapter-grid figure:hover {
  transform: translateY(-18px) scale(1.08) rotateZ(0deg);
  box-shadow: 0 32px 80px rgba(34, 26, 20, 0.25), 0 0 40px rgba(196, 111, 58, 0.15);
  border-color: rgba(196, 111, 58, 0.5);
  z-index: 50;
}

.chapter-grid figure:hover::before {
  opacity: 1;
}

.chapter-grid figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.standout {
  background: #fdf7ec;
}

.card-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.card,
.feature {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  background: #fffdf9;
  box-shadow: var(--shadow-soft);
}

.card h3,
.feature h3 {
  color: #342d26;
  font-size: 1.15rem;
}

.card p,
.feature p {
  margin: 0;
  color: var(--text-700);
  line-height: 1.6;
}

.systems {
  background:
    radial-gradient(1000px 520px at 100% -20%, rgba(196, 111, 58, 0.12), transparent),
    radial-gradient(860px 480px at 0% 120%, rgba(62, 95, 82, 0.12), transparent),
    #f9f2e5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  gap: 1.1rem;
}

.feature {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 111, 58, 0.32);
  background: linear-gradient(165deg, #fffdf9, #f8edde);
  padding: 1.3rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper-500), var(--amber-300));
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 111, 58, 0.56);
  box-shadow: 0 18px 36px rgba(31, 23, 18, 0.18);
}

.feature h3 {
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  font-size: 1.1rem;
}

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon-solar {
  color: #764417;
  background: linear-gradient(140deg, #f9ce7e, #e9a952);
}

.feature-icon-battery {
  color: #3d4f2d;
  background: linear-gradient(140deg, #b3db91, #7ea85f);
}

.feature-icon-water {
  color: #1f4a5a;
  background: linear-gradient(140deg, #a5d0e3, #67abc9);
}

.feature-icon-heat {
  color: #6c2e1c;
  background: linear-gradient(140deg, #f4b08d, #e6794b);
}

.feature-icon-internet {
  color: #2f315c;
  background: linear-gradient(140deg, #bbbef5, #8f96ea);
}

.feature-icon-living {
  color: #214435;
  background: linear-gradient(140deg, #9fdec0, #5cab81);
}

.timeline {
  background:
    radial-gradient(900px 460px at 95% -10%, rgba(196, 111, 58, 0.12), transparent),
    radial-gradient(760px 420px at 0% 100%, rgba(62, 95, 82, 0.1), transparent),
    #f8f0df;
}

.improvements-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.improvements-timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--copper-500), var(--forest-500));
  opacity: 0.55;
}

.improvement-item {
  position: relative;
  margin-left: 2.4rem;
  background: linear-gradient(160deg, rgba(255, 253, 247, 0.95), rgba(249, 238, 220, 0.95));
  border: 1px solid rgba(196, 111, 58, 0.25);
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 14px 32px rgba(36, 27, 20, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.improvement-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 1.15rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-300), var(--copper-500));
  box-shadow: 0 0 0 4px rgba(241, 187, 102, 0.24);
}

.improvement-item:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 111, 58, 0.42);
  box-shadow: 0 20px 42px rgba(36, 27, 20, 0.16);
}

.improvement-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: #342d26;
}

.improvement-item p {
  margin: 0;
  color: #4a433d;
  line-height: 1.58;
}

.improvement-timing,
.improvement-benefit {
  margin-top: 0.55rem;
  font-size: 0.93rem;
}

.improvement-timing strong,
.improvement-benefit strong {
  color: #2f2923;
}

.fine-print {
  margin-top: 1rem;
  color: var(--text-700);
  font-size: 0.9rem;
}

.lifestyle {
  background: linear-gradient(180deg, #fff9ef, #f5ebda);
}

.layout-split {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
}

.lifestyle-lead {
  font-size: 1.08rem;
  color: #393229;
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.layout-split ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.layout-split li {
  margin-bottom: 0.58rem;
  color: #3d362e;
}

.layout-split figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
}

.layout-split figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lifestyle-map {
  margin-top: 1.25rem;
}

.lifestyle-map h3 {
  margin: 0 0 0.65rem;
  color: #342d26;
  font-size: 1.08rem;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
  background: #ece2d0;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.zoning {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff7eb;
}

.faq {
  background: #fbf3e6;
}

.accordion {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf2;
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--line);
}

.accordion-item h3 {
  margin: 0;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1rem 1.05rem;
  font-size: 1.02rem;
  color: #342d26;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-trigger::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--copper-500);
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

.accordion-panel {
  padding: 0 1.05rem 1rem;
}

.accordion-panel p {
  margin: 0;
  color: var(--text-700);
}

.site-footer {
  border-top: 3px solid var(--copper-500);
  background: linear-gradient(180deg, var(--slate-900), #171c22);
  color: #f1e6d4;
}

.site-footer h2 {
  color: #f5ebd9;
}

.contact-direct {
  color: #f2e3ca;
  font-size: 1rem;
  line-height: 1.65;
}

.contact-direct a {
  color: #ffd48a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 212, 138, 0.45);
}

.contact-direct a:hover {
  color: #fff0c9;
  border-bottom-color: rgba(255, 240, 201, 0.8);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}

.inquiry-form {
  display: grid;
  gap: 0.55rem;
  background: rgba(249, 238, 220, 0.08);
  border: 1px solid rgba(241, 187, 102, 0.3);
  border-radius: 12px;
  padding: 1rem;
  max-width: 640px;
}

.inquiry-form h3 {
  margin: 0 0 0.3rem;
  font-size: 1.18rem;
}

.inquiry-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.inquiry-form input,
.inquiry-form textarea {
  border: 1px solid rgba(212, 194, 167, 0.65);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f1913;
  padding: 0.7rem 0.8rem;
}

.back-to-top {
  margin-top: 1rem;
  display: inline-block;
  color: #f1dbb6;
  text-decoration: none;
}

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

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 2rem clamp(0.9rem, 2vw, 2rem);
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 187, 102, 0.14), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(80, 118, 103, 0.16), transparent 26%),
    rgba(8, 11, 16, 0.84);
  backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 232, 196, 0.12);
  border-radius: 28px;
  pointer-events: none;
}

.lightbox-stage {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  position: relative;
}

.lightbox-stage img {
  max-width: min(1100px, 94vw);
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(255, 241, 216, 0.3);
  border-radius: 24px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.14), rgba(255, 252, 246, 0.06));
  padding: 0.45rem;
  animation: lightbox-enter 0.28s ease;
}

.lightbox-stage figcaption {
  color: #f7e8cc;
  font-size: 0.87rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.42);
  border: 1px solid rgba(255, 227, 183, 0.16);
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 227, 183, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff1d2;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 227, 183, 0.42);
}

@keyframes lightbox-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1120px) {
  .highlights-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 800px) {
  .hero {
    align-items: start;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-media video {
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-position: 50% center;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid rgba(241, 187, 102, 0.7);
    background: rgba(241, 187, 102, 0.12);
    color: #f7e4c4;
    border-radius: 7px;
    padding: 0.47rem 0.72rem;
    font-weight: 700;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: rgba(28, 33, 40, 0.98);
    border-top: 1px solid rgba(241, 187, 102, 0.45);
    border-bottom: 1px solid rgba(241, 187, 102, 0.45);
    padding: 0.8rem 4%;
    gap: 0.45rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-content {
    margin-left: 0;
    width: min(96%, 720px);
    padding-left: clamp(0.65rem, 3vw, 1rem);
    padding-right: clamp(0.65rem, 3vw, 1rem);
    padding-top: clamp(4.9rem, 9vh, 5.8rem);
    padding-bottom: 0.8rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-actions .btn {
    font-size: 0.88rem;
    padding: 0.72rem 1rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .tile,
  .tile.wide,
  .tile.tall {
    grid-column: span 12;
    min-height: 250px;
    grid-row: auto;
    transform: none;
  }

  .gallery-grid-unified {
    column-count: 1;
    column-gap: 0;
  }

  .gallery-card,
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(4),
  .gallery-card:nth-child(6),
  .gallery-card:nth-child(8) {
    margin: 0 0 0.55rem;
    aspect-ratio: 4 / 3;
  }

  .gallery-grid-featured {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .gallery-grid-featured .tile {
    aspect-ratio: 4 / 3;
    transform: none !important;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem 0 0.6rem;
  }

  .chapter-grid figure {
    height: auto;
    aspect-ratio: 4 / 3;
    transform: none !important;
  }

  .tile:hover,
  .gallery-card:hover,
  .chapter-grid figure:hover {
    transform: none;
  }

  .tile:hover img,
  .gallery-card:hover img,
  .chapter-grid figure:hover img {
    transform: none;
  }

  .layout-split {
    grid-template-columns: 1fr;
  }

  .map-frame {
    aspect-ratio: 4 / 3;
  }

  .scenic-band {
    height: clamp(200px, 32vh, 300px);
  }

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

  .lightbox::before {
    inset: 0.6rem;
    border-radius: 22px;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 1rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

/* Modern Timeline Card Design */
.timeline-year-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-year-marker {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0.4rem;
}

.timeline-year-label {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--copper-500), var(--amber-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.timeline-cards {
  display: grid;
  gap: 1rem;
  padding-top: 0.2rem;
}

.timeline-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 253, 249, 0.98), rgba(250, 240, 225, 0.98));
  border: 1px solid rgba(196, 111, 58, 0.28);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 32px rgba(34, 27, 20, 0.1);
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper-500), var(--amber-300), transparent);
}

.timeline-card-trigger {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  border: 0;
  background: none;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
}

.timeline-card-trigger:focus-visible {
  outline: 3px solid rgba(241, 187, 102, 0.7);
  outline-offset: -3px;
}

.timeline-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-500), var(--amber-300));
  flex-shrink: 0;
  margin-top: 0.5rem;
  box-shadow: 0 0 0 8px rgba(241, 187, 102, 0.12);
}

.timeline-card-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: #342d26;
  line-height: 1.4;
  margin: 0;
}

.timeline-expand-icon {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--copper-500);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.timeline-card-trigger[aria-expanded="true"] .timeline-expand-icon {
  transform: rotate(45deg);
}

.timeline-card-content {
  max-height: 0;
  overflow: hidden;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  padding-top: 0;
  padding-bottom: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-card-content p {
  margin: 0 0 0.75rem;
  color: #4a433d;
  line-height: 1.62;
  font-size: 0.98rem;
}

.timeline-card-content p:last-child {
  margin-bottom: 0;
}

.timeline-card[data-expanded="true"] .timeline-card-content {
  padding-bottom: 1.2rem;
}

.timeline-card:hover {
  border-color: rgba(196, 111, 58, 0.45);
  box-shadow: 0 18px 48px rgba(34, 27, 20, 0.14);
  transform: translateY(-3px);
}

.timeline-card[data-expanded="true"] {
  background: linear-gradient(160deg, rgba(255, 254, 251, 0.98), rgba(255, 250, 240, 0.98));
  border-color: rgba(196, 111, 58, 0.4);
  box-shadow: 0 20px 56px rgba(34, 27, 20, 0.16);
}

.improvement-benefit {
  font-size: 0.94rem;
  color: #5a5047;
  background: rgba(196, 111, 58, 0.08);
  border-left: 3px solid rgba(196, 111, 58, 0.4);
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  margin: 0.75rem 0 0 !important;
}

.improvement-benefit strong {
  color: #3d3229;
  font-weight: 700;
}

@media (max-width: 768px) {
  .improvements-timeline::before {
    display: none;
  }

  .timeline-year-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
  }

  .timeline-year-marker {
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(196, 111, 58, 0.28);
    margin-bottom: 0.1rem;
  }

  .timeline-year-label {
    font-size: 1.6rem;
  }

  .timeline-cards {
    border-left: 2px solid rgba(196, 111, 58, 0.38);
    padding-left: 0.9rem;
  }

  .timeline-card-trigger {
    flex-wrap: wrap;
    padding: 1rem 1rem;
    gap: 0.8rem;
  }

  .timeline-dot {
    margin-top: 0.35rem;
  }

  .timeline-card-title {
    flex-basis: 100%;
    font-size: 0.98rem;
  }

  .timeline-card-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .timeline-card[data-expanded="true"] .timeline-card-content {
    padding-bottom: 1rem;
  }
}

@media (max-width: 580px) {
  .highlights-grid,
  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .improvement-item {
    margin-left: 1.8rem;
    padding: 0.92rem 0.85rem 0.8rem;
  }

  .improvement-item::before {
    left: -1.4rem;
  }

  .chapter-grid figure {
    aspect-ratio: 5 / 4;
  }

  .hero-strip {
    border-radius: 14px;
    line-height: 1.45;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
  }
}
