:root {
  color-scheme: light;
  --bg: #f3eee4;
  --paper: rgba(255, 250, 240, 0.78);
  --paper-strong: #fffaf0;
  --ink: #17140f;
  --muted: #746b5f;
  --soft: rgba(23, 20, 15, 0.1);
  --line: rgba(23, 20, 15, 0.14);
  --gold: #b28746;
  --sage: #60705c;
  --clay: #a35f3b;
  --sky: #dce8ed;
  --radius: 8px;
  --shadow: 0 26px 80px rgba(70, 48, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 6%, rgba(96, 112, 92, 0.18), transparent 28%),
    radial-gradient(circle at 14% 24%, rgba(178, 135, 70, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(23, 20, 15, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--bg);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body::selection {
  color: var(--paper-strong);
  background: var(--ink);
}

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

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 18px;
  right: 28px;
  left: 28px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}

.brand,
.nav {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 38px rgba(70, 48, 24, 0.1);
  backdrop-filter: blur(18px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand span {
  width: 46px;
  height: 1px;
  background: var(--gold);
}

.nav {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.7);
  box-shadow: 0 12px 38px rgba(70, 48, 24, 0.1);
  backdrop-filter: blur(18px);
}

.nav a {
  min-width: 112px;
  padding: 15px 18px;
  border-right: 1px solid var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.nav a:last-child {
  border-right: 0;
}

.nav a:hover {
  background: rgba(178, 135, 70, 0.12);
}

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--sky);
  padding-bottom: 34px;
}

.cover-video,
.hero-overlay,
.blueprint-lines {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: min(68svh, 720px);
}

.cover-video {
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.08) contrast(1.02) brightness(1.02);
  transform: scale(1.035);
  animation: houseReveal 1400ms cubic-bezier(0.2, 0.72, 0.16, 1) both;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(243, 238, 228, 0.06) 0%, rgba(243, 238, 228, 0.16) 52%, rgba(243, 238, 228, 0.82) 100%),
    linear-gradient(90deg, rgba(243, 238, 228, 0.08), rgba(243, 238, 228, 0.22));
}

.blueprint-lines {
  z-index: 2;
  opacity: 0.45;
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(255, 250, 240, 0.46) 23% calc(23% + 1px), transparent calc(23% + 1px)),
    linear-gradient(90deg, transparent 0 62%, rgba(255, 250, 240, 0.38) 62% calc(62% + 1px), transparent calc(62% + 1px)),
    linear-gradient(0deg, transparent 0 76%, rgba(255, 250, 240, 0.42) 76% calc(76% + 1px), transparent calc(76% + 1px));
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  width: min(1280px, calc(100% - 56px));
  min-height: auto;
  margin: 0 auto;
  padding: calc(min(68svh, 720px) + 30px) 0 18px;
}

.hero-copy {
  width: min(980px, 100%);
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: panelRise 900ms 240ms cubic-bezier(0.2, 0.72, 0.16, 1) both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(44px, 5.7vw, 88px);
  font-weight: 300;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 300;
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 300;
  line-height: 1.08;
}

.hero-copy p:not(.eyebrow),
.concept p,
.gallery-head p,
.location-card p,
.contact-copy p,
.process-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-copy p:not(.eyebrow) {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-btn {
  color: var(--paper-strong);
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 14px 32px rgba(23, 20, 15, 0.18);
}

.secondary-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.hero-bottom {
  position: relative;
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: panelRise 900ms 420ms cubic-bezier(0.2, 0.72, 0.16, 1) both;
}

.hero-bottom article {
  min-height: 86px;
  padding: 18px 20px;
  background: rgba(255, 250, 240, 0.64);
}

.hero-bottom span,
.process-card span,
.detail-list span,
.gallery-shot span,
.section-label {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-bottom strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
}

.sound-toggle {
  position: absolute;
  right: 34px;
  top: 94px;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.68);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.sound-toggle span,
.sound-toggle span::before,
.sound-toggle span::after {
  position: absolute;
  display: block;
  background: var(--ink);
  content: "";
}

.sound-toggle span {
  top: 17px;
  left: 16px;
  width: 4px;
  height: 14px;
}

.sound-toggle span::before {
  top: -3px;
  left: 4px;
  width: 11px;
  height: 20px;
  clip-path: polygon(0 32%, 100% 0, 100% 100%, 0 68%);
}

.sound-toggle span::after {
  top: 6px;
  left: 20px;
  width: 13px;
  height: 2px;
  transform: rotate(-42deg);
}

.sound-toggle.is-on span::after {
  display: none;
}

.section {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-label {
  margin-bottom: 30px;
}

.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}

.glass-panel,
.process-card,
.details-shell,
.location-card,
.lead-form,
.contact-copy {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.glass-panel {
  padding: clamp(26px, 4vw, 44px);
}

.process {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  padding-top: 28px;
}

.process-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.process-card.large {
  grid-row: span 2;
  min-height: 740px;
}

.process-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(1.04);
  transition: transform 520ms ease;
}

.process-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.72), transparent 58%);
  content: "";
}

