/* ==========================================================================
   Nord Star — homepage
   Plain CSS, no build step. Sections map 1:1 to future WP template parts.
   ========================================================================== */

:root {
  --c-ink: #111110;
  --c-black: #0B0B0A;
  --c-paper: #EFEDE8;
  --c-white: #FFFFFF;
  --c-muted: #5F5D58;
  --c-muted-2: #3A3833;
  --c-muted-dark: #A3A19C;
  --c-line: #CFCAC0;
  --c-line-dark: #2E2D2A;
  --c-sky: #A9BAC6;
  --c-forest: #26332B;
  --c-accent: #C8442F;

  --f-body: 'Outfit', system-ui, sans-serif;
  --f-display: 'Outfit', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: 32px;
  --container: 1280px;
  --radius: 0;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --btn-dur: 1s; /* button fill, text colour and text roll share this */
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 128px 0; position: relative; }
.section--light { background: var(--c-paper); color: var(--c-ink); }
.section--dark { background: var(--c-black); color: var(--c-white); }

/* ---------- Guide lines (wireframe columns) ---------- */
.guides {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
}
.guides__inner {
  height: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.guides__inner span { border-left: 1px solid rgba(140, 138, 132, .09); }
.guides__inner span:nth-child(4) { display: none; }
.guides__inner span:nth-child(3) { border-right: 1px solid rgba(140, 138, 132, .09); }

main { position: relative; }
main > * { position: relative; z-index: 2; }
.section, .footer { isolation: isolate; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-muted);
}
.eyebrow--light { color: var(--c-muted-dark); }

.h2 {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.02em;
}
.h2--upper { text-transform: uppercase; }

.display {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(44px, 6vw, 88px); line-height: .98; letter-spacing: -0.03em;
}

/* Split text (built by JS): each word sits in a mask */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
/* Hover/tap: the opposite colour sweeps in diagonally from the bottom-left
   corner to the top-right (::before, clipped by a growing triangle).
   Each variant sets --btn-bg / --btn-fg and the hover pair --btn-fill / --btn-fill-fg. */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor;
  --btn-fill: var(--c-white); --btn-fill-fg: var(--c-black);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 15px; font-weight: 500; line-height: 1;
  padding: 15px 22px; border-radius: var(--radius);
  border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--btn-dur) var(--ease-io);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  clip-path: polygon(0 100%, 0 100%, 0 100%);
  transition: clip-path var(--btn-dur) var(--ease-io);
}
.btn:hover, .btn:focus-visible, .btn:active { color: var(--btn-fill-fg); }
.btn:hover::before, .btn:focus-visible::before, .btn:active::before {
  /* triangle big enough that its long edge clears the top-right corner */
  clip-path: polygon(0 100%, 0 -120%, 220% 100%);
}

.btn--light   { --btn-bg: var(--c-white); --btn-fg: var(--c-black);
                --btn-fill: var(--c-black); --btn-fill-fg: var(--c-white); 
                border: 1px solid var(--c-white);
              }
.btn--dark    { --btn-bg: var(--c-black); --btn-fg: var(--c-white);
                --btn-fill: var(--c-white); --btn-fill-fg: var(--c-black); 
               border: 1px solid var(--c-black);}
.btn--outline { --btn-fg: var(--c-white);
                --btn-fill: var(--c-white); --btn-fill-fg: var(--c-black); }

/* Text roll on hover (markup duplicated by JS) */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll__a, .roll__b { display: block; transition: transform var(--btn-dur) var(--ease-io); }
.roll__b { position: absolute; left: 0; top: 0; transform: translateY(105%); }
[data-roll]:hover .roll__a, [data-roll]:focus-visible .roll__a { transform: translateY(-105%); }
[data-roll]:hover .roll__b, [data-roll]:focus-visible .roll__b { transform: translateY(0); }

