/* ==========================================================================
   360 Building, public site. Colours and the wave come from the client's logo.
   THESIS  Calm, premium and local: navy, ocean teal and white, with real photos.
   WORLD   Logo navy and teal, cool greys, Poppins, soft rounded photos, the logo's wave.
   STORY   A resident sees the building, the next event, then finds a document or a phone number.
   VIEW    White header with the logo. A full-width photo with the text directly on it, navy
           fading in from the left, and a teal-and-white wave closing the bottom edge.
   ========================================================================== */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format("woff2"); }

:root {
  --navy: #06203D; --navy-2: #0D3157; --teal: #007BA8; --teal-bright: #0AA0D0; --teal-pale: #E2F2F8;
  --mist: #F2F6F9; --line: rgba(6,32,61,.13); --soft: #4A5A6A; --on-navy: #C6D3E0;
  --cat-meeting: #DCE8F5; --cat-social: #D4EFF3; --cat-maintenance: #FAEFD3; --cat-notice: #E8E9EF;
  --shadow: 0 18px 44px -24px rgba(6,32,61,.38); --shadow-lift: 0 26px 56px -26px rgba(6,32,61,.5);
  --gutter: clamp(20px, 4.4vw, 64px); --out: cubic-bezier(.16,1,.3,1); --head-h: 96px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; font: 400 1.0625rem/1.65 Poppins, Arial, Helvetica, sans-serif; color: var(--navy); background: #fff; overflow-x: clip; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .18em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }
svg.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 660px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }
.ph { display: inline-block; padding: 0 .5em; border: 1.5px dashed var(--teal); border-radius: 5px; background: var(--teal-pale); color: var(--navy); font-weight: 500; font-size: .92em; }
.empty-note { color: var(--soft); }

/* the logo's wave: an ocean-coloured ribbon resting on the next section's colour */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(38px, 6.5vw, 92px); display: block; color: #fff; z-index: 2; pointer-events: none; }
.wave-navy { color: var(--navy); }
.wave-mist { color: var(--mist); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .84em 1.55em; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, transform .25s var(--out), box-shadow .25s var(--out); }
.btn:hover { background: #00688F; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,104,143,.7); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-sm { padding: .62em 1.15em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--navy); }
.btn-ink:hover { background: var(--navy-2); box-shadow: 0 12px 24px -12px rgba(6,32,61,.7); }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px currentColor; }
.btn-line:hover { background: transparent; box-shadow: inset 0 0 0 2px currentColor; color: var(--teal); }
.btn-quiet { background: var(--mist); color: var(--navy); }
.btn-quiet:hover { background: var(--teal-pale); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--teal); text-decoration: none; }
.link-arrow svg { transition: transform .3s var(--out); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow:hover { text-decoration: underline; }
.round-btn { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--out); }
.round-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .3s; }
.site-header.scrolled, body.nav-open .site-header { box-shadow: 0 10px 28px -20px rgba(6,32,61,.5); }
.nav { max-width: 1480px; height: var(--head-h); margin: auto; display: flex; align-items: center; gap: 28px; padding-inline: var(--gutter); }
.brand { display: block; margin-right: auto; flex: none; }
.brand img { height: calc(var(--head-h) - 12px); width: auto; }
.nav-links { display: flex; gap: clamp(14px, 1.9vw, 30px); font-weight: 500; font-size: .95rem; }
.nav-links a { position: relative; text-decoration: none; padding: 8px 0; display: block; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2.5px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--out); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links a[aria-current] { color: var(--teal); }
.acct { position: relative; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; background: none; border-radius: 6px; text-decoration: none; font-size: .95rem; cursor: pointer; text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--mist); }
.acct-who { margin: 0 0 6px; padding: 8px 10px 10px; font-size: .84rem; color: var(--soft); border-bottom: 1px solid var(--line); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 10px; width: 26px; height: 2.5px; background: currentColor; content: ""; transition: transform .25s var(--out), opacity .2s; }
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -8px; }
.nav-toggle span::after { left: 0; top: 8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- loader (home page, once per visit): the logo, its wave drawing itself, then it lifts away ---------- */
.loader { display: none; }
.js .loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: #fff; transition: transform 1s var(--out); }
.js.skip-loader .loader, .bail .loader { display: none; }
.loader::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 8vw; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0H1440V40C1160 96 980 78 720 52S240 20 0 62Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat; }
.loader.done { transform: translateY(calc(-100% - 8vw)); }
.ldr-core { display: grid; justify-items: center; gap: 22px; width: min(78vw, 400px); transition: opacity .3s; }
.loader.done .ldr-core { opacity: 0; }
.ldr-core img { width: 100%; height: auto; }
.ldr-core svg { width: 72%; height: auto; overflow: visible; }
.ldr-track, .ldr-sweep { fill: none; stroke-width: 5; stroke-linecap: round; }
.ldr-track { stroke: var(--teal-pale); }
.ldr-sweep { stroke: var(--teal); stroke-dasharray: 100; stroke-dashoffset: 100; animation: ldr-draw 1.05s .1s var(--out) forwards; }
@keyframes ldr-draw { to { stroke-dashoffset: 0; } }

