/* ============================================================
   PRETTY PROPERTY — Private Villa Advisory, French Riviera
   ============================================================ */

@property --pscale {
  syntax: '<number>';
  inherits: false;
  initial-value: 1.14;
}
@property --pty {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

:root {
  --ivory: #f6f1e8;
  --ivory-2: #efe7d8;
  --limestone: #e3d9c6;
  --sand: #d6c9ae;
  --taupe: #9c8e7a;
  --taupe-2: #7a6f5e;
  --charcoal: #1c1a17;
  --charcoal-2: #2a2722;
  --olive: #23312f;
  --rule: rgba(28, 26, 23, 0.16);
  --rule-light: rgba(246, 241, 232, 0.22);
  --serif: "Bebas Neue", "Oswald", "Impact", "Arial Narrow", sans-serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display-tracking: 0.005em;
  --display-leading: 0.92;
  --serif-style: normal; /* Bebas has no italic — substitute with Manrope italic if needed */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 900ms var(--ease), color 900ms var(--ease);
}

/* ============================================================
   THEME: DARK (active when Expertise section is in view)
   ============================================================ */
body.theme-dark { background: var(--charcoal); color: var(--ivory); }
/* Header stays its own thing — only un-scrolled header inherits */
body.theme-dark .header:not(.is-scrolled) { color: var(--ivory); }
/* Section text inside expertise flips to light */
body.theme-dark #expertise .section-mark,
body.theme-dark #expertise .h-section,
body.theme-dark #expertise .lead {
  color: var(--ivory);
  transition: color 900ms var(--ease);
}
body.theme-dark #expertise .section-mark { color: rgba(246, 241, 232, 0.65); }
body.theme-dark #expertise .lead { color: rgba(246, 241, 232, 0.78); }
/* Adjacent sections also softly invert so the transition between sections is smooth */
body.theme-dark #about,
body.theme-dark #gallery {
  background: var(--charcoal);
  color: var(--ivory);
  transition: background-color 900ms var(--ease), color 900ms var(--ease);
}
body.theme-dark #about .section-mark,
body.theme-dark #gallery .section-mark { color: rgba(246, 241, 232, 0.65); }
body.theme-dark #about .h-section,
body.theme-dark #gallery .h-section { color: var(--ivory); }
body.theme-dark #about .lead,
body.theme-dark #gallery .lead { color: rgba(246, 241, 232, 0.78); }
body.theme-dark #about .points li,
body.theme-dark #about .points { border-color: rgba(246, 241, 232, 0.16); }
body.theme-dark #about .points li .num { color: rgba(246, 241, 232, 0.45); }
body.theme-dark #about .points li .label { color: var(--ivory); }
body.theme-dark .about-media .cap { color: var(--ivory); }

/* ----- Smooth inertial scroll wrapper ----- */
#smooth-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  will-change: transform;
}

/* ----- Parallax helper: any [data-parallax] element gets translated via JS --pty + scaled by --pscale ----- */
[data-parallax] {
  --pty: 0px;
  --pscale: 1.65;
  transform: translate3d(0, var(--pty), 0) scale(var(--pscale));
  will-change: transform;
  transition: --pscale 1.4s var(--ease), filter 600ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none; transition: none; }
  #smooth-wrap { position: static; transform: none !important; }
  .ticker-track { animation: none; transform: translateX(0); }
  .hero .grain { display: none; }
}
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  [data-parallax] { transform: none; transition: none; }
  #smooth-wrap { position: static; transform: none !important; }
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ----- Type ----- */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-transform: uppercase;
}
.h-display em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  /* tiny opacity shift keeps the em readable as an emphasis without breaking the uniform display */
  opacity: 0.92;
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0.008em;
  text-transform: uppercase;
  margin: 0;
}
.h-section em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.008em;
  opacity: 0.9;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-2);
}
.lead {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--charcoal-2);
  max-width: 46ch;
}
.fineprint {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--taupe-2);
}

