:root {
  --paper: #f6f2e9;
  --paper-deep: #ece4d6;
  --white: #fffdf8;
  --ink: #1c2a22;
  --muted: #687169;
  --forest: #173b2c;
  --forest-light: #275642;
  --wood: #9b6841;
  --sand: #d6b98c;
  --lake: #6f9493;
  --line: rgba(28, 42, 34, 0.14);
  --shadow: 0 24px 70px rgba(35, 45, 36, 0.12);
  --shadow-soft: 0 12px 35px rgba(35, 45, 36, 0.08);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --container: min(1180px, calc(100% - 48px));
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-premium: cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

html.lightbox-lock,
body.lightbox-lock {
  overflow: hidden;
}

body.lightbox-lock {
  padding-right: var(--scrollbar-compensation, 0px);
}

body.lightbox-lock .site-header {
  padding-right: var(--scrollbar-compensation, 0px);
}

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

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

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--sand);
  color: var(--forest);
}

:focus-visible {
  outline: 3px solid var(--lake);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section--compact {
  padding: 88px 0;
}

.section--white {
  background: var(--white);
}

.section--forest {
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.section--mist {
  background: #e8eeea;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--wood);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section--forest .eyebrow {
  color: #e4c99d;
}

.display,
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

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

.display {
  margin-bottom: 26px;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  letter-spacing: -0.045em;
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  letter-spacing: -0.035em;
}

.section-title--sm {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.section--forest .lead {
  color: rgba(255, 253, 248, 0.72);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--forest-light);
  box-shadow: 0 12px 26px rgba(23, 59, 44, 0.2);
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.button:hover svg {
  transform: translateX(3px);
}

.button--light {
  background: var(--white);
  color: var(--forest);
}

.button--light:hover {
  background: #f0e8da;
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--forest);
  background: transparent;
  box-shadow: none;
}

.button--ghost-light {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: var(--white);
}

.button--ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 88px;
  border-bottom: 1px solid transparent;
  transition:
    height 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 21, 15, 0.48), transparent);
  content: "";
  pointer-events: none;
  transition: opacity 220ms ease;
}

.site-header.is-scrolled,
.site-header.header--solid {
  height: 76px;
  border-color: var(--line);
  background: rgba(246, 242, 233, 0.92);
  box-shadow: 0 8px 32px rgba(28, 42, 34, 0.07);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled::before,
.site-header.header--solid::before {
  opacity: 0;
}

.nav-shell {
  position: relative;
  display: flex;
  width: var(--container);
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.site-header.is-scrolled .brand,
.site-header.header--solid .brand {
  color: var(--forest);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-tagline {
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  position: relative;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header.is-scrolled .nav-links a,
.site-header.header--solid .nav-links a {
  color: var(--ink);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: currentColor;
  content: "";
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.site-header.is-scrolled .nav-contact,
.site-header.header--solid .nav-contact {
  border-color: var(--line);
}

.nav-contact::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
}

.site-header.is-scrolled .menu-toggle,
.site-header.header--solid .menu-toggle {
  border-color: var(--line);
  color: var(--forest);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  padding: 120px 28px 40px;
  background: var(--forest);
  color: var(--white);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 1;
}

.mobile-menu-meta {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  background: #18251e;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  animation: hero-scale 18s ease-out both;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 19, 14, 0.16) 10%, rgba(9, 19, 14, 0.28) 46%, rgba(9, 19, 14, 0.88) 100%),
    linear-gradient(90deg, rgba(9, 19, 14, 0.5), transparent 66%);
  content: "";
}

@keyframes hero-scale {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--container);
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: end;
  gap: 50px;
  margin: 0 auto;
  padding: 190px 0 72px;
}

.hero-copy {
  max-width: 880px;
}

.hero .eyebrow {
  color: #f1d9b2;
}

.hero .display {
  max-width: 900px;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-aside {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-aside strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.hero-aside span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: rotate(90deg);
  transform-origin: right bottom;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue::after {
  width: 54px;
  height: 1px;
  background: currentColor;
  content: "";
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(60px, 10vw, 140px);
}

.image-frame {
  position: relative;
}

.image-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-frame--portrait img {
  aspect-ratio: 0.78;
  object-fit: cover;
}

.image-frame--landscape img {
  aspect-ratio: 1.32;
  object-fit: cover;
}

.image-note {
  position: absolute;
  right: -34px;
  bottom: 42px;
  max-width: 210px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.15;
  backdrop-filter: blur(12px);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: #3f4b43;
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-list svg {
  width: 21px;
  min-width: 21px;
  color: var(--wood);
}

.features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 60px;
}

.feature-card {
  min-height: 245px;
  padding: 34px 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 220ms ease, background 220ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #e4c99d;
}

.feature-icon svg {
  width: 23px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.feature-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 58px;
}

.section-head .section-title {
  margin-bottom: 0;
}

.gallery-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 320px 320px;
  gap: 18px;
}

.gallery-preview a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-preview a:first-child {
  grid-row: 1 / 3;
}

.gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-preview a:hover img {
  transform: scale(1.035);
}

.gallery-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.price-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.62fr);
  align-items: stretch;
  gap: 70px;
}

.price-band-copy {
  align-self: center;
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 32px 80px rgba(7, 22, 15, 0.2);
}

.price-card::before {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(111, 148, 147, 0.16);
  content: "";
}

.price-card-label {
  position: relative;
  display: block;
  margin-bottom: 28px;
  color: #e4c99d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.price-value {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.price-value strong {
  font-family: var(--serif);
  font-size: clamp(4.6rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

.price-value span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
}

.price-card > p {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
}

.price-card .price-benefit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(228, 201, 157, 0.32);
  border-radius: 999px;
  background: rgba(228, 201, 157, 0.12);
  color: #f1d9ad;
  font-size: 0.86rem;
  font-weight: 800;
}

.price-card .price-benefit::before {
  content: "✓";
  font-weight: 900;
}

.price-card hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.price-card ul {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.price-card li {
  display: flex;
  gap: 12px;
}

.price-card li::before {
  color: #e4c99d;
  content: "✓";
  font-weight: 800;
}

.contact-ribbon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 74px;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
}

.contact-ribbon h2 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  letter-spacing: -0.04em;
}

.contact-ribbon p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 74px 0 28px;
  background: #10291f;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 70px;
  padding-bottom: 62px;
}