.process-card:hover img {
  transform: scale(1.035);
}

.process-card div {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  z-index: 2;
  color: var(--paper-strong);
}

.process-card p {
  color: rgba(255, 250, 240, 0.74);
}

.process-card h3 {
  margin-top: 16px;
}

.gallery {
  padding-top: 90px;
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.gallery-head .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.gallery-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-shot {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  padding: 0;
  color: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 56px rgba(70, 48, 24, 0.12);
  cursor: pointer;
}

.gallery-shot.wide {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-shot.tall {
  grid-row: span 2;
}

.gallery-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(1.02);
  transition: transform 420ms ease;
}

.gallery-shot::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.58), transparent 52%);
  content: "";
}

.gallery-shot span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  color: var(--paper-strong);
}

.gallery-shot:hover img {
  transform: scale(1.04);
}

.details-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 42px;
  padding: clamp(28px, 5vw, 56px);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--soft);
  border-radius: 20px;
  background: var(--soft);
}

.detail-list div {
  min-height: 112px;
  padding: 20px;
  background: rgba(255, 250, 240, 0.68);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.detail-list div:hover {
  background: rgba(255, 255, 255, 0.84);
  transform: translateY(-2px);
}

.detail-list strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1fr);
  gap: 36px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
}

.location-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(0.96) saturate(1.02);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
  padding-bottom: 120px;
}

.contact-copy,
.lead-form {
  padding: clamp(28px, 4vw, 48px);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: rgba(178, 135, 70, 0.7);
  box-shadow: 0 0 0 4px rgba(178, 135, 70, 0.12);
}

.form-submit {
  width: 100%;
  border-radius: 12px;
}

.lead-form p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 20, 15, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: 86svh;
  border-radius: var(--radius);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 48px;
  height: 48px;
  color: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

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

.process-card[data-reveal],
.gallery-shot[data-reveal],
.detail-list div[data-reveal] {
  transform: translateY(28px) scale(0.98);
}

.process-card[data-reveal].is-visible,
.gallery-shot[data-reveal].is-visible,
.detail-list div[data-reveal].is-visible {
  transform: translateY(0) scale(1);
}

@keyframes houseReveal {
  from {
    opacity: 0;
    transform: scale(1.09);
  }
  to {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1040px) {
  .concept-grid,
  .details-shell,
  .location-card,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .process-card.large {
    min-height: 520px;
  }

  .gallery-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-shot,
  .gallery-shot.wide,
  .gallery-shot.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .nav {
    display: none;
  }

  .brand {
    min-height: 40px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: calc(100% - 28px);
    padding: calc(58svh + 18px) 0 14px;
  }

  .cover-video,
  .hero-overlay,
  .blueprint-lines {
    height: 58svh;
  }

  .hero-copy {
    border-radius: 22px;
    padding: 20px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 54px);
  }

  .hero-bottom {
    width: calc(100% - 28px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-bottom article {
    min-height: 72px;
    padding: 14px;
  }

  .hero-bottom strong {
    font-size: 18px;
  }

  .sound-toggle {
    top: 72px;
    right: 16px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 68px 0;
  }

  .detail-list,
  .gallery-wall {
    grid-template-columns: 1fr;
  }

  .process-card,
  .process-card.large,
  .gallery-wall {
    min-height: auto;
  }

  .process-card {
    height: 390px;
  }

  .gallery-wall {
    grid-auto-rows: 260px;
  }

  .location-card img {
    height: 300px;
  }

  .contact {
    padding-bottom: 76px;
  }

  .contact-copy,
  .lead-form,
  .details-shell {
    padding: 22px;
    border-radius: 22px;
  }
}