/* ----- Layout shells ----- */
.shell {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}
.section-mark {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-2);
}
.section-mark .dot { display: none; }
.rule { height: 1px; background: var(--rule); width: 100%; border: 0; }
.rule.light { background: var(--rule-light); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 600ms var(--ease), border-color 600ms var(--ease), color 600ms var(--ease), padding 400ms var(--ease), backdrop-filter 600ms var(--ease);
  color: var(--ivory);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(246, 241, 232, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--rule);
  color: var(--charcoal);
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 400ms var(--ease);
}
.brand-logo--light { display: none; }
/* Over-hero (transparent header): show light logo. After scroll: dark logo. */
.header:not(.is-scrolled) .brand-logo--dark { display: none; }
.header:not(.is-scrolled) .brand-logo--light { display: block; }
.header.is-scrolled .brand-logo--dark { display: block; }
.header.is-scrolled .brand-logo--light { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
  opacity: 0.9;
  transition: opacity 200ms var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tel {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 200ms var(--ease);
}
.tel:hover { opacity: 1; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.icon-btn:hover { background: currentColor; color: var(--ivory); }
.header.is-scrolled .icon-btn:hover { color: var(--ivory); }
.icon-btn svg { width: 16px; height: 16px; }

.header .btn.primary {
  transition: border-color 400ms var(--ease);
}
.header .btn.primary::before { display: none; }
.header .btn.primary:hover { color: var(--ivory); border-color: rgba(246, 241, 232, 0.5); }
.header .btn.primary:hover .arrow { transform: translateX(6px); }
.header .btn.primary > span,
.header .btn.primary > svg { position: relative; z-index: 1; }
.btn-dir-fill {
  position: absolute;
  inset: 0;
  background: rgba(246, 241, 232, 0.13);
  pointer-events: none;
  z-index: 0;
}

.btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid currentColor;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: color 400ms var(--ease);
}
.btn .arrow { transition: transform 400ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateY(101%);
  transition: transform 500ms var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn.primary {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
  transition: color 350ms var(--ease);
}
.btn.primary::before { background: var(--olive); }
.btn.primary:hover { color: var(--ivory); border-color: var(--olive); }
.btn.ghost-light {
  background: var(--ivory);
  color: var(--charcoal);
  border-color: var(--ivory);
}
.btn.ghost-light::before { background: var(--olive); }
.btn.ghost-light:hover {
  color: var(--charcoal);
  border-color: var(--olive);
}
.btn.wa { background: var(--olive); color: var(--ivory); border-color: var(--olive); }
.btn.wa::before { background: var(--ivory); }
.btn.wa:hover { color: var(--olive); }

.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 14vh, 140px) 0 clamp(120px, 18vh, 180px);
}
.hero .bg {
  position: absolute;
  inset: -6%;
  background: url("images/hero-sunset.webp") center center / cover no-repeat;
  /* Static scale replaces ~26s heroZoom: continuous scale on full-bleed img is very GPU-heavy */
  --pscale: 1.07;
}
.hero .overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,26,23,0.45) 0%, rgba(28,26,23,0.2) 30%, rgba(28,26,23,0.15) 55%, rgba(28,26,23,0.35) 88%, rgba(28,26,23,0.5) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(28,26,23,0.18) 0%, rgba(28,26,23,0) 70%);
}
.hero .grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.15;
  /* overlay forces expensive compositing with the layers below; normal + opacity is far cheaper */
  mix-blend-mode: normal;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 2px, transparent 5px);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-top {
  position: absolute;
  top: 110px;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}
.hero-top .eyebrow { color: var(--ivory); opacity: 0.85; }
.hero-top .meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1.8;
}
.hero-content {
  padding: 0 clamp(20px, 4vw, 64px);
  max-width: 1800px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 10.5vw, 11rem);
  line-height: 0.92;
  letter-spacing: 0.008em;
  text-transform: uppercase;
  margin: 0 0 32px;
  max-width: 18ch;
}
.hero h1 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.008em;
  opacity: 0.88;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.2s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.25s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.42s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.6s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin-top: 36px;
  max-width: 56ch;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s var(--ease-out) 1.0s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.hero-sub p {
  max-width: 42ch;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  margin: 0;
  color: rgba(246, 241, 232, 0.88);
}
.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-microcopy {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 232, 0.7);
}