.footer-brand .brand {
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 370px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-title {
  margin-bottom: 22px;
  color: #e4c99d;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 68svh;
  align-items: end;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.page-hero--short {
  min-height: 54svh;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

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

.page-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 25, 17, 0.22), rgba(11, 25, 17, 0.84));
  content: "";
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  padding: 180px 0 72px;
}

.page-hero .display {
  margin-bottom: 20px;
  font-size: clamp(4rem, 8vw, 8rem);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.76);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 250px 170px 280px 200px 200px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transform: translateZ(0);
  transition:
    transform 360ms var(--ease-soft),
    box-shadow 360ms var(--ease-soft);
}

.gallery-item--house {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
}

.gallery-item--lake {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
}

.gallery-item--garden-side {
  grid-column: 1 / 7;
  grid-row: 3;
}

.gallery-item--garden-swing {
  grid-column: 7 / 13;
  grid-row: 3;
}

.gallery-item--interior-wide {
  grid-column: 6 / 13;
  grid-row: 4;
}

.gallery-item--interior-tall {
  grid-column: 1 / 6;
  grid-row: 4 / 6;
}

.gallery-item--interior-detail {
  grid-column: 6 / 13;
  grid-row: 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(0.98);
  transition:
    transform 720ms var(--ease-premium),
    filter 420ms var(--ease-soft);
}

.gallery-item--house img {
  object-position: 50% 48%;
}

.gallery-item--garden-side img {
  object-position: 50% 46%;
}

.gallery-item--interior-tall img {
  object-position: center 38%;
}

.gallery-item::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 29, 20, 0) 42%, rgba(12, 29, 20, 0.28) 100%),
    rgba(255, 253, 248, 0.08);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-soft);
}

.gallery-item::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: auto;
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.16);
  backdrop-filter: blur(14px);
  color: var(--white);
  content: "Zobacz";
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 320ms var(--ease-soft),
    transform 420ms var(--ease-premium);
}

.gallery-item:is(:hover, :focus-visible) {
  box-shadow: 0 22px 52px rgba(23, 59, 44, 0.18);
  transform: translateY(-4px);
}

.gallery-item:is(:hover, :focus-visible) img {
  filter: saturate(1.04) brightness(1.04);
  transform: scale(1.055);
}

.gallery-item:is(:hover, :focus-visible)::before,
.gallery-item:is(:hover, :focus-visible)::after {
  opacity: 1;
}

.gallery-item:is(:hover, :focus-visible)::after {
  transform: translateY(0) scale(1);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(111, 148, 147, 0.72);
  outline-offset: 6px;
}

.lightbox {
  --lightbox-start-x: 0px;
  --lightbox-start-y: 0px;
  --lightbox-start-scale: 0.92;
  --lightbox-switch-x: 18px;
  position: fixed;
  z-index: 500;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(20px, 4vw, 44px);
  background: rgba(9, 19, 14, 0);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 300ms var(--ease-soft),
    background 300ms var(--ease-soft),
    visibility 0s linear 300ms;
}

