/* Mobile-first agency page. Themes set the palette; layout is shared. */
:root {
  --gamway: #baa745;
  --bar-bg: #141414;
  --dock-h: 64px;
  --radius: 14px;
  --pad: 20px;
}
.theme-cwb {
  --bg: #f6f0e6; --surface: #fffaf2; --ink: #3b2616; --muted: #7a6450;
  --accent: #b08a50; --accent-ink: #fff; --deep: #1a3050; --line: #e4d6bf;
  --hero-ink: #fff; --hero-shade: linear-gradient(180deg, rgba(10,20,40,.55) 0%, rgba(10,20,40,0) 35%, rgba(40,25,10,.15) 70%, rgba(40,25,10,.75) 100%);
  --head: "Noto Serif TC", serif; --body: "Noto Sans TC", system-ui, sans-serif;
}
.theme-connext {
  --bg: #f4f8f5; --surface: #fff; --ink: #2c2c2c; --muted: #66706a;
  --accent: #4f8a6c; --accent-ink: #fff; --deep: #3f7a5d; --line: #dbe7df;
  --hero-ink: #fff; --hero-shade: linear-gradient(180deg, rgba(30,60,45,.15), rgba(30,60,45,.35));
  --head: "Noto Sans TC", system-ui, sans-serif; --body: "Noto Sans TC", system-ui, sans-serif;
  --latin: "Montserrat", sans-serif;
}
.theme-atlas {
  --bg: #f2f6f8; --surface: #fff; --ink: #1c2a35; --muted: #5b6b77;
  --accent: #c9a45c; --accent-ink: #0d3349; --deep: #0d3349; --line: #d6e2ea;
  --hero-ink: #fff; --hero-shade: linear-gradient(180deg, rgba(13,51,73,.35), rgba(13,51,73,.15) 50%, rgba(13,51,73,.7));
  --head: "Noto Serif TC", serif; --body: "Noto Sans TC", system-ui, sans-serif;
  --latin: "Cormorant Garamond", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 var(--body); padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.35; }