.hero-bottom {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.7);
}
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.22em;
}
.scroll-cue .line-v {
  width: 1px; height: 48px;
  background: rgba(246, 241, 232, 0.6);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line-v::after {
  content: "";
  position: absolute; left: 0; right: 0; top: -100%;
  height: 50%;
  background: var(--ivory);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* Location ticker */
.ticker {
  position: relative;
  background: var(--charcoal);
  color: var(--ivory);
  overflow: hidden;
  border-top: 1px solid rgba(246,241,232,0.08);
  border-bottom: 1px solid rgba(246,241,232,0.08);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 22px 0;
  white-space: nowrap;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}
.ticker-item,
.ticker-star {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-star {
  font-size: 0.55em;
  opacity: 0.5;
  line-height: 1;
}
/* ============================================================
   SECTION: ABOUT
   ============================================================ */
.section {
  padding: clamp(80px, 12vh, 160px) 0;
  position: relative;
}
.section.tight { padding: clamp(60px, 9vh, 110px) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-text { padding-top: 12px; }
.about-text .section-mark { margin-bottom: 28px; }
.about-text .h-section { margin-bottom: 28px; max-width: 20ch; }
.about-text .lead { margin: 0 0 40px; }
.points {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.points li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.points li .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--taupe-2);
  padding-top: 4px;
}
.points li .label {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.about-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin: 0;
}
.about-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: --pscale 1.4s var(--ease), filter 600ms var(--ease);
}
.about-media:hover img { --pscale: 1.2; }
.about-media .cap {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   SECTION: SPECIALIZE
   ============================================================ */
.spec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.spec-head .h-section { max-width: 20ch; }
.spec-head .lead { margin: 0; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.spec-card {
  position: relative;
  aspect-ratio: 3/4.6;
  overflow: hidden;
}
.spec-card .img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: --pscale 1.6s var(--ease);
}
.spec-card:hover .img { --pscale: 1.22; }
.spec-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0) 30%, rgba(28,26,23,0.7) 100%);
}
.spec-card .content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  color: var(--ivory);
}
.spec-card .num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-bottom: 12px;
}
.spec-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.spec-card h3 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  opacity: 0.9;
}
.spec-card p {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(246, 241, 232, 0.78);
  max-width: 28ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 600ms var(--ease), opacity 500ms var(--ease), transform 600ms var(--ease), margin 600ms var(--ease);
}
.spec-card:hover p {
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 4px;
}
.spec-card .read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 14px;
  opacity: 0.85;
}
.spec-card .read .line-h {
  width: 24px; height: 1px;
  background: currentColor;
  transition: width 400ms var(--ease);
}
.spec-card:hover .read .line-h { width: 40px; }

/* ============================================================
   SECTION: GALLERY
   ============================================================ */
.gal-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.gal-head .h-section { max-width: 22ch; margin: 0; }
.gal-head .lead { margin: 0; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 70px;
  gap: 10px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  background: var(--limestone);
  margin: 0;
}
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: --pscale 1.4s var(--ease), filter 600ms var(--ease);
}
.gal-item:hover img { --pscale: 1.2; filter: brightness(0.95); }
.gal-item .cap {
  position: absolute;
  left: 16px; bottom: 14px; right: 16px;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.gal-item .cap::before {
  content: "—";
  margin-right: 8px;
  opacity: 0.7;
}
.gal-item:hover .cap { opacity: 1; transform: translateY(0); }
.gal-item .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0) 50%, rgba(28,26,23,0.6) 100%);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.gal-item:hover .scrim { opacity: 1; }
.gal-item:focus-visible { outline: 1px solid var(--ivory); outline-offset: -3px; }
.gal-item .zoom {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border: 1px solid rgba(246, 241, 232, 0.85);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(-4px) scale(0.92);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease), background 280ms var(--ease), color 280ms var(--ease);
  pointer-events: none;
  z-index: 3;
}
.gal-item:hover .zoom { opacity: 1; transform: translateY(0) scale(1); }
.gal-item:hover .zoom:hover { background: var(--ivory); color: var(--charcoal); }
.gal-item .zoom svg { width: 14px; height: 14px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 14, 12, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 480ms var(--ease), visibility 0s linear 480ms;
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 480ms var(--ease), visibility 0s linear 0s;
}
.lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px clamp(48px, 8vw, 120px) 80px;
}
.lb-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms var(--ease-out);
  will-change: transform;
}
.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  opacity: 0.25;
  transition: opacity 600ms var(--ease) 200ms;
}
.lb-slide.active { opacity: 1; }
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px -16px rgba(0,0,0,0.6);
}

