/* ============================================================
   MERIDIAN ESTATES — Luxury Real Estate
   Foundation: 3 Themes + base + header + hero + about + switcher
   ============================================================ */

/* ---------- THEMES ---------- */
:root,
:root[data-theme="obsidian"] {
  --bg:        #0a0a0b;
  --bg-2:      #0e0e10;
  --surface:   #141416;
  --surface-2: #1c1c20;
  --text:      #f5f2ea;
  --text-dim:  #b8b3a7;
  --text-mute: #6f6a60;
  --accent:    #c9a227;
  --accent-2:  #ecd28a;
  --accent-soft: rgba(201,162,39,.14);
  --line:      rgba(201,162,39,.26);
  --line-soft: rgba(255,255,255,.08);
  --on-accent: #0a0a0b;
  --hero-tint: linear-gradient(180deg, rgba(8,8,9,.45) 0%, rgba(8,8,9,.30) 40%, rgba(8,8,9,.82) 100%);
  --shadow:    0 30px 80px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

:root[data-theme="ivory"] {
  --bg:        #f6f3ec;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f0ebe0;
  --text:      #15130d;
  --text-dim:  #4d483d;
  --text-mute: #8c8678;
  --accent:    #b3891b;
  --accent-2:  #caa845;
  --accent-soft: rgba(179,137,27,.12);
  --line:      rgba(179,137,27,.32);
  --line-soft: rgba(0,0,0,.10);
  --on-accent: #ffffff;
  --hero-tint: linear-gradient(180deg, rgba(10,9,6,.40) 0%, rgba(10,9,6,.25) 40%, rgba(10,9,6,.78) 100%);
  --shadow:    0 30px 70px -34px rgba(60,50,20,.40);
  color-scheme: light;
}

:root[data-theme="mono"] {
  --bg:        #0a0a0a;
  --bg-2:      #101010;
  --surface:   #161616;
  --surface-2: #1f1f1f;
  --text:      #f4f4f4;
  --text-dim:  #b2b2b2;
  --text-mute: #6c6c6c;
  --accent:    #f4f4f4;
  --accent-2:  #ffffff;
  --accent-soft: rgba(255,255,255,.10);
  --line:      rgba(255,255,255,.20);
  --line-soft: rgba(255,255,255,.08);
  --on-accent: #0a0a0a;
  --hero-tint: linear-gradient(180deg, rgba(6,6,6,.45) 0%, rgba(6,6,6,.30) 40%, rgba(6,6,6,.85) 100%);
  --shadow:    0 30px 80px -30px rgba(0,0,0,.85);
  color-scheme: dark;
}

/* ---------- RESET / BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

.serif { font-family: 'Playfair Display', Georgia, serif; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.wrap { width: min(1280px, 92vw); margin-inline: auto; }
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .7; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .7; }

.section { padding: clamp(80px, 11vh, 150px) 0; position: relative; }
.section.alt { background: var(--bg-2); }

.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 1.15em 2.2em; cursor: pointer; border: none;
  transition: all .35s cubic-bezier(.2,.7,.2,1); position: relative; overflow: hidden;
}
.btn-gold { background: var(--accent); color: var(--on-accent); }
.btn-gold:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .35s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 54px);
  transition: background .4s ease, padding .4s ease, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-name {
  font-size: 1.42rem; font-weight: 600; letter-spacing: .04em; color: var(--accent);
  transition: font-size .4s, color .5s; text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.brand-sub {
  font-size: .56rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: var(--text-dim); opacity: .9;
}
.site-header.scrolled .brand-name { font-size: 1.28rem; }
/* over the dark hero, before scroll, keep brand light-readable */
.site-header:not(.scrolled) .brand-sub { color: rgba(247,244,236,.75); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a.navlink {
  font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); transition: color .3s; position: relative;
}
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--accent); transition: width .3s;
}
.nav a.navlink:hover { color: var(--text); }
.nav a.navlink:hover::after { width: 100%; }
.nav-cta { padding: .9em 1.6em !important; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 26px; height: 2px; background: var(--text); transition: .3s; }

/* ---------- VARIANT SYSTEM ---------- */
[data-section] .variant { display: none; }
[data-section] .variant.active { display: block; }

/* inline per-section variant switcher (review tool) */
.sec-switch {
  position: absolute; top: 84px; right: 16px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 40px; padding: 6px 10px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
.sec-switch.is-hero { top: auto; bottom: 96px; }
.sec-switch .lbl { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.sec-switch button {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  font-size: .74rem; font-weight: 600; transition: all .2s;
}
.sec-switch button:hover { border-color: var(--accent); color: var(--accent); }
.sec-switch button.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
body.tk-clean .sec-switch { display: none; }
@media (max-width: 900px) {
  .sec-switch { top: 70px; right: 10px; padding: 5px 8px; gap: 5px; }
  .sec-switch .lbl { display: none; }
  .sec-switch button { width: 24px; height: 24px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-tint); }
.hero-grain { position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"); }
.hero .variant.active { width: 100%; display: flex; }
.hero-content { position: relative; z-index: 2; width: 100%; min-height: 100svh; color: #f7f4ec; }
.hero .scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(247,244,236,.7);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: cuepulse 2.2s infinite; }
@keyframes cuepulse { 0%,100%{ opacity:.3; transform: scaleY(.7);} 50%{ opacity:1; transform: scaleY(1);} }

/* Hero V1 — Cinematic Center */
.heroV1 .hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 90px; }
.heroV1 .hero-logo { width: min(640px, 82vw); margin-bottom: 30px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.heroV1 h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 500; max-width: 16ch; }
.heroV1 h1 em { font-style: italic; color: var(--accent-2); }
.heroV1 .hero-sub { margin-top: 22px; font-size: clamp(1rem,1.5vw,1.18rem); color: rgba(247,244,236,.82); max-width: 52ch; font-weight: 300; }
.heroV1 .hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Hero V2 — Editorial Split */
.heroV2 .hero-content { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.heroV2 .hero-left { padding: 150px clamp(30px,4vw,70px) 80px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(100deg, rgba(8,8,9,.85) 30%, transparent); }
.heroV2 .hero-left h1 { font-size: clamp(2.6rem,5vw,4.6rem); font-weight: 500; margin-top: 26px; }
.heroV2 .hero-left h1 em { font-style: italic; color: var(--accent-2); }
.heroV2 .hero-sub { margin-top: 22px; font-size: 1.08rem; color: rgba(247,244,236,.8); max-width: 44ch; font-weight: 300; }
.heroV2 .hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.heroV2 .hero-stats { margin-top: 56px; display: flex; gap: 40px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; }
.heroV2 .hero-stats .num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--accent-2); display: block; }
.heroV2 .hero-stats .lbl { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,244,236,.66); }
.heroV2 .hero-right { position: relative; }

