/* ============================================================
   LiveHomeAuthor — design system v2
   Fraunces (display) · Satoshi (text)
   Paper · Ink · Sea · Sand
   ============================================================ */

:root {
  /* colour */
  --paper: #F6F3EE;
  --paper-2: #EDE8DF;
  --white: #FCFBF8;
  --ink: #1A1C1E;
  --ink-2: #0E1012;
  --muted: #5C6065;
  --faint: #93969A;
  --line: rgba(26, 28, 30, 0.13);
  --line-soft: rgba(26, 28, 30, 0.07);
  --sea: #3B7A88;
  --sea-light: #9AC4CB;
  --sand: #B79A78;

  /* type */
  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans: 'Satoshi', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* layout */
  --pad-x: clamp(20px, 5vw, 80px);
  --max-w: 1720px;
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--sea); color: var(--paper); }

/* page transition */
main, .site-footer { animation: page-in .7s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

body.is-leaving main,
body.is-leaving .site-footer,
body.is-leaving .site-header {
  opacity: 0;
  transition: opacity .38s var(--ease);
}

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 500;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.skip-link:focus { left: 12px; }

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

/* ---------- typography ---------- */

.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 330;
  letter-spacing: -0.014em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}

.display em { font-style: italic; font-weight: 300; letter-spacing: -0.004em; }

.h-hero { font-size: clamp(44px, 7vw, 110px); letter-spacing: -0.02em; }
.h-1    { font-size: clamp(34px, 4.8vw, 68px); }
.h-2    { font-size: clamp(28px, 3.4vw, 50px); line-height: 1.08; }
.h-3    { font-size: clamp(21px, 2.1vw, 30px); line-height: 1.18; }

.kicker {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--faint);
  margin: 0 0 22px;
}
.kicker--sea { color: var(--sea); }

.lead {
  font-size: clamp(16.5px, 1.15vw, 19px);
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
  margin: 0;
}

.body-text {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
  margin: 0;
}

.measure { max-width: 56ch; }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding: clamp(76px, 9.5vw, 148px) 0; position: relative; }
.section--tight { padding: clamp(52px, 6.5vw, 96px) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink-2); color: var(--paper); }
.section--dark .body-text,
.section--dark .lead { color: rgba(246, 243, 238, 0.7); }
.section--dark .kicker { color: rgba(246, 243, 238, 0.45); }
.section--dark .kicker--sea { color: var(--sea-light); }

.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(38px, 4.6vw, 68px);
}

/* ---------- buttons ---------- */

.btn {
  --btn-fg: var(--paper);
  --btn-bg: var(--ink);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .25s var(--ease);
}

.btn > span { position: relative; z-index: 1; }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--sea);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}

.btn:hover { border-color: var(--sea); color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.975); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(246,243,238,.42); }
.btn--sm { padding: 12px 22px; font-size: 10px; }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  padding-bottom: 7px;
  position: relative;
}
.link-line::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-line:hover::after { transform: scaleX(.3); }
.link-line .arr { transition: transform .45s var(--ease); }
.link-line:hover .arr { transform: translateX(6px); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px var(--pad-x);
  color: var(--ink);
  transition: transform .5s var(--ease), background-color .4s, backdrop-filter .4s,
              padding .4s var(--ease), box-shadow .4s, color .4s;
}

.site-header--invert { color: var(--paper); }