/* ---------- Media (image frame w/ parallax headroom) ---------- */
.media {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 4px; background: var(--ph, #2C2B29);
}
.media img {
  position: absolute; left: 0; top: -10%;
  width: 100%; height: 120%; object-fit: cover;
  will-change: transform;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; z-index: 50; top: 20px; left: 50%;
  width: calc(100% - 32px); max-width: 800px;
  transform: translateX(-50%);
  background: var(--c-black); color: var(--c-white);
  padding: 12px 20px;
  transition: transform .6s var(--ease-io), max-width .6s cubic-bezier(.65, 0, .35, 1);
}
/* Open: nav widens while the menu slides down (same duration/easing as .nav__menu) */
.nav.is-open { max-width: 896px; }
.nav.is-hidden { transform: translate(-50%, calc(-100% - 30px)); }

.nav__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav__toggle {
  width: 50px; height: 44px; margin-left: -10px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px;
}
.nav__toggle span {
  display: block; width: 40px; height: 3px; background: var(--c-white);
  transition: transform .45s cubic-bezier(.65, 0, .35, 1), width .45s cubic-bezier(.65, 0, .35, 1);
}
.nav__toggle span:nth-child(2) { width: 20px; }
.nav.is-open .nav__toggle span { width: 24px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.nav__logo img { height: 18px; width: auto; }

.nav__menu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .6s cubic-bezier(.65, 0, .35, 1);
}
.nav.is-open .nav__menu { grid-template-rows: 1fr; }
.nav__menu-inner { overflow: hidden; min-height: 0; }
.nav__tiles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px 0 8px;
}
.nav__tile {
  aspect-ratio: 1 / 1; border: 1px solid var(--c-white);
  background: var(--c-white); color: var(--c-black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 2.2vw, 30px); letter-spacing: -0.01em;
  opacity: 0; transform: translateY(-16px) scale(.96);
  transition: opacity .5s ease, transform .6s var(--ease-out), background .25s ease, color .25s ease;
}
.nav.is-open .nav__tile { opacity: 1; transform: none; }
.nav.is-open .nav__tile:nth-child(1) { transition-delay: .15s, .15s, 0s, 0s; }
.nav.is-open .nav__tile:nth-child(2) { transition-delay: .23s, .23s, 0s, 0s; }
.nav.is-open .nav__tile:nth-child(3) { transition-delay: .31s, .31s, 0s, 0s; }
/* Optional faded photo behind the label: set --tile-img inline */
.nav__tile--img { position: relative; isolation: isolate; overflow: hidden; }
.nav__tile--img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--tile-img) center / cover no-repeat;
  opacity: .1;
  transition: opacity .4s ease, transform 1s var(--ease-out);
}
.nav__tile--img:hover::before { opacity: .25; transform: scale(1.06); }
.nav__tile:hover, .nav__tile:focus-visible { background: var(--c-black); color: var(--c-white); border-color: #3A3936; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--c-sky);
  display: flex; flex-direction: column;
  /* Full screen; svh = visible height on mobile (excludes browser bars) */
  height: 100vh; height: 100svh; min-height: 560px;
  --hero-h: max(100svh, 560px); /* same as height, for the scroll keyframes */
}
.hero__sky { position: absolute; inset: 0; overflow: hidden; background: #2A3438; }
/* Background photo, 60% darker; taller than the hero so it can parallax */
.hero__sky img {
  position: absolute; left: 0; top: -10%;
  width: 100%; height: 120%; object-fit: cover;
  filter: brightness(.55);
  will-change: transform;
}
/* Darkens the photo on scroll (brightness .55 → .3). Opacity is cheap to
   animate; animating the img's filter repaints the whole photo every frame. */
.hero__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }

/* Scroll parallax on the compositor where supported, so it stays locked to
   native (iOS momentum) scrolling; otherwise main.js runs it with GSAP.
   exit-crossing 0–100% = hero top at viewport top → hero bottom at viewport top. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --hero block; }
    .hero__brand, .hero__sky img, .hero__shade {
      animation: linear both;
      animation-timeline: --hero;
      animation-range: exit-crossing 0% exit-crossing 100%;
    }
    /* Logo rises at ~65% of scroll speed: down 35% of the hero + 60% of itself */
    .hero__brand { animation-name: hero-brand; }
    .hero__sky img { animation-name: hero-sky; }
    .hero__shade { animation-name: hero-shade; }
  }
}
@keyframes hero-brand { to { translate: 0 calc(var(--hero-h) * .35 + 60%); } }
@keyframes hero-sky { to { translate: 0 8%; } }
@keyframes hero-shade { to { opacity: .45; } }
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  /* Fills whatever height is left above the panel. Size container so the
     house/logo can be sized in cqw/cqh (stage width / height). */
  flex: 1 1 auto; min-height: 0;
  container-type: size;
  /* House height: from its width (84% wide, image ratio 2100x850),
     but never taller than 80% of the stage on short/wide screens */
  --house-h: min(38cqw, 86cqh);
}
.hero__brand {
  position: absolute; left: 6%; right: 6%; bottom: calc(var(--house-h) * .76); z-index: 1;
  will-change: transform;
}
.hero__brand img { width: 100%; height: auto; opacity: .92; }
.hero__house {
  position: absolute; left: 0; right: 0; margin: 0 auto; bottom: -30px; z-index: 2;
  width: auto; max-width: none; height: var(--house-h);
  transform-origin: 50% 100%; will-change: transform;
}
.hero__panel {
  position: relative; z-index: 3;
  color: var(--c-white);
  padding: 0 0 60px;
}
.hero__panel-inner {
  display: flex; align-items: flex-end; justify-content: flex-end; gap: 32px; flex-wrap: wrap;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; max-width: 560px; }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.01em;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding-bottom: 64px; }
.about .container { display: flex; flex-direction: column; gap: 72px; }
.about__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.about__head .h2 { max-width: 680px; }

.about__grid .media img {
  left: 0;
  top: 0%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: stretch;
}
.about__cta { display: flex; flex-direction: column; justify-content: flex-end; }
.about__media { 
  height: 280px; 
  background: var(--c-paper);
}
.about__text { display: flex; flex-direction: column; gap: 20px; font-size: 15px; line-height: 1.6; color: var(--c-muted-2); }

/* lines drawn by JS: [data-line] gets a top border that scales in */
[data-line] { position: relative; }
[data-line]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--c-line); transform-origin: 0 50%;
  transform: scaleX(var(--line, 1));
}
.section--dark [data-line]::before { background: var(--c-line-dark); }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 32px;
}
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat__label { font-size: 13px; color: var(--c-muted); }
.stat__num {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(48px, 5vw, 72px);
  line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.stat p { font-size: 14px; line-height: 1.55; color: var(--c-muted); max-width: 320px; }

.partners {
  margin-top: 64px; padding-top: 48px; display: none;
  max-width: var(--container); margin-left: auto; margin-right: auto;
}
.partners__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px 96px;
}
.partners__row img { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.partners__label { display: block; margin-bottom: 40px; text-align: center; }

/* ==========================================================================
   PROPERTIES
   ========================================================================== */
.properties { padding: 160px 0 140px; }
/* Head sticks near the top and stays behind the cards until the grid ends */
.properties__stage { position: relative; }
.properties__head {
  position: sticky; top: 120px; z-index: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  margin-bottom: 120px;
  will-change: opacity;
}
.properties__head .eyebrow { grid-column: 1; align-self: start; padding-top: 12px; }
.properties__head .display { grid-column: 2 / 4; }
.properties__lead {
  grid-column: 3; max-width: 320px; font-size: 15px; line-height: 1.6; color: var(--c-muted-dark);
}

/* Free-form editorial grid (12 cols) — positions mirror the wireframe */
.properties__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px; row-gap: 96px; align-items: start;
}
.prop { display: flex; flex-direction: column; gap: 8px; }
.prop__media { margin-bottom: 10px; }
.prop__name { font-size: 15px; font-weight: 500; }
.prop__price {
  font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.01em;
}
.prop .media img { transition: scale 1.2s var(--ease-out); }
.prop:hover .media img { scale: 1.05; }
.prop .media::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.0); transition: background .4s ease;
}
.prop:hover .media::after { background: rgba(0,0,0,.12); }

