/* הזמיר 35 — luxury residential direction (ui-ux-pro-max: "Premium black + gold", Exaggerated Minimalism, RTL-safe)
   Display: Bellefair (Hebrew stand-in for Cinzel) · Body: IBM Plex Sans Hebrew
   Signature: the building facade — 36 windows that glow gold as apartments vote. */
:root {
  /* skill palette */
  --c-primary: #1C1917;
  --c-secondary: #44403C;
  --c-accent: #A16207;          /* gold, text-safe on light (4.9:1) */
  --c-gold: #C9A45C;            /* gold for dark surfaces / glowing windows */
  --c-gold-soft: #E7CF9C;
  --c-bg: #FAFAF9;
  --c-fg: #0C0A09;
  --c-card: #FFFFFF;
  --c-muted: #F2F0ED;
  --c-muted-fg: #57534E;
  --c-border: #D6D3D1;
  --c-border-soft: #E7E5E4;
  --c-danger: #B91C1C;
  --c-ok: #3F6212;
  --c-no: #78716C;

  /* legacy names used across the stylesheet */
  --plaster: var(--c-bg); --paper: var(--c-card); --stone: var(--c-border); --stone-2: var(--c-muted);
  --stone-ink: var(--c-muted-fg); --ink: var(--c-fg); --sky: var(--c-primary); --sky-2: var(--c-secondary);
  --light: var(--c-gold); --light-glow: var(--c-gold-soft); --slate: var(--c-no); --danger: var(--c-danger); --ok: var(--c-ok); --oak: var(--c-accent);

  --f-display: 'Bellefair', 'Frank Ruhl Libre', Georgia, serif;
  --f-body: 'IBM Plex Sans Hebrew', system-ui, sans-serif;
  --f-mono: var(--f-body);

  --r: 3px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(12, 10, 9, .04), 0 12px 32px -18px rgba(12, 10, 9, .22);
  --space-section: clamp(72px, 10vw, 140px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--c-bg); color: var(--c-fg); font-family: var(--f-body); font-weight: 400; font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, [role="button"], a { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.mono { font-feature-settings: 'tnum'; letter-spacing: .01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .18em; color: var(--c-accent); }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }

/* ---------- demo banner ---------- */
.demo-bar { background: var(--c-primary); color: #E7E5E4; font-size: 13.5px; padding: 8px 0; }
.demo-bar .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-bar b { color: var(--c-gold); font-weight: 500; }
.demo-bar button { background: none; border: 1px solid #57534E; color: inherit; border-radius: 2px; padding: 3px 12px; font-size: 13px; transition: border-color .2s; }
.demo-bar button:hover { border-color: var(--c-gold); }

/* ---------- header (glass) ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 250, 249, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(214, 211, 209, .7); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--c-fg); }
.brand b, .brand span { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em; }
.brand span { color: var(--c-accent); }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; text-decoration: none; color: var(--c-secondary); padding: 10px 14px; font-size: 15px; letter-spacing: .02em; transition: color .2s; }
.nav a::after { content: ''; position: absolute; inset-inline: 14px; bottom: 4px; height: 1px; background: var(--c-accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--c-fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--c-fg); font-weight: 500; }
.top .who { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--c-muted-fg); }
.who .apt-chip { border: 1px solid var(--c-border); border-radius: 20px; padding: 3px 12px; color: var(--c-fg); background: var(--c-card); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 26px; border-radius: var(--r); border: 1px solid transparent; font-weight: 500; font-size: 15.5px; letter-spacing: .03em; text-decoration: none; line-height: 1.2; transition: background .25s var(--ease), color .25s, border-color .25s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-secondary); }
.btn-ghost { background: transparent; border-color: var(--c-border); color: var(--c-fg); }
.btn-ghost:hover { border-color: var(--c-fg); }
.btn-light { background: var(--c-gold); color: var(--c-primary); }
.btn-light:hover { background: var(--c-gold-soft); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-danger { color: var(--c-danger); border-color: #EBC9C9; background: transparent; }
.btn-danger:hover { background: #FBEFEF; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff; overflow: hidden; background: #0f1830; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 40% 30%; transform: scale(1.04); animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.1); opacity: .6; } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to left, rgba(12,10,9,.72) 0%, rgba(12,10,9,.35) 45%, rgba(12,10,9,0) 75%),
  linear-gradient(to top, rgba(12,10,9,.7) 0%, rgba(12,10,9,0) 45%); }
.hero-inner { position: relative; padding-top: 120px; padding-bottom: clamp(56px, 8vw, 96px); width: 100%; }
.hero .eyebrow { color: var(--c-gold-soft); }
.hero h1 { font-family: var(--f-display); font-weight: 400; margin: 0; font-size: clamp(76px, 12.5vw, 188px); line-height: .92; letter-spacing: .005em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 .num { color: var(--c-gold); }
.hero-tag { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); margin: 18px 0 6px; color: #F5F5F4; }
.hero-facts { list-style: none; display: flex; gap: 0; flex-wrap: wrap; padding: 0; margin: 0 0 34px; font-size: 14px; letter-spacing: .08em; color: #D6D3D1; }
.hero-facts li + li::before { content: '·'; margin: 0 12px; color: var(--c-gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.scroll-cue { position: absolute; bottom: 26px; inset-inline-end: 32px; width: 1px; height: 56px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.8)); }

/* ---------- sections ---------- */
.section { padding: var(--space-section) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section h2, .page-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; margin: 0; letter-spacing: .005em; }
.section-lead { max-width: 46ch; color: var(--c-muted-fg); margin: 0; font-size: 17px; }

.intro { padding-bottom: 0; }
.intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.intro-statement { font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.28; margin: 0; max-width: 24ch; color: var(--c-fg); }
.intro-statement em { font-style: normal; color: var(--c-accent); }

/* editorial gallery: captions sit under the photos */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 24px; }
.gallery figure { margin: 0; }
.gallery .g-frame { overflow: hidden; background: var(--c-muted); border-radius: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 13px; letter-spacing: .12em; color: var(--c-muted-fg); border-top: 1px solid var(--c-border); margin-top: 12px; }
.gallery figcaption b { font-weight: 500; color: var(--c-fg); letter-spacing: .04em; font-size: 15px; }
.g1 { grid-column: 1 / span 7; } .g1 .g-frame { aspect-ratio: 4 / 3; }
.g2 { grid-column: 8 / span 5; margin-top: 120px; } .g2 .g-frame { aspect-ratio: 3 / 4; }
.g3 { grid-column: 2 / span 4; } .g3 .g-frame { aspect-ratio: 3 / 4; }
.g4 { grid-column: 6 / span 7; margin-top: 64px; } .g4 .g-frame { aspect-ratio: 16 / 10; }
.g5 { grid-column: 1 / span 5; margin-top: -40px; } .g5 .g-frame { aspect-ratio: 4 / 5; }
.g6 { grid-column: 7 / span 5; margin-top: 40px; } .g6 .g-frame { aspect-ratio: 1 / 1; }

.residents-band { background: var(--c-primary); color: #D6D3D1; }
.residents-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.residents-band h2 { color: #fff; }
.residents-band h2 em { font-style: normal; color: var(--c-gold); }
.residents-band .eyebrow { color: var(--c-gold); }
.feature-list { list-style: none; padding: 0; margin: 36px 0 40px; display: grid; gap: 0; max-width: 56ch; }
.feature-list li { padding: 18px 0; border-top: 1px solid rgba(214, 211, 209, .18); }
.feature-list li:last-child { border-bottom: 1px solid rgba(214, 211, 209, .18); }
.feature-list b { display: block; color: #fff; font-family: var(--f-display); font-weight: 400; font-size: 24px; margin-bottom: 2px; }

.foot { background: var(--c-fg); color: #A8A29E; font-size: 14px; padding: 36px 0 44px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot .wrap > span:first-child { font-family: var(--f-display); color: #fff; font-size: 20px; }

/* scroll reveal (skill: stagger 300-450ms, reduced-motion → final state) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- FACADE: the signature ---------- */
.facade { --w: 22px; --h: 15px; --g: 6px; display: inline-flex; flex-direction: column; align-items: stretch; }
.facade .roof { height: calc(var(--g) * 1.2); background: currentColor; opacity: .2; margin: 0 calc(var(--g) * -1.2) var(--g); }
.facade .floors { display: grid; grid-template-columns: repeat(4, var(--w)); gap: var(--g); padding: var(--g); border: 1px solid currentColor; border-bottom: 0; }
.facade .base { border: 1px solid currentColor; padding: 5px 6px 3px; text-align: center; font-family: var(--f-display); font-size: calc(var(--h) * 1.1); line-height: 1; letter-spacing: .1em; }
.win { width: var(--w); height: var(--h); border-radius: 1px; border: 1px solid currentColor; opacity: .45; position: relative; transition: background .5s ease, box-shadow .5s ease, opacity .3s; }
.win.voted { background: var(--c-gold); border-color: var(--c-gold); opacity: 1; box-shadow: 0 0 calc(var(--h) * .8) rgba(201, 164, 92, .55); }
.win.no { background: var(--c-no); border-color: var(--c-no); box-shadow: none; }
.win.mine { outline: 1.5px solid var(--c-accent); outline-offset: 2px; opacity: 1; }
.facade.on-dark .win.mine { outline-color: #fff; }
.facade.on-dark .win.no { background: #A8A29E; border-color: #A8A29E; }
.facade.lg { --w: 46px; --h: 30px; --g: 10px; }
.facade.lg .win { font-size: 11px; font-feature-settings: 'tnum'; }
.facade.lg .win span { position: absolute; inset: 0; display: grid; place-items: center; opacity: .75; }
.facade.lg .win.voted span { color: var(--c-primary); opacity: .85; }
.facade.lg .win.no span { color: #fff; }
.facade.sm { --w: 9px; --h: 7px; --g: 3px; }
.facade.sm .base { font-size: 10px; padding: 1px; }
.facade.xl { --w: 38px; --h: 26px; --g: 10px; color: #78716C; }
@media (prefers-reduced-motion: no-preference) {
  .facade.animate .win.voted { animation: lightup .6s ease both; animation-delay: calc(var(--i) * 45ms); }
  @keyframes lightup { from { background: transparent; box-shadow: none; } }
}
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--c-muted-fg); margin-top: 14px; }
.legend i { display: inline-block; width: 14px; height: 10px; margin-inline-end: 6px; vertical-align: middle; border: 1px solid currentColor; }
.legend i.y { background: var(--c-gold); border-color: var(--c-gold); }
.legend i.n { background: var(--c-no); border-color: var(--c-no); }

/* ---------- app shell ---------- */
.app { padding: 64px 0 120px; min-height: 70vh; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--c-border); }
.page-head p { margin: 10px 0 0; color: var(--c-muted-fg); }
.tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab { border: 1px solid var(--c-border); background: transparent; border-radius: 40px; padding: 7px 18px; font-size: 14px; letter-spacing: .03em; min-height: 38px; transition: all .2s; }
.tab:hover { border-color: var(--c-fg); }
.tab[aria-pressed="true"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.card { background: var(--c-card); border: 1px solid var(--c-border-soft); border-radius: var(--r); padding: 28px 32px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 18px; }

.update { position: relative; }
.update.pinned { border-inline-start: 2px solid var(--c-gold); }
.update h3 { margin: 6px 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.25; }
.update .body { white-space: pre-wrap; color: var(--c-secondary); }
.update.flash { animation: flash 1.8s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px var(--c-gold); } 100% { box-shadow: var(--shadow); } }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--c-muted-fg); letter-spacing: .02em; }
.pin { display: inline-flex; align-items: center; gap: 5px; color: var(--c-accent); }
.pin svg { width: 13px; height: 13px; }
.chip { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .06em; padding: 3px 10px; border-radius: 20px; background: var(--c-muted); color: var(--c-secondary); }
.chip.c-עבודות { background: #EEF0F2; color: #334155; }
.chip.c-תשלום { background: #FBF3E4; color: var(--c-accent); }
.chip.c-אירוע { background: #EFF3E8; color: var(--c-ok); }
.chip.c-דחוף { background: #FBECEC; color: var(--c-danger); }
.chip.open { background: #FBF3E4; color: #854D0E; }
.chip.closed { background: var(--c-muted); color: var(--c-muted-fg); }
.chip.withdrawn { background: #F5F2F2; color: #8A6F6F; text-decoration: line-through; }
.actions-row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.files { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.files a, .files span { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--c-border); border-radius: var(--r); padding: 6px 12px; font-size: 14px; text-decoration: none; color: var(--c-fg); background: var(--c-bg); }
.files a::before, .files span::before { content: ''; width: 10px; height: 13px; border: 1.5px solid var(--c-accent); border-radius: 1px; }

/* proposals list */
.prop { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; text-decoration: none; color: inherit; transition: border-color .25s, transform .25s var(--ease); }
.prop:hover { border-color: var(--c-gold); transform: translateY(-2px); }
.prop h3 { margin: 8px 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.25; }
.prop .tally { font-size: 14px; color: var(--c-muted-fg); margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.prop .tally b { color: var(--c-fg); font-weight: 600; }
.prop-aside { text-align: center; color: var(--c-secondary); }
.prop-aside .pct { font-size: 12px; color: var(--c-muted-fg); margin-top: 8px; letter-spacing: .06em; }

/* proposal detail */
.detail { display: grid; grid-template-columns: 1fr 380px; grid-template-rows: auto 1fr; gap: 40px; align-items: start; }
.detail > article { grid-column: 1; grid-row: 1; }
.detail-comments { grid-column: 1; grid-row: 2; margin-top: 0; }
.detail h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4vw, 54px); line-height: 1.15; margin: 14px 0 18px; }
.detail .body { white-space: pre-wrap; font-size: 18px; color: var(--c-secondary); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--c-border); font-size: 15px; }
.kv dt { color: var(--c-muted-fg); letter-spacing: .04em; }
.kv dd { margin: 0; font-weight: 500; }
.vote-panel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; background: var(--c-primary); color: #D6D3D1; border-radius: var(--r); padding: 34px 28px; text-align: center; }
.vote-panel .facade { color: #78716C; margin: 10px auto 0; }
.vote-panel h2 { font-family: var(--f-display); font-size: 44px; line-height: 1; margin: 0 0 6px; color: #fff; font-weight: 400; }
.vote-panel .sub { font-size: 14px; color: #A8A29E; margin: 0 0 22px; }
.vote-panel .legend { justify-content: center; color: #A8A29E; }
.bar { height: 4px; background: #44403C; overflow: hidden; display: flex; margin: 22px 0 10px; }
.bar .y { background: var(--c-gold); }
.bar .n { background: #A8A29E; }
.counts { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .04em; }
.counts b { font-family: var(--f-display); font-weight: 400; font-size: 30px; color: #fff; display: block; line-height: 1.1; }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.vote-btns .btn { min-height: 54px; font-size: 18px; }
.vote-btns .yes { background: var(--c-gold); color: var(--c-primary); }
.vote-btns .yes:hover { background: var(--c-gold-soft); }
.vote-btns .no { background: transparent; color: #fff; border-color: #57534E; }
.vote-btns .no:hover { border-color: #fff; }
.vote-btns .btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c-primary), 0 0 0 3px #fff; }
.vote-note { font-size: 13px; color: #A8A29E; margin-top: 14px; }
.result { margin-top: 20px; padding: 12px; border: 1px solid #44403C; color: #fff; }
.share { margin-top: 24px; padding-top: 22px; border-top: 1px solid #44403C; display: grid; gap: 10px; }
.share .btn { width: 100%; }
.share .btn-ghost { color: #E7E5E4; border-color: #57534E; }
.share .btn-ghost:hover { border-color: #fff; }

.comments { margin-top: 36px; }
.comments h2 { font-family: var(--f-display); font-weight: 400; font-size: 30px; margin: 0 0 14px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--c-border-soft); }
.comment .meta b { color: var(--c-fg); font-weight: 600; }
.comment p { margin: 6px 0 0; white-space: pre-wrap; }

/* forms */
.form { display: grid; gap: 20px; max-width: 680px; }
.field label, .label-like { display: block; font-weight: 500; font-size: 14px; letter-spacing: .04em; margin-bottom: 8px; color: var(--c-secondary); }
.hint { font-size: 13px; color: var(--c-muted-fg); margin-top: 6px; }
.input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-card); transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 150px; resize: vertical; }
.input:hover, .form select:hover, .form textarea:hover { border-color: #A8A29E; }
.input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(161, 98, 7, .14); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.days { display: flex; gap: 8px; flex-wrap: wrap; }
.days label { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--c-border); border-radius: 50%; font-feature-settings: 'tnum'; background: var(--c-card); transition: all .2s; }
.days label:hover { border-color: var(--c-fg); }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days input:checked + label { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.days input:focus-visible + label { outline: 2px solid var(--c-accent); outline-offset: 3px; }
input[type="file"] { font-size: 14px; }
input[type="file"]::file-selector-button { font: inherit; border: 1px solid var(--c-border); background: var(--c-bg); padding: 8px 16px; border-radius: var(--r); margin-inline-end: 12px; cursor: pointer; }
.err { color: var(--c-danger); font-size: 14px; min-height: 1em; }

/* auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-border-soft); background: var(--c-card); box-shadow: var(--shadow); }
.auth-art { position: relative; background: var(--c-primary) url('../img/lobby-art.jpg') center / cover; color: #E7E5E4; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; isolation: isolate; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,25,23,.94), rgba(28,25,23,.6)); z-index: -1; }
.auth-art h2 { font-family: var(--f-display); font-size: 68px; line-height: 1; margin: 0; color: #fff; font-weight: 400; }
.auth-art p { color: #D6D3D1; margin: 0; max-width: 36ch; }
.auth-art .facade { display: none; }
.auth-body { padding: 48px; display: grid; align-content: center; gap: 18px; }
.auth-body h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 38px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--c-muted-fg); font-size: 13px; letter-spacing: .06em; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.g-btn { background: var(--c-card); border: 1px solid var(--c-border); gap: 12px; font-size: 16px; min-height: 52px; }
.g-btn:hover { border-color: var(--c-fg); }
.g-ico { width: 20px; height: 20px; flex: none; }
.demo-logins { display: grid; gap: 10px; padding: 16px; border: 1px dashed var(--c-border); border-radius: var(--r); background: var(--c-bg); }
.demo-logins p { margin: 0; font-size: 13px; color: var(--c-muted-fg); }

.notice { padding: 40px; text-align: center; }
.notice .facade { color: var(--c-muted-fg); margin-bottom: 22px; }
.notice h1 { font-family: var(--f-display); font-weight: 400; font-size: 38px; }
.empty { text-align: center; padding: 64px 20px; color: var(--c-muted-fg); border: 1px dashed var(--c-border); border-radius: var(--r); }
.empty p { margin: 0 0 16px; }

/* admin */
.table-wrap { overflow-x: auto; }
table.res { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--c-card); }
table.res th, table.res td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--c-border-soft); vertical-align: middle; }
table.res th { font-size: 12.5px; color: var(--c-muted-fg); font-weight: 500; letter-spacing: .08em; background: var(--c-bg); }
table.res .input { min-height: 40px; padding: 6px 10px; min-width: 150px; }
table.res select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-card); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card h2 { font-family: var(--f-display); font-weight: 400; }
.statline { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 24px; }
.statline div { font-size: 13.5px; color: var(--c-muted-fg); letter-spacing: .04em; }
.statline b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 56px; line-height: 1; color: var(--c-fg); }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; padding: 12px 22px; border-radius: var(--r); font-size: 15px; z-index: 50; box-shadow: var(--shadow); border-bottom: 2px solid var(--c-gold); }
.loading { padding: 80px; text-align: center; color: var(--c-muted-fg); letter-spacing: .1em; }

dialog.modal { border: 0; border-radius: var(--r); padding: 28px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog.modal::backdrop { background: rgba(12, 10, 9, .55); backdrop-filter: blur(3px); }
dialog.modal h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 28px; }
dialog.modal.lightbox { max-width: min(1100px, 96vw); padding: 12px; background: var(--c-fg); }
dialog.modal.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
dialog.modal.lightbox .actions-row { justify-content: center; }
dialog.modal.lightbox .btn-ghost { color: #fff; border-color: #57534E; }

/* urgent strip */
.urgent { background: var(--c-danger); color: #fff; padding: 22px 0; }
.urgent .wrap { display: grid; gap: 16px; }
.urgent-item { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.urgent-item + .urgent-item { border-top: 1px solid rgba(255,255,255,.25); padding-top: 16px; }
.urgent-label { font-family: var(--f-display); font-size: 40px; line-height: 1; color: #fff; border: 1px solid rgba(255,255,255,.7); padding: 10px 18px 6px; }
.urgent h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 500; line-height: 1.35; }
.urgent .meta { color: #FBD5D5; }
.urgent .body { white-space: pre-wrap; max-width: 72ch; }
.urgent .photos { max-width: 520px; }

/* photos inside updates / proposals */
.photos { display: grid; gap: 10px; margin-top: 18px; }
.photos-1 { grid-template-columns: minmax(0, 600px); }
.photos-2 { grid-template-columns: 1fr 1fr; max-width: 760px; }
.photos-3 { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
.photo { display: block; padding: 0; border: 0; background: var(--c-muted); border-radius: 2px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.photos-1 .photo { aspect-ratio: auto; max-height: 540px; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photos-1 .photo img { height: auto; max-height: 540px; object-fit: contain; }
.photo:hover img { transform: scale(1.02); }
.keep-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.keep-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-bg); font-size: 14px; }
.keep-list img, .keep-list .doc-ico { width: 60px; height: 44px; object-fit: cover; flex: none; }
.keep-list .doc-ico { background: var(--c-muted); }
.keep-list .linkish { margin-inline-start: auto; color: var(--c-danger); }

/* latest updates on home */
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.latest-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; padding: 26px; transition: border-color .3s, transform .3s var(--ease); }
.latest-card:hover { border-color: var(--c-gold); transform: translateY(-3px); }
.latest-img { margin: -26px -26px 10px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-muted); }
.latest-img img { width: 100%; height: 100%; object-fit: cover; }
.latest-card h3 { margin: 4px 0 0; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.25; }
.latest-card p { margin: 0; color: var(--c-secondary); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.latest-card .more { margin-top: auto; padding-top: 14px; color: var(--c-accent); font-size: 14px; letter-spacing: .06em; font-weight: 500; }
.latest-card .more::after { content: ' ←'; }
.latest-locked { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px 36px; border: 1px solid var(--c-border); background: var(--c-card); }
.latest-locked p { margin: 0; max-width: 60ch; }
.latest-locked b { font-family: var(--f-display); font-weight: 400; font-size: 24px; display: block; margin-bottom: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .detail { grid-template-columns: 1fr; grid-template-rows: none; }
  .detail > article, .detail-comments, .vote-panel { grid-column: 1; grid-row: auto; }
  .vote-panel { position: static; }
  .residents-band .wrap { grid-template-columns: 1fr; gap: 48px; }
  .residents-band .facade { justify-self: center; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 32px; min-height: 240px; }
  .auth-art .facade { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top .wrap { height: auto; min-height: 60px; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; padding-bottom: 6px; }
  .nav { order: 3; width: 100%; margin: 0 -14px; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .brand b, .brand span { font-size: 26px; }
  .hero { min-height: 82vh; }
  .hero-media img { object-position: 50% 25%; }
  .hero-shade { background: linear-gradient(to top, rgba(12,10,9,.85) 0%, rgba(12,10,9,.35) 55%, rgba(12,10,9,.1) 100%); }
  .scroll-cue { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .gallery figure { grid-column: auto !important; margin-top: 0 !important; }
  .gallery .g1, .gallery .g4 { grid-column: 1 / -1 !important; }
  .gallery .g-frame { aspect-ratio: 4 / 5 !important; }
  .gallery .g1 .g-frame, .gallery .g4 .g-frame { aspect-ratio: 4 / 3 !important; }
  .gallery figcaption { font-size: 12px; letter-spacing: .06em; }
  .gallery figcaption span { display: none; }
  .prop { grid-template-columns: 1fr; }
  .prop-aside { display: flex; gap: 14px; align-items: center; text-align: start; }
  .row2 { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; }
  .latest-img { margin: -26px -20px 10px; }
  .latest-card { padding: 26px 20px; }
  .facade.lg { --w: 38px; --h: 26px; --g: 8px; }
  .facade.xl { --w: 32px; --h: 22px; --g: 8px; }
  .auth-body { padding: 28px 22px; }
  .urgent-item { grid-template-columns: 1fr; gap: 10px; }
  .urgent-label { justify-self: start; font-size: 30px; }
  .photos-3 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