.lb-close, .lb-nav {
  position: absolute;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 232, 0.55);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  transition: background 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease), transform 320ms var(--ease);
}
.lb-close { top: 28px; right: 32px; width: 46px; height: 46px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lb-nav.prev { left: clamp(16px, 3vw, 40px); }
.lb-nav.next { right: clamp(16px, 3vw, 40px); }
.lb-close:hover, .lb-nav:hover {
  background: var(--ivory);
  color: var(--charcoal);
  border-color: var(--ivory);
}
.lb-nav:hover { transform: translateY(-50%) scale(1.04); }

.lb-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px clamp(32px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(246, 241, 232, 0.18);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.78);
  z-index: 110;
}
.lb-cap {
  font-family: "Manrope", sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ivory);
}
.lb-count { white-space: nowrap; }

@media (max-width: 640px) {
  .lb-stage { padding: 72px 16px 88px; }
  .lb-close { top: 16px; right: 16px; width: 40px; height: 40px; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-foot { flex-direction: column-reverse; align-items: flex-start; gap: 8px; padding: 16px 20px; }
}

/* Bold editorial layout — three rhythmic bands, all rows flush */
.gal-1 { grid-column: 1 / span 6;  grid-row: 1 / span 12; }
.gal-2 { grid-column: 7 / span 6;  grid-row: 1 / span 6; }
.gal-3 { grid-column: 7 / span 3;  grid-row: 7 / span 6; }
.gal-4 { grid-column: 10 / span 3; grid-row: 7 / span 6; }
.gal-5 { grid-column: 1 / span 12; grid-row: 13 / span 8; }
.gal-6 { grid-column: 1 / span 4;  grid-row: 21 / span 10; }
.gal-7 { grid-column: 5 / span 5;  grid-row: 21 / span 10; }
.gal-8 { grid-column: 10 / span 3; grid-row: 21 / span 10; }

/* ============================================================
   SECTION: PRIVATE SELECTION (DARK)
   ============================================================ */
.private {
  position: relative;
  color: var(--ivory);
  background: var(--charcoal);
  overflow: hidden;
}
.private .bg {
  position: absolute; inset: -6%;
  background: url("images/private-dusk.webp") center 60% / cover no-repeat;
  opacity: 0.78;
  filter: saturate(0.92);
}
.private .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0.3) 0%, rgba(28,26,23,0.65) 100%);
}
.private-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(120px, 18vh, 200px);
}
.private-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.private-grid .section-mark { color: rgba(246,241,232,0.7); margin-bottom: 28px; }
.private-grid .section-mark .dot { background: var(--ivory); }
.private h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0.008em;
  text-transform: uppercase;
  margin: 0 0 32px;
  max-width: 20ch;
}
.private h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.008em;
  opacity: 0.9;
}
.private .quote {
  font-family: "Manrope", sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: rgba(246, 241, 232, 0.92);
  border-left: 1px solid rgba(246, 241, 232, 0.4);
  padding-left: 20px;
  margin: 0 0 36px;
  max-width: 36ch;
}
.private p.lead { color: rgba(246, 241, 232, 0.78); max-width: 44ch; margin-bottom: 36px; }
.private .value-list {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: flex; flex-direction: column;
  gap: 18px;
  max-width: 40ch;
}
.private .value-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.18);
}
.private .value-list li:last-child { border-bottom: none; }
.private .value-list .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(246, 241, 232, 0.55);
}
.private .value-list .label {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* ============================================================
   SECTION: LEAD FORM
   ============================================================ */
.form-section {
  background: var(--ivory-2);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.form-left { padding-top: 12px; }
.form-left .h-section { margin-bottom: 28px; max-width: 18ch; }
.form-left .lead { margin-bottom: 40px; }
.contact-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--rule);
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  cursor: pointer;
  transition: padding 320ms var(--ease);
}
.contact-list li:hover { padding-left: 8px; padding-right: 8px; }
.contact-list li:has(span.val) { cursor: default; }
.contact-list li:has(span.val):hover { padding-left: 0; padding-right: 0; }
.contact-list .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-list .label .ico {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--taupe);
  transition: color 240ms var(--ease), transform 320ms var(--ease);
}
.contact-list li:hover .label .ico {
  color: var(--charcoal);
  transform: translateX(-1px);
}
.contact-list .val {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact-list a.val:hover { color: var(--taupe-2); }
.contact-list .go {
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.contact-list li:hover .go { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.contact-list .go svg { width: 14px; height: 14px; }

.form {
  background: var(--ivory);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--rule);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.form-row.single { grid-template-columns: 1fr; }
.field {
  position: relative;
  padding: 18px 0 14px;
  border-right: 1px solid var(--rule);
  padding-right: 18px;
  cursor: text;
}
.field--select { cursor: pointer; }
.form-row .field:last-child { border-right: none; padding-right: 0; padding-left: 18px; }
.form-row.single .field { border-right: none; padding-right: 0; padding-left: 0; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-2);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  padding: 4px 0;
  outline: none;
  transition: color 200ms var(--ease);
}
.field textarea { resize: vertical; min-height: 80px; font-family: var(--sans); font-size: 0.95rem; line-height: 1.5; padding-top: 8px; }
.field input::placeholder, .field textarea::placeholder { color: var(--taupe); font-style: italic; opacity: 0.7; }
.field select { font-family: var(--sans); font-size: 0.95rem; -webkit-appearance: none; appearance: none; }

/* ----- Custom select UI ----- */
.select-ui { position: relative; }
.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  outline: none;
}
.select-trigger:focus-visible .select-value { text-decoration: underline; text-underline-offset: 4px; }
.select-value { flex: 1 1 auto; }
.select-value.placeholder {
  color: var(--taupe);
  font-style: italic;
  opacity: 0.75;
}
.select-caret {
  color: var(--taupe);
  flex: 0 0 10px;
  transition: transform 380ms var(--ease);
}
.select-ui.open .select-caret { transform: rotate(180deg); color: var(--charcoal); }

.select-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  right: -16px;
  background: var(--ivory);
  border: 1px solid var(--rule);
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 28px 56px -20px rgba(28, 26, 23, 0.22), 0 4px 12px -6px rgba(28, 26, 23, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 280ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms;
}
.select-ui.open .select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 280ms var(--ease), transform 320ms var(--ease), visibility 0s linear 0s;
}
.select-menu::-webkit-scrollbar { width: 6px; }
.select-menu::-webkit-scrollbar-thumb { background: var(--taupe); border-radius: 3px; }