.prop--a { grid-column: 1 / span 5;  } .prop--a .prop__media { aspect-ratio: 3 / 5; }
.prop--b { grid-column: 7 / span 6; margin-top: 0; } .prop--b .prop__media { aspect-ratio: 3 / 2; }
.prop--c { grid-column: 8 / span 5; margin-top: -280px; } .prop--c .prop__media { aspect-ratio: 4 / 3; }
.prop--d { grid-column: 1 / span 6; } .prop--d .prop__media { aspect-ratio: 16 / 9; }
.prop--e { grid-column: 9 / span 4; margin-top: 120px; } .prop--e .prop__media { aspect-ratio: 4 / 5; }
.prop--f { grid-column: 2 / span 5; } .prop--f .prop__media { aspect-ratio: 7 / 8; }
.prop--g { grid-column: 8 / span 5; margin-top: 200px; } .prop--g .prop__media { aspect-ratio: 4 / 5; }
.prop--h { grid-column: 1 / span 6; margin-top: -120px; } .prop--h .prop__media { aspect-ratio: 5 / 4; }

.properties__more { display: flex; justify-content: center; margin-top: 140px; }
.properties__more .btn { align-self: center; }

/* ==========================================================================
   HOW WE WORK
   ========================================================================== */
.how .container { display: flex; flex-direction: column; gap: 96px; }
.how__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.how__head p { max-width: 480px; font-size: 15px; line-height: 1.6; color: var(--c-muted); }
.display--dark { font-size: clamp(40px, 5vw, 72px); }

.how__steps { position: relative; }
.how__progress {
  position: absolute; left: -24px; top: 0; bottom: 0; width: 1px; background: var(--c-line);
}
.how__progress span {
  position: absolute; inset: 0; background: var(--c-ink);
  transform-origin: 50% 0; transform: scaleY(0);
}

.step {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px; row-gap: 32px; margin-bottom: 120px;
}
.step:last-child { margin-bottom: 0; }

/* Stacking steps (all screens): each step sticks to the top and the next one
   slides over it. Covered steps are scaled/washed out by JS (--cover 0→1).
   Steps must fit in the viewport, so media height is capped. */
.step {
  position: sticky; top: 10px;
  background: var(--c-paper);
  padding: 24px 0 40px;
  transform-origin: 50% 0;
}
.step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--c-paper); opacity: calc(var(--cover, 0) * .6);
}
.step__media { max-height: calc(100vh - 280px); max-height: calc(100svh - 280px); }
/* Extra scroll room so the last step also reaches the top and holds there
   before the stack scrolls away. Must be real content (not padding):
   sticky children are limited to the parent's content box. */
.how__steps::after { content: ""; display: block; height: 40vh; }
.step__head {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 0; padding-bottom: 18px; color: var(--c-muted);
}
.step__head::before { top: auto !important; bottom: 0; }
.step__head h3 { margin: 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.step__head span { font-family: var(--f-display); font-size: 20px; }
.step__lead {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.25; letter-spacing: -0.01em;
}
.step__media { aspect-ratio: 3 / 4; }
.step__points {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--c-muted-2);
}
.step__points li { display: flex; gap: 10px; align-items: baseline; }
.step__points li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent);
  flex: 0 0 auto; transform: translateY(-2px);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services .container { display: flex; flex-direction: column; gap: 96px; }
.services__head { display: flex; flex-direction: column; gap: 18px; }
.services__head .display { font-size: clamp(40px, 5vw, 72px); }
.services__head p { max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--c-muted-dark); }