.lightbox::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(214, 185, 140, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(9, 19, 14, 0.88), rgba(8, 16, 13, 0.8));
  backdrop-filter: blur(12px) saturate(0.88);
  content: "";
  opacity: 0;
  transition: opacity 340ms var(--ease-soft);
}

.lightbox.is-open,
.lightbox.is-closing {
  visibility: visible;
  transition-delay: 0s;
}

.lightbox.is-open {
  background: rgba(9, 19, 14, 0.72);
  opacity: 1;
  pointer-events: auto;
}

.lightbox.is-open::before,
.lightbox.is-closing::before {
  opacity: 1;
}

.lightbox-figure {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: min(1120px, 90vw);
  max-height: 86vh;
  max-height: 86svh;
  justify-items: center;
  margin: 0;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(var(--lightbox-start-x), var(--lightbox-start-y), 0) scale(var(--lightbox-start-scale));
  transform-origin: center;
  transition:
    transform 440ms var(--ease-premium),
    opacity 300ms var(--ease-soft),
    filter 360ms var(--ease-soft);
  will-change: transform, opacity, filter;
}

.lightbox.is-open .lightbox-figure {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.lightbox.is-closing .lightbox-figure {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(var(--lightbox-start-x), var(--lightbox-start-y), 0) scale(var(--lightbox-start-scale));
}

.lightbox.is-open .lightbox-figure.is-switching-out {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(var(--lightbox-switch-x), 0, 0) scale(0.985);
  transition-duration: 180ms;
}

.lightbox.is-open .lightbox-figure.is-switching-in {
  animation: lightbox-image-in 280ms var(--ease-soft) both;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  max-height: 78svh;
  border-radius: calc(var(--radius-sm) + 4px);
  background: rgba(255, 253, 248, 0.08);
  box-shadow: 0 34px 95px rgba(0, 0, 0, 0.36);
}

.lightbox figcaption {
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 260ms var(--ease-soft),
    transform 300ms var(--ease-soft);
}

.lightbox.is-open figcaption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 140ms;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 3;
  display: grid;
  width: clamp(46px, 5vw, 56px);
  height: clamp(46px, 5vw, 56px);
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  color: var(--white);
  font-size: 1.4rem;
  transition:
    transform 260ms var(--ease-soft),
    border-color 260ms var(--ease-soft),
    background 260ms var(--ease-soft),
    opacity 260ms var(--ease-soft);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  border-color: rgba(255, 253, 248, 0.58);
  background: rgba(255, 253, 248, 0.18);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: scale(1.04);
}

.lightbox-prev {
  top: 50%;
  left: clamp(18px, 3.6vw, 34px);
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-prev:focus-visible {
  transform: translateY(-50%) translateX(-3px);
}

.lightbox-next {
  top: 50%;
  right: clamp(18px, 3.6vw, 34px);
  transform: translateY(-50%);
}

.lightbox-next:hover,
.lightbox-next:focus-visible {
  transform: translateY(-50%) translateX(3px);
}

@keyframes lightbox-image-in {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(var(--lightbox-switch-x), 0, 0) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 0.72fr);
  align-items: start;
  gap: clamp(60px, 10vw, 130px);
}

.pricing-layout .price-card {
  position: sticky;
  top: 112px;
  background: var(--forest);
  color: var(--white);
}

.terms {
  display: grid;
  gap: 0;
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.term {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.term--highlight {
  margin-top: 20px;
  padding: 26px;
  border: 1px solid rgba(155, 104, 65, 0.2);
  border-radius: var(--radius-md);
  background: rgba(155, 104, 65, 0.08);
}

.term-number {
  color: var(--wood);
  font-family: var(--serif);
  font-size: 1.65rem;
}

.term h3 {
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.term p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.56fr) minmax(0, 1fr);
  gap: 26px;
}

.directions-card {
  padding: 46px;
  border-radius: var(--radius-md);
  background: var(--forest);
  color: var(--white);
}

.directions-card h2 {
  margin-bottom: 20px;
  font-size: 3.1rem;
}

.directions-card p {
  color: rgba(255, 255, 255, 0.68);
}

.route-facts {
  display: grid;
  gap: 0;
  margin: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.route-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
}

.route-fact strong {
  color: #e4c99d;
}

.map-frame {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #dfe6df;
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.65) sepia(0.08);
}

.map-badge {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1fr);
  gap: clamp(54px, 9vw, 120px);
}

