:root {
  --bg: #f3ede4;
  --panel: rgba(255, 250, 244, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.48);
  --text: #211b16;
  --muted: #786d64;
  --line: rgba(34, 29, 24, 0.08);
  --bronze: #9e6742;
  --bronze-deep: #734626;
  --green: #274236;
  --ink: #181716;
  --shadow: 0 18px 60px rgba(74, 54, 35, 0.08);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(193, 212, 214, 0.34), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(190, 148, 112, 0.22), transparent 22%),
    linear-gradient(180deg, #f8f2e9 0%, #f3ecdf 44%, #efe7dc 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02));
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.7) 0.5px, transparent 0.6px),
    radial-gradient(circle at 80% 40%, rgba(0, 0, 0, 0.55) 0.5px, transparent 0.6px),
    radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.65) 0.5px, transparent 0.6px);
  background-size: 18px 18px, 22px 22px, 26px 26px;
}

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

main,
.site-header {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(251, 246, 239, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(48, 32, 21, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 118px;
  height: 34px;
}

.brand-logo {
  display: block;
  width: 118px;
  height: auto;
}

h1,
h2,
h3,
.hero-note strong,
.map-badge strong {
  font-family: "Forum", serif;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: rgba(158, 103, 66, 0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

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

.button-primary {
  color: #fffaf5;
  background: linear-gradient(135deg, var(--bronze-deep), var(--bronze), #b78963);
  box-shadow: 0 16px 32px rgba(112, 66, 36, 0.18);
}

.button-secondary {
  border: 1px solid rgba(34, 29, 24, 0.1);
  background: rgba(255, 255, 255, 0.45);
}

section {
  margin-top: 22px;
}

.hero,
.quiet-block,
.projects-grid-section,
.location,
.contact-band,
.gallery-hub {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.82), rgba(255, 247, 241, 0.7));
  box-shadow: var(--shadow);
}

.hero,
.quiet-block,
.projects-grid-section,
.location,
.contact-band,
.gallery-hub {
  padding: 26px;
}

.hero {
  display: grid;
  gap: 0;
}

.hero-shell,
.quiet-block {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: end;
}

.hero-copy {
  max-width: 640px;
  padding: 4px 8px 10px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

h1 span {
  display: block;
  color: var(--bronze);
}

.hero-text {
  margin: 18px 0 0;
  max-width: 31ch;
  font-size: 1.04rem;
  line-height: 1.65;
  color: #51463e;
}

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

.hero-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(248, 240, 232, 0.68));
}

.hero-note span,
.soft-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #685d54;
}

.hero-note strong {
  display: block;
  margin-top: 14px;
  font-size: 1.8rem;
  line-height: 1.02;
}

.quiet-copy h2,
.split-head h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.8vw, 4.3rem);
  line-height: 0.96;
}

.quiet-lines {
  display: grid;
  gap: 14px;
  padding-top: 24px;
}

.quiet-lines p {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(34, 29, 24, 0.08);
  font-size: 1.02rem;
  line-height: 1.55;
  color: #5a4f46;
}

.split-head {
  max-width: 760px;
  margin-bottom: 22px;
}

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

.project-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  min-height: 470px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(45, 35, 27, 0.1);
}

.project-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--card-overlay);
  pointer-events: none;
}

.project-card > :not(.project-slider) {
  position: relative;
  z-index: 1;
}

.project-slider {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #29231f;
}

.project-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.project-slider img.is-preparing {
  z-index: 1;
  opacity: 0;
  transform: scale(1.025);
}

.project-slider img.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 1600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 6500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-slider img.is-active.is-leaving {
  z-index: 3;
  opacity: 0;
  transform: scale(0.992);
  transition:
    opacity 1500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card > .project-slider-controls {
  position: absolute;
  z-index: 3;
  top: 43%;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.project-slider-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 17, 14, 0.2);
  backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
  transition: background 180ms ease, transform 180ms ease;
}