/* Hero V3 — Minimal Luxe (bottom-left statement, framed) */
.heroV3 .hero-content { display: flex; align-items: flex-end; padding: 0; }
.heroV3 .hero-frame { position: absolute; inset: clamp(20px,3vw,46px); border: 1px solid rgba(255,255,255,.22); pointer-events: none; z-index: 3; }
.heroV3 .v3-top { position: absolute; top: clamp(40px,6vw,80px); left: clamp(44px,6vw,90px); right: clamp(44px,6vw,90px);
  display: flex; justify-content: space-between; align-items: center; z-index: 4; }
.heroV3 .v3-top .label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(247,244,236,.8); }
.heroV3 .v3-body { padding: 0 clamp(44px,6vw,90px) clamp(70px,9vw,120px); }
.heroV3 .v3-body .eyebrow { color: var(--accent-2); }
.heroV3 .v3-body .eyebrow::before { background: var(--accent-2); }
.heroV3 h1 { font-size: clamp(2.8rem,7vw,6rem); font-weight: 500; margin-top: 18px; max-width: 14ch; }
.heroV3 h1 em { font-style: italic; color: var(--accent-2); }
.heroV3 .v3-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-portrait { position: relative; }
.about-portrait img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .6s; }
.about-portrait:hover img { filter: grayscale(0) contrast(1); }
.about-portrait .gold-frame { position: absolute; inset: 0; border: 1px solid var(--accent); pointer-events: none; }

/* About V1 — Portrait Left / Bio Right */
.aboutV1 .grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px,5vw,80px); align-items: center; }
.aboutV1 .about-portrait { aspect-ratio: 4/5; }
.aboutV1 .about-portrait .gold-frame { transform: translate(18px,18px); }
.aboutV1 h2 { font-size: clamp(2rem,3.6vw,3.2rem); margin-top: 20px; }
.aboutV1 .lead { font-size: 1.32rem; font-family: 'Playfair Display', serif; font-style: italic; color: var(--accent); margin: 18px 0 22px; }
.aboutV1 .bio p { color: var(--text-dim); margin-bottom: 16px; max-width: 60ch; }
.aboutV1 .sig { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.aboutV1 .sig .name { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.aboutV1 .sig .role { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.handle { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; letter-spacing: .12em; color: var(--accent); border: 1px solid var(--line); padding: .55em 1em; border-radius: 40px; }

/* About V2 — Editorial Overlap, big pull-quote */
.aboutV2 { text-align: center; }
.aboutV2 .pullquote { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(2rem,4.6vw,4rem); font-weight: 500; max-width: 18ch; margin: 18px auto 0; line-height: 1.12; }
.aboutV2 .pullquote .accent { color: var(--accent); }
.aboutV2 .ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,5vw,90px); align-items: center; margin-top: 60px; text-align: left; }
.aboutV2 .about-portrait { aspect-ratio: 1/1; max-width: 480px; }
.aboutV2 .about-portrait .gold-frame { transform: translate(-18px,18px); }
.aboutV2 .ov-bio p { color: var(--text-dim); margin-bottom: 16px; }
.aboutV2 .ov-bio .stat-row { display: flex; gap: 34px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.aboutV2 .ov-bio .num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--accent); display:block; }
.aboutV2 .ov-bio .lbl { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }

/* About V3 — Centered Statement */
.aboutV3 { text-align: center; }
.aboutV3 .about-portrait { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; margin: 26px auto 0; }
.aboutV3 .about-portrait img { aspect-ratio: 1/1; }
.aboutV3 .about-portrait .gold-frame { border-radius: 50%; transform: scale(1.08); }
.aboutV3 h2 { font-size: clamp(2rem,3.6vw,3rem); margin-top: 26px; }
.aboutV3 .desig { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-top: 10px; }
.aboutV3 .bio { max-width: 64ch; margin: 26px auto 0; color: var(--text-dim); }
.aboutV3 .chips { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.aboutV3 .chip { border: 1px solid var(--line); padding: .7em 1.3em; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

/* ============================================================
   SWITCHER PANEL (dev/preview control)
   ============================================================ */
.switcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 500;
  font-family: 'Montserrat', sans-serif;
}
.switcher.hidden-clean { display: none; }
.sw-toggle {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--accent); cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.sw-panel {
  position: absolute; right: 0; bottom: 64px; width: 290px; max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  box-shadow: var(--shadow); display: none;
}
.sw-panel.open { display: block; }
.sw-panel h4 { font-family: 'Montserrat', sans-serif; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); margin: 14px 0 8px; }
.sw-panel h4:first-child { margin-top: 0; }
.sw-themes { display: flex; gap: 8px; }
.sw-theme { flex: 1; cursor: pointer; border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 4px; text-align: center; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); background: var(--bg); }
.sw-theme.active { border-color: var(--accent); color: var(--accent); }
.sw-theme .dot { display: block; width: 100%; height: 16px; border-radius: 4px; margin-bottom: 5px; }
.sw-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.sw-row .nm { font-size: .74rem; color: var(--text-dim); text-transform: capitalize; }
.sw-vars { display: flex; gap: 5px; }
.sw-vars button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line-soft); background: var(--bg); color: var(--text-dim); cursor: pointer; font-size: .74rem; }
.sw-vars button.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sw-clean { margin-top: 14px; width: 100%; padding: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-dim); cursor: pointer; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; border-radius: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw,320px); background: var(--bg-2);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    padding: 40px; transform: translateX(100%); transition: transform .4s; border-left: 1px solid var(--line); }
  .nav.open { transform: translateX(0); }
  .burger { display: flex; z-index: 210; }
  .heroV2 .hero-content { grid-template-columns: 1fr; }
  .heroV2 .hero-right { display: none; }
  .heroV2 .hero-left { background: linear-gradient(180deg, rgba(8,8,9,.5), rgba(8,8,9,.85)); padding-top: 130px; }
  .heroV1 h1, .heroV3 h1 { max-width: none; }
  .aboutV1 .grid { grid-template-columns: 1fr; }
  .aboutV1 .about-portrait { max-width: 420px; }
  .aboutV2 .ov-grid { grid-template-columns: 1fr; }
  .aboutV2 .about-portrait { margin-inline: auto; }
  .heroV2 .hero-stats { flex-wrap: wrap; gap: 22px; }
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section-head { text-align: center; margin-bottom: clamp(40px,5vw,68px); }
.section-head.left { text-align: left; }
.section-head h2 { font-size: clamp(2rem,4vw,3.4rem); margin-top: 16px; }
.section-head p { color: var(--text-dim); max-width: 56ch; margin: 14px auto 0; }
.section-head.left p { margin-inline: 0; }

/* ============================================================
   STATS / TRUST BAR
   ============================================================ */