.contact-details {
  position: sticky;
  top: 112px;
  align-self: start;
}

.contact-details h2 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4vw, 4.5rem);
}

.contact-details > p {
  color: var(--muted);
}

.phone-list {
  display: grid;
  gap: 12px;
  margin: 36px 0;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.44);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.phone-link:hover {
  transform: translateX(5px);
  border-color: var(--forest);
  background: var(--white);
}

.phone-link svg {
  width: 21px;
  color: var(--wood);
}

.contact-form {
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.form-intro {
  margin-bottom: 38px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b9bcb5;
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.field input {
  height: 52px;
}

.field textarea {
  min-height: 150px;
  padding-top: 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 1px 0 var(--forest);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
}

.form-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 100ms;
}

.delay-2 {
  transition-delay: 200ms;
}

.delay-3 {
  transition-delay: 300ms;
}

@media (max-width: 1020px) {
  :root {
    --container: min(100% - 36px, 900px);
  }

  .nav-links {
    gap: 20px;
  }

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

  .hero-aside,
  .scroll-cue {
    display: none;
  }

  .intro-grid,
  .pricing-layout,
  .contact-layout {
    gap: 60px;
  }

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

  .price-band {
    gap: 36px;
  }

  .contact-ribbon {
    padding: 54px;
  }
}

@media (max-width: 800px) {
  .section {
    padding: 88px 0;
  }

  .site-header,
  .site-header.is-scrolled,
  .site-header.header--solid {
    height: 72px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    flex-direction: column;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .hero .display {
    font-size: clamp(3.6rem, 14vw, 6rem);
  }

  .intro-grid,
  .pricing-layout,
  .map-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid .image-frame {
    order: 2;
  }

  .image-note {
    right: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-preview {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 440px 260px;
  }

  .gallery-preview a:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .price-band {
    grid-template-columns: 1fr;
  }

  .contact-ribbon {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: dense;
    grid-auto-rows: 280px;
  }

  .gallery-item--house,
  .gallery-item--lake,
  .gallery-item--garden-side,
  .gallery-item--garden-swing,
  .gallery-item--interior-wide,
  .gallery-item--interior-tall,
  .gallery-item--interior-detail {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item--house,
  .gallery-item--interior-wide {
    grid-column: 1 / -1;
  }

  .gallery-item--lake {
    grid-row: span 2;
  }

  .gallery-item--interior-tall,
  .gallery-item--interior-detail {
    grid-row: span 2;
  }

  .pricing-layout .price-card,
  .contact-details {
    position: static;
  }

  .map-frame {
    min-height: 500px;
  }
}

@media (max-width: 560px) {
  :root {
    --container: calc(100% - 28px);
    --radius-lg: 28px;
  }

  .section {
    padding: 72px 0;
  }

  .brand-tagline {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-media img {
    object-position: 58% 50%;
  }

  .hero-content {
    padding: 150px 0 42px;
  }

  .hero .display {
    font-size: clamp(3.25rem, 15vw, 4.65rem);
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .detail-list,
  .features,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-icon {
    margin-bottom: 34px;
  }

  .gallery-preview {
    display: flex;
    flex-direction: column;
  }

  .gallery-preview a,
  .gallery-preview a:first-child {
    height: 330px;
  }

  .price-card,
  .directions-card {
    padding: 34px 26px;
  }

  .contact-ribbon {
    padding: 38px 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    min-height: 58svh;
  }

  .page-hero-content {
    padding: 140px 0 48px;
  }

  .page-hero .display {
    font-size: clamp(3.5rem, 18vw, 5.3rem);
  }

  .gallery-masonry {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .gallery-item--house,
  .gallery-item--lake,
  .gallery-item--garden-side,
  .gallery-item--garden-swing,
  .gallery-item--interior-wide,
  .gallery-item--interior-tall,
  .gallery-item--interior-detail {
    grid-column: 1;
    grid-row: auto;
    height: 300px;
  }

  .gallery-item--lake,
  .gallery-item--interior-tall {
    height: 440px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-figure {
    max-width: 100%;
    max-height: calc(100vh - 124px);
    max-height: calc(100svh - 124px);
  }

  .lightbox img {
    max-height: calc(100vh - 178px);
    max-height: calc(100svh - 178px);
    border-radius: var(--radius-sm);
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lightbox-prev:hover,
  .lightbox-prev:focus-visible,
  .lightbox-next:hover,
  .lightbox-next:focus-visible {
    transform: translateY(-2px);
  }

  .term {
    grid-template-columns: 44px 1fr;
  }

  .map-frame {
    min-height: 420px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::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;
  }
}
