/* Client room. Branded = Allora palette + Giga Sans; unbranded = neutral, no Allora marks. */
:root {
  --ink: #0A2536;
  --ink-2: #33566C;
  --muted: #5d7584;
  --bg: #F3FAFF;
  --card: #ffffff;
  --line: rgba(10, 37, 54, 0.12);
  --teal: #5EA8A8;
  --teal-deep: #4F9595;
  --mint: #DAF6EF;
  --font: 'Giga Sans', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --radius: 14px;
}
.unbranded {
  --ink: #1f2328;
  --ink-2: #3b4148;
  --muted: #6a7179;
  --bg: #f6f6f4;
  --line: rgba(0, 0, 0, 0.1);
  --teal: #3b4148;
  --teal-deep: #1f2328;
  --mint: #ecebe7;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.room { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.preview-bar { background: #fff6d6; color: #5b4500; font-size: 14px; padding: 8px var(--gutter); text-align: center; }
.preview-bar a { margin-left: 10px; color: inherit; font-weight: 600; }

/* hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 28px; }
.hero__in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.hero__count { margin: 10px 0 0; color: var(--muted); }
.hero__note { margin-top: 22px; max-width: 640px; padding: 16px 20px; border-left: 3px solid var(--teal); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; font-size: 17px; }
.agent { min-width: 260px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.agent__label { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.agent__name { margin: 4px 0 0; font-size: 20px; font-weight: 600; }
.agent__title { margin: 0; color: var(--muted); font-size: 14px; }
.agent__links { display: grid; gap: 2px; margin-top: 10px; font-size: 15px; }
.agent__links a { text-decoration: none; overflow-wrap: anywhere; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.toc a { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.toc a span { color: var(--teal-deep); font-size: 12px; font-weight: 600; }
.toc a:hover { border-color: var(--teal); }

/* map */
.sec-h { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 24px 0 12px; }
.map { height: clamp(280px, 42vw, 440px); border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px var(--font); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.leaflet-tooltip { font-family: var(--font); }

/* project */
.project { margin-top: clamp(48px, 7vw, 88px); }
.project__head { display: flex; gap: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.project__num { font-size: 14px; font-weight: 600; color: var(--teal-deep); align-self: flex-start; padding-top: 10px; }
.project__head h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.project__sub { margin: 4px 0 0; color: var(--muted); }
.badge { margin-left: auto; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mint); color: var(--ink); white-space: nowrap; }
.badge--sold-out { background: #f3dcdc; color: #7a2020; }

.gallery__main { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--line); aspect-ratio: 16 / 9; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; }
.gallery__strip { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery__strip button { flex: 0 0 auto; width: 112px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--line); }
.gallery__strip button[aria-current="true"] { border-color: var(--teal); }
.gallery__strip img { width: 100%; height: 100%; object-fit: cover; }

.project__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); margin-top: 28px; }
.pitch { font-size: 17px; max-width: 720px; }
.pitch > :first-child { margin-top: 0; }
.pitch h3 { font-size: 20px; margin: 1.6em 0 .4em; letter-spacing: -0.01em; }
.pitch h4 { font-size: 17px; margin: 1.4em 0 .3em; }
.pitch ul, .pitch ol { padding-left: 1.2em; }
.pitch li { margin: .25em 0; }
.pitch blockquote, .pitch .callout { margin: 1em 0; padding: 12px 16px; background: var(--card); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; }
.pitch hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }

.facts { align-self: start; position: sticky; top: 110px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.unbranded .facts { top: 20px; }
.facts dl { margin: 0; display: grid; gap: 10px; }
.facts dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.facts__label { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 4px 10px; border-radius: 999px; background: var(--mint); font-size: 13px; }
.actions { display: grid; gap: 8px; margin-top: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 600 15px var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); }

.about { margin-top: clamp(56px, 8vw, 96px); }
.about__box { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  padding: clamp(28px, 4vw, 48px); border-radius: 18px; color: #fff;
  background: linear-gradient(160deg, var(--ink) 0%, #1d3a4d 55%, var(--ink-2) 100%); }
.about__mark { position: absolute; right: -40px; top: -40px; width: 260px; opacity: .07; pointer-events: none; }
.about__txt { position: relative; max-width: 640px; }
.about h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; font-weight: 600; }
.about p { margin: 0 0 10px; color: rgba(255,255,255,.82); font-size: 16px; }
.about__cta { position: relative; }
@media (max-width: 700px) { .about__box { grid-template-columns: 1fr; } .about__cta { justify-self: start; } }
.disclaimer { margin-top: 64px; margin-bottom: 48px; font-size: 13px; color: var(--muted); }
.branded .disclaimer { margin-bottom: 72px; }

/* dialogs */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(10, 37, 54, 0.6); }
.interest { width: min(520px, calc(100vw - 32px)); padding: 28px; border-radius: var(--radius); color: var(--ink); font-family: var(--font); }
.interest h3 { margin: 0 0 4px; font-size: 22px; }
.interest__project { margin: 0 0 16px; color: var(--muted); }
.interest textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: 16px var(--font); resize: vertical; }
.interest__actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.interest__close { position: absolute; top: 8px; right: 10px; }
.interest__close button { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.interest__done { text-align: center; padding: 12px 0; }
.interest__done svg { margin: 0 auto; }
.interest__done p { font-size: 18px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(5, 15, 22, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox__btn { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }
.gallery__main, .lightbox img { touch-action: pan-y; }
.lightbox__count { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

.closed { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; }
.closed h1 { font-size: 30px; margin: 28px 0 6px; }
.closed p { color: var(--muted); max-width: 420px; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .agent { min-width: 0; }
  .project__body { grid-template-columns: 1fr; }
  .facts { position: static; }
  .project__head { flex-wrap: wrap; }
  .badge { margin-left: 0; }
}
@media (max-width: 560px) {
  .gallery__main { aspect-ratio: 4 / 3; }
  .gallery__strip button { width: 84px; }
  .facts dl div { grid-template-columns: 84px 1fr; }
}
@media print {
  .ac-header, .toc, .actions, .preview-bar, .mapsec, .gallery__strip { display: none !important; }
  .project { break-before: page; }
}
