/* Layout: left-aligned, photo-led pages on a 12-col feel; one dark band per page for contrast.
   Five themes switch only the tokens below (html[data-theme]). */
:root {
  --bg: #F7F2EA; --surface: #FFFDF8; --ink: #1E2733; --muted: #5F6470; --line: #E2D9C8;
  --accent: #87601F; --accent-ink: #FFFFFF; --tint: #EFE6D4; --band: #1E2733; --band-ink: #F3EEE3; --band-muted: #B8BDC6;
  --ok: #1F7A4D; --shadow: 0 18px 40px -22px rgba(30, 39, 51, .45);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --r: 14px; --r-sm: 8px; --gx: clamp(16px, 4vw, 56px); --max: 1240px; --head-h: 72px;
  color-scheme: light;
}
html[data-theme="sage"] { --bg: #F3F7F1; --surface: #FFFFFF; --ink: #1B2A23; --muted: #55655C; --line: #D5E0D4; --accent: #2C6A4D; --tint: #E1EEE2; --band: #163527; --band-ink: #EEF5EE; --band-muted: #A9C2B3; --shadow: 0 18px 40px -22px rgba(22, 53, 39, .45); }
html[data-theme="coastal"] { --bg: #F4F8FC; --surface: #FFFFFF; --ink: #0F2440; --muted: #53637A; --line: #D5E0EC; --accent: #1565C0; --tint: #E0ECF9; --band: #0F2440; --band-ink: #EDF4FC; --band-muted: #A7B9D1; --shadow: 0 18px 40px -22px rgba(15, 36, 64, .45); }
html[data-theme="terra"] { --bg: #FBF5EE; --surface: #FFFFFF; --ink: #2A2220; --muted: #6A5D57; --line: #EADCCD; --accent: #AE4A27; --tint: #F5E3D5; --band: #2A2220; --band-ink: #FAF1E8; --band-muted: #C5B5AA; --shadow: 0 18px 40px -22px rgba(42, 34, 32, .45); }
html[data-theme="night"] { --bg: #0D0C0A; --surface: #181612; --ink: #F2ECDF; --muted: #A79F90; --line: #2E2A22; --accent: #D6B06B; --accent-ink: #15110A; --tint: #221E16; --band: #070706; --band-ink: #F2ECDF; --band-muted: #8F887A; --ok: #63C794; --shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); overflow-x: clip; transition: background-color .4s, color .4s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gx); }
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.sec-head p { color: var(--muted); max-width: 46ch; margin-top: .75rem; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 58ch; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-wa { background: #1FA855; color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; color: var(--accent); }

/* Header */
.head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background-color .3s, border-color .3s; }
.head-in { display: flex; align-items: center; gap: 1.5rem; height: var(--head-h); }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.logo-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font: 700 1rem/1 var(--display); letter-spacing: -.02em; }
.logo-name { font: 700 1.15rem/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.head .btn { min-height: 42px; padding: .5rem 1.1rem; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .25s, opacity .25s; }
.is-home .head:not(.is-stuck) { position: fixed; inset: 0 0 auto; background: transparent; backdrop-filter: none; border-bottom-color: transparent; color: #fff; }
.is-home .head:not(.is-stuck) .burger { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.is-home .head:not(.is-stuck) .burger span { background: #fff; }
.is-home .head.is-stuck { position: fixed; inset: 0 0 auto; }
@media (max-width: 900px) {
  .burger { display: block; }
  .head .head-cta { display: none; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: .5rem var(--gx) 1.5rem; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Photo holder with a drawn fallback, so a missing photo still looks finished */
.ph { position: relative; overflow: hidden; background: var(--tint); isolation: isolate; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 28px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 100%; }
.ph::after { content: attr(data-label); position: absolute; inset: auto 0 42% 0; z-index: -1; text-align: center; font: 600 .95rem var(--display); color: var(--muted); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 860px); display: grid; align-items: end; color: #fff; background: radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--accent) 55%, #1b1b1b), #14161a 70%); }
.hero-slides, .hero-slides div { position: absolute; inset: 0; }
.hero-slides div { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides div.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.15) 35%, rgba(10,12,16,.78) 100%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-block: calc(var(--head-h) + 3rem) clamp(2rem, 5vw, 4rem); }
.hero h1 { max-width: 15ch; }
.hero .lede { color: rgba(255,255,255,.86); margin-top: 1.1rem; }
.search { margin-top: clamp(1.75rem, 4vw, 2.75rem); background: var(--surface); color: var(--ink); border-radius: var(--r); padding: .5rem; box-shadow: var(--shadow); max-width: 980px; }
.seg { display: inline-flex; padding: 4px; margin: .35rem .35rem .6rem; background: var(--tint); border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: .45rem 1.2rem; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.search-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .5rem; }
.field { display: grid; gap: .15rem; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); min-width: 0; }
.field label, .lbl { font-size: .75rem; font-weight: 600; color: var(--muted); }
.field select, .field input, .field textarea { border: 0; background: transparent; padding: .1rem 0; width: 100%; min-width: 0; outline: none; }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.search .btn { border-radius: var(--r-sm); min-height: 100%; padding-inline: 1.8rem; }
@media (max-width: 760px) { .search-row { grid-template-columns: 1fr 1fr; } .search-row .field:first-child { grid-column: 1 / -1; } .search .btn { grid-column: 1 / -1; min-height: 52px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: clamp(1.25rem, 3vw, 2.25rem) 0; }
.stat + .stat { padding-left: clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.stat b { display: block; font: 700 clamp(1.9rem, 4.4vw, 3.2rem)/1 var(--display); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .95rem; }
.stat small { display: block; font: 600 1rem/1.3 var(--display); overflow-wrap: anywhere; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Property cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card .ph { aspect-ratio: 4 / 3; }
.card .ph img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .ph img { transform: scale(1.05); }
.chips { position: absolute; inset: .75rem .75rem auto; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 1; }
.chip { padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface); color: var(--ink); }
.chip.st { background: var(--accent); color: var(--accent-ink); }
.card-b { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.price { font: 700 1.45rem/1.1 var(--display); letter-spacing: -.02em; }
.price small { font: 500 .85rem var(--body); color: var(--muted); letter-spacing: 0; }
.loc { color: var(--muted); font-size: .95rem; }
.facts { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.facts span { display: inline-flex; align-items: center; gap: .4rem; }
.facts svg { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.grid.list { grid-template-columns: 1fr; }
.grid.list .card { flex-direction: row; }
.grid.list .card .ph { width: min(38%, 340px); aspect-ratio: auto; min-height: 210px; }
@media (max-width: 620px) { .grid.list .card { flex-direction: column; } .grid.list .card .ph { width: 100%; aspect-ratio: 4 / 3; } }

/* Type tiles */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.type { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 1.1rem; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; background: var(--band); }
.type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.type::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,10,14,.82)); }
.type:hover img { transform: scale(1.06); }
.type b, .type span { position: relative; z-index: 1; }
.type b { font: 600 1.3rem var(--display); }
.type span { font-size: .9rem; opacity: .85; }
@media (max-width: 760px) { .types { grid-template-columns: 1fr 1fr; } .type { aspect-ratio: 1; } }

/* Dark band, steps */
.band { background: var(--band); color: var(--band-ink); }
.band .lede, .band .sec-head p { color: var(--band-muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; padding: 1.5rem 1.5rem 0 0; border-top: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin: -2.75rem 0 1.25rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1rem var(--display); }
.steps p { color: var(--band-muted); margin-top: .5rem; font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.review { margin: 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 1rem; }
.review blockquote { margin: 0; font-size: 1.05rem; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: var(--muted); }
.review figcaption b { display: block; color: var(--ink); }
.av { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--tint); color: var(--accent); font: 700 .95rem var(--display); }
.stars { color: var(--accent); letter-spacing: .15em; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.note { font-size: .85rem; color: var(--muted); margin-top: 1.25rem; }

/* CTA */
.cta { display: grid; grid-template-columns: 1.2fr auto; gap: 2rem; align-items: center; padding: clamp(1.75rem, 5vw, 3.5rem); background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--r) * 1.6); }
.cta p { opacity: .9; margin-top: .75rem; max-width: 50ch; }
.cta .acts { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta .btn-ink { background: var(--accent-ink); color: var(--accent); }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* Page head (inner pages) */
.phead { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.phead h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.phead .lede { margin-top: 1rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { text-underline-offset: 3px; }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; padding: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr 1fr; } }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.toolbar .seg { margin: 0; }
.toolbar .seg button { padding: .4rem .9rem; }
.empty { padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: .5rem; }

/* Property detail */
.gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .6rem; height: clamp(280px, 52vw, 560px); }
.gal button { border: 0; padding: 0; cursor: zoom-in; border-radius: var(--r); }
.gal button:first-child { grid-row: 1 / -1; }
.gal .more { position: absolute; inset: auto .75rem .75rem auto; z-index: 1; padding: .35rem .8rem; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 600; }
@media (max-width: 700px) { .gal { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 78vw; } .gal button:first-child { grid-row: auto; grid-column: 1 / -1; } }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(1.5rem, 4vw, 2.75rem); }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.detail > div { min-width: 0; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.d-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: end; }
.d-top .price { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.d-top h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); margin: 0; }
.spec div { padding: .9rem 1.1rem; box-shadow: 0 0 0 .5px var(--line); }
.spec dt { font-size: .78rem; font-weight: 600; color: var(--muted); }
.spec dd { margin: .15rem 0 0; font: 600 1.05rem var(--display); }
.amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1.5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.amen li { display: flex; gap: .6rem; align-items: baseline; }
.amen li::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 2px; background: var(--accent); transform: translateY(-1px) rotate(45deg); }
.plan { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1rem; }
.plan svg { width: 100%; height: auto; max-height: 380px; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--r); background: var(--tint); }
.near { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.near li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.near b { font-weight: 600; }
.side { position: sticky; top: calc(var(--head-h) + 1rem); display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .side { position: static; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; display: grid; gap: .75rem; }
.box h3 { margin-bottom: .25rem; }
.box .btn { width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.emi-out { padding: 1rem; border-radius: var(--r-sm); background: var(--tint); }
.emi-out b { display: block; font: 700 1.9rem/1.1 var(--display); letter-spacing: -.02em; }
.emi-out span { font-size: .88rem; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.msg { font-size: .9rem; color: var(--ok); font-weight: 600; min-height: 1.4em; }
.msg.err { color: #C0392B; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(6,7,9,.94); padding: 3.5rem 1rem; }
.lb img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lb .x { top: 1rem; right: 1rem; } .lb .pv { left: 1rem; } .lb .nx { right: 1rem; }
.lb .ct { position: absolute; bottom: 1rem; color: #fff; font-size: .9rem; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.split .ph { aspect-ratio: 4 / 5; border-radius: var(--r); }
.split p + p { margin-top: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .ph { aspect-ratio: 16 / 11; } }
.vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.val { padding-top: 1.25rem; border-top: 2px solid var(--accent); }
.val p { color: var(--muted); margin-top: .5rem; }
@media (max-width: 760px) { .vals { grid-template-columns: 1fr; } }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid color-mix(in srgb, var(--band-ink) 20%, transparent); }
.tl b { font: 700 1.5rem var(--display); color: var(--accent); }
html:not([data-theme="night"]) .band .tl b { color: var(--band-ink); }
.tl p { color: var(--band-muted); margin-top: .25rem; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.member { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.member .av { width: 4rem; height: 4rem; font-size: 1.3rem; margin-bottom: 1rem; }
.member span { color: var(--muted); font-size: .93rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: .7rem; }
.info { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.info li { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; gap: .15rem; }
.info li:first-child { border-top: 0; padding-top: 0; }
.info a { font: 600 1.15rem var(--display); text-decoration: none; overflow-wrap: anywhere; }
.info a:hover { color: var(--accent); }
.faq { display: grid; gap: .6rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1.05rem 0; font: 600 1.05rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--muted); max-width: 68ch; }

/* Footer */
.foot { background: var(--band); color: var(--band-ink); padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot p, .foot li, .foot small { color: var(--band-muted); }
.foot h3 { font-size: 1rem; margin-bottom: .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--band-ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .logo { margin-bottom: 1rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent); font-size: .88rem; }
.foot-base a { color: var(--band-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Floating: WhatsApp and theme picker */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); transition: transform .2s; }
.wa:hover { transform: scale(1.07); }
.wa svg { width: 28px; height: 28px; }
.themer { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.themer span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.themer button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); outline: 1px solid var(--line); cursor: pointer; padding: 0; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.themer button[aria-pressed="true"] { outline: 2px solid var(--ink); }
@media (max-width: 420px) { .themer span { display: none; } .themer { padding-left: .6rem; } }

/* One load sequence on the hero; everything else is visible at rest */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-in > :nth-child(2) { animation-delay: .12s; } .hero-in > :nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Admin */
.admin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } }
.out { word-break: break-all; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--tint); font: 500 .85rem/1.5 ui-monospace, Menlo, Consolas, monospace; max-height: 9rem; overflow: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatches button { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .45rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 600; font-size: .9rem; }
.swatches button i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); border: 1px solid var(--line); }
.swatches button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.sec.tight { padding-top: 0; }