/* Agency label bar: must stay visible so nobody mistakes this for the official site. */
.agency-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bar-bg); color: #eee; font-size: 11px; line-height: 1.4;
  padding: 8px 14px; position: sticky; top: 0; z-index: 30;
}
.agency-bar p { margin: 0; }
.agency-bar strong { color: var(--gamway); font-weight: 500; }
.agency-bar a { color: var(--gamway); white-space: nowrap; text-decoration: none; }
.lang { display: flex; margin-left: auto; }
.lang a { color: #bbb; text-decoration: none; padding: 4px 7px; font-size: 12px; line-height: 1; }
.lang a + a { border-left: 1px solid #555; }
.lang a[aria-current] { color: var(--gamway); font-weight: 700; }
.bar-book { display: none; border: 0; border-radius: 999px; padding: 8px 18px; background: var(--accent); color: var(--accent-ink); font: 500 14px/1 var(--body); cursor: pointer; }
.theme-connext .bar-book { background: #ffe942; color: #2c2c2c; }

/* Hero */
.hero { position: relative; color: var(--hero-ink); overflow: hidden; min-height: calc(100svh - 34px - var(--dock-h)); display: flex; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-shade); pointer-events: none; }
.hero__inner {
  position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px var(--pad) 28px;
}
.hero__logo img { width: min(62vw, 300px); height: auto; }
.hero__tagline { font-family: var(--head); font-size: 20px; letter-spacing: .08em; margin: 18px 0 0; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero__tagline-en { font-family: var(--latin, var(--head)); letter-spacing: .2em; font-size: 13px; margin: 6px 0 0; opacity: .9; }
.hero__cta { display: grid; gap: 10px; width: 100%; max-width: 360px; margin-top: auto; padding-top: 28px; }
.hero__ref { font-size: 11px; opacity: .85; margin: 12px 0 0; letter-spacing: .04em; }
.hero sup a, .hl sup a { color: inherit; text-decoration: none; }
sup { font-size: .6em; line-height: 0; margin-left: 1px; }

.hero__building { margin: 18px 0 0; position: relative; width: min(92vw, 480px); }
.hero__building img { width: 100%; height: auto; }
.img-label { font-size: 10px; letter-spacing: .05em; opacity: .9; }
.hero__building .img-label { position: absolute; right: 4px; bottom: 4px; }
.img-label--bg { position: absolute; left: 10px; top: 10px; z-index: 1; color: #fff; }

/* CWB: dusk key visual sits behind, gold buttons */
.theme-cwb .hero__inner { padding-top: 32px; }
.theme-cwb .hero__logo img { width: min(48vw, 220px); }
.theme-cwb .hero__tagline { font-size: 21px; line-height: 1.6; }
.theme-cwb .hero__building { margin-top: 8px; }

/* CONNEXT: airy green, centred wordmark */
.theme-connext .hero__inner { justify-content: center; }
.theme-connext .hero__logo { margin-top: 18vh; }
.theme-connext .hero__logo img { width: min(78vw, 380px); }
.theme-connext .hero__tagline { font-weight: 500; letter-spacing: .35em; font-size: 18px; position: relative; padding-top: 18px; }
.theme-connext .btn--primary, .theme-connext .dock__book { background: #ffe942; color: #2c2c2c; }
.theme-connext .hero__tagline::before { content: ""; position: absolute; top: 0; left: 50%; width: 32px; height: 1px; background: currentColor; transform: translateX(-50%); }

/* ATLAS: marble, gold rule */
.theme-atlas .hero__logo { margin-top: 14vh; }
.theme-atlas .hero__logo img { width: min(64vw, 320px); }
.theme-atlas .hero__tagline { font-size: 22px; letter-spacing: .3em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 14px; border-radius: 999px; border: 1px solid transparent; font: 500 16px/1 var(--body); white-space: nowrap;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn--wa { background: #1fa855; color: #fff; }
.btn--call { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn:focus-visible, .dock a:focus-visible, .dock button:focus-visible { outline: 3px solid var(--gamway); outline-offset: 2px; }

/* Sections */
.section { padding: 40px var(--pad); max-width: 1080px; margin: 0 auto; }
.section__title { font-size: 22px; color: var(--deep); margin-bottom: 18px; }
.section__title::after { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin-top: 10px; }
.section__lead { margin: -4px 0 18px; color: var(--muted); font-size: 15px; }
.section__src { color: var(--muted); font-size: 12px; margin: 14px 0 0; }

.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }

.hl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hl { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px; }
.hl__title { font-size: 18px; color: var(--deep); }
.hl__body { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 6px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.g-item { margin: 0; scroll-snap-align: start; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.g-item figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding-top: 6px; color: var(--muted); }

.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.docs a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 15px; }
.docs span { color: var(--accent); }

.section--contact { padding-bottom: 48px; }
.agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.agent { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.agent__who { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.agent__name { font-size: 18px; font-weight: 700; }
.agent__num { font-size: 18px; letter-spacing: .04em; text-decoration: none; color: var(--deep); font-variant-numeric: tabular-nums; }
.agent__actions { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }
.agent__actions .btn { font-size: 15px; padding: 0 10px; }

/* Footer */
.footer { background: #141414; color: #bdbdbd; font-size: 12px; line-height: 1.7; padding: 32px var(--pad) 28px; overflow-wrap: anywhere; }
.footer > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.footer__logo { width: 260px; height: auto; margin-bottom: 14px; }
.footer__agency { color: #eee; font-size: 13px; margin-top: 0; }
.footer__ref { color: var(--gamway); font-size: 13px; }
.footer a { color: #ddd; }
.notes { padding-left: 0; list-style: none; margin: 16px auto; }
.notes li { margin-bottom: 8px; scroll-margin-top: 60px; }
.fn { color: #eee; }
.fine { margin: 14px auto; }
.fine summary { cursor: pointer; color: #ddd; padding: 6px 0; }
.fine p { margin: 6px 0; }
.section .fine { color: var(--muted); font-size: 12px; }
.section .fine summary { color: var(--muted); }
.footer__updated { margin-top: 18px; }

/* Sticky booking dock (mobile) */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 76px 1fr;
  gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(20,20,20,.94); backdrop-filter: blur(8px);
}
.dock__call { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; height: 48px; }
.dock__call svg { width: 18px; height: 18px; fill: currentColor; }
.dock__book { height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 17px/1 var(--body); letter-spacing: .05em; cursor: pointer; }

/* Floating WhatsApp button: sits above the mobile dock, bottom-right on desktop. */
.wa-fab {
  position: fixed; right: 14px; bottom: calc(var(--dock-h) + 14px + env(safe-area-inset-bottom)); z-index: 41;
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none; font: 700 15px/1 var(--body);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-fab svg { width: 26px; height: 26px; fill: currentColor; }
.wa-fab:focus-visible { outline: 3px solid var(--gamway); outline-offset: 3px; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 8px 24px rgba(0,0,0,.25); } 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 8px 24px rgba(0,0,0,.25); } }
.anim .wa-fab { animation: wa-pulse 2.4s ease-out 3s 3; }
@media (min-width: 1024px) { .wa-fab { bottom: 24px; right: 24px; } }

/* Booking sheet */
.sheet { border: 0; padding: 20px var(--pad) calc(24px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px; margin: auto auto 0; border-radius: 20px 20px 0 0; background: var(--bg); color: var(--ink); }
.sheet::backdrop { background: rgba(0,0,0,.55); }
.sheet__title { font-size: 20px; color: var(--deep); padding-right: 40px; }
.sheet__sub { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.sheet__close { position: absolute; right: 12px; top: 12px; }
.sheet__close button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 22px; cursor: pointer; }

/* Hero extras */
.hero__addr { font-size: 13px; letter-spacing: .12em; margin: 10px 0 0; opacity: .92; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 16px 0 0; }
.hero__chips li { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost svg { width: 16px; height: 16px; }

/* Stats strip */
.stats { background: var(--deep); color: #fff; padding: 22px var(--pad); }
.stats ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; max-width: 1080px; }
.stats li { display: flex; flex-direction: column; border-left: 2px solid var(--accent); padding-left: 10px; }
.theme-connext .stats li { border-color: #ffe942; }
.stat__v { font-family: var(--head); font-size: clamp(16px, 4.8vw, 22px); white-space: nowrap; font-weight: 700; line-height: 1.3; }
.stat__l { font-size: 12px; opacity: .8; }
.stats sup a { color: inherit; text-decoration: none; }

.section__kicker { font: 500 11px/1 var(--latin, var(--body)); letter-spacing: .25em; color: var(--accent); margin: 0 0 8px; }
.theme-connext .section__kicker { color: var(--deep); }
.section--alt { max-width: none; background: var(--surface); }
.section--alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.hl { position: relative; padding-top: 40px; }
.hl__no { position: absolute; top: 12px; left: 16px; font: 600 13px/1 var(--latin, var(--body)); color: var(--accent); letter-spacing: .1em; }
.theme-connext .hl__no { color: var(--deep); }

.gallery__hint { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* Mid-page CTA band */
.cta-band { background: var(--deep); color: #fff; text-align: center; padding: 36px var(--pad); }
.cta-band h2 { font-size: 21px; }
.cta-band p { margin: 8px auto 18px; font-size: 14px; opacity: .85; max-width: 520px; }
.cta-band__btns { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }
.btn--light { background: #fff; color: var(--deep); }
.btn--light svg { width: 16px; height: 16px; }

/* Location */
.loc__map { margin: 0 0 16px; }
.loc__map img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.loc__map figcaption { font-size: 12px; color: var(--muted); padding-top: 6px; }
.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.loc { padding-left: 14px; border-left: 2px solid var(--accent); }
.loc__title { font-size: 17px; color: var(--deep); }
.loc p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.loc sup a { color: inherit; text-decoration: none; }

/* Units table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.units { width: 100%; border-collapse: collapse; font-size: 14px; }
.units th, .units td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.units th { background: var(--bg); color: var(--muted); font-weight: 500; font-size: 13px; }
.units tr:last-child td { border-bottom: 0; }

.units__sub { font-size: 18px; color: var(--deep); margin: 32px 0 12px; }

/* Flat tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 14px; padding: 0 var(--pad) 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px/1 var(--body); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.flat-meta { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.flat-meta sup a { color: inherit; text-decoration: none; }
.anim .flat-panel:not([hidden]) { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }

/* Phases */
.phase-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.phase--live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.phase__status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); margin: 0 0 8px; }
.phase--live .phase__status { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.phase__name { font-size: 20px; color: var(--deep); }
.phase__towers { margin: 2px 0 6px; font-weight: 500; }
.phase__body { margin: 0; color: var(--muted); font-size: 14px; }
.phase__body sup a { color: inherit; text-decoration: none; }
.phases__cta { margin-top: 16px; }
.phases__cta .btn { width: 100%; }
@media (min-width: 720px) { .phase-list { grid-template-columns: repeat(3, 1fr); } .phases__cta .btn { width: auto; } .phases__cta { text-align: center; } }

/* Fittings */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.spec__area { font: 700 16px/1.4 var(--head); color: var(--deep); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.spec__area::-webkit-details-marker { display: none; }
.spec__area::after { content: "+"; font: 400 22px/1 var(--body); color: var(--accent); transition: transform .3s; }
.spec[open] .spec__area::after { transform: rotate(45deg); }
.spec[open] .spec__area { margin-bottom: 8px; }
.spec ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.spec li + li { margin-top: 4px; }
@media (min-width: 720px) { .spec-list { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Enquiry form */
.enquiry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: grid; gap: 16px; margin-bottom: 28px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; color: var(--muted); padding: 0; }
.field input, .field select { font: 16px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-height: 48px; padding: 0 12px; width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.chip input:checked + span { background: var(--deep); border-color: var(--deep); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--block { width: 100%; min-height: 52px; font-size: 17px; }
.enquiry__note { font-size: 12px; color: var(--muted); margin: -6px 0 0; }
.agents__title { font-size: 16px; color: var(--deep); margin: 0 0 12px; }
.sheet__more { display: block; text-align: center; margin-top: 14px; color: var(--deep); font-size: 14px; }

/* Video (vertical, self-hosted) */
.video { width: min(100%, 360px); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }
#video .section__src { text-align: center; }

/* Larger screens */
@media (min-width: 720px) {
  .hero__cta { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .hl-list { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: repeat(3, 1fr); }
  .agents { grid-template-columns: 1fr 1fr; }
  .sheet .agents { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 48%; }
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .cta-band__btns { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .loc-list { grid-template-columns: 1fr 1fr; }
  .section--contact { max-width: 720px; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .bar-book { display: inline-block; }
  .agency-bar { font-size: 13px; padding: 8px 32px; }
  .hero { min-height: calc(100vh - 50px); }
  .hero__tagline { font-size: 26px; }
  .theme-cwb .hero__logo img { width: 200px; }
  .theme-cwb .hero__building { width: 380px; }
  .section { padding: 64px 32px; }
  .section__title { font-size: 28px; }
  .gallery { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .gallery__hint { display: none; }
  .sheet { margin: auto; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ motion
   Only active when JS adds .anim to <html> (so content shows without JS)
   and the visitor hasn't asked for reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.anim .hero__logo, .anim .hero__tagline, .anim .hero__tagline-en, .anim .hero__addr, .anim .hero__building, .anim .hero__chips, .anim .hero__cta {
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}
.anim .hero__tagline { animation-delay: .15s; }
.anim .hero__tagline-en, .anim .hero__addr { animation-delay: .3s; }
.anim .hero__building { animation-delay: .4s; }
.anim .hero__chips { animation-delay: .55s; }
.anim .hero__cta { animation-delay: .7s; }

/* Scroll-linked hero: background slowly zooms, content lifts and fades (--hp = 0..1). */
.hero__bg img { transform: scale(calc(1 + var(--hp, 0) * .18)); transform-origin: 50% 40%; will-change: transform; }
.hero__inner { opacity: calc(1 - var(--hp, 0) * 1.3); transform: translateY(calc(var(--hp, 0) * -70px)); will-change: transform, opacity; }

.anim .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.anim .reveal.is-in { opacity: 1; transform: none; }
.anim .g-item.reveal img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.anim .g-item.reveal.is-in img { transform: scale(1); }
.g-item picture { display: block; overflow: hidden; border-radius: var(--radius); }

/* Statement: pinned line whose characters light up with scroll (--sp = 0..1). */
.statement { position: relative; height: 170vh; background: var(--deep); color: #fff; }
.statement__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 28px; }
.statement__text {
  margin: 0; max-width: 900px; text-align: center;
  font: 700 clamp(26px, 7.4vw, 56px)/1.45 var(--head); letter-spacing: .02em;
}
.lang-en .statement__text { font-size: clamp(24px, 6.4vw, 48px); line-height: 1.3; }
.statement__text sup a { color: inherit; text-decoration: none; opacity: .7; }
.anim .statement__text .ch { opacity: .16; transition: opacity .25s linear; }
.anim .statement__text .ch.on { opacity: 1; }
.theme-connext .statement { background: #3f7a5d; }

/* Stacking highlight cards (mobile): each card pins slightly lower than the last. */
.anim .hl-list { gap: 16px; }
.anim .hl { position: sticky; top: calc(48px + var(--i) * 12px); box-shadow: 0 -6px 24px rgba(0,0,0,.06); min-height: 150px; }
@media (min-width: 720px) { .anim .hl { position: relative; top: auto; min-height: 0; } .anim .hl { opacity: 0; transform: translateY(32px); transition: opacity .9s, transform .9s; transition-delay: calc(var(--i) * 70ms); } .anim .hl.is-in { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .hero__inner { transform: none !important; opacity: 1 !important; }
  .statement { height: auto; padding: 72px 0; }
  .statement__pin { position: static; height: auto; }
}

/* ------------------------------------------------------------------ photo story
   Pinned full-screen sequence. main.js sets per-frame --o (opacity), --s (scale),
   --y (pan) and per-text --to/--ty from scroll progress. */
.story { position: relative; height: calc(var(--n) * 100vh + 40vh); background: #0b0b0b; color: #fff; }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__media, .story__frame { position: absolute; inset: 0; margin: 0; }
.story__frame { opacity: var(--o, 0); }
.story__frame:first-child { --o: 1; }
.story__frame picture, .story__frame img { width: 100%; height: 100%; display: block; }
.story__frame img { object-fit: cover; transform: translate3d(0, var(--y, 0), 0) scale(var(--s, 1.12)); will-change: transform, opacity; }
.story__frame--contain { background: var(--deep); }
.story__frame--contain img { object-fit: contain; padding: 70px 12px 210px; }
.story__frame .img-label { position: absolute; right: 12px; top: 64px; font-size: 10px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

.story__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%); pointer-events: none; }
.story__texts { position: absolute; left: 0; right: 0; bottom: calc(var(--dock-h) + 28px); padding: 0 24px; }
.story__text { position: absolute; left: 24px; right: 24px; bottom: 0; opacity: var(--to, 0); transform: translate3d(0, var(--ty, 24px), 0); max-width: 620px; }
.story__text:first-child { --to: 1; --ty: 0; }
.story__kicker { font: 500 11px/1 var(--latin, var(--body)); letter-spacing: .28em; color: var(--accent); margin: 0 0 10px; text-transform: uppercase; }
.theme-connext .story__kicker { color: #ffe942; }
.story__title { font-size: clamp(26px, 7vw, 46px); line-height: 1.25; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.story__body { font-size: 15px; line-height: 1.7; margin: 10px 0 0; opacity: .9; max-width: 520px; }
.story__body sup a { color: inherit; text-decoration: none; }
.story__dots { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.story__dots i { width: 4px; height: 18px; border-radius: 2px; background: rgba(255,255,255,.35); transition: background .3s, height .3s; }
.story__dots i.on { background: #fff; height: 30px; }
@media (min-width: 1024px) {
  .story__texts { bottom: 64px; padding: 0 64px; }
  .story__text { left: 64px; }
  .story__frame--contain img { padding: 90px 80px 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story__pin { position: relative; height: auto; }
  .story__media, .story__frame, .story__text, .story__texts { position: relative; inset: auto; opacity: 1; transform: none; }
  .story__frame { height: 70vh; }
  .story__frame img { transform: none; }
}

/* Hero depth: background drifts (Ken Burns) while the scroll zooms it. */
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); } }
.anim .hero__bg { animation: drift 22s ease-in-out infinite alternate; }
.anim .hero__building { transform: translate3d(0, calc(var(--hp, 0) * 60px), 0); }

/* Gallery: images pan inside their frames as they pass (--py from main.js), and frames wipe in. */
.g-item img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }
.anim .g-item.reveal img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); transition: none; }
.anim .g-item.reveal picture { clip-path: inset(18% 8% 0 8% round var(--radius)); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1); }
.anim .g-item.reveal.is-in picture { clip-path: inset(0 0 0 0 round var(--radius)); }
.g-item--tall img { aspect-ratio: 3 / 4; }
.loc__map img { transform: none; }

.onsite { background: var(--surface); border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: -4px 0 18px; }
.theme-connext .onsite { border-color: var(--deep); }

/* Location section: centred layout. */
#location { text-align: center; }
#location .section__title::after { margin-left: auto; margin-right: auto; }
#location .loc__map { max-width: 760px; margin-left: auto; margin-right: auto; }
#location .loc { border-left: 0; padding-left: 0; max-width: 520px; margin: 0 auto; }
#location .loc__title::after { content: ""; display: block; width: 24px; height: 1px; background: var(--accent); margin: 8px auto 0; }
#location .loc-list { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; gap: 26px; }
#location .loc { max-width: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__logo img { height: auto; }
.footer__cookies { font-size: 11px; opacity: .7; }