.site-header.scrolled {
  background: rgba(246, 243, 238, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  color: var(--ink);
  padding-top: 11px;
  padding-bottom: 11px;
  box-shadow: 0 1px 0 var(--line-soft);
}

.site-header.hidden { transform: translateY(-105%); }

/* brand (centre) */
.brand { justify-self: center; display: block; line-height: 0; }

.brand__mark {
  height: clamp(19px, 1.9vw, 25px);
  width: auto;
  transition: filter .4s;
}

.site-header--invert:not(.scrolled) .brand__mark { filter: brightness(0) invert(1); }

/* for-sale pill (left) */
.header-flag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.header-flag:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.header-flag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sea);
  flex: none;
  animation: pulse 2.4s var(--ease-io) infinite;
}
.header-flag:hover .dot { background: #fff; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}

/* nav (right) */
.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.site-nav a:not(.btn) {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  position: relative;
  padding: 5px 0;
}
.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .header-flag { padding: 8px 14px; font-size: 9px; letter-spacing: 0.12em; gap: 7px; }
  .header-flag .dot { width: 5px; height: 5px; }

  .site-nav {
    position: fixed;
    inset: 0;
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    z-index: -1;
    background: var(--ink-2);
    color: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform .65s var(--ease-io);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a:not(.btn) { font-size: 15px; letter-spacing: .2em; }

  .nav-toggle {
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 0;
    padding: 9px 2px;
    cursor: pointer;
    color: inherit;
  }
  .nav-toggle span {
    width: 28px; height: 1.5px; background: currentColor;
    transition: transform .4s var(--ease), opacity .25s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .site-header:has(.site-nav.open) {
    color: var(--paper);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .site-header:has(.site-nav.open) .brand__mark { filter: brightness(0) invert(1); }
}

@media (max-width: 400px) {
  .header-flag .txt { display: none; }
  .header-flag { padding: 8px 10px; }
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader__mark {
  width: clamp(120px, 16vw, 200px);
  opacity: 0;
  animation: mark-in 1.1s var(--ease) forwards;
}
@keyframes mark-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.preloader.done { opacity: 0; visibility: hidden; }
body.loading { overflow: hidden; }

/* ---------- home hero: full-bleed photograph ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
}

/* slideshow */
.hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease-io);
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }

.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.075);
}
.hero__slide.is-active img { animation: hero-drift 7.5s linear both; }

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

/* progress ticks */
.hero__ticks {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: clamp(46px, 8vh, 104px);
  display: flex;
  gap: 9px;
}

.hero__ticks button {
  position: relative;
  width: clamp(26px, 3vw, 42px);
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(246, 243, 238, 0.32);
  cursor: pointer;
  overflow: hidden;
  transition: background-color .3s;
}
.hero__ticks button::before {
  content: '';
  position: absolute;
  inset: -10px 0;
}
.hero__ticks button:hover { background: rgba(246, 243, 238, 0.55); }

.hero__ticks button i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--paper);
  border-radius: inherit;
}
.hero__ticks button.is-active i { animation: tick-fill 5s linear forwards; }

@keyframes tick-fill { from { width: 0; } to { width: 100%; } }

@media (max-width: 700px) {
  .hero__ticks { bottom: 22px; right: auto; left: var(--pad-x); }
}

/* slide meta — number + villa name above the ticks */
.hero__meta {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: calc(clamp(46px, 8vh, 104px) + 26px);
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-shadow: 0 1px 18px rgba(14,16,18,.5);
}
.hero__meta .idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(246,243,238,.7);
}
.hero__meta .name {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--paper);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(246,243,238,.38);
}
.hero__meta .name:hover { border-color: var(--paper); }
.hero__meta .idx, .hero__meta .name {
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.hero__meta.switch .idx, .hero__meta.switch .name {
  opacity: 0;
  transform: translateY(8px);
}
@media (max-width: 700px) { .hero__meta { display: none; } }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,16,18,.42) 0%, rgba(14,16,18,0) 28%),
    linear-gradient(0deg, rgba(14,16,18,.8) 0%, rgba(14,16,18,.4) 38%, rgba(14,16,18,.05) 72%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x) clamp(46px, 8vh, 104px);
  text-shadow: 0 1px 26px rgba(14,16,18,.45);
}
.hero__content .btn { text-shadow: none; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(246,243,238,.88);
  margin: 0 0 clamp(18px, 3vh, 30px);
}
.hero__eyebrow::before {
  content: '';
  width: clamp(24px, 4vw, 52px);
  height: 1px;
  background: var(--sand);
  flex: none;
}