.services__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; align-items: center;
}
.services__media { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.services__media .media {
  position: absolute; inset: 0; border-radius: 0;
  clip-path: inset(100% 0 0 0); z-index: 1;
  transition: clip-path 1s var(--ease-io);
}
.services__media .media img { top: 0; height: 100%; transform: scale(1.18); transition: transform 1.4s var(--ease-out); }
.services__media .media.is-active { clip-path: inset(0 0 0 0); z-index: 3; }
.services__media .media.is-active img { transform: scale(1); }
.services__media .media.was-active { clip-path: inset(0 0 0 0); z-index: 2; }

.services__list { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.svc {
  background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08; letter-spacing: -0.02em; color: #4E4C48;
  display: inline-flex; align-items: flex-start;
  transition: color .4s ease, transform .5s var(--ease-out);
}
.svc sup {
  font-family: var(--f-mono); font-size: 13px; font-weight: 400; margin-left: 6px; margin-top: .35em; line-height: 1;
}
.svc:hover { color: #A3A19C; }
.svc.is-active { color: var(--c-white); transform: translateX(14px); }

.services__text { display: flex; flex-direction: column; gap: 28px; }
.services__texts { display: grid; }
.services__texts p {
  grid-area: 1 / 1; font-size: 16px; line-height: 1.6; color: #D6D4CF;
  opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity .5s ease, transform .6s var(--ease-out), visibility 0s linear .6s;
}
.services__texts p.is-active {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .6s ease .2s, transform .7s var(--ease-out) .2s, visibility 0s;
}

/* ==========================================================================
   LANDSCAPE — sticky frame that opens up while scrolling
   ========================================================================== */
.landscape { height: 220vh; background: var(--c-black); }
.landscape__frame {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  clip-path: inset(var(--clip-y, 0%) var(--clip-x, 0%) round var(--clip-r, 0px));
}
.landscape__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: #8C9AA2; will-change: transform;
}
.landscape__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 40%, rgba(0,0,0,.45) 100%);
}
.landscape__caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 64px;
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  color: var(--c-white); display: flex; flex-direction: column; gap: 12px;
}
.landscape__caption p {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 5vw, 76px);
  line-height: 1; letter-spacing: -0.03em; max-width: 12ch;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 112px 0 0; overflow: hidden; }
.footer .container { display: flex; flex-direction: column; gap: 72px; }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__title { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.03em; max-width: 680px; }
.footer__cta .btn { align-self: flex-end; }

.footer__cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
  padding-top: 40px; font-size: 14px; line-height: 1.8; color: var(--c-muted-dark);
}
.footer__col { display: flex; flex-direction: column;align-items: flex-start; }
.footer__col a { transition: color .25s ease; }
.footer__col a:hover { color: var(--c-white); }
.footer__label { color: var(--c-white); font-weight: 500; }
.footer__logo { height: 16px; width: auto; margin-bottom: 12px; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #8A8883;
}
.footer__mega { padding: 72px var(--gutter) 24px; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; }
.footer__mega img {
  width: 100%; height: auto; opacity: .08;
  /* Fades out toward the bottom: 10% visible at the bottom edge → 100% at the top */
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.1), #000);
          mask-image: linear-gradient(to top, rgba(0,0,0,.1), #000);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .properties__grid { column-gap: 20px; }
  .step { grid-template-columns: 1fr 1fr; }
  .step__lead { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section { padding: 88px 0; }
  .guides { display: none; }

  .nav { top: 12px; padding: 10px 14px; }
  .nav__logo img { height: 15px; }
  .hero {height: 120vh; height: 120svh; --hero-h: max(120svh, 560px); }
  .partners__row { gap: 32px 48px; }
  .partners__row img { height: 36px; max-width: 160px; }
  .hero__stage { --house-h: min(48.6cqw, 80cqh); }
  .hero__brand { bottom: calc(var(--house-h) * 1.4); }
  .hero__house { 
    margin: 0 auto;
    bottom: 5rem;
    max-width: 93%;
    height: auto;
  }

  .hero__sky img {
    top: -20%;
  }

  .hero__panel {
    padding: 0 0 150px;
  }

  .about__grid, .stats { grid-template-columns: 1fr; }
  .about__cta { order: 3; }
  .about__media { height: 280px; }

  .properties { padding: 112px 0 96px; }
  .properties__head { grid-template-columns: 1fr; margin-bottom: 72px; gap: 20px; top: 96px; }
  .properties__head > * { grid-column: 1 !important; }
  .properties__grid { grid-template-columns: 1fr 1fr; row-gap: 56px; column-gap: 16px; }
  .prop { grid-column: auto / span 2 !important; margin-top: 0 !important; }
  .prop:nth-child(odd) { margin-right: 18%; }
  .prop:nth-child(even) { margin-left: 18%; }

  .how__progress { display: none; }
  /* Compact step so it fits on a phone screen while stuck:
     lead on top, image and points side by side */
  .step { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 16px; margin-bottom: 72px; padding: 16px 0 24px; }
  .step__head { padding-bottom: 12px; }
  .step__lead { font-size: 18px; }
  .step__media { aspect-ratio: 3 / 4; max-height: calc(100svh - 330px); }
  .step__points { font-size: 13px; gap: 8px; }
  .step__points li { gap: 8px; }
  .how__steps::after { display: none; }

  .services__grid { grid-template-columns: 1fr; gap: 36px; }
  .services__media { aspect-ratio: 4 / 3; }
  .svc.is-active { transform: translateX(8px); }

  .landscape { height: 160vh; }
  .landscape__frame { height: 100svh; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cta .btn { align-self: flex-start; }
}

/* ==========================================================================
   REDUCED MOTION — show everything static
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .landscape { height: auto; }
  .landscape__frame { position: relative; height: 70vh; }
}

/* ==========================================================================
   PROPERTY PAGE (property.html → WP single-property.php)
   ========================================================================== */
.page-property { background: var(--c-paper); }

/* ---------- Title ---------- */
.p-title { padding: 168px 0 64px; }
.p-title__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.p-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted);
  transition: color .25s ease;
}
.p-back:hover { color: var(--c-ink); }
.p-back svg { transition: transform .4s var(--ease-out); }
.p-back:hover svg { transform: translateX(-4px); }
.p-title__h {
  margin: 0; max-width: 900px; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em;
}
.p-title__lead { max-width: 620px; font-size: 16px; line-height: 1.6; color: var(--c-muted); }