.statsV1 .stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.statsV1 .stat { background: var(--bg); padding: clamp(28px,3.5vw,46px) 24px; text-align: center; }
.statsV1 .stat .k { font-family: 'Playfair Display',serif; font-size: clamp(1.3rem,2vw,1.8rem); color: var(--accent); }
.statsV1 .stat .v { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-top: 8px; }
.statsV2 { text-align: center; }
.statsV2 .row { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(24px,4vw,60px); align-items: center; }
.statsV2 .row .item { padding: 0 10px; }
.statsV2 .k { font-family: 'Playfair Display',serif; font-size: clamp(1.8rem,3vw,2.6rem); color: var(--accent); display:block; }
.statsV2 .v { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.statsV2 .sep { width: 1px; height: 46px; background: var(--line); }
.statsV3 .grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; max-width: 820px; margin: 0 auto; }
.statsV3 .card { border: 1px solid var(--line); padding: 30px; display: flex; gap: 18px; align-items: center; background: var(--surface); }
.statsV3 .card .mk { font-family: 'Playfair Display',serif; font-size: 2rem; color: var(--accent); line-height: 1; }
.statsV3 .card .tx b { display: block; }
.statsV3 .card .tx span { color: var(--text-mute); font-size: .85rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-card { background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; transition: transform .4s, border-color .4s; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.svc-card .ph { aspect-ratio: 16/11; overflow: hidden; }
.svc-card .ph img { width:100%; height:100%; object-fit: cover; transition: transform .6s; }
.svc-card:hover .ph img { transform: scale(1.06); }
.svc-card .bd { padding: 28px; }
.svc-card .bd h3 { font-size: 1.5rem; }
.svc-card .bd p { color: var(--text-dim); margin: 12px 0 18px; font-size: .96rem; }
.svc-card .more { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.servicesV1 .grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
/* V2 alternating rows */
.servicesV2 .row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; margin-bottom: clamp(40px,6vw,90px); }
.servicesV2 .row:nth-child(even) .ph { order: 2; }
.servicesV2 .row:last-child { margin-bottom: 0; }
.servicesV2 .ph { aspect-ratio: 4/3; overflow: hidden; }
.servicesV2 .ph img { width:100%; height:100%; object-fit: cover; }
.servicesV2 .tx h3 { font-size: clamp(1.6rem,2.6vw,2.2rem); }
.servicesV2 .tx .num { font-family:'Playfair Display',serif; color: var(--accent); font-size: 1rem; letter-spacing:.2em; }
.servicesV2 .tx p { color: var(--text-dim); margin: 14px 0 0; max-width: 46ch; }
/* V3 numbered minimal list */
.servicesV3 .list { max-width: 920px; margin: 0 auto; }
.servicesV3 .item { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 30px 0; border-top: 1px solid var(--line); }
.servicesV3 .item:last-child { border-bottom: 1px solid var(--line); }
.servicesV3 .item .no { font-family:'Playfair Display',serif; font-size: 2.4rem; color: var(--accent); }
.servicesV3 .item h3 { font-size: 1.5rem; }
.servicesV3 .item p { color: var(--text-dim); font-size: .94rem; margin-top: 6px; }
.servicesV3 .item .go { color: var(--accent); font-size: 1.4rem; }

/* ============================================================
   FEATURED PROPERTIES
   ============================================================ */
.prop-card { display: block; background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; transition: transform .4s, border-color .4s; }
.prop-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.prop-card .ph { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.prop-card .ph img { width:100%; height:100%; object-fit: cover; transition: transform .7s; }
.prop-card:hover .ph img { transform: scale(1.07); }
.prop-card .badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--on-accent); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; padding: .5em .9em; font-weight: 600; }
.prop-card .price { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; font-family:'Playfair Display',serif; font-size: 1.5rem; }
.prop-card .bd { padding: 18px; }
.prop-card .bd .addr { font-weight: 600; }
.prop-card .bd .comm { color: var(--text-mute); font-size: .85rem; margin-top: 3px; }
.prop-card .bd .specs { display: flex; gap: 16px; margin-top: 12px; color: var(--text-dim); font-size: .82rem; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.featuredV1 .grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.featuredV2 .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.featuredV2 .grid .col { display: grid; gap: 24px; }
.featuredV2 .big .ph { aspect-ratio: 4/3; }
.featuredV3 .strip { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
.featuredV3 .strip .prop-card { flex: 0 0 340px; scroll-snap-align: start; }
.center-cta { text-align: center; margin-top: clamp(34px,4vw,52px); }

/* ============================================================
   GUIDES
   ============================================================ */
.guideV1 .tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; }
.guideV1 .tab { padding: .9em 1.8em; border: 1px solid var(--line); background: transparent; color: var(--text-dim); cursor: pointer; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.guideV1 .tab.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.guideV1 .steps { max-width: 820px; margin: 0 auto; display: none; }
.guideV1 .steps.active { display: block; }
.guideV1 .step { display: grid; grid-template-columns: auto 1fr; gap: 26px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.guideV1 .step .n { font-family:'Playfair Display',serif; font-size: 1.8rem; color: var(--accent); min-width: 44px; }
.guideV1 .step h4 { font-family:'Montserrat',sans-serif; font-size: 1.05rem; font-weight: 600; }
.guideV1 .step p { color: var(--text-dim); font-size: .92rem; margin-top: 6px; }
.guideV2 .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,60px); }
.guideV2 .acc-h { font-size: 1.4rem; margin-bottom: 18px; color: var(--accent); }
.guideV2 details { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.guideV2 summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.guideV2 summary::-webkit-details-marker { display: none; }
.guideV2 summary::after { content: "+"; color: var(--accent); }
.guideV2 details[open] summary::after { content: "−"; }
.guideV2 details p { color: var(--text-dim); font-size: .9rem; margin-top: 10px; }
.guideV3 .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.guideV3 .gcard { background: var(--surface); border: 1px solid var(--line); padding: clamp(30px,4vw,48px); }
.guideV3 .gcard h3 { font-size: 1.8rem; }
.guideV3 .gcard ol { margin: 20px 0 24px; padding-left: 20px; color: var(--text-dim); }
.guideV3 .gcard ol li { margin-bottom: 10px; }
.guideV3 .gcard ol li::marker { color: var(--accent); font-family:'Playfair Display',serif; }

/* ============================================================
   VALUATION CTA
   ============================================================ */
.valuation { position: relative; overflow: hidden; }
.valV1 { text-align: center; padding: clamp(40px,6vw,80px); border: 1px solid var(--line); background: linear-gradient(135deg, var(--accent-soft), transparent); }
.valV1 h2 { font-size: clamp(2rem,4vw,3.4rem); }
.valV1 p { color: var(--text-dim); margin: 16px auto 30px; max-width: 50ch; }
.valV2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,60px); align-items: center; }
.valV2 .ph { aspect-ratio: 4/3; overflow: hidden; }
.valV2 .ph img { width:100%; height:100%; object-fit: cover; }
.valV2 h2 { font-size: clamp(1.8rem,3vw,2.8rem); }
.valV2 p { color: var(--text-dim); margin: 14px 0 26px; }
.valV3 { text-align: center; }
.valV3 .big { font-family:'Playfair Display',serif; font-size: clamp(2.4rem,6vw,5rem); font-weight: 500; }
.valV3 .big .accent { color: var(--accent); font-style: italic; }
.valV3 p { color: var(--text-dim); margin: 18px auto 30px; max-width: 46ch; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tnote { text-align: center; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-top: 30px; opacity: .7; }
.t-card { background: var(--surface); border: 1px solid var(--line-soft); padding: 32px; }
.t-card .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 14px; }
.t-card .q { font-family:'Playfair Display',serif; font-style: italic; font-size: 1.1rem; line-height: 1.5; }
.t-card .by { margin-top: 18px; font-size: .82rem; color: var(--text-mute); letter-spacing: .08em; }
.testimonialsV1 .grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testimonialsV2 { text-align: center; max-width: 820px; margin: 0 auto; }
.testimonialsV2 .stars { color: var(--accent); letter-spacing: 5px; font-size: 1.2rem; }
.testimonialsV2 .bigq { font-family:'Playfair Display',serif; font-style: italic; font-size: clamp(1.6rem,3vw,2.4rem); line-height: 1.4; margin: 20px 0; }
.testimonialsV2 .by { color: var(--text-mute); letter-spacing: .1em; }
.testimonialsV3 .grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; max-width: 960px; margin: 0 auto; }

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.areasV1 .cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.areasV1 .pill { border: 1px solid var(--line); padding: .7em 1.4em; border-radius: 40px; color: var(--text-dim); font-size: .9rem; transition: all .3s; }
.areasV1 .pill:hover { border-color: var(--accent); color: var(--accent); }
.areasV1 .pill.lead { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.areasV2 .cols { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.areasV2 .cols h4 { color: var(--accent); font-family:'Montserrat',sans-serif; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.areasV2 .cols a { display: block; color: var(--text-dim); padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.areasV2 .cols a:hover { color: var(--accent); }
.areasV3 .grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.areasV3 .cell { background: var(--bg); padding: 26px; text-align: center; color: var(--text-dim); transition: all .3s; }
.areasV3 .cell:hover { background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--text); padding: 13px 15px; font-family: inherit; font-size: .95rem; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.contact-info .li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.contact-info .li .ic { color: var(--accent); font-size: 1.1rem; min-width: 26px; }
.contact-info .li b { display: block; }
.contact-info .li span { color: var(--text-mute); font-size: .85rem; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-dim); border-radius: 50%; transition: all .3s; font-size: .8rem; letter-spacing: .02em; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.contactV1 .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); }
.contactV2 { max-width: 680px; margin: 0 auto; }
.contactV3 .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; }
.contactV3 .big { font-size: clamp(2.2rem,4.5vw,3.8rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(50px,6vw,76px) 0 30px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .fbrand img { width: 90px; margin-bottom: 18px; }
.site-footer .fbrand .nm { font-family:'Playfair Display',serif; font-size: 1.4rem; color: var(--accent); }
.site-footer .fbrand p { color: var(--text-mute); font-size: .88rem; margin-top: 12px; max-width: 36ch; }
.site-footer h5 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.site-footer a.fl { display: block; color: var(--text-dim); padding: 5px 0; font-size: .92rem; }
.site-footer a.fl:hover { color: var(--accent); }
.site-footer .bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-mute); font-size: .78rem; }

/* ============================================================
   RESPONSIVE — new sections
   ============================================================ */
@media (max-width: 900px) {
  .statsV1 .stat-band { grid-template-columns: repeat(2,1fr); }
  .statsV3 .grid { grid-template-columns: 1fr; }
  .servicesV1 .grid, .featuredV1 .grid, .testimonialsV1 .grid { grid-template-columns: 1fr; }
  .servicesV2 .row, .featuredV2 .grid, .guideV2 .cols, .guideV3 .cards, .valV2, .contactV1 .grid, .contactV3 .grid, .testimonialsV3 .grid { grid-template-columns: 1fr; }
  .servicesV2 .row:nth-child(even) .ph { order: 0; }
  .areasV2 .cols { grid-template-columns: 1fr 1fr; }
  .areasV3 .grid { grid-template-columns: 1fr 1fr; }
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .guideV1 .tabs { flex-wrap: wrap; }
}

/* ============================================================
   PROPERTIES PAGE
   ============================================================ */
.prop-hero { padding: clamp(130px,16vh,200px) 0 clamp(40px,6vh,70px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.prop-hero .eyebrow { color: var(--accent); }
.prop-hero h1 { font-size: clamp(2.4rem,5vw,4.4rem); margin-top: 14px; }
.prop-hero p { color: var(--text-dim); margin-top: 14px; max-width: 56ch; }
.prop-hero .count { margin-top: 18px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.filter-bar { position: sticky; top: 64px; z-index: 100; background: color-mix(in srgb,var(--bg) 92%,transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-bar .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar .group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-bar .chip { border: 1px solid var(--line); background: transparent; color: var(--text-dim); padding: .55em 1.05em; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .25s; border-radius: 40px; }
.filter-bar .chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.filter-bar select { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); padding: .6em 1em; font-family: inherit; font-size: .8rem; border-radius: 40px; cursor: pointer; }
.filter-bar .spacer { flex: 1; }
.filter-bar .view-toggle { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 40px; padding: 3px; }
.filter-bar .view-toggle button { background: transparent; border: none; color: var(--text-mute); padding: .4em .9em; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 40px; }
.filter-bar .view-toggle button.active { background: var(--accent); color: var(--on-accent); }

#listingsWrap { padding: clamp(40px,6vh,70px) 0 clamp(70px,9vh,120px); }
.listings.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.listings.large { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.listings.list { display: flex; flex-direction: column; gap: 16px; }
.listings.list .prop-card { display: grid; grid-template-columns: 300px 1fr; }
.listings.list .prop-card .ph { aspect-ratio: auto; }
.listings.list .prop-card .price { font-size: 1.3rem; }
.listings.list .prop-card .bd { display: flex; flex-direction: column; justify-content: center; }
.listings.large .prop-card .ph { aspect-ratio: 16/10; }
.l-card { cursor: pointer; }
.l-card .ph .status { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.6); color:#fff; font-size:.6rem; letter-spacing:.12em; text-transform:uppercase; padding:.45em .8em; border:1px solid rgba(255,255,255,.25); }
.l-card .ph .status.sold { background: #7a1f1f; border-color:#7a1f1f; }
.l-card .ph .status.lease { background: rgba(201,162,39,.25); border-color: var(--accent); color: var(--accent-2); }
.no-results { text-align:center; color: var(--text-mute); padding: 60px 0; grid-column: 1/-1; }

/* detail modal */
.modal { position: fixed; inset: 0; z-index: 600; display: none; }
.modal.open { display: block; }
.modal .ov { position: absolute; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.modal .box { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(900px,94vw); max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); }
.modal .box .mph { aspect-ratio: 16/9; position: relative; }
.modal .box .mph img { width:100%; height:100%; object-fit: cover; }
.modal .box .mph .mprice { position: absolute; bottom:0; left:0; right:0; padding: 40px 26px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color:#fff; font-family:'Playfair Display',serif; font-size: 2rem; }
.modal .box .mbd { padding: 28px; }
.modal .box .maddr { font-size: 1.4rem; font-family:'Playfair Display',serif; }
.modal .box .mcomm { color: var(--text-mute); margin-top: 4px; }
.modal .box .mspecs { display: flex; gap: 28px; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.modal .box .mspecs .s b { font-family:'Playfair Display',serif; font-size: 1.5rem; color: var(--accent); display:block; }
.modal .box .mspecs .s span { font-size: .7rem; letter-spacing:.12em; text-transform:uppercase; color: var(--text-mute); }
.modal .box .mmeta { color: var(--text-dim); font-size: .9rem; }
.modal .box .mcta { margin-top: 22px; display:flex; gap:12px; flex-wrap:wrap; }
.modal .close { position: absolute; top: 14px; right: 16px; z-index: 2; background: rgba(0,0,0,.5); color:#fff; border:1px solid rgba(255,255,255,.3); width:40px; height:40px; border-radius:50%; cursor:pointer; font-size:1.1rem; }
.modal .box .mnote { margin-top: 16px; font-size: .72rem; color: var(--text-mute); letter-spacing:.06em; }

@media (max-width: 900px) {
  .listings.grid, .listings.large { grid-template-columns: 1fr; }
  .listings.list .prop-card { grid-template-columns: 1fr; }
  .filter-bar { top: 56px; }
  .filter-bar .view-toggle { display: none; }
}

/* ============================================================
   ABOUT — REDESIGN (N1/N2/N3)
   ============================================================ */
.aboutN1 .grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px,5vw,72px); align-items: stretch; }
.aboutN1 .portrait { position: relative; min-height: 560px; overflow: hidden; }
.aboutN1 .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transition: filter .6s; }
.aboutN1 .portrait:hover img { filter: grayscale(0); }
.aboutN1 .portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.88)); }
.aboutN1 .portrait .frame { position: absolute; inset: 16px; border: 1px solid var(--accent); z-index: 2; pointer-events: none; }
.aboutN1 .portrait .pn { position: absolute; left: 28px; bottom: 26px; z-index: 3; }
.aboutN1 .portrait .pn .nm { font-family: 'Playfair Display',serif; font-size: 1.7rem; color: #fff; }
.aboutN1 .portrait .pn .role { color: var(--accent-2); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; }
.aboutN1 .content { align-self: center; }
.aboutN1 h2 { font-size: clamp(2rem,3.6vw,3.1rem); margin-top: 14px; }
.aboutN1 .lead { font-family: 'Playfair Display',serif; font-style: italic; color: var(--accent); font-size: 1.32rem; margin: 16px 0 18px; }
.aboutN1 .bio p { color: var(--text-dim); margin-bottom: 14px; max-width: 56ch; }
.aboutN1 .creds { display: flex; gap: clamp(20px,3vw,40px); margin: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; flex-wrap: wrap; }
.aboutN1 .creds .c b { font-family: 'Playfair Display',serif; color: var(--accent); font-size: 1.4rem; display: block; }
.aboutN1 .creds .c span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.aboutN1 .row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* N2 — magazine cover */
.aboutN2 .cover { position: relative; min-height: 600px; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: flex-end; }
.aboutN2 .cover img { position: absolute; right: 0; top: 0; height: 100%; width: 58%; object-fit: cover; object-position: center top; filter: grayscale(.2) contrast(1.05); }
.aboutN2 .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 26%, rgba(10,10,11,.2) 62%, transparent 80%); }
.aboutN2 .inner { position: relative; z-index: 2; padding: clamp(34px,5vw,70px); max-width: 64%; }
.aboutN2 .inner .eyebrow { color: var(--accent); }
.aboutN2 h2 { font-size: clamp(2.4rem,5.4vw,4.4rem); margin-top: 12px; line-height: 1.02; }
.aboutN2 .lead { font-family: 'Playfair Display',serif; font-style: italic; color: var(--accent-2); font-size: 1.4rem; margin: 16px 0; }
.aboutN2 .bio { color: var(--text-dim); max-width: 40ch; }
.aboutN2 .stats { display: flex; gap: 34px; margin-top: 28px; }
.aboutN2 .stats b { font-family: 'Playfair Display',serif; color: var(--accent); font-size: 1.5rem; display: block; }
.aboutN2 .stats span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }

/* N3 — centered editorial */
.aboutN3 { text-align: center; }
.aboutN3 .lines { display: flex; align-items: center; gap: 20px; justify-content: center; margin-bottom: 8px; }
.aboutN3 .pf { width: 290px; aspect-ratio: 4/5; margin: 22px auto 0; position: relative; }
.aboutN3 .pf img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); position: relative; z-index: 1; }
.aboutN3 .pf .frame { position: absolute; inset: 0; border: 1px solid var(--accent); transform: translate(14px,14px); z-index: 0; }
.aboutN3 h2 { font-size: clamp(2rem,3.6vw,3rem); margin-top: 28px; }
.aboutN3 .role { color: var(--accent); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 10px; }
.aboutN3 .bio { max-width: 62ch; margin: 22px auto 0; color: var(--text-dim); }
.aboutN3 .creds { display: flex; gap: 40px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.aboutN3 .creds .c b { font-family: 'Playfair Display',serif; color: var(--accent); font-size: 1.4rem; display: block; }
.aboutN3 .creds .c span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }

/* ============================================================
   CONTACT — docmo-style split with photo (N1)
   ============================================================ */
.contactN1 .grid { display: grid; grid-template-columns: .82fr 1.18fr; border: 1px solid var(--line); overflow: hidden; }
.contactN1 .photo { position: relative; min-height: 580px; }
.contactN1 .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: grayscale(.12) contrast(1.04); }
.contactN1 .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 30%, rgba(0,0,0,.82) 100%); }
.contactN1 .photo .pn { position: absolute; left: 28px; bottom: 26px; z-index: 2; }
.contactN1 .photo .pn .nm { font-family: 'Playfair Display',serif; color: #fff; font-size: 1.6rem; }
.contactN1 .photo .pn .role { color: var(--accent-2); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; }
.contactN1 .photo .pn .hd { display: inline-flex; margin-top: 12px; font-size: .72rem; letter-spacing: .1em; color: var(--accent); border: 1px solid var(--accent); padding: .4em .9em; border-radius: 40px; }
.contactN1 .panel { padding: clamp(30px,4vw,56px); background: var(--surface); }
.contactN1 .panel .eyebrow { color: var(--accent); }
.contactN1 h2 { font-size: clamp(1.9rem,3.2vw,2.8rem); margin-top: 12px; }
.contactN1 .sub { color: var(--text-dim); margin: 14px 0 24px; max-width: 48ch; }
.contactN1 .opts { display: grid; gap: 10px; margin-bottom: 26px; }
.contactN1 .opt { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 13px 16px; transition: all .25s; }
.contactN1 .opt:hover { border-color: var(--accent); transform: translateX(3px); }
.contactN1 .opt .ic { color: var(--accent); font-size: 1.15rem; min-width: 22px; text-align: center; }
.contactN1 .opt b { display: block; line-height: 1.2; }
.contactN1 .opt span { color: var(--text-mute); font-size: .78rem; }
.contactN1 .opt .ar { margin-left: auto; color: var(--accent); transition: transform .25s; }
.contactN1 .opt:hover .ar { transform: translateX(4px); }
.contactN1 .or { display: flex; align-items: center; gap: 14px; color: var(--text-mute); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.contactN1 .or::before, .contactN1 .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 900px) {
  .aboutN1 .grid { grid-template-columns: 1fr; }
  .aboutN1 .portrait { min-height: 440px; }
  .aboutN2 .cover img { width: 100%; opacity: .5; }
  .aboutN2 .cover::after { background: linear-gradient(180deg, rgba(10,10,11,.55), rgba(10,10,11,.92)); }
  .aboutN2 .inner { max-width: 100%; }
  .aboutN3 .creds { gap: 24px; }
  .contactN1 .grid { grid-template-columns: 1fr; }
  .contactN1 .photo { min-height: 360px; }
}

/* ============================================================
   WHATSAPP (green button + floating)
   ============================================================ */
.wa-btn {
  display: flex; align-items: center; gap: 14px;
  background: #25D366; color: #07331a; padding: 14px 18px;
  font-weight: 600; transition: all .25s; margin-bottom: 10px;
}
.wa-btn:hover { background: #20c35d; transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(37,211,102,.55); }
.wa-btn .ic { display: grid; place-items: center; }
.wa-btn b { display: block; line-height: 1.2; }
.wa-btn span { font-size: .78rem; opacity: .78; }
.wa-btn .ar { margin-left: auto; font-size: 1.1rem; transition: transform .25s; }
.wa-btn:hover .ar { transform: translateX(4px); }

.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 32px -8px rgba(37,211,102,.6);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.09); }
.wa-float::after {
  content: "WhatsApp"; position: absolute; left: 70px; white-space: nowrap;
  background: #25D366; color: #fff; padding: .4em .8em; border-radius: 6px;
  font-size: .72rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.wa-float:hover::after { opacity: 1; }

/* ============================================================
   EXPORT / SAVE terminal (in switcher panel)
   ============================================================ */
.sw-out { margin-top: 10px; }
.sw-out textarea {
  width: 100%; min-height: 92px; resize: vertical;
  background: #0b0b0c; color: #ecd28a; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; font-family: ui-monospace, Menlo, monospace;
  font-size: .72rem; line-height: 1.5;
}
.sw-out .sw-copy {
  width: 100%; margin-top: 6px; padding: 9px; cursor: pointer; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.sw-out .sw-copy.copied { background: #25D366; border-color: #25D366; color: #07331a; }

/* ============================================================
   TOP COLOR SWITCHER (client-facing) + header layout
   ============================================================ */
.site-header { justify-content: flex-start; gap: clamp(14px,2vw,30px); }
.brand { margin-right: auto; }

.theme-top { display: flex; align-items: center; gap: 9px; }
.theme-top .tt-label { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); }
.theme-top .ts {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.theme-top .ts:hover { transform: scale(1.14); }
.theme-top .ts.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.ts-obsidian { background: linear-gradient(135deg,#c9a227 50%,#0a0a0b 50%); }
.ts-ivory    { background: linear-gradient(135deg,#b3891b 50%,#ffffff 50%); }
.ts-mono     { background: linear-gradient(135deg,#f4f4f4 50%,#0a0a0a 50%); }

@media (max-width: 900px) {
  .theme-top { margin-left: auto; margin-right: 8px; }
  .theme-top .tt-label { display: none; }
  .theme-top .ts { width: 20px; height: 20px; }
}

/* ============================================================
   BRAND MARK (TK emblem in header)
   ============================================================ */
.brand { flex-direction: row; align-items: center; gap: 13px; }
.brand-mark { height: 48px; width: 48px; object-fit: contain; transition: height .4s; filter: drop-shadow(0 2px 7px rgba(0,0,0,.5)); }
.site-header.scrolled .brand-mark { height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
@media (max-width: 600px) {
  .brand-mark { height: 40px; width: 40px; }
  .brand-name { font-size: 1.15rem; }
}

/* ============================================================
   HEADER — solid bar (no video bleed) + emblem + wordmark image
   ============================================================ */
.site-header {
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 15px;
}
.site-header.scrolled { padding-block: 11px; }

.brand { display: flex; flex-direction: row; align-items: center; gap: 15px; margin-right: auto; }
.brand-mark { height: 56px; width: 56px; object-fit: contain; transition: height .35s, width .35s; filter: none; }
.brand-word { height: 50px; width: auto; object-fit: contain; transition: height .35s; }
.site-header.scrolled .brand-mark { height: 46px; width: 46px; }
.site-header.scrolled .brand-word { height: 42px; }

@media (max-width: 760px) {
  .brand-word { display: none; }       /* keep just the emblem on small screens */
  .brand-mark { height: 48px; width: 48px; }
}

/* ============================================================
   FOOTER brand lockup — emblem + wordmark stacked
   ============================================================ */
.site-footer .fbrand .f-emblem { width: 84px; height: auto; display: block; margin-bottom: 14px; }
.site-footer .fbrand .f-word { width: 250px; max-width: 78%; height: auto; display: block; margin-bottom: 18px; }

/* ============================================================
   MOBILE OPTIMIZATION PASS
   ============================================================ */
@media (max-width: 900px) {
  .hero .scroll-cue { display: none; }                 /* avoid overlap with stacked CTAs */
  .heroV3 .v3-body { padding: 0 24px clamp(64px,11vh,100px); }
  .heroV1 .hero-content { padding: 104px 22px 86px; }
  .heroV2 .hero-left { padding: 120px 24px 70px; }
  .site-footer { padding-bottom: 220px; }  /* clear floating WhatsApp + enough scroll runway so the fixed header never covers the footer wordmark at max scroll */
  .filter-bar { top: 60px; }
  .theme-top { gap: 7px; }
  .theme-top .ts { width: 25px; height: 25px; }        /* bigger tap target */
  .section { padding: clamp(64px,8vh,110px) 0; }        /* tighter vertical rhythm */
  .wa-float { width: 54px; height: 54px; left: 16px; bottom: 16px; }
}
@media (max-width: 600px) {
  .heroV3 h1 { font-size: clamp(2.5rem,10.5vw,3.4rem); }
  .heroV1 h1 { font-size: clamp(2.3rem,9vw,3rem); }
  .heroV1 .hero-logo { width: 88vw; }
  /* About — magazine cover: more compact, photo more present */
  .aboutN2 .cover { min-height: 0; }
  .aboutN2 .cover img { opacity: .6; }
  .aboutN2 .inner { padding: 36px 24px; max-width: 100%; }
  .aboutN2 .stats { flex-wrap: wrap; gap: 22px; }
  /* contact photo a touch shorter so the form is reachable faster */
  .contactN1 .photo { min-height: 320px; }
  .contactN1 .panel { padding: 28px 22px; }
  /* section heads + body text breathing room */
  .section-head p { font-size: .95rem; }
  .btn { padding: 1.05em 1.7em; font-size: .74rem; }
  /* stat band: keep 2x2 but tighter */
  .statsV1 .stat { padding: 24px 14px; }
}

/* ============================================================
   MOBILE HEADER — keep emblem + wordmark side by side (like desktop)
   ============================================================ */
@media (max-width: 760px) {
  .brand-word { display: block; height: 34px; }   /* override earlier hide */
  .brand-mark { height: 44px; width: 44px; }
  .brand { gap: 9px; }
  .site-header { gap: 10px; padding-inline: 14px; }
  .theme-top { gap: 6px; }
  .theme-top .ts { width: 21px; height: 21px; }
  .burger span { width: 24px; }
}
@media (max-width: 390px) {
  .brand-word { height: 29px; }
  .brand-mark { height: 39px; width: 39px; }
  .theme-top .ts { width: 19px; height: 19px; }
}

/* ============================================================
   ABOUT — Team layout (aboutN1)
   ============================================================ */
.aboutN1 .team-head { text-align: center; max-width: 760px; margin: 0 auto; }
.aboutN1 .team-head h2 { font-size: clamp(2rem,3.6vw,3.1rem); margin-top: 14px; }
.aboutN1 .team-head .lead { font-family:'Playfair Display',serif; font-style:italic; color:var(--accent); font-size:1.3rem; margin:14px 0 16px; }
.aboutN1 .team-head .bio { color: var(--text-dim); max-width: 60ch; margin: 0 auto; }
.aboutN1 .team-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,36px); margin-top: clamp(40px,5vw,64px); }
.aboutN1 .tm { text-align: center; }
.aboutN1 .tm .ph { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.aboutN1 .tm .ph img { width:100%; height:100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform .6s; }
.aboutN1 .tm:hover .ph img { filter: grayscale(0) contrast(1); transform: scale(1.03); }
.aboutN1 .tm .ph .frame { position:absolute; inset:14px; border:1px solid var(--accent); pointer-events:none; opacity:0; transition:opacity .5s; }
.aboutN1 .tm:hover .ph .frame { opacity:1; }
.aboutN1 .tm .nm { font-family:'Playfair Display',serif; font-size:1.4rem; margin-top:16px; }
.aboutN1 .tm .role { color: var(--accent-2); font-size:.66rem; letter-spacing:.18em; text-transform:uppercase; margin-top:5px; }
.aboutN1 .team-cta { display:flex; gap:18px; align-items:center; justify-content:center; flex-wrap:wrap; margin-top: clamp(36px,4vw,52px); }
@media (max-width: 760px) {
  .aboutN1 .team-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}