.select-opt {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 22px;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.003em;
  color: var(--charcoal);
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 240ms var(--ease), color 240ms var(--ease), padding 320ms var(--ease);
}
.select-opt:last-child { border-bottom: none; }
.select-opt::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: currentColor;
  transition: width 320ms var(--ease), margin 320ms var(--ease);
}
.select-opt:hover,
.select-opt:focus-visible {
  background: var(--limestone);
  outline: none;
}
.select-opt:hover::before,
.select-opt:focus-visible::before {
  width: 18px;
  margin-right: 14px;
}
.select-opt.selected {
  font-style: italic;
  color: var(--charcoal);
}
.select-opt.selected::before {
  width: 18px;
  margin-right: 14px;
  background: var(--taupe);
}
.field .err {
  position: absolute;
  bottom: -2px; left: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #b04a3a;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms, transform 200ms;
}
.field.invalid .err { opacity: 1; transform: translateY(0); }
.field.invalid { background: rgba(176, 74, 58, 0.05); }
.field.valid label::after {
  content: " ✓";
  color: #4a7a5a;
  letter-spacing: normal;
}

.form-foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.form-submit-error {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #8b3a32;
}
.btn.submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.check-box {
  width: 18px; height: 18px;
  border: 1px solid var(--taupe);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
  position: relative;
}
.check-box::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--ivory);
  border-bottom: 1.5px solid var(--ivory);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 180ms var(--ease);
}
.check-label input:checked ~ .check-box {
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.check-label input:checked ~ .check-box::after { opacity: 1; }
.check-label:hover .check-box { border-color: var(--charcoal); }
.check-label input:focus-visible ~ .check-box { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.check-text {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--taupe-2);
}
.check-text a {
  color: var(--charcoal);
  border-bottom: 1px solid var(--rule);
  transition: border-color 200ms;
}
.check-text a:hover { border-color: var(--charcoal); }
/* Invalid state for required checkbox */
.check-label.invalid .check-box { border-color: #b04a3a; }
.check-label.invalid .check-text { color: #b04a3a; }
.form-foot-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.form-foot .micro {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--taupe-2);
  max-width: 30ch;
  line-height: 1.45;
}
.btn.submit {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
  padding: 16px 28px;
}
.btn.submit::before { background: var(--olive); }
.btn.submit:hover { color: var(--ivory); border-color: var(--olive); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; animation: fadeUpIn 600ms var(--ease-out); }
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-success .h-section { margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.form-success .h-section em { display: block; margin-top: 6px; }
.form-success p { color: var(--charcoal-2); margin: 0; max-width: 36ch; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(246, 241, 232, 0.78);
  padding: clamp(80px, 10vh, 120px) 0 28px;
  position: relative;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  margin-bottom: clamp(60px, 8vh, 96px);
}
.foot-brand .brand { margin-bottom: 24px; }
.foot-brand .brand-logo { height: 40px; }
.foot-brand p { max-width: 32ch; line-height: 1.5; font-size: 0.92rem; color: rgba(246,241,232,0.7); }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.5);
  margin: 0 0 20px;
  font-weight: 400;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-col ul a { font-family: "Manrope", sans-serif; font-weight: 400; font-size: 0.95rem; color: rgba(246, 241, 232, 0.92); transition: color 200ms; }
.foot-col ul a:hover { color: var(--ivory); }
.foot-mega {
  padding: clamp(40px, 6vh, 64px) 0 0;
  margin: 0 0 clamp(40px, 6vh, 64px);
  border-top: 1px solid rgba(246, 241, 232, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}
.foot-mega-logo {
  height: clamp(72px, 12vw, 160px);
  width: auto;
  display: block;
}
.foot-mega .meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.5);
  line-height: 1.8;
  text-align: right;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 241, 232, 0.16);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.55);
}
.foot-bottom .links { display: flex; gap: 24px; }
.foot-bottom .links a { transition: color 200ms; }
.foot-bottom .links a:hover { color: var(--ivory); }