/* ---------- Hero image ---------- */
.p-hero__media { height: clamp(320px, 52vw, 760px); border-radius: 0; }

/* ---------- Body: sticky aside + content ---------- */
.p-body { padding: 72px 0 120px; }
.p-body__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start;
}
.p-aside { position: sticky; top: 120px; }
.p-aside__inner { display: flex; flex-direction: column; gap: 22px; max-width: 380px; }
.p-aside__intro { font-size: 16px; line-height: 1.6; color: var(--c-muted-2); }
.p-aside__loc { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.p-aside__price {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.p-aside__label { font-size: 13px; color: var(--c-muted); }
.p-aside__value { font-family: var(--f-display); font-weight: 500; font-size: 30px; letter-spacing: -0.01em; }

.p-content { display: flex; flex-direction: column; gap: 88px; min-width: 0; }

.p-specs {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
  font-size: 14px;
}
.p-spec {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--c-line);
}
.p-spec dt { color: var(--c-muted); }
.p-spec dd { margin: 0; font-weight: 600; text-align: right; }

.p-block { display: flex; flex-direction: column; gap: 24px; }
.p-h2 {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.1;
}
.p-text { display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.65; color: var(--c-muted-2); }

.p-list {
  margin: 0; padding: 24px 0 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px;
  font-size: 14px; line-height: 1.5; color: var(--c-muted-2);
}
.p-list li { display: flex; gap: 10px; }
.p-list--dots li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent);
  flex: 0 0 auto; margin-top: 8px;
}
.p-list--strong { color: var(--c-ink); font-weight: 600; }
.p-list--strong li::before { background: var(--c-ink); }
.p-list--num { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: amen; }
.p-list--num li { counter-increment: amen; }
.p-list--num li::before {
  content: counter(amen) "."; font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); padding-top: 2px;
}