/* ---------- banner ---------- */
.hero { position: relative; min-height: calc(100svh - var(--head-h)); display: flex; align-items: center; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: 0; transition: opacity 1.6s ease; }
.hero-photo img.on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(6,32,61,.93) 0%, rgba(6,32,61,.8) 32%, rgba(6,32,61,.22) 60%, rgba(6,32,61,0) 76%); }
.hero-in { padding-block: clamp(48px, 8svh, 90px) clamp(90px, 15svh, 150px); }
.hero-in > * { max-width: 620px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1.02rem; margin-bottom: 18px; color: #fff; }
.hero-eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--teal-bright); }
.hero h1 { font-size: clamp(2.9rem, 6.3vw, 5.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 760px; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin: 22px 0 30px; color: #E6EDF4; }
.hero .btn-line { color: #fff; }
.hero .btn-line:hover { color: #fff; background: rgba(255,255,255,.14); }
.next-up { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.28); text-decoration: none; font-size: .96rem; }
.next-up:hover .next-title { text-decoration: underline; }
.next-label { font-weight: 600; color: #7FD3EE; }
.next-title { font-weight: 600; }
.next-when { color: #E6EDF4; }
/* one authored entrance, after the loader */
.js .hero-in > * { transition: transform 1.1s var(--out), opacity .9s; }
.js .hero-in > :nth-child(2) { transition-delay: .06s; } .js .hero-in > :nth-child(3) { transition-delay: .12s; }
.js .hero-in > :nth-child(4) { transition-delay: .18s; } .js .hero-in > :nth-child(5) { transition-delay: .24s; }
.js .hero-photo { transition: transform 2.2s var(--out); }
.js:not(.ready) .hero-in > * { transform: translateY(34px); opacity: 0; }
.js:not(.ready) .hero-photo { transform: scale(1.06); }

/* ---------- reveals: only armed once site.js is running ---------- */
.live [data-rise]:not(.in) { opacity: 0; transform: translateY(20px); }
[data-rise] { transition: opacity .7s, transform .9s var(--out); }
/* no clip-path here: an element clipped to nothing never reports as on screen, so it would stay hidden */
.live [data-wipe]:not(.in) { opacity: 0; transform: translateY(26px); }
.live [data-wipe]:not(.in) img { transform: scale(1.08); }
[data-wipe] { transition: opacity .8s, transform 1.1s var(--out); }
[data-wipe] img { transition: transform 1.4s var(--out); }

/* ---------- section bands ---------- */
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.band-tools { display: flex; align-items: center; gap: 22px; }
.car-arrows { display: flex; gap: 10px; }
.band-lead { max-width: 60ch; color: var(--soft); margin-top: 14px; margin-bottom: 30px; }

.events-band { padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 110px); }
.ev-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); padding-block: 6px 26px; scroll-padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); }
.ev-track::-webkit-scrollbar { display: none; }
.ev-card { flex: 0 0 min(82vw, 370px); scroll-snap-align: start; }
.ev-card > a { display: flex; flex-direction: column; height: 100%; background: #fff; text-decoration: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--out), box-shadow .35s var(--out); }
.ev-card > a:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.ev-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--cat-meeting); overflow: hidden; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--out); }
.ev-card > a:hover .ev-media img { transform: scale(1.05); }
.cat-social .ev-media { background: var(--cat-social); } .cat-maintenance .ev-media { background: var(--cat-maintenance); } .cat-notice .ev-media { background: var(--cat-notice); }
.ev-fallback { position: absolute; right: -6px; bottom: -22%; font-size: 7.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: rgba(6,32,61,.08); }
.ev-tile { position: absolute; left: 16px; bottom: 14px; display: grid; justify-items: center; padding: 7px 13px 8px; background: var(--navy); color: #fff; border-radius: 8px; font-size: .78rem; font-weight: 600; line-height: 1.1; }
.ev-tile b { font-size: 1.65rem; letter-spacing: -.03em; }
.ev-body { display: grid; gap: 5px; padding: 18px 20px 22px; }
.ev-cat { justify-self: start; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 20px; background: var(--cat-meeting); }
.cat-social .ev-cat, .ev-cat.social { background: var(--cat-social); } .cat-maintenance .ev-cat, .ev-cat.maintenance { background: var(--cat-maintenance); } .cat-notice .ev-cat, .ev-cat.notice { background: var(--cat-notice); }
.ev-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.ev-when { font-weight: 500; font-size: .94rem; color: var(--teal); }
.ev-where, .ev-desc { font-size: .92rem; color: var(--soft); line-height: 1.5; }
.ev-empty { flex: 1; max-width: 720px; padding: 26px 28px; background: var(--mist); border-radius: 14px; }
.ev-empty p { font-size: 1.08rem; margin: 0; }

.about-band { position: relative; background: var(--mist); padding-block: clamp(70px, 8vw, 120px) clamp(120px, 14vw, 190px); }
.plain-band { padding-block: clamp(60px, 8vw, 110px); }
.tight-top { padding-top: clamp(30px, 4vw, 50px); }
.foot-room { padding-bottom: clamp(110px, 13vw, 170px); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.prose { max-width: 62ch; margin-block: 24px; }
.prose p:last-child { margin-bottom: 0; }
/* collages: two columns of whole photos, each at its own shape, so nothing is cropped */
.collage { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; }
.collage-col { display: grid; gap: 14px; min-width: 0; }
.collage-col + .collage-col { margin-top: 28px; }
.collage figure { overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); }
.collage img { width: 100%; height: auto; }
.collage figure:hover img { transform: scale(1.03); }
.collage-col > :nth-child(2) { transition-delay: .1s; }
.collage-col + .collage-col > :first-child { transition-delay: .15s; }
.c-tile { display: block; padding: 16px clamp(14px, 1.4vw, 20px); border-radius: 14px; background: var(--navy); color: #fff; font-size: .92rem; font-weight: 500; line-height: 1.4; }
/* management: two photos, the front one overlapping the corner of the back one */
.pm-duo figure { overflow: hidden; border-radius: 16px; }
.pm-duo img { width: 100%; height: auto; }
.duo-back { width: 86%; box-shadow: var(--shadow); }
.duo-front { position: relative; width: 56%; margin: -15% 0 0 auto; border: 7px solid #fff; box-shadow: var(--shadow-lift); transition-delay: .12s; }
.mist-band { background: var(--mist); padding-block: clamp(60px, 7vw, 100px); }
.way-list { margin-top: 28px; border-top: 1px solid var(--line); }
.way-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px 28px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.way-list a:hover { background: #fff; }
.way-list svg { color: var(--teal); transition: transform .3s var(--out); }
.way-list a:hover svg { transform: translateX(6px); }
.way-list b { font-size: 1.15rem; font-weight: 600; }
.way-list span { color: var(--soft); }
.where-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.big-address { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; margin: 16px 0 20px; }
.map { width: 100%; height: 340px; border: 0; display: block; background: var(--mist); border-radius: 14px; }

/* gallery: navy so the photographs carry the colour */
.gallery-band { position: relative; background: var(--navy); color: #fff; padding-block: clamp(50px, 6vw, 80px) clamp(110px, 13vw, 170px); }
.gallery-band .link-arrow { color: #7FD3EE; }
/* whole photos at their own shape: columns instead of a cropped grid */
.bento { columns: 3; column-gap: 14px; }
.tile { position: relative; width: 100%; padding: 0; margin-bottom: 14px; border: 0; overflow: hidden; background: var(--navy-2); cursor: zoom-in; border-radius: 12px; display: block; color: #fff; text-align: left; break-inside: avoid; }
.tile img { width: 100%; height: auto; transition: transform 1s var(--out); }
.tile:hover img { transform: scale(1.04); }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: .9rem; font-weight: 500; line-height: 1.35; background: linear-gradient(transparent, rgba(6,32,61,.86)); transform: translateY(100%); transition: transform .4s var(--out); }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { padding: .48em 1.15em; border: 1.5px solid var(--line); border-radius: 30px; background: #fff; font-weight: 500; font-size: .95rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(4,20,38,.95); color: #fff; display: none; place-items: center; padding: 20px 70px; }
.lightbox.open { display: grid; animation: fade .25s; }
.lightbox figure { display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-height: 84svh; max-width: 100%; width: auto; border-radius: 6px; }
.lightbox figcaption { text-align: center; font-size: .95rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; top: 50%; translate: 0 -50%; } .lb-next { right: 12px; top: 50%; translate: 0 -50%; }
@keyframes fade { from { opacity: 0; } }

/* management */
.pm-band { padding-block: clamp(60px, 8vw, 110px); }
.pm-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.pm-lead { max-width: 56ch; margin-top: 18px; color: var(--soft); }
.contact-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px 24px; margin-block: 28px 32px; }
.contact-rows li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.contact-rows svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); }
.contact-rows span:not(.ph) { display: block; font-size: .84rem; color: var(--soft); line-height: 1.4; }
.contact-rows b { font-weight: 600; overflow-wrap: anywhere; }
.board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 34px 26px; margin-top: 8px; }
.board-photo { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); font-size: 2rem; font-weight: 700; overflow: hidden; margin-bottom: 14px; }
.board-photo img { width: 100%; height: 100%; object-fit: cover; }
.board-role { color: var(--teal); font-weight: 500; font-size: .95rem; }
.board-list p { margin: 8px 0 0; font-size: .95rem; color: var(--soft); }

/* faq */
.faq-band { background: var(--mist); padding-block: clamp(70px, 8vw, 110px) clamp(120px, 13vw, 180px); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--head-h) + 24px); }
.faq-side p { margin-top: 18px; color: var(--soft); }
.faq-side a { color: var(--teal); font-weight: 600; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; font-weight: 600; font-size: 1.05rem; line-height: 1.35; cursor: pointer; list-style: none; border-radius: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal); }
.faq-mark { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-pale); transition: background .25s, transform .4s var(--out); }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; background: var(--teal); }
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark { background: var(--teal); transform: rotate(135deg); }
.faq-item[open] .faq-mark::before, .faq-item[open] .faq-mark::after { background: #fff; }
.faq-a { padding: 0 60px 20px 20px; color: var(--soft); max-width: 70ch; }
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .35s var(--out), content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* ---------- internal page hero ---------- */
.page-hero { position: relative; color: #fff; padding: clamp(50px, 7vw, 90px) 0 clamp(90px, 11vw, 140px); overflow: hidden; background: linear-gradient(95deg, rgba(6,32,61,.96) 20%, rgba(6,32,61,.74) 62%, rgba(6,32,61,.5)), url(../img/photos/facade-sky.webp) 70% 35% / cover no-repeat var(--navy); }
.page-hero-in { position: relative; z-index: 3; }
.page-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); max-width: 15em; }
.page-hero p { max-width: 54ch; margin: 16px 0 0; font-size: 1.1rem; color: #E6EDF4; }
.not-found { min-height: 66svh; display: grid; align-items: center; }
.not-found .actions { margin-top: 26px; }
.not-found .btn-line { color: #fff; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; font-weight: 500; margin-bottom: 16px; color: #E6EDF4; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a { text-decoration: none; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 500; font-size: .94rem; }
.opt { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea, .docs-search input { width: 100%; padding: .72em .9em; border: 1.5px solid rgba(6,32,61,.26); border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus, .docs-search input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,123,168,.22); }
.hint { font-size: .86rem; color: var(--soft); margin: 0; line-height: 1.5; }
.hint a { color: var(--teal); }
.notice { display: none; padding: 11px 14px; border-radius: 8px; font-size: .94rem; font-weight: 500; }
.notice.show { display: block; }
.notice.ok { background: #DFF3E7; color: #0B5A2E; }
.notice.err { background: #FBE4E6; color: #8E1A25; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--soft); }
.text-btn { border: 0; padding: 0; background: none; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.form-aux { margin-top: -6px; font-size: .92rem; }
.auth-foot { margin: 0; text-align: center; font-size: .92rem; color: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-side h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.contact-side .big-address { font-size: 1.2rem; margin: 10px 0 8px; }
.contact-side .contact-rows { grid-template-columns: 1fr; margin-block: 22px; }
.contact-side .map { height: 260px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,20,38,.68); }
.modal-card { position: relative; width: min(100%, 520px); max-height: calc(100svh - 36px); overflow: auto; background: #fff; border-radius: 16px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 70px -20px rgba(4,20,38,.6); transform: translateY(16px); transition: transform .35s var(--out); }
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--mist); border-radius: 50%; cursor: pointer; }
.modal-close:hover { background: var(--teal-pale); }
.modal-head { margin-bottom: 16px; padding-right: 40px; }
.modal-head h2 { font-size: 1.7rem; }
.modal-head p { margin: 6px 0 0; color: var(--soft); font-size: .95rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--mist); border-radius: 10px; margin-bottom: 18px; }
.auth-tabs button { padding: .55em; border: 0; border-radius: 8px; background: transparent; font-weight: 600; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.auth-tabs[data-on="forgot"] { display: none; }
.viewer-card { width: min(100%, 1040px); height: calc(100svh - 36px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.viewer-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.viewer-head b { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-head .modal-close { position: static; flex: none; }
.viewer-body { flex: 1; min-height: 0; background: var(--mist); display: grid; place-items: center; overflow: auto; }
.viewer-body iframe { width: 100%; height: 100%; border: 0; }
.viewer-body img { max-height: 100%; }

/* ---------- calendar ---------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dow { padding: 9px 8px; font-size: .84rem; font-weight: 600; background: var(--mist); }
.day { min-height: 108px; padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; background: none; text-align: left; }
.day:nth-child(7n+1) { border-left: 0; }
.day.out { background: #FAFBFC; color: #6B7C8C; }
.day .n { font-size: .88rem; font-weight: 500; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.day.today .n { background: var(--teal); font-weight: 700; color: #fff; }
.ev-chip { display: block; width: 100%; border: 0; padding: 3px 6px; border-radius: 5px; font-size: .78rem; line-height: 1.3; text-align: left; cursor: pointer; background: var(--cat-meeting); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: filter .15s; }
.ev-chip:hover { filter: brightness(.93); }
.ev-chip.social { background: var(--cat-social); } .ev-chip.maintenance { background: var(--cat-maintenance); } .ev-chip.notice { background: var(--cat-notice); }
.ev-chip small { font-size: .72rem; font-weight: 600; margin-right: 4px; }
.ev-more { border: 0; background: none; padding: 0 4px; font-size: .76rem; font-weight: 600; text-decoration: underline; cursor: pointer; text-align: left; }
.day-dots { display: none; gap: 3px; justify-content: center; }
.day-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.day-list { margin-top: 16px; display: grid; gap: 8px; }
.day-list h3 { font-size: 1rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: .86rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 13px; height: 13px; border-radius: 4px; background: var(--cat-meeting); }
.legend i.social { background: var(--cat-social); } .legend i.maintenance { background: var(--cat-maintenance); } .legend i.notice { background: var(--cat-notice); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--mist); border-radius: 10px; margin-bottom: 16px; }
.seg button { padding: .5em; border: 0; border-radius: 8px; background: none; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ev-rows { display: grid; gap: 12px; }
.ev-rows .ev-card > a { flex-direction: row; box-shadow: none; }
.ev-rows .ev-card > a:hover { transform: none; box-shadow: var(--shadow); }
.ev-rows .ev-media { flex: 0 0 76px; aspect-ratio: auto; background: var(--navy) !important; }
.ev-rows .ev-media img, .ev-rows .ev-fallback { display: none; }
.ev-rows .ev-tile { position: static; height: 100%; align-content: center; background: none; }
.ev-rows .ev-body { padding: 12px 14px; min-width: 0; }
.ev-rows .ev-title { font-size: 1.02rem; }
.ev-rows .ev-when, .ev-rows .ev-where { font-size: .86rem; }
.ev-rows .ev-desc { display: none; }
.ev-rows .ev-empty p { font-size: 1rem; }
.ev-dialog { width: min(92vw, 560px); padding: 0; border: 0; border-radius: 16px; color: var(--navy); box-shadow: 0 30px 70px -20px rgba(4,20,38,.6); overflow: hidden auto; }
.ev-dialog::backdrop { background: rgba(4,20,38,.68); }
.dlg-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.ed-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ed-body { padding: 26px 28px 30px; display: grid; gap: 12px; justify-items: start; }
.ed-body h2 { font-size: 1.65rem; padding-right: 40px; }
.ed-body p { margin: 0; white-space: pre-line; color: var(--soft); }
.ed-meta { display: grid; gap: 7px; font-weight: 500; font-size: .96rem; }
.ed-meta span { display: flex; gap: 10px; align-items: flex-start; }
.ed-meta svg { margin-top: 4px; color: var(--teal); }

/* ---------- document portal ---------- */
.portal-lock { max-width: 620px; margin: 10px auto 0; padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--mist); border-radius: 16px; }
.portal-lock h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.portal-lock p { color: var(--soft); }
.portal-lock .actions { justify-content: center; margin-top: 22px; }
.lock-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); font-size: 1.3rem; }
.pw-panel { max-width: 560px; padding: 24px; background: var(--mist); border-radius: 12px; margin-bottom: 30px; }
.pw-panel h2 { font-size: 1.4rem; letter-spacing: -.02em; }
.docs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.docs-layout > * { min-width: 0; }
.docs-side { position: sticky; top: calc(var(--head-h) + 16px); }
.docs-side-title { font-size: 1rem; letter-spacing: 0; font-weight: 600; margin-bottom: 10px; }
.docs-cats { display: grid; gap: 2px; }
.docs-cats button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px; text-align: left; font-weight: 500; font-size: .95rem; line-height: 1.3; cursor: pointer; transition: background .15s; }
.docs-cats button:hover { background: var(--mist); }
.docs-cats button[aria-current="true"] { background: var(--navy); color: #fff; }
.docs-cats .nm { flex: 1; }
.docs-cats .ct { font-size: .82rem; font-weight: 600; opacity: .8; }
.docs-search { position: relative; }
.docs-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--soft); }
.docs-search input { padding-left: 42px; }
.docs-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.docs-subtabs button { padding: .35em .95em; border: 1.5px solid var(--line); border-radius: 30px; background: none; font-size: .88rem; font-weight: 500; cursor: pointer; }
.docs-subtabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.docs-count { margin: 14px 0 10px; font-size: .9rem; color: var(--soft); }
.docs-list { border-top: 1px solid var(--line); }
.doc { display: flex; align-items: center; gap: 16px; padding: 14px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.doc:hover { background: var(--mist); }
.doc > svg { color: var(--teal); }
.doc .ext { flex: none; width: 48px; height: 62px; display: grid; place-items: center; background: var(--teal-pale); color: var(--teal); border-radius: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; overflow: hidden; }
.doc .ext img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.doc-meta b { font-weight: 600; line-height: 1.35; }
.doc-meta span { font-size: .88rem; color: var(--soft); }
.docs-empty { padding: 26px 4px; color: var(--soft); margin: 0; }
.fine-print { margin-top: 40px; font-size: .86rem; color: var(--soft); max-width: 70ch; }
.policy h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 1.6em 0 .5em; }
.policy h2:first-child { margin-top: 0; }
.policy a { color: var(--teal); }

/* ---------- footer: the wave rises out of the last section ---------- */
.site-footer { position: relative; background: var(--navy); color: #fff; }
.site-footer .wave { bottom: auto; top: calc(-1 * clamp(38px, 6.5vw, 92px) + 1px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px 40px; padding-block: 48px 40px; }
/* the full logo has a white ground, so it sits on a white plate here */
.foot-logo { display: inline-block; padding: 12px 18px; background: #fff; border-radius: 12px; }
.foot-logo img { height: 120px; width: auto; }
.foot-id address { margin-top: 18px; color: var(--on-navy); }
.foot-grid h2 { font-size: .94rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; color: #7FD3EE; }
.foot-grid ul { display: grid; gap: 7px; font-size: .95rem; color: var(--on-navy); }
.foot-grid li a { text-decoration: none; }
.foot-grid li a:hover { text-decoration: underline; color: #fff; }
.foot-grid p { font-size: .95rem; color: var(--on-navy); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px 26px; border-top: 1px solid rgba(255,255,255,.16); font-size: .86rem; color: var(--on-navy); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--teal); color: #fff; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity .25s, translate .25s var(--out), visibility .25s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover { background: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; order: 3; }
  .nav { gap: 12px; }
  .nav-links { position: fixed; inset: var(--head-h) 0 0; background: #fff; flex-direction: column; gap: 0; padding: 12px var(--gutter) 40px; font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, transform .3s var(--out), visibility .2s; }
  body.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* phones and tablets: the whole building above the text, not a blurry tall crop behind it */
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero-photo { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; max-height: 62svh; width: 100%; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--navy), transparent 32%); }
  .hero-photo img { object-position: 60% 40%; }
  .hero-in { padding-block: 10px clamp(84px, 16vw, 120px); }
  .about-grid, .pm-grid, .where-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .collage { max-width: 620px; }
  .way-list a { grid-template-columns: 1fr auto; }
  .way-list span { grid-column: 1; grid-row: 2; }
  .way-list svg { grid-column: 2; grid-row: 1 / 3; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .docs-cats { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .docs-cats button { flex: none; width: auto; background: var(--mist); }
  .bento { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  /* touch screens have no hover: captions sit under the photo so they don't cover it */
  .tile-cap { position: static; display: block; transform: none; font-size: .8rem; padding: 8px 10px; background: var(--navy-2); }
}
@media (max-width: 680px) {
  :root { --head-h: 72px; }
  .form-row { grid-template-columns: 1fr; }
  .collage, .collage-col { gap: 8px; }
  .c-tile { font-size: .82rem; padding: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .acct .btn span { display: none; }
  .acct .btn { padding: .62em; width: 44px; height: 44px; }
  .band-head { align-items: flex-start; }
  .car-arrows { display: none; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; translate: none; }
  .lb-prev { left: 30%; } .lb-next { right: 30%; }
  /* calendar becomes a tap-a-day grid */
  .cal-layout { gap: 36px; }
  .day { min-height: 54px; padding: 3px; align-items: center; cursor: pointer; border-left: 0; }
  .day .ev-chip, .day .ev-more { display: none; }
  .day-dots { display: flex; }
  .day.picked { background: var(--teal-pale); }
  .dow { text-align: center; padding-inline: 0; }
  .viewer-head .btn svg + * { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .site-header, .site-footer, .to-top, .modal { display: none !important; } }