/* ============================================================
   IMAGE SLOTS (replaceable images)
   ============================================================ */

/* Base: fill parent absolutely, disable pointer/controls by default */
image-slot {
  /* Hide the hover Replace/Remove controls in normal viewing — they bleed
     below the slot which is distracting on a polished landing page. */
  pointer-events: none;
}
image-slot.slot-fill {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}
image-slot.slot-bleed {
  /* For full-bleed bgs with parallax overscan */
  position: absolute !important;
  inset: -28% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}
image-slot.slot-bleed--hero {
  /* Hero: minimal overscan, near-natural scale */
  inset: -6% !important;
}

/* When Tweaks is on, slots accept drag-drop / hover controls */
body.tweaks-on image-slot { pointer-events: auto; }

/* Subtle hint when Tweaks is on: dashed outline on slots */
body.tweaks-on image-slot.slot-fill::part(frame),
body.tweaks-on image-slot.slot-bleed::part(frame) {
  outline: 1px dashed rgba(246, 241, 232, 0.4);
  outline-offset: -8px;
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: min(360px, calc(100vw - 44px));
  background: var(--ivory);
  border: 1px solid var(--rule);
  box-shadow: 0 32px 64px -24px rgba(28, 26, 23, 0.28), 0 8px 16px -8px rgba(28, 26, 23, 0.1);
  color: var(--charcoal);
  font-family: var(--sans);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), visibility 0s linear 420ms;
  pointer-events: none;
}
.tweaks-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), visibility 0s linear 0s;
  pointer-events: auto;
}
.tweaks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--rule);
}
.tweaks-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.tweaks-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--taupe-2);
  transition: background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
}
.tweaks-close:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.tweaks-body {
  padding: 18px 22px 22px;
}
.tweaks-section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 400;
}
.tweaks-section-title em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  opacity: 0.9;
}
.tweaks-hint {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--charcoal-2);
  margin: 0 0 16px;
}
.tweaks-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  background: var(--limestone);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--charcoal);
}
.tweaks-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tweaks-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--charcoal-2);
}
.tweaks-steps .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--taupe-2);
  padding-top: 2px;
}
.tweaks-steps b {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.92rem;
}
.tweaks-pill {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--olive);
  padding: 6px 12px;
}