/* ---------- Gallery ---------- */
.p-gallery { padding: 0 0 120px; }
.p-gallery .container { display: flex; flex-direction: column; gap: 16px; }
.p-gallery__grid { display: grid; grid-template-columns: 2fr 3fr; gap: 16px; align-items: start; }
.p-gallery__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.p-gallery__item {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.p-gallery__item .media { width: 100%; height: 100%; border-radius: 0; }
.p-gallery__item .media img { transition: scale 1.2s var(--ease-out); }
.p-gallery__item:hover .media img { scale: 1.05; }
.p-gallery__item--1 { height: clamp(320px, 40vw, 580px); }
.p-gallery__item--4 { height: clamp(320px, 44vw, 640px); }
.p-gallery__item--2 { height: clamp(260px, 26vw, 380px); }
.p-gallery__item--3 { height: clamp(300px, 34vw, 500px); }
.p-gallery__item--5 { height: clamp(240px, 22vw, 324px); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 11, 10, .94); color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain;
  transform: scale(.96); transition: transform .6s var(--ease-out), opacity .3s ease;
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-muted-dark);
}

/* ---------- CTA (dotted dark band) ---------- */
.p-cta {
  position: relative;
  background-color: var(--c-black);
  padding: clamp(120px, 16vw, 220px) 0;
}
/* Dot grid: bright in the centre, fading out toward the edges (radial mask) */
.p-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.75) 1.4px, transparent 2px);
  background-size: 48px 48px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.08) 85%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.08) 85%, transparent 100%);
}
.p-cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.p-cta .display { max-width: 900px; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; }
.p-cta p { max-width: 520px; font-size: 15px; line-height: 1.6; color: #C9C7C2; }
.p-cta__btn { padding: 17px 64px; }

/* ---------- Footer: light variant ---------- */
.footer--light { color: var(--c-ink); }
.footer--light .footer__cta { align-items: flex-start; }
.footer--light .footer__cols { color: var(--c-muted); }
.footer--light .footer__col a:hover { color: var(--c-ink); }
.footer--light .footer__label { color: var(--c-ink); font-weight: 600; margin-bottom: 6px; }
.footer--light .footer__bottom { color: var(--c-muted); }
.footer--light .footer__mega img {
  opacity: 1;
  /* lighter top on the paper background: 10% at the bottom → 40% at the top */
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.1), rgba(0,0,0,.4));
          mask-image: linear-gradient(to top, rgba(0,0,0,.1), rgba(0,0,0,.4));
}
.footer__cols--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.newsletter { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; }
.newsletter label { font-size: 13px; color: var(--c-muted); }
.newsletter__row { display: flex; gap: 8px; }
.newsletter input {
  flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 14px;
  border: 1px solid var(--c-line); border-radius: 0; background: var(--c-white);
  font: inherit; font-size: 15px; color: var(--c-ink);
}
.newsletter input:focus { outline: none; border-color: var(--c-ink); }
.newsletter .btn { align-self: stretch; }