.hero__title { color: var(--paper); }

.hero__sub {
  font-size: clamp(16px, 1.15vw, 18.5px);
  line-height: 1.62;
  color: rgba(246,243,238,.84);
  max-width: 44ch;
  margin: clamp(20px, 3vh, 32px) 0 clamp(28px, 4vh, 42px);
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll {
  position: absolute;
  z-index: 2;
  right: var(--pad-x);
  bottom: clamp(46px, 8vh, 104px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(246,243,238,.72);
}
.hero__scroll .scroll-line { background: rgba(246,243,238,.28); }
.hero__scroll .scroll-line::after { background: var(--paper); }

@media (max-width: 760px) { .hero__scroll { display: none; } }

/* ---------- hero: brand cover split ---------- */

.hero-cover {
  /* same grid as .wrap, so the panel lines up with the nav, sections and footer */
  max-width: var(--max-w);
  margin-inline: auto;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
  padding: calc(var(--header-h) + clamp(30px, 6vh, 70px)) var(--pad-x) clamp(48px, 7vh, 90px);
  position: relative;
}

.hero-cover__text { max-width: 660px; }

.hero-cover__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin: 0 0 clamp(20px, 3vh, 34px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-cover__eyebrow::before {
  content: '';
  width: clamp(24px, 4vw, 52px);
  height: 1px;
  background: var(--sand);
  flex: none;
}

.hero-cover__sub {
  font-size: clamp(16px, 1.15vw, 18.5px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 46ch;
  margin: clamp(22px, 3vh, 34px) 0 clamp(30px, 4vh, 44px);
  text-wrap: pretty;
}

.hero-cover__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-cover__media {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: min(76vh, 740px);
  justify-self: end;
  width: 100%;
  overflow: hidden;
  background: var(--paper-2);
}
.hero-cover__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-cover__caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 14px 18px;
  background: rgba(246, 243, 238, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero-cover__scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(22px, 3.5vh, 40px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--faint);
}
.scroll-line {
  width: 44px; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: var(--sea);
  animation: scroll-run 2.2s var(--ease-io) infinite;
}
@keyframes scroll-run {
  0%   { left: -40%; }
  100% { left: 105%; }
}

@media (max-width: 900px) {
  .hero-cover {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: calc(var(--header-h) + 34px) var(--pad-x) 56px;
    gap: 34px;
  }
  .hero-cover__media { min-height: 62vh; }
  .hero-cover__scroll { display: none; }
}

/* line reveal */
.line-reveal .line { display: block; overflow: hidden; }
.line-reveal .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.15s var(--ease);
}
.line-reveal.in .line > span { transform: none; }
.line-reveal .line:nth-child(2) > span { transition-delay: .11s; }
.line-reveal .line:nth-child(3) > span { transition-delay: .22s; }

/* ---------- reveal system ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }

.img-reveal { position: relative; overflow: hidden; }
.img-reveal img { transform: scale(1.13); transition: transform 1.5s var(--ease); }
.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper-2);
  transform: translateY(0);
  transition: transform 1.15s var(--ease-io);
  transition-delay: var(--d, 0s);
}
.section--dark .img-reveal::after { background: #1c2024; }
.img-reveal.in img { transform: none; }
.img-reveal.in::after { transform: translateY(-101%); }

/* ---------- cinematic full-bleed ---------- */

.bleed {
  position: relative;
  height: clamp(460px, 82vh, 860px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
}
.bleed__media { position: absolute; inset: -10% 0; }
.bleed__media img { width: 100%; height: 108%; object-fit: cover; will-change: transform; }
.bleed__veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,16,18,.72) 0%, rgba(14,16,18,.22) 42%, rgba(14,16,18,.08) 100%);
}
.bleed__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x) clamp(38px, 6vh, 76px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  text-shadow: 0 1px 24px rgba(14,16,18,.4);
}
.bleed__content .btn { text-shadow: none; }