.project-slider-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.project-slider-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.project-card-hero {
  --card-overlay: linear-gradient(180deg, rgba(16, 48, 82, 0.34) 0%, rgba(20, 52, 92, 0.04) 42%, rgba(20, 52, 92, 0.94) 100%);
}

.project-card-sand {
  --card-overlay: linear-gradient(180deg, rgba(100, 31, 14, 0.3) 0%, rgba(116, 42, 21, 0.04) 42%, rgba(116, 42, 21, 0.94) 100%);
}

.project-card-cream {
  --card-overlay: linear-gradient(180deg, rgba(63, 43, 27, 0.28) 0%, rgba(74, 49, 29, 0.04) 42%, rgba(74, 49, 29, 0.94) 100%);
}

.project-card-hero p,
.project-card-hero .project-topline a,
.project-card-hero .project-meta span {
  color: rgba(255, 255, 255, 0.88);
}

.project-card-sand .project-topline a,
.project-card-sand p {
  color: rgba(255, 243, 237, 0.86);
}

.project-card-sand .project-meta span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 129, 87, 0.3);
}

.project-card-cream .project-topline a,
.project-card-cream .project-meta span {
  color: rgba(255, 255, 255, 0.88);
}

.project-card-hero .soft-tag {
  background: rgba(121, 178, 251, 0.28);
  color: #fff;
}

.project-card-sand .soft-tag {
  background: rgba(255, 243, 237, 0.18);
  color: #fff3ed;
}

.project-card-cream .soft-tag {
  background: rgba(215, 184, 132, 0.24);
  color: #fff;
}

.project-card-wide {
  grid-column: 1 / -1;
}

.project-card-dark {
  --card-overlay: linear-gradient(180deg, rgba(43, 8, 0, 0.32) 0%, rgba(70, 15, 0, 0.05) 42%, rgba(70, 15, 0, 0.96) 100%);
}

.project-card-dark .project-meta span,
.project-card-dark p,
.project-card-dark .project-topline a {
  color: rgba(244, 237, 228, 0.8);
}

.project-card-green {
  --card-overlay: linear-gradient(180deg, rgba(15, 39, 29, 0.3) 0%, rgba(25, 53, 41, 0.04) 42%, rgba(25, 53, 41, 0.96) 100%);
}

.project-card-green .project-meta span,
.project-card-green p,
.project-card-green .project-topline a {
  color: rgba(238, 240, 234, 0.84);
}

.project-card-dark .soft-tag,
.project-card-green .soft-tag {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

.project-card-dark .project-meta span {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(244, 237, 228, 0.84);
}

.project-card-green .project-meta span {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(238, 240, 234, 0.88);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-topline a {
  font-size: 0.92rem;
  color: var(--bronze-deep);
}

.project-card h3,
.location-copy h3 {
  margin: 18px 0 10px;
  font-size: 2rem;
  line-height: 0.98;
}

.project-card p,
.location-copy p {
  margin: 0;
  line-height: 1.72;
  color: #4f453d;
}

.project-card p {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.18);
}

.project-card h3 {
  margin-top: auto;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #645950;
  font-size: 0.82rem;
}

.location-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.75), rgba(241, 234, 226, 0.72));
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6px;
  border-top: 1px solid rgba(34, 29, 24, 0.08);
  font-size: 1rem;
  color: #5f544b;
  transition: color 220ms ease, padding-left 220ms ease;
}

.contact-list a::after {
  content: "↗";
  color: rgba(158, 103, 66, 0.7);
}

.contact-list a:hover {
  color: var(--bronze-deep);
  padding-left: 8px;
}

.gallery-groups {
  display: grid;
  gap: 16px;
}

.gallery-group {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
}