@media (max-width: 1024px) {
  .footer__cols--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-list--num { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .p-title { padding: 128px 0 48px; }
  .p-body { padding: 48px 0 88px; }
  .p-body__grid { grid-template-columns: 1fr; gap: 40px; }
  .p-aside { position: static; }
  .p-content { gap: 64px; }
  .p-specs, .p-list { grid-template-columns: 1fr; }
  .p-gallery { padding-bottom: 88px; }
  .p-gallery__grid { grid-template-columns: 1fr; }
  .lightbox__img { max-width: 100vw; max-height: calc(100svh - 160px); }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__count { bottom: 34px; }
  .footer__cols--6 { grid-template-columns: 1fr 1fr; }
  .newsletter__row { flex-direction: column; }
  .newsletter .btn { align-self: flex-start; }
  .landscape__logo {
    max-width: 200px;
    margin-left: 0px;
  }
}

/* ==========================================================================
   WORDPRESS
   ========================================================================== */
body.home { background: #737373; }
.admin-bar .nav { top: 52px; }
@media (max-width: 782px) { .admin-bar .nav { top: 66px; } }

/* Generic pages (page.php / index.php) reuse the property-page typography */
.p-text h2, .p-text h3 { color: var(--c-ink); margin: 16px 0 0; }
.p-text a { color: var(--c-ink); }
.p-text img { max-width: 100%; height: auto; }
.p-page { padding-bottom: 120px; }
.p-page .p-text { max-width: 760px; }
.footer__bottom a { transition: color .25s ease; }
.footer__bottom a:hover { color: var(--c-white); }
.footer--light .footer__bottom a:hover { color: var(--c-ink); }

/* ==========================================================================
   PROPERTIES CATALOG (archive-property.php)
   ========================================================================== */
.post-type-archive-property { background: var(--c-paper); }

.catalog-head { padding: 168px 0 56px; }
.catalog-head__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.catalog-head__copy { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.catalog-head__title {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(52px, 8vw, 120px); letter-spacing: -0.04em;
}
.catalog-head__lead { max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--c-muted); }
.catalog-head__total { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.catalog-head__num { font-family: var(--f-display); font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: -0.03em; }
.catalog-head__word { font-size: 13px; color: var(--c-muted); }

/* Filters */
.catalog-filters__bar {
  background: var(--c-white); border: 1px solid #E0DCD3; border-radius: 12px;
  padding: 16px 20px; display: flex; align-items: flex-start; gap: 20px 28px;
  box-shadow: 0 10px 30px rgba(17, 17, 16, .06);
}
.catalog-filters__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.catalog-filters__group { display: flex; flex-direction: column; gap: 10px; }
.catalog-filters__group--sort { flex: 0 0 auto; margin-left: auto; }
.catalog-filters__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.catalog-filters__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-filters__select {
  height: 40px; min-width: 180px; padding: 0 12px;
  border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-white);
  font: inherit; font-size: 14px; color: var(--c-ink); cursor: pointer;
}

.pill {
  height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink);
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.pill:hover { border-color: var(--c-black); }
.pill.is-active { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }
.pill__count { font-family: var(--f-mono); font-size: 11px; opacity: .7; }

/* Results */
.catalog { padding: 32px 0 120px; }
.catalog .container { display: flex; flex-direction: column; gap: 32px; }
.catalog__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 44px; }
.catalog__count { font-size: 14px; color: var(--c-muted); }
.catalog__count strong { color: var(--c-ink); font-weight: 600; }
.catalog__reset {
  height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--c-ink);
  text-decoration: underline; text-underline-offset: 4px;
}
.catalog__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 56px 24px;
  transition: opacity .25s ease, transform .35s var(--ease-out);
}
.catalog__grid.is-fading { opacity: 0; transform: translateY(14px); }
.catalog__grid[hidden], .card[hidden], .catalog__empty[hidden] { display: none; }

.catalog__empty {
  border: 1px dashed var(--c-line); border-radius: 12px; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.catalog__empty-title { font-family: var(--f-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.catalog__empty p { max-width: 420px; font-size: 15px; line-height: 1.6; color: var(--c-muted); }
.catalog__empty .btn { align-self: center; }

/* Card */
@keyframes nsCardIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.card { display: flex; flex-direction: column; gap: 16px; }
.card.is-in { animation: nsCardIn .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
.card__media { position: relative; height: 340px; overflow: hidden; border-radius: 4px; background: var(--ph, #2C2B29); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.card:hover .card__img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-white); color: var(--c-ink);
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
}
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card__titles { display: flex; flex-direction: column; gap: 4px; }
.card__name { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card__loc { font-size: 13px; color: var(--c-muted); }
.card__arrow {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.card:hover .card__arrow { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }
.card__foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--c-line); padding-top: 14px;
}
.card__price { font-family: var(--f-display); font-size: 24px; font-weight: 500; }
.card__specs { font-size: 13px; color: var(--c-muted); }

/* Footer heading + text (catalog CTA) */
.footer__intro { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.footer__lead { font-size: 15px; line-height: 1.6; color: var(--c-muted-dark); }

@media (max-width: 760px) {
  .catalog-head { padding: 128px 0 40px; }
  .catalog-head__total { align-items: flex-start; }
  .catalog-filters__bar { flex-direction: column; }
  .catalog-filters__group--sort { margin-left: 0; }
  .card__media { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .card.is-in { animation: none; }
  .card__img, .catalog__grid { transition: none; }
}