/* ---------- manifesto (line-mask reveal) ---------- */

.manifesto {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 330;
  font-size: clamp(25px, 3.2vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 20ch;
}
.manifesto em { font-style: italic; color: var(--sea); }

.reveal-lines .rl { display: block; overflow: hidden; padding-bottom: 0.06em; }
.reveal-lines .rl > span {
  display: block;
  transform: translateY(112%);
  opacity: 0;
  transition: transform 1.15s var(--ease), opacity .9s var(--ease);
}
.reveal-lines.in .rl > span { transform: none; opacity: 1; }
.reveal-lines .rl:nth-child(2) > span { transition-delay: .09s; }
.reveal-lines .rl:nth-child(3) > span { transition-delay: .18s; }
.reveal-lines .rl:nth-child(4) > span { transition-delay: .27s; }
.reveal-lines .rl:nth-child(5) > span { transition-delay: .36s; }
.reveal-lines .rl:nth-child(6) > span { transition-delay: .45s; }

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5.5vw, 100px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .74fr;
  gap: clamp(14px, 1.8vw, 26px);
  align-items: start;
}
.duo .img-reveal:first-of-type { aspect-ratio: 3/4; }
.duo .img-reveal:last-of-type { aspect-ratio: 3/4; margin-top: clamp(40px, 6vw, 92px); }
.duo img { width: 100%; height: 100%; object-fit: cover; }

.arch-deco {
  position: absolute;
  z-index: 0;
  width: clamp(110px, 13vw, 190px);
  aspect-ratio: .62;
  border: 1px solid var(--sand);
  border-radius: 999px 999px 0 0;
  opacity: .5;
  left: max(-64px, -4vw);
  bottom: -30px;
  pointer-events: none;
}

.plx { overflow: hidden; }
.plx img { will-change: transform; transform: scale(1.1); }

/* ---------- feature (villa for sale) ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: clamp(34px, 5.5vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.feature__media { position: relative; }
.feature__media .img-reveal { aspect-ratio: 4/3; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

.feature__badge {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
}
.feature__badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: pulse 2.4s var(--ease-io) infinite;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 46px);
  padding: 24px 0;
  margin: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark .spec-row { border-color: rgba(246,243,238,.16); }

.spec__num {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 340;
  line-height: 1;
  margin: 0;
}
.spec__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin: 9px 0 0;
}
.section--dark .spec__label { color: rgba(246,243,238,.5); }

/* ---------- villa cards ---------- */

.v-card { display: block; position: relative; }

.v-card__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-2);
}
.v-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
a.v-card:hover .v-card__media img,
button.v-card:hover .v-card__media img { transform: scale(1.055); }