@media (max-width: 640px) {
  .tweaks-panel { right: 12px; bottom: 12px; }
}
.fab-wa {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(28,26,23,0.25);
  transition: transform 300ms var(--ease);
}
.fab-wa:hover { transform: scale(1.05); }
.fab-wa svg { width: 26px; height: 26px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-img {
  opacity: 0;
  clip-path: inset(8% 8% 8% 8%);
  transition: opacity 1.2s var(--ease-out), clip-path 1.4s var(--ease-out);
}
.reveal-img.in { opacity: 1; clip-path: inset(0 0 0 0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 480ms; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
/* Expertise cards reveal — slower, cinematic */
.spec-grid.reveal-stagger > * {
  transition: opacity 1500ms var(--ease-out), transform 1500ms var(--ease-out);
  transform: translateY(36px);
}
.spec-grid.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.spec-grid.reveal-stagger.in > *:nth-child(2) { transition-delay: 220ms; }
.spec-grid.reveal-stagger.in > *:nth-child(3) { transition-delay: 440ms; }
.spec-grid.reveal-stagger.in > *:nth-child(4) { transition-delay: 660ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle {
    display: inline-flex;
    width: 38px; height: 38px;
    border: 1px solid currentColor;
    border-radius: 50%;
    align-items: center; justify-content: center;
  }
  .menu-toggle .bars { width: 14px; height: 10px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  }
  .menu-toggle .bars::before { top: 1px; }
  .menu-toggle .bars::after { bottom: 1px; }
  .header .tel { display: none; }
  .header .btn.primary { padding: 10px 14px; font-size: 0.72rem; }
  .about-grid, .spec-head, .gal-head, .form-grid { grid-template-columns: 1fr; }
  .form-left { position: relative; top: auto; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-auto-rows: 70px; }
  .gal-1 { grid-column: 1 / span 12; grid-row: span 8; }
  .gal-2, .gal-3 { grid-column: 1 / span 12; grid-row: span 6; }
  .gal-4, .gal-5, .gal-6 { grid-column: 1 / span 12; grid-row: span 6; }
  .gal-7 { grid-column: 1 / span 12; grid-row: span 7; }
  .gal-8 { grid-column: 1 / span 12; grid-row: span 6; }
  .private-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .header { padding: 14px 20px; }
  .header .brand-logo { height: 30px; }
  .header .icon-btn { display: none; }
  .header .menu-toggle { display: none !important; }
  .header .btn.primary span { display: none; }
  .header .btn.primary::after { content: "Contact"; }
  .header .btn.primary {
    padding: 9px 14px;
    font-size: 0.72rem;
    gap: 8px;
  }
  .header-right { gap: 10px; }
  .hero-top { top: 80px; left: 20px; right: 20px; }
  .hero-top .meta { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-actions { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ticker-track { font-size: 1.3rem; }
  .ticker-group { gap: 36px; padding-right: 36px;}
  .spec-grid { grid-template-columns: 1fr; }
  .spec-card { aspect-ratio: 4/5; }
  .spec-card p { max-height: 100px; opacity: 1; transform: none; margin-top: 4px; }
  .gal-1, .gal-2, .gal-3, .gal-4, .gal-5, .gal-6, .gal-7, .gal-8 { grid-column: span 12; grid-row: span 6; }
  .gal-cap { opacity: 1; transform: none; }
  .form { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .field { border-right: none; border-bottom: 1px solid var(--rule); padding: 14px 0 !important; }
  .form-row .field:last-child { border-bottom: none; padding-left: 0 !important; }
  .form-row { border-bottom: none; }
  .contact-list li {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .contact-list .label { gap: 8px; min-width: 100px; }
  .contact-list .label .ico { flex: 0 0 17px; width: 17px; height: 17px; }
  .contact-list .val { font-size: 0.95rem; overflow-wrap: break-word; word-break: break-word; min-width: 0; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-mega { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .fab-wa { display: inline-flex; }
}