.gallery-group-pool {
  color: #14345c;
  background:
    radial-gradient(circle at top right, rgba(121, 178, 251, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(241, 247, 255, 0.94), rgba(214, 229, 251, 0.86));
}

.gallery-group-terrace {
  color: #fff3ed;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 146, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 129, 87, 0.82), rgba(239, 106, 69, 0.76));
}

.gallery-group-bar {
  color: #f4ede4;
  background:
    radial-gradient(circle at top right, rgba(160, 56, 18, 0.22), transparent 34%),
    linear-gradient(180deg, #661800, #4f1200);
}

.gallery-group-gaia {
  color: #eef0ea;
  background:
    radial-gradient(circle at top right, rgba(217, 184, 131, 0.16), transparent 34%),
    linear-gradient(180deg, #284437, #23372d);
}

.gallery-group-maison {
  color: #5d4833;
  background:
    radial-gradient(circle at top right, rgba(215, 184, 132, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(255, 248, 240, 0.92), rgba(236, 220, 202, 0.84));
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.gallery-head h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.gallery-head a {
  font-size: 0.92rem;
  color: var(--bronze-deep);
}

.gallery-group-bar .gallery-head a,
.gallery-group-bar .gallery-head h3,
.gallery-group-gaia .gallery-head a,
.gallery-group-gaia .gallery-head h3,
.gallery-group-pool .gallery-head a,
.gallery-group-pool .gallery-head h3,
.gallery-group-terrace .gallery-head a,
.gallery-group-terrace .gallery-head h3,
.gallery-group-maison .gallery-head a,
.gallery-group-maison .gallery-head h3 {
  color: inherit;
}

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

.gallery-row img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 260ms ease, box-shadow 260ms ease;
  transform-origin: center center;
}

.gallery-row img:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px rgba(34, 29, 24, 0.16);
}

.gallery-copy {
  margin: 16px 0 0;
  max-width: 54ch;
  line-height: 1.65;
  color: #554a42;
}

.gallery-group-bar .gallery-copy,
.gallery-group-gaia .gallery-copy {
  color: rgba(244, 237, 228, 0.82);
}

.motion-ok .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ok .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ok .focus-scale {
  opacity: 0.84;
  transform: scale(0.985);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease,
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
  will-change: transform, opacity;
}

.motion-ok .focus-scale.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 22px 72px rgba(74, 54, 35, 0.12);
}

.project-map-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.project-map-link:hover {
  color: #2b211a;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.project-map-link svg {
  width: 14px;
  height: 14px;
  margin-left: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-ok .hero-media-scroll {
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(var(--hero-scale, 1));
  opacity: var(--hero-opacity, 1);
  transition:
    transform 180ms ease-out,
    opacity 180ms ease-out;
  transform-origin: center top;
  will-change: transform, opacity;
}

@media (max-width: 1100px) {
  .hero-shell,
  .quiet-block,
  .project-grid,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  main,
  .site-header {
    width: min(calc(100% - 18px), var(--content));
  }

  .site-header {
    position: static;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 18px;
    font-size: 0.88rem;
  }

  .brand {
    width: 106px;
    height: 30px;
  }

  .brand-logo {
    width: 106px;
  }

  .hero,
  .quiet-block,
  .projects-grid-section,
  .location,
  .contact-band,
  .gallery-hub {
    padding: 22px;
    border-radius: 28px;
  }

  .project-card h3,
  .location-copy h3 {
    font-size: 1.7rem;
  }

  .project-card {
    min-height: 520px;
    padding: 22px;
  }

  .project-card > .project-slider-controls {
    top: 40%;
    right: 14px;
    left: 14px;
  }

  .project-topline {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .gallery-head {
    display: grid;
  }

  .gallery-row img {
    height: 200px;
  }

  .motion-ok .focus-scale {
    opacity: 0.92;
    transform: scale(0.993);
  }

  .motion-ok .focus-scale.is-active {
    transform: scale(1);
  }
}

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

  .motion-ok .reveal,
  .motion-ok .focus-scale,
  .motion-ok .hero-media-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-slider img.is-active {
    transform: none;
  }

  .button,
  .site-nav a::after,
  .contact-list a,
  .gallery-row img,
  .project-slider img,
  .project-slider-button {
    transition: none;
  }
}