.v-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(246,243,238,.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.v-card__tag--sale { background: var(--sea); color: #fff; }

.v-card__tag--tf {
  top: 46px;
  background: rgba(14, 16, 18, .5);
  color: var(--paper);
}

.v-card__view {
  position: absolute;
  inset: auto 14px 14px auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(246,243,238,.92);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.v-card:hover .v-card__view,
.v-card:focus-visible .v-card__view { opacity: 1; transform: none; }

.v-card__name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 350;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.14;
  margin: 17px 0 5px;
}
.v-card__loc {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin: 0;
}

/* carousel */
.carousel {
  display: flex;
  gap: clamp(16px, 1.9vw, 30px);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  padding: 4px var(--pad-x);
  scroll-snap-type: x proximity;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel .v-card { flex: 0 0 clamp(232px, 24vw, 380px); scroll-snap-align: start; user-select: none; }
.carousel .v-card img { pointer-events: none; }

/* arrows */
.carousel-nav { display: flex; gap: 10px; flex: none; }

.cbtn {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
              color .4s var(--ease), opacity .3s, transform .3s var(--ease);
}
.cbtn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cbtn:active { transform: scale(.94); }
.cbtn[disabled] { opacity: .28; pointer-events: none; }

@media (max-width: 620px) { .cbtn { width: 46px; height: 46px; } }

.carousel-progress {
  height: 1px;
  background: var(--line);
  margin: clamp(28px, 3.6vw, 52px) var(--pad-x) 0;
  position: relative;
}
.carousel-progress span {
  position: absolute;
  left: 0; top: -1px;
  height: 2px;
  width: 20%;
  background: var(--sea);
  transition: width .15s linear;
}

/* grid */
.v-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3.2vw, 48px) clamp(16px, 2vw, 30px);
}
@media (max-width: 1000px) { .v-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .v-grid { grid-template-columns: 1fr; } }

.v-grid .v-card {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.v-card.is-hidden { display: none; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s, border-color .3s, background-color .3s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat { border-top: 1px solid var(--line); padding-top: 20px; }
.section--dark .stat { border-color: rgba(246,243,238,.16); }
.stat__num {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1;
  margin: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__num sup { font-size: .42em; color: var(--sea); font-style: italic; top: -.7em; }
.stat__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin: 12px 0 0;
}
.section--dark .stat__label { color: rgba(246,243,238,.5); }

/* ---------- marquee ---------- */

.marquee { overflow: hidden; padding: 4px 0; }
.marquee__track {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee__item {
  flex: 0 0 auto;
  width: clamp(215px, 22vw, 360px);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.marquee__item:nth-child(even) { margin-top: clamp(16px, 2vw, 32px); }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.marquee__item:hover img { transform: scale(1.05); }

/* ---------- page hero (inner) ---------- */

.page-hero { padding: calc(var(--header-h) + clamp(58px, 11vh, 130px)) 0 clamp(40px, 5.5vw, 74px); }
.page-hero .lead { max-width: 60ch; margin-top: 24px; }

.crumb {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin: 0 0 20px;
}
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 8px; }

/* ---------- villa detail ---------- */

.villa-hero {
  position: relative;
  height: clamp(440px, 88vh, 900px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
}
.villa-hero__media { position: absolute; inset: -6% 0; }
.villa-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 18s var(--ease) both;
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: none; } }

.villa-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,16,18,.4) 0%, rgba(14,16,18,0) 26%),
    linear-gradient(0deg, rgba(14,16,18,.85) 0%, rgba(14,16,18,.45) 34%, rgba(14,16,18,.06) 70%);
}
.villa-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x) clamp(36px, 6vh, 72px);
  text-shadow: 0 1px 26px rgba(14,16,18,.45);
}
.villa-hero__content .btn { text-shadow: none; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(246,243,238,.93);
  color: var(--ink);
  margin-bottom: 18px;
  text-shadow: none;
}
.status-pill--sale { background: var(--sea); color: #fff; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s var(--ease-io) infinite; }

.villa-body {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: clamp(34px, 5.5vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .villa-body { grid-template-columns: 1fr; } }

.specs-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: clamp(26px, 2.8vw, 42px);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.specs-card h3 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin: 0 0 12px;
}
.specs-card dl { margin: 0; }
.specs-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.specs-card .row:last-child { border-bottom: 0; }
.specs-card dt { font-size: 14px; color: var(--muted); margin: 0; }
.specs-card dd {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  text-align: right;
}
.specs-card .cta { margin-top: 24px; display: grid; gap: 10px; }
.specs-card .cta .btn { width: 100%; }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(160px, 22vw, 300px);
  grid-auto-flow: row dense;
  gap: clamp(10px, 1.3vw, 20px);
}
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* a short set reads better as equal, generous frames than as a mosaic */
.gallery--few {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  grid-auto-rows: auto;
}
.gallery--few a { aspect-ratio: 4 / 3; }
.gallery--few a.tall, .gallery--few a.wide { grid-row: auto; grid-column: auto; }

.gallery a { position: relative; overflow: hidden; display: block; background: var(--paper-2); }
.gallery a.tall { grid-row: span 2; }
.gallery a.wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .95s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

/* floor plans — the drawing itself, no card around it */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: clamp(18px, 2.4vw, 38px);
  align-items: start;
}
.plans .plan {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform .5s var(--ease), opacity .35s var(--ease);
}
.plans .plan:hover { transform: translateY(-4px); opacity: .9; }
.plans .plan img {
  width: 100%;
  height: auto;
  display: block;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14,16,18,.97);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 91vw; max-height: 86vh; object-fit: contain; }
.lightbox .lb-cap {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(246,243,238,.6);
}
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(246,243,238,.28);
  background: none;
  color: var(--paper);
  font-size: 17px;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.lightbox button:hover { background: var(--sea); border-color: var(--sea); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lightbox button { width: 42px; height: 42px; }
}

/* ---------- studio ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 32px); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: clamp(26px, 2.9vw, 44px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -26px rgba(26,28,30,.2); }
.pillar h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: 23px;
  margin: 16px 0 11px;
}
.pillar p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.8vw, 42px); }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .process { grid-template-columns: 1fr; } }

.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step__num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--sea); margin: 0 0 12px; }
.step h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; font-size: 21px; margin: 0 0 11px; }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 5.5vw, 92px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:first-of-type { border-top: 1px solid var(--line-soft); }
.contact-item h3 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin: 0 0 7px;
}
.contact-item a, .contact-item p {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 360;
  margin: 0;
  transition: color .3s;
  display: inline-block;
}
.contact-item a:hover { color: var(--sea); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: clamp(26px, 3.2vw, 50px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .3s, background-color .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--sea); background: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.form-note { font-size: 12px; color: var(--faint); margin: 14px 0 0; line-height: 1.6; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; padding: clamp(84px, 11vw, 160px) var(--pad-x); }
.cta-band .lead { max-width: 54ch; margin: 20px auto 40px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.next-villa { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink-2); color: var(--paper); padding: clamp(64px, 8vw, 112px) 0 0; overflow: hidden; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 62px);
  padding-bottom: clamp(50px, 6vw, 84px);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand__mark { height: 26px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; color: rgba(246,243,238,.58); max-width: 32ch; line-height: 1.7; margin: 0; }

.footer-col h3 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(246,243,238,.42);
  margin: 0 0 16px;
}
.footer-col p, .footer-col a {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(246,243,238,.78);
  margin: 0 0 5px;
  display: block;
  transition: color .3s;
}
.footer-col a:hover { color: var(--sea-light); }

.footer-word {
  display: block;
  width: min(94%, 1500px);
  margin: 0 auto;
  opacity: .12;
  filter: brightness(0) invert(1);
  transform: translateY(14%);
  pointer-events: none;
  user-select: none;
}

.footer-legal {
  border-top: 1px solid rgba(246,243,238,.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(246,243,238,.42);
}
.footer-legal a:hover { color: var(--sea-light); }

/* ---------- whatsapp ---------- */

.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 34px rgba(14,16,18,.28);
  transition: transform .35s var(--ease), background-color .35s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); background: #25D366; color: #fff; }
.wa-float svg { width: 23px; height: 23px; }

/* ---------- the transformation ---------- */

.transform__intro { max-width: 62ch; margin-top: 24px; }

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
  user-select: none;
  isolation: isolate;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;
}

.compare__bar {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 22px rgba(14, 16, 18, .45);
  pointer-events: none;
  z-index: 3;
}

.compare__bar::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(14, 16, 18, .35);
  transition: transform .3s var(--ease);
}

.compare__bar::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  z-index: 1;
  width: 28px; height: 12px;
  margin: -6px 0 0 -14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M10 1.5 4.5 6 10 10.5M18 1.5 23.5 6 18 10.5' fill='none' stroke='%231A1C1E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px 12px no-repeat;
}

.compare:hover .compare__bar::after { transform: scale(1.08); }

.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.compare__range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; opacity: 0; }
.compare__range:focus-visible ~ .compare__bar::after { outline: 2px solid var(--sea); outline-offset: 3px; }

.compare__tag {
  position: absolute;
  z-index: 3;
  top: 18px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(14, 16, 18, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
  pointer-events: none;
}
.compare__tag--l { left: 18px; }
.compare__tag--r { right: 18px; }

.compare__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(246, 243, 238, .82);
  text-shadow: 0 1px 14px rgba(14, 16, 18, .6);
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.compare.touched .compare__hint { opacity: 0; }

/* the render, shown after the comparison */
.render-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(26px, 3.4vw, 48px);
}
@media (max-width: 860px) { .render-block { grid-template-columns: 1fr; } }

.render-block figure { margin: 0; position: relative; }
.render-block img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }

.render-block .stamp {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
}

.render-block h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.2;
  margin: 0 0 14px;
}
.render-block h3 em { font-style: italic; color: var(--sea); }
.render-block p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- film grain ---------- */

.grain {
  position: fixed;
  inset: -60px;
  z-index: 80;
  pointer-events: none;
  opacity: .042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift .8s steps(1, end) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-30px, 16px); }
  40%  { transform: translate(14px, -24px); }
  60%  { transform: translate(-18px, -10px); }
  80%  { transform: translate(24px, 20px); }
  100% { transform: translate(0, 0); }
}

/* ---------- custom cursor ---------- */

html.cursor-on, html.cursor-on * { cursor: none !important; }

.cursor {
  position: fixed;
  left: -100px; top: -100px;
  z-index: 400;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid transparent;
  mix-blend-mode: difference;
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(var(--cs, 1));
  transition: width .35s var(--ease), height .35s var(--ease),
              background-color .3s, border-color .3s, opacity .3s,
              transform .2s var(--ease);
}
html:not(.cursor-on) .cursor { display: none; }
.cursor.is-seen { opacity: 1; }
.cursor.is-hover {
  width: 44px; height: 44px;
  background: transparent;
  border-color: var(--paper);
}
.cursor.is-label {
  width: 76px; height: 76px;
  mix-blend-mode: normal;
  background: var(--ink);
  border-color: var(--ink);
}
.cursor__label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper);
  opacity: 0;
  transition: opacity .25s;
}
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal],
  .line-reveal .line > span,
  .reveal-lines .rl > span { opacity: 1 !important; transform: none !important; }
  .img-reveal::after { transform: translateY(-101%) !important; }
  .img-reveal img { transform: none !important; }
  .hero__slide img { transform: none !important; }
  main, .site-footer { animation: none !important; }
  .grain { animation: none !important; }
  .cursor { display: none !important; }
  html.cursor-on, html.cursor-on * { cursor: auto !important; }
}

/* ═══════════════════════════════════════════ language switcher ═══════════ */

.lang { position: relative; }

.lang > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .66;
  transition: opacity .35s var(--ease);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .35s var(--ease);
}
.lang[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.lang > summary:hover,
.lang[open] > summary { opacity: 1; }

.lang__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 172px;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 20px 52px rgba(26, 28, 30, .2);
  z-index: 60;
  animation: langIn .34s var(--ease) both;
}
@keyframes langIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.site-nav .lang__menu a {
  display: block;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  transition: background .28s var(--ease);
}
.site-nav .lang__menu a::after { display: none; }
.site-nav .lang__menu a:hover { background: rgba(59, 122, 136, .1); }
.site-nav .lang__menu a[aria-current="true"] { color: var(--sea); font-weight: 600; }

@media (max-width: 940px) {
  .lang > summary { font-size: 13px; letter-spacing: .2em; padding: 8px 16px; }
  .lang__menu { right: 50%; transform: translateX(50%); }
  @keyframes langIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}
