/* ============================================================
   domove design system - locked tokens + base + primitives
   (component CSS lives in sibling files 10-*.css ... build.py
    concatenates static/css/*.css sorted -> dist/static/styles.css)
   ============================================================ */
:root{
  --bg:#F4F4F0; --surface:#E7E7E1; --ink:#14140E; --muted:#4E4C45;
  --line:rgba(20,20,14,.16); --line-2:rgba(20,20,14,.32);
  --accent:#E5322B; --accent-ink:#C32219; --on-accent:#FFF6F2;
  --serif:"Newsreader",Georgia,serif;
  --sans:"Inter",system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,monospace;
  --ease:cubic-bezier(.58,.21,.25,1);
  --container:min(1080px,100% - 3rem);
  --radius:14px; --radius-sm:8px;
  --section:clamp(6rem,12vw,10rem);
}
[data-theme="dark"]{
  --bg:#121211; --surface:#1C1C1A; --ink:#F1F1EC; --muted:#918F89;
  --line:rgba(241,241,236,.10); --line-2:rgba(241,241,236,.20);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html.js .reveal{opacity:0;transform:translateY(22px)}
body{
  background:var(--bg);color:var(--ink);font-family:var(--sans);
  line-height:1.55;-webkit-font-smoothing:antialiased;
  transition:background .4s var(--ease),color .4s var(--ease);
}
img,svg,canvas{display:block;max-width:100%}
a{color:inherit}

/* ---- shared primitives reused across components ---- */
.wrap{width:var(--container);margin:0 auto}
.section{padding:var(--section) 0;position:relative}

.eyebrow{
  font-family:var(--sans);font-weight:500;font-size:.72rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted);
  display:flex;align-items:center;gap:11px;
}
.eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0}

.kicker{
  font-family:var(--sans);font-weight:500;font-size:.72rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted);
  display:flex;align-items:center;gap:10px;margin-bottom:clamp(2.4rem,5vw,3.4rem);
}
.kicker .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}

/* the single filled action; one accent, used sparingly */
.ring-cta{
  position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:11px;
  padding:15px 26px;border-radius:100px;border:none;cursor:pointer;
  font-family:var(--mono);font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;font-weight:500;
  background:var(--accent);color:var(--on-accent);overflow:hidden;
  transition:transform .3s var(--ease);
}
/* hover fill sits ABOVE the red base bg but BELOW the (possibly raw-text) label */
.ring-cta::before{
  content:"";position:absolute;inset:0;border-radius:inherit;background:var(--accent-ink);
  transform:scale(.35);opacity:0;transition:transform .45s var(--ease),opacity .3s var(--ease);z-index:-1;
}
.ring-cta:hover::before{transform:scale(1);opacity:1}
.ring-cta>*{position:relative;z-index:1}

/* bare arrow link CTA */
.bare-cta{
  font-family:var(--mono);font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line-2);padding-bottom:3px;
  transition:border-color .25s var(--ease);
}
.bare-cta:hover{border-color:var(--accent)}

/* scroll-reveal: js adds .in when in view (see motion.js). reduced-motion = always visible */
.reveal{transition:opacity .5s var(--ease),transform .6s var(--ease)}
html.js .reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  html.js .reveal{opacity:1;transform:none;transition:none}
}

/* smooth light<->dark crossfade: transitions apply ONLY during the toggle
   (the .theming class is added briefly by the topbar JS), so hover stays snappy */
html.theming, html.theming *{
  transition:background-color .45s var(--ease),color .45s var(--ease),
             border-color .45s var(--ease),fill .45s var(--ease),box-shadow .45s var(--ease)!important;
}
html.theming .leaflet-tile-pane{transition:filter .45s var(--ease)!important}

/* readability floor: never render UI text below .72rem (~11.5px) */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cY9kfjOCX1hbuyalUrK439vogqC9yFZCYg7oRZaLP4obnf7fTXglsMwoT9ZIFjSAgA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cY9kfjOCX1hbuyalUrK439vogqC9yFZCYg7oRZaLP4obnf7fTXglsMwoT9ZJFjSAgA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cY9kfjOCX1hbuyalUrK439vogqC9yFZCYg7oRZaLP4obnf7fTXglsMwoT9ZHFjQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cY9VfjOCX1hbuyalUrK49dLac06G1ZGsZBtoBAbCJYQraA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cY9VfjOCX1hbuyalUrK49dLac06G1ZGsZBtoBAbDJYQraA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cY9VfjOCX1hbuyalUrK49dLac06G1ZGsZBtoBAbNJYQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cY9VfjOCX1hbuyalUrK49dLac06G1ZGsZBtoBAbCJYQraA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cY9VfjOCX1hbuyalUrK49dLac06G1ZGsZBtoBAbDJYQraA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cY9VfjOCX1hbuyalUrK49dLac06G1ZGsZBtoBAbNJYQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono - self-hosted */
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(fonts/jetbrains-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* =================================================================
   10-topbar.css  -  site header
   Design rules: flat bg, bottom hairline, serif wordmark, mono nav.
   No glass, no shadows, no blurs.
   ================================================================= */

/* ---- bar shell ---- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-2);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}

/* ---- inner row (combined with .wrap for horizontal constraint) ---- */
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* ---- brand ---- */
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}

/* isometric volume mark - 26x26 */
.topbar-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
  /* Measured: the wordmark line box has ~6px of empty descender space below
     the letters, so align-items:center drops the mark ~3.4px below the visible
     ink centre. Lift it back onto the letters. */
  transform: translateY(-3.4px);
}

/* SVG face shading - light mode */
.mark-shadow { fill: var(--accent); }
.mark-top    { fill: #403E39; }
.mark-left   { fill: #272725; }
.mark-right  { fill: #1A1A18; }
.mark-accent { fill: var(--accent); }

/* SVG face shading - dark mode (faces lighten so cube stays readable) */
[data-theme="dark"] .mark-top   { fill: #9A948A; }
[data-theme="dark"] .mark-left  { fill: #706C64; }
[data-theme="dark"] .mark-right { fill: #D6D2CB; }

/* wordmark: editorial serif, lowercase */
.topbar-wm {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: lowercase;
  color: var(--ink);
}

/* asterisk superscript in accent red.
   NB: use position, not vertical-align:super — `super` inflates the line box,
   which throws off `align-items:center` on .topbar-brand and drops the mark
   off the wordmark's line. position:relative raises it visually with zero
   effect on the box, so the mark centres to the actual letters. */
.topbar-wm-star {
  color: var(--accent);
  font-size: .6em;
  vertical-align: baseline;
  position: relative;
  top: -0.55em;
  font-family: var(--serif);
  line-height: 0;
}

/* ---- right-side nav cluster ---- */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* language switcher */
.topbar-lang {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topbar-lang a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.topbar-lang a:hover,
.topbar-lang a[aria-current="true"] {
  color: var(--ink);
}

/* ---- join CTA: flat bordered pill ---- */
.topbar-cta {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: transparent;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.topbar-cta:hover {
  background: var(--surface);
}

/* ---- theme toggle button ---- */
.topbar-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
  flex-shrink: 0;
  padding: 0;
}

.topbar-theme:hover {
  color: var(--ink);
  background: var(--surface);
}

.topbar-theme svg {
  width: 14px;
  height: 14px;
  display: block;
  pointer-events: none;
}

/* show moon icon in light mode (hint: "go dark"),
   show sun icon in dark mode (hint: "go light") */
.topbar-theme-sun  { display: none;  }
.topbar-theme-moon { display: block; }

[data-theme="dark"] .topbar-theme-sun  { display: block; }
[data-theme="dark"] .topbar-theme-moon { display: none;  }

/* ---- responsive ---- */
@media (max-width: 640px) {
  /* hide join CTA on small screens; lang + toggle remain */
  .topbar-cta { display: none; }
  .topbar-nav { gap: 16px; }
  .topbar-lang { gap: 10px; }
}

/* ---- body offset for fixed bar ---- */
body { padding-top: 60px; }

/* ── Brand mark: "d serif portal", adapts to light/dark theme ───────────── */
.brandmark .bm-tile   { fill: var(--accent); stroke: none; }
.brandmark .bm-d,
.brandmark .bm-serif  { fill: #fff; }
.brandmark .bm-portal { fill: var(--accent); }
.brandmark .bm-star   { fill: #fff; }

[data-theme="dark"] .brandmark .bm-tile   { fill: none; stroke: var(--accent); stroke-width: 2; }
[data-theme="dark"] .brandmark .bm-d,
[data-theme="dark"] .brandmark .bm-serif  { fill: var(--accent); }
[data-theme="dark"] .brandmark .bm-portal { fill: var(--bg); }
[data-theme="dark"] .brandmark .bm-star   { fill: var(--accent); }

/* ============================================================
   domove · 20-hero.css
   Hero section: left = copy + capture form; right = 3D mark
   Tokens from 00-tokens.css; primitives (.wrap .eyebrow
   .ring-cta .reveal) from 00-tokens.css.
   ============================================================ */

/* ── Section shell ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding-top:    clamp(6rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 8vw,  7rem);
}

/* ── Full-bleed map backdrop ─────────────────────────────────────────────── */
.hero-map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-map-bg #hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Coral wash: opaque paper on the copy (left) → clear over the map (right),
   so the headline stays legible while the map breathes on the right. */
.hero-map-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* 1 · copy-column scrim: solid on the left, clears over the map right */
    linear-gradient(90deg,
      var(--bg) 0%,
      var(--bg) 46%,
      color-mix(in srgb, var(--bg) 86%, transparent) 62%,
      color-mix(in srgb, var(--bg) 30%, transparent) 82%,
      transparent 96%),
    /* 2 · coral warmth behind the headline */
    radial-gradient(120% 90% at 12% 46%,
      rgba(229, 50, 43, .13) 0%,
      rgba(229, 50, 43, .04) 34%,
      transparent 62%),
    /* 3 · faint global dim so map labels never fight the copy */
    linear-gradient(0deg,
      color-mix(in srgb, var(--bg) 24%, transparent),
      color-mix(in srgb, var(--bg) 24%, transparent));
}

/* SAMPLE DATA tag, bottom-right of the map */
.hero-map-tag {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .7rem;
  pointer-events: none;
}

/* Map intro: the whole backdrop fades + settles in on load; the pins then
   drop in staggered (flat-pin-fade + --pin-delay, in map.js/map.css). */
html.js .hero-map-bg { animation: hero-map-in 1.1s var(--ease) both; }

@keyframes hero-map-in {
  from { opacity: 0; transform: scale(1.045); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero-map-bg { animation: none; }
}

/* Overlay row: copy sits above the map, left-aligned.
   pointer-events:none lets clicks fall THROUGH the empty hero area to the map
   (so pins stay clickable); the copy re-enables events for the form + links. */
.hero-inner {
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.hero-copy {
  max-width: 33rem;
  position: relative;
  pointer-events: auto;
}

/* Soft dark halo directly behind the copy — guarantees legibility over the
   map without banding a hard edge across it. */
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* balanced left/right bleed so the halo sits centred on the copy instead of
     dragging off toward the left edge */
  inset: -10% -14% -6% -14%;
  background: radial-gradient(86% 80% at 46% 44%,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 82%, transparent) 48%,
    transparent 80%);
  filter: blur(26px);
  pointer-events: none;
}

.hero-copy .hero-sub { max-width: 34ch; }

/* brand rendered as a dictionary headword: serif face + syllable middot */
.brandword {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 1.4em;
  letter-spacing: .005em;
  color: var(--ink);
}

/* ── Left column: copy ───────────────────────────────────────────────────── */

/* eyebrow spacing (primitive defined in 00-tokens) */
.hero .eyebrow {
  margin-bottom: 1.75rem;
}

/* editorial serif headline */
.hero-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  max-width: 14ch;
}

/* red italic accent word in h1 */
.hero-h1 .ac {
  color: var(--accent);
  font-style: italic;
}

/* subhead */
.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.65;
}

/* ── Capture box ─────────────────────────────────────────────────────────── */
.hero-capture {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

/* mono header row */
.hero-capture .ch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* live status badge */
.hero-capture .ch .live {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  flex-shrink: 0;
}

.hero-capture .ch .live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* form stack */
.hero-capture .signup {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1rem;
}

/* inputs + select */
.hero-capture .signup input[type="email"],
.hero-capture .signup select,
.hero-capture .signup .city-other-input {
  width: 100%;
  padding: .72rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.4;
  transition: border-color .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.hero-capture .signup input[type="email"]::placeholder,
.hero-capture .signup .city-other-input::placeholder {
  color: var(--muted);
}

.hero-capture .signup input[type="email"]:focus,
.hero-capture .signup select:focus,
.hero-capture .signup .city-other-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* custom chevron for select */
.hero-capture .signup select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238C8C86' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* honeypot: invisible to all */
.hero-capture .signup .hp {
  display: none !important;
}

/* hidden city-other field */
.hero-capture .signup .city-other-input[hidden] {
  display: none;
}

/* submit: ring-cta primitive does the heavy lifting */
.hero-capture .signup button[type="submit"] {
  align-self: flex-start;
}

/* consent row */
.hero-capture .signup .consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}

.hero-capture .signup .consent input[type="checkbox"] {
  margin-top: .18em;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* form status (error / success) */
.hero-capture .form-msg {
  padding: 0 1rem .75rem;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
  min-height: 1.5em;
}

/* ── Trustline ────────────────────────────────────────────────────────────── */
.hero .trustline {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Right column: 3D mark stage ─────────────────────────────────────────── */
.hero-mark-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-stage {
  position: relative;
  width: min(460px, 88vw);
}

/* CSS coral bloom sits behind the canvas */
.hero-stage .bloom {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 62%,
    rgba(229, 50, 43, .19) 0%,
    rgba(229, 50, 43, .06) 35%,
    transparent 68%
  );
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

/* canvas: hidden by default; shown only when JS has loaded */
#hero-mark {
  display: none;
  position: absolute;
  inset: 0;
  width:  100% !important;
  height: 100% !important;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  -webkit-mask-image: linear-gradient(to bottom, black 52%, transparent 92%);
          mask-image: linear-gradient(to bottom, black 52%, transparent 92%);
}

#hero-mark:active { cursor: grabbing; }

/* JS active: square stage + canvas visible, fallback hidden */
html.js .hero-stage {
  aspect-ratio: 1;
}

html.js #hero-mark {
  display: block;
}

html.js .hero-fallback {
  display: none;
}

/* ── Scorecard fallback (no-JS or pre-JS) ────────────────────────────────── */
.hero-fallback {
  position: relative;
  z-index: 2;
}

.scorecard {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.sc-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-score {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}

.sc-plan {
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--line-2);
}

.sc-plan svg { width: 100%; display: block; }

.sc-sun {
  position: absolute;
  top: .55rem;
  right: .85rem;
  font-size: 1rem;
  color: var(--accent);
  opacity: .45;
  pointer-events: none;
}

.sc-stats {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.sc-stats > div {
  flex: 1;
  padding: .6rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  border-right: 1px solid var(--line);
}

.sc-stats > div:last-child { border-right: none; }

.sc-stats .k {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-stats .v {
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink);
}

.sc-reads {
  list-style: none;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  border-bottom: 1px solid var(--line);
}

.sc-reads li {
  font-size: .82rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.sc-reads .rd-y {
  color: var(--accent);
  font-weight: 600;
  font-size: .86rem;
  flex-shrink: 0;
}

.sc-ft {
  padding: .55rem 1rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Dark theme adjustments (tokens handle color; layout stays) ──────────── */
[data-theme="dark"] .hero-capture .signup select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23918F89' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* ── Mobile: single column, mark above copy ──────────────────────────────── */
@media (max-width: 860px) {
  /* On mobile the map is a REAL, interactive block at the top; the copy + form
     flow BELOW it (no full-bleed overlay — so the map is actually usable: pan,
     tap a pin, pick a city). The headline overlays the top of the map, then
     auto-dismisses (hero-lede.js) to clear it. */
  .hero {
    display: block;
    min-height: auto;
    padding: 0 0 2.5rem;
    align-items: initial;
  }
  .hero-map-bg {
    position: relative;
    inset: auto;
    height: 60vh;
    min-height: 380px;
  }
  .hero-map-bg #hero-map { position: absolute; inset: 0; }
  /* just a soft bottom fade so the map block melts into the form below */
  .hero-map-wash {
    background: linear-gradient(0deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 55%, transparent) 10%,
      transparent 22%);
  }

  .hero-inner {
    position: static;
    pointer-events: auto;
    padding-top: 1.5rem;
  }
  /* static so the absolutely-positioned lede/toggle below anchor to .hero
     (which spans the map block), not to this copy column beneath the map. */
  .hero-copy { max-width: 100%; position: static; }
  .hero-copy::before { display: none; }

  /* headline overlays the top of the map block; pointer-events off so the map
     underneath stays tappable; auto-dismisses. */
  .hero-lede {
    position: absolute;
    top: 0;
    left: 0; right: 0;
    z-index: 6;
    padding: 4.5rem clamp(1rem, 5vw, 1.5rem) 2rem;
    pointer-events: none;
    /* own scrim so the headline + sub stay legible over the busy map */
    background: linear-gradient(180deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 88%, transparent) 60%,
      transparent 100%);
  }
  .hero-lede .hero-h1,
  .hero-lede .hero-sub,
  .hero-lede .eyebrow { text-shadow: 0 1px 8px var(--bg); }
  /* always visible on mobile (both states): tap to hide OR show the intro.
     Top-right, clear of the left-aligned headline. */
  /* the toggle lives in .hero-copy (below the map) but is absolute to .hero, so
     anchor it to the bottom of the MAP block via its height, not `bottom`
     (which would drop it below the form). */
  .hero-lede-toggle {
    display: inline-flex;
    position: absolute;
    top: calc(max(60vh, 380px) - 3.6rem);
    bottom: auto;
    left: clamp(1rem, 5vw, 1.5rem);
    right: auto;
    margin: 0;
    z-index: 7;
  }
  /* intro shown → compact chevron-only "hide"; collapsed → full "show" pill */
  .hero:not(.lede-collapsed) .hero-lede-toggle span { display: none; }
  .hero:not(.lede-collapsed) .hero-lede-toggle { padding: .5rem .6rem; }
  .hero-h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .hero-sub { max-width: none; }
}

@media (max-width: 480px) {
  .hero-capture .ch {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }
}

/* EN "pick a city" overview prompt — must sit ABOVE Leaflet's panes
   (tile 200 … popup 700), so a high z-index, not 5. */
.hero-map-prompt {
  position: absolute;
  z-index: 900;
  left: 58%;
  top: clamp(4.5rem, 10vw, 6.5rem);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(229, 50, 43, .34);
  animation: prompt-bob 2.4s ease-in-out infinite;
}
@keyframes prompt-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { .hero-map-prompt { animation: none; } }
@media (max-width: 860px) {
  /* mobile: pick-a-city prompt top-centre; hidden while the headline is shown
     (so it doesn't collide with the lede), visible once the intro dismisses. */
  .hero-map-prompt {
    top: 4.25rem;
    bottom: auto;
    left: 50%;
    font-size: .6rem;
    padding: .45rem .9rem;
    white-space: nowrap;
    max-width: 90vw;
  }
  .hero:not(.lede-collapsed) .hero-map-prompt { display: none; }
}

/* "← Change city" — returns from a city to the pick-a-city overview */
.hero-map-back {
  position: absolute;
  z-index: 900;
  left: 58%;
  top: clamp(4.5rem, 10vw, 6.5rem);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F5F3EE;
  background: rgba(20, 19, 16, .72);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: .5rem 1rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hero-map-back:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 860px) {
  /* top-left, clear of the bottom-left "Find your flat" toggle */
  .hero-map-back { left: clamp(1rem, 5vw, 1.5rem); top: 4.5rem; transform: none; font-size: .62rem; }
}

/* ── Mobile: the lede (headline) auto-dismisses to reveal the map ───────── */
.hero-lede {
  max-height: 1000px;   /* generous so the (taller German) headline+sub never clips */
  overflow: hidden;
  transition: max-height .55s var(--ease), opacity .35s var(--ease), transform .55s var(--ease);
}
.lede-collapsed .hero-lede {
  max-height: 0;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}
.hero-lede-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.1rem;
  padding: .55rem 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  animation: lede-toggle-in .4s var(--ease) both;
}
/* always show the toggle on mobile (both states) — placed AFTER the base
   display:none so it wins in source order (media queries add no specificity). */
@media (max-width: 860px) { .hero-lede-toggle { display: inline-flex; } }
.hero-lede-toggle i {
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);   /* up chevron: intro shown → tap to HIDE */
  margin-top: 2px;
  transition: transform .3s var(--ease);
}
.lede-collapsed .hero-lede-toggle i { transform: rotate(45deg); margin-top: -2px; }  /* down: tap to SHOW */
@keyframes lede-toggle-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   killstrip - 3 numbered mono micro-claims
   ============================================================ */

.killstrip {
  border-top:    1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.4rem, 5.5vw, 3.6rem) 0;
}

.killstrip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.killstrip__item {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0 clamp(1.6rem, 4vw, 2.8rem);
  border-left: 1px solid var(--line);
}

.killstrip__item:first-child {
  padding-left: 0;
  border-left: none;
}

.killstrip__item:last-child {
  padding-right: 0;
}

/* mono number row */
.killstrip__num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}

/* single red tick - item 01 only */
.killstrip__item:first-child .killstrip__num::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.killstrip__claim {
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.5vw, 1.0rem);
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.5;
}

/* reveal stagger delays */
.killstrip__item.reveal:nth-child(2) { transition-delay:  55ms; }
.killstrip__item.reveal:nth-child(3) { transition-delay: 110ms; }

/* mobile: stack vertically, each item has top hairline */
@media (max-width: 600px) {
  .killstrip__grid {
    grid-template-columns: 1fr;
  }

  .killstrip__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(1.1rem, 4vw, 1.4rem) 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .killstrip__item:first-child {
    border-top: none;
  }

  /* on mobile the tick becomes a vertical mark */
  .killstrip__item:first-child .killstrip__num::after {
    width: 1.5px;
    height: 16px;
  }

  .killstrip__num {
    min-width: 28px;
    padding-top: 2px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ============================================================
   MOAT / SUPPLY - 80% Leaflet map + 20% enrichment panel
   One hairline-bordered fused composition, flat design system.
   (40-moat.css - concatenated into dist/static/styles.css)
   ============================================================ */

/* ── Section headings ──────────────────────────────────────── */
.moat-h {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.02em;
  max-width: 560px;
  margin-bottom: clamp(.9rem, 1.8vw, 1.2rem);
}

.moat-sub {
  font-size: clamp(.9rem, 1.4vw, 1.0rem);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: clamp(2rem, 4.5vw, 3.2rem);
}

/* ── Unified MOAT panel (one bordered composition) ───────────
   80% map | 20% enrichment sidebar share one border + radius.
────────────────────────────────────────────────────────────── */
.moat-object {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
}

@media (max-width: 860px) {
  .moat-object { grid-template-columns: 1fr; }
}

/* ── Map panel (80%, left column) ───────────────────────────── */
.moat-map-panel {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-2);
}

@media (max-width: 860px) {
  .moat-map-panel {
    grid-column: auto;
    border-right: none;
    border-bottom: 1px solid var(--line-2);
  }
}

/* Thin header bar above the map */
.moat-map-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  gap: 12px;
}

.mmhd-l {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.mmhd-l .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Leaflet map - flex-grows to fill the panel.
   Overrides map.css height:100% so flex:1 works in a column. */
.moat-map-panel #hero-map {
  flex: 1;
  height: auto;
  min-height: 460px;
}

@media (max-width: 860px) {
  .moat-map-panel #hero-map { min-height: 340px; }
}

/* Thin footer bar below the map */
.moat-map-ft {
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Enrichment panel (20%, right column) ───────────────────── */
.moat-enrich-panel {
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

@media (max-width: 860px) {
  .moat-enrich-panel { grid-column: auto; }
}

/* Panel header */
.mep-hd {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

/* Signal rows */
.mep-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mep-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 18px 12px;
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}

.mep-row:last-child { border-bottom: none; }

.mep-row:hover {
  background: color-mix(in srgb, var(--bg) 65%, transparent);
}

/* Signal glyph — spare hairline icon, muted, currentColor (theme-safe) */
.mep-icon {
  display: block;
  color: var(--muted);
  opacity: .85;
}

.mep-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.mep-ix {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.mep-text {
  font-family: var(--serif);
  font-size: .92rem;
  line-height: 1.3;
  color: var(--ink);
}

/* AI disclaimer at bottom of enrichment panel */
.mep-note {
  padding: 10px 18px 13px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .03em;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* ── Bottom status bar (spans both columns) ─────────────────── */
.moat-bottom-bar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mbb-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Animated live indicator dot */
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: live-blink 2.8s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .18; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* ── Sun AR companion strip ─────────────────────────────────── */
.sunar {
  margin-top: clamp(2rem, 4.5vw, 3rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.6rem, 3.5vw, 2.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.4rem, 4vw, 3rem);
  flex-wrap: wrap;
}

/* Sun AR app icon — coral tile + radiant sun (matches sunfacing/icon.svg) */
.sunar-icon {
  flex-shrink: 0;
  width: clamp(64px, 9vw, 84px);
  height: clamp(64px, 9vw, 84px);
  display: block;
}
.sunar-icon svg { width: 100%; height: 100%; display: block; }

.sunar-l {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 240px;
}

.sunar-h {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 8px 0 9px;
}

.sunar-b {
  font-size: clamp(.88rem, 1.3vw, .96rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 520px;
}

.sunar-cta { flex-shrink: 0; align-self: center; }

/* "SOON" badge: pin to the top-right so it reads as a status tag on the card,
   not an orphan floating at the vertical middle */
.sunar-soon {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
}

/* ── Arrow link (sunar CTA, topbar nav, sticky CTA) ─────────── */
.arrow-link {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.arrow-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.arrow-link .arw { letter-spacing: 0; }

/* ── Source + stance lines ───────────────────────────────────── */
.source-line,
.stance-note {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
  line-height: 1.65;
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
}

.stance-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.stance-note a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ── Section header pattern shared by cities / howitworks / faq ─ */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
  flex-wrap: wrap;
}

.sec-head-l {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-head-l h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.marker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  align-self: flex-end;
}

/* ─────────────────────────────────────────────────────────────
   No-map variant (.moat-object--signals): the Leaflet map moved
   to the hero, so this section presents the six enrichment
   signals as a standalone grid — not the old map(4fr)+panel(1fr)
   split, which otherwise left an empty grey map column.
────────────────────────────────────────────────────────────── */
.moat-object--signals {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.moat-object--signals .moat-enrich-panel {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
/* section h2 already says "What the ad doesn't tell you" — drop the dup panel header + orphaned map status bar */
.moat-object--signals .mep-hd,
.moat-object--signals .moat-bottom-bar { display: none; }

.moat-object--signals .mep-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.moat-object--signals .mep-row {
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 92px;
}
.moat-object--signals .mep-icon { margin-bottom: .15rem; }
.moat-object--signals .mep-row:nth-child(3n) { border-right: none; }
.moat-object--signals .mep-row:nth-last-child(-n+3) { border-bottom: none; }
.moat-object--signals .mep-note {
  padding: .9rem 1.25rem;
  border-top: 1px solid var(--line);
  margin: 0;
}
@media (max-width: 760px) {
  .moat-object--signals .mep-rows { grid-template-columns: 1fr 1fr; }
  .moat-object--signals .mep-row:nth-child(3n) { border-right: 1px solid var(--line); }
  .moat-object--signals .mep-row:nth-child(2n) { border-right: none; }
  .moat-object--signals .mep-row:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .moat-object--signals .mep-row:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================================
   domove · 45-story.css
   The journey: chat → loading → map → ranked board (GSAP Flip).
   story.js drives the beats + builds the .story-card nodes.
   ============================================================ */

.story { padding: clamp(4rem, 9vw, 7rem) 0; }

.story-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 1rem;
}
.story-sub {
  margin-top: .9rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}

/* ── Stage ─────────────────────────────────────────────────── */
.story-stage {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  min-height: 540px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

/* every beat is layered; JS fades the active one. no-JS shows the board. */
.story-chat, .story-loading, .story-board { position: absolute; inset: 0; }
html.js .story-chat, html.js .story-loading, html.js .story-board { opacity: 0; }
html:not(.js) .story-chat, html:not(.js) .story-loading { display: none; }

/* ── Beat A · the ask ─────────────────────────────────────── */
.story-chat {
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 1rem; padding: clamp(1.5rem, 5vw, 4rem);
}
.sc-tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.sc-bubble {
  max-width: 46ch; padding: 1rem 1.3rem;
  border: 1px solid var(--line-2); border-radius: 4px 16px 16px 16px;
  background: var(--bg); color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5;
}
.sc-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 1px;
  background: var(--accent); vertical-align: text-bottom;
  animation: sc-blink 1s step-end infinite;
}
@keyframes sc-blink { 50% { opacity: 0; } }

/* ── Beat B · reading the market ──────────────────────────── */
.story-loading {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
}
.sl-dots { display: inline-flex; gap: 6px; }
.sl-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: sl-bounce 1s infinite ease-in-out;
}
.sl-dots i:nth-child(2) { animation-delay: .15s; }
.sl-dots i:nth-child(3) { animation-delay: .30s; }
@keyframes sl-bounce { 0%,100% { opacity:.3; transform: translateY(0); } 50% { opacity:1; transform: translateY(-5px); } }
.sl-text {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* ── Beat C–E · the board ─────────────────────────────────── */
/* real Leaflet map fills this box; muted CARTO light tiles */
.story-map { position: absolute; inset: 0; background: var(--surface); }
#story-map.leaflet-container { background: var(--surface); font: inherit; }
[data-theme="dark"] #story-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9); }

.story-cols {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.6rem, 1.5vw, 1.1rem); padding: clamp(1rem, 2.5vw, 1.6rem);
}
.story-col {
  border: 1px dashed var(--line-2); border-radius: 12px;
  padding: .7rem; display: flex; flex-direction: column; gap: .6rem;
  min-width: 0; min-height: 220px;
}
.col-h {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); padding: .1rem .1rem .3rem;
}

/* ── Cards (Flip morphs pin ⇄ card) ───────────────────────── */
.story-card {
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); padding: .7rem .8rem;
  display: flex; flex-direction: column; gap: .4rem; cursor: grab;
  will-change: transform;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.story-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); transform: translateY(-1px); }
.story-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.story-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 22px color-mix(in srgb, var(--accent) 18%, transparent); }
.story-card.scard-ghost { opacity: .35; }
.story-card.scard-drag { cursor: grabbing; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.scard-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.scard-score {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1; color: var(--ink);
}
.scard-price { font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.scard-dist, .scard-tags { min-width: 0; }
.scard-dist { font-size: .84rem; color: var(--ink); font-weight: 500; }
.scard-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.scard-tag {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: .1rem .45rem;
}
/* card body hidden while it's a pin; revealed in board state */
.story-card .scard-dist, .story-card .scard-tags, .story-card .scard-price { opacity: 1; transition: opacity .3s var(--ease); }

.story-foot {
  margin-top: 1.25rem; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 640px) {
  /* Mobile: beats flow (no absolute overlay), so nothing overflows a fixed box
     and the map's pins can't paint over the board. story.js shows the map, then
     swaps to the board (cards fade in) — no cross-map fly morph. */
  /* Keep the box a consistent height across the chat / search / map beats;
     only the kanban board grows taller than this. */
  .story-stage { min-height: 360px; }
  .story-chat, .story-loading, .story-board { position: relative; inset: auto; }
  .story-chat, .story-loading { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .story-map { position: relative; inset: auto; height: 360px; border-radius: 14px; }
  /* 3 columns → stacked vertical sections (Saved / Contacted / Rejected);
     relative so the board grows to fit (was absolute-overlaid on the map) */
  .story-cols { position: relative; inset: auto; grid-template-columns: 1fr; overflow: visible; gap: .8rem; padding: 0; }
  .story-col { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-caret, .sl-dots i { animation: none; }
}

/* ── Journey step controls — centred BELOW the board ───────────────────── */
.story-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin: 2.4rem 0 .5rem;
}
.story-steps-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .6rem;
}
.story-step {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .62rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.story-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.story-step:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); }
.story-step.is-done { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.story-step.is-done b { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.story-step.is-active {
  color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(229, 50, 43, .3);
}
.story-step.is-active b { background: rgba(255, 255, 255, .26); color: #fff; }
.story-replay {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.story-replay:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 560px) {
  .story-steps-track { gap: .4rem; }
  .story-step { padding: .5rem .7rem; font-size: .72rem; gap: .45rem; }
  .story-step span { display: none; }   /* numbers-only chips on tiny screens */
}

/* ============================================================
   50-howitworks.css
   HOW-IT-WORKS stepped layout + FLAT kanban board
   Tokens from 00-tokens.css; no shadows, no glass, no grain.
   One red accent: kcard-active left stripe + pressed filter.
   ============================================================ */

/* ── local token: ghost numeral colour ───────────────────── */
:root             { --hiw-ghost: #D0D0CB; }
[data-theme="dark"] { --hiw-ghost: #282826; }

/* ════════════════════════════════════════════════════════════
   SECTION HEAD
   Uses .section from tokens for vertical rhythm.
   ════════════════════════════════════════════════════════════ */
.hiw-head {
  margin-bottom: clamp(3rem, 6vw, 4.8rem);
}

.hiw-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-top: .9rem;
}

/* ════════════════════════════════════════════════════════════
   STEPPED ROWS
   ════════════════════════════════════════════════════════════ */
.hiw-steps {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

/* single row: left (tag + ghost numeral) | right (title + body) */
.hiw-step {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: clamp(40px, 5vw, 72px);
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

/* ── left column ─────────────────────────────────────────── */
.hiw-step__left {
  display: flex;
  flex-direction: column;
  padding-top: 4px;   /* optical cap-height alignment with title */
}

/* mono precision label: "STEP / 01" */
.hiw-step__tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* big Newsreader numeral - architectural/decorative, not functional */
.hiw-step__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--hiw-ghost);
  user-select: none;
}

/* ── right column ────────────────────────────────────────── */
.hiw-step__right {
  padding-top: 2px;  /* optical grid alignment */
}

.hiw-step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 14px;
}

.hiw-step__body {
  font-family: var(--sans);
  font-size: clamp(.92rem, 1.4vw, 1rem);
  line-height: 1.68;
  color: var(--muted);
  max-width: 50ch;
}

/* ── mobile steps ────────────────────────────────────────── */
@media (max-width: 680px) {
  .hiw-step {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .hiw-step__left {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .hiw-step__num  { display: none; }
  .hiw-step__tag  { margin-bottom: 0; }
  .hiw-step__body { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   BOARD PANEL
   FLAT: hairline borders, radius 14px, no shadows/glass/grain.
   Red accent ONLY on: pressed filter button + kcard-active stripe.
   ════════════════════════════════════════════════════════════ */
.board-panel {
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3rem);
}

/* ── board caption row ───────────────────────────────────── */
.boardcap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin-bottom: .65rem;
}

.boardcap > span:first-child {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.boardcap .sample {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
  opacity: .6;
}

/* ── drag hint ───────────────────────────────────────────── */
.board-hint {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
  opacity: .55;
  margin-bottom: 1rem;
}

/* ── filter bar ──────────────────────────────────────────── */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.3rem;
}

.filterbar button {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
  line-height: 1.5;
}

.filterbar button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ONE red accent: active filter state */
.filterbar button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

/* "Hide PRL" pill: dashed resting border signals negative action */
.filterbar button.avoid {
  border-style: dashed;
}

/* ── kanban grid ─────────────────────────────────────────── */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

/* ── column ──────────────────────────────────────────────── */
.kcol {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* SortableJS drag-over state */
.kcol-dragover {
  border-color: var(--line-2);
}

/* ── column header ───────────────────────────────────────── */
.kh {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.kh .cnt {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  opacity: .5;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 0 4px;
  line-height: 1.4;
}

/* ── cards container ─────────────────────────────────────── */
.kcards {
  padding: .6rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 56px;
}

/* ── individual card ─────────────────────────────────────── */
.kcard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: .65rem;
  padding: 9px 11px;
  cursor: grab;
  transition: border-color .2s var(--ease);
  animation: kcard-in .28s var(--ease) both;
}

@keyframes kcard-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.kcard:active { cursor: grabbing; }

/* SortableJS ghost placeholder */
.kcard-ghost {
  opacity: .3;
  border: 1px dashed var(--line-2);
  background: transparent;
}

/* SortableJS card being dragged */
.kcard-drag {
  opacity: .9;
}

/* ONE red accent: active (viewing) card left stripe */
.kcard-active {
  border-left: 2px solid var(--accent);
}

/* shortlist card: slightly firmer hairline */
.kcard-shortlist {
  border-color: var(--line-2);
}

/* PRL card: visually receded */
.kcard[data-style="prl"] {
  opacity: .6;
}

/* hidden by filter */
.kcard[hidden] { display: none; }

/* ── card glyph icon ─────────────────────────────────────── */
.glyph {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glyph svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kcard-prl svg { opacity: .4; }

/* ── card info ───────────────────────────────────────────── */
.ki {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  position: relative;
}

/* drag handle indicator (decorative, aria-hidden) */
.kgrip {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--muted);
  opacity: .22;
  user-select: none;
  pointer-events: none;
}

/* score badge */
.ks {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.ks-high { color: var(--ink); font-weight: 600; }
.ks-mid  { color: var(--muted); }

/* active card: score in red */
.kcard-active .ks-high { color: var(--accent); }

/* card title: price + district */
.kt {
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* card meta: area, year, state glyph */
.km {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* style tag */
.ktag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .55;
  margin-top: 1px;
}

.ktag-prl { opacity: .35; }

/* ── board mobile ────────────────────────────────────────── */
@media (max-width: 740px) {
  .kanban {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .boardcap { flex-direction: column; gap: .35rem; }
}


/* ---- steps stack on scroll-out: each step pins (sticky) with an incremental
   offset + rising z-index so later steps slide OVER earlier ones (peek stack).
   reveal transform is neutralised on steps + container (transform breaks sticky). ---- */
html.js .hiw-step.reveal{opacity:1;transform:none}
html.js .hiw-steps.reveal{opacity:1;transform:none}
.hiw-steps{position:relative}
.hiw-step{position:sticky;background:var(--bg);z-index:1}
.hiw-step:nth-child(1){top:84px}
.hiw-step:nth-child(2){top:104px;z-index:2}
.hiw-step:nth-child(3){top:124px;z-index:3}
@media(max-width:760px){
  .hiw-step:nth-child(1){top:70px}.hiw-step:nth-child(2){top:86px}.hiw-step:nth-child(3){top:102px}
}
@media(prefers-reduced-motion:reduce){.hiw-step{position:static}}

/* ============================================================
   60-cities.css
   - section-- surface modifiers (shared, not defined elsewhere)
   - rollout: 4-country groups (lead city + secondaries)
     all city rules scoped under .countries / .cc-request
   ============================================================ */

/* ---- section surface modifiers (shared across sections) ---- */
.section--paper   { background: var(--bg); }
.section--paper-2 { background: var(--surface); }
.section--hair    { border-top: 1px solid var(--line); }

/* ---- countries grid: 4 columns, 1px gaps as hairlines ---- */
.countries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);   /* hairline "mortar" between columns */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* one country column */
.country {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* country label row: mono code + localized name */
.country__head {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: 1rem clamp(1.1rem, 2.2vw, 1.5rem) .85rem;
  border-bottom: 1px solid var(--line);
}
.country__code {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--muted);
}
.country__name {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---- city cell (base) ---- */
.countries .cc {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: clamp(1.05rem, 2.2vw, 1.5rem) clamp(1.1rem, 2.2vw, 1.5rem);
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background .22s var(--ease);
}
.countries .cc:last-child { border-bottom: 0; }
.countries .cc:hover { background: var(--surface); }

/* meta row: unit code + status badge (lead only) */
.countries .cc__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.countries .cc__unit {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* status badge: neutral pill */
.countries .cc__badge {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

/* first-up variant: the single coral accent in the section */
.countries .cc__badge--first {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* city name in serif italic */
.countries .cc__name {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
}

/* ---- lead city: visually primary ---- */
.countries .cc--lead {
  gap: .6rem;
  padding-top: clamp(1.25rem, 2.6vw, 1.7rem);
  padding-bottom: clamp(1.25rem, 2.6vw, 1.7rem);
}
.countries .cc--lead .cc__name {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* lead sub: empathetic waitlist copy, reacts on hover */
.countries .cc__sub {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: .15rem;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.countries .cc--lead:hover .cc__sub {
  border-color: var(--accent);
  color: var(--ink);
}

/* ---- secondary cities: muted, name + badge on one row ---- */
.countries .cc:not(.cc--lead) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.countries .cc:not(.cc--lead) .cc__name {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--muted);
  transition: color .22s var(--ease);
}
.countries .cc:not(.cc--lead):hover .cc__name { color: var(--ink); }

/* ---- request tile: full-width invitation under the grid ---- */
.cc-request {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 1px;
  padding: clamp(1rem, 2vw, 1.3rem) clamp(1.2rem, 2.5vw, 1.8rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .22s var(--ease);
}
.cc-request:hover { background: var(--surface); }
.cc-request__plus {
  font-family: var(--mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
  transition: color .22s var(--ease);
}
.cc-request:hover .cc-request__plus { color: var(--ink); }
.cc-request__name {
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.6vw, 1rem);
  color: var(--muted);
  transition: color .22s var(--ease);
}
.cc-request:hover .cc-request__name { color: var(--ink); }

/* ---- dark theme (tiles track bg/surface tokens automatically) ---- */
[data-theme="dark"] .countries .cc      { background: var(--bg); }
[data-theme="dark"] .countries .cc:hover { background: var(--surface); }
[data-theme="dark"] .cc-request         { background: var(--bg); }
[data-theme="dark"] .cc-request:hover   { background: var(--surface); }

/* ---- responsive ---- */

/* tablet: 2 countries per row */
@media (max-width: 860px) {
  .countries { grid-template-columns: repeat(2, 1fr); }
  .sec-head  { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .marker    { align-self: flex-start; }
}

/* phone: single column, each country full-width */
@media (max-width: 520px) {
  .countries { grid-template-columns: 1fr; }
  .countries .cc--lead .cc__name { font-size: clamp(1.4rem, 6vw, 1.9rem); }
}

/* Location-specific landmark watermark in each lead-city card */
.cc--lead { position: relative; overflow: hidden; }
.cc--lead > *:not(.citymark) { position: relative; z-index: 1; }
.citymark {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 60px;
  height: 60px;
  color: var(--accent);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
.cc--lead:hover .citymark { opacity: .26; }

/* ============================================================
   70-founder.css  -  trust / proof
   dotted country map (canvas) + flag-only chips + editorial quote
   ============================================================ */
.founder { text-align: center; }
.founder__col {
  display: flex; flex-direction: column; align-items: center;
  max-width: 720px; margin: 0 auto;
}

.founder__label {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

/* dotted country map */
.founder__map {
  width: min(560px, 86vw);
  aspect-ratio: 1 / 1;   /* JS overrides per shape so it fills tightly */
  margin: 0 auto clamp(2rem, 5vw, 3.2rem);
  position: relative;
}
.founder__map canvas {
  width: 100%; height: 100%;
  display: block;
}

/* flag-only round chips */
.founder__flags {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px;
  margin-bottom: clamp(2.6rem, 6vw, 4rem);
}
.founder__flag {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: inline-flex; flex-shrink: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.founder__flag svg { width: 100%; height: 100%; display: block; }
.founder__flag:hover { transform: translateY(-3px); }

/* coming-in animation: chips rise + scale in, staggered (delays inline) */
html.js .founder__flags.reveal .founder__flag {
  opacity: 0; transform: translateY(12px) scale(.85);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.js .founder__flags.reveal.in .founder__flag {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .founder__flags.reveal .founder__flag { opacity: 1; transform: none; transition: none; }
}

/* hairline rule */
.founder__rule {
  width: 1px; height: 56px;
  background: var(--line-2);
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

/* editorial blockquote */
.founder__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.24; letter-spacing: -.015em;
  color: var(--ink);
  max-width: 22ch; margin: 0 auto;
  quotes: none;
}
.founder__quote::before {
  content: "\201C";
  color: var(--accent);
  font-style: normal;
  margin-right: .04em;
}

.founder__cite {
  display: block;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-style: normal;
}

/* fade-rotating testimonial (EN only; JS adds .founder-fade).
   .is-out is applied briefly while the text is swapped, then removed. */
.founder-fade { transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1); will-change: opacity, transform; }
.founder-fade.is-out { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .founder-fade { transition: none; }
  .founder-fade.is-out { transform: none; }
}
.founder-fade em { font-style: italic; }

/* ============================================================
   80-form.css  --  form / CTA-close section
   flat, hairlines only, no shadows/glass/grain;
   one red accent sparingly (ring-cta only).
   ============================================================ */

/* ---- section shell ---- */
.s-form {
  background: var(--surface);
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}

/* Warm accent radial bleed from below -- ~5% opacity only */
.s-form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 60% at 50% 120%,
    color-mix(in srgb, var(--accent) 5%, transparent),
    transparent 60%
  );
}

.s-form .wrap {
  position: relative;
  z-index: 1;
}

/* ---- editorial column ---- */
.form-inner {
  max-width: 580px;
}

.form-inner .eyebrow {
  margin-bottom: clamp(1.6rem, 3vw, 2rem);
}

/* Editorial serif headline -- calm + large */
.form-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .48em;
}

.form-lead {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.65;
  margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
}

/* ---- form layout ---- */
.join-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ---- field wrapper ---- */
.f-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.f-label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- text / email input ---- */
.f-input {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 16px;
  outline: none;
  width: 100%;
  transition: border-color .25s var(--ease);
}

.f-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}

.f-input::placeholder {
  color: var(--muted);
  opacity: .55;
}

/* ---- city <select> -- native, appearance:none + chevron background-image ---- */
.f-select {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 40px 13px 16px;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  /* Chevron -- muted (#8C8C86), URL-encoded inline SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238C8C86' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color .25s var(--ease);
}

.f-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}

/* Dark-theme: swap chevron and option background */
[data-theme="dark"] .f-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23918F89' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .f-select option {
  background: var(--surface);
  color: var(--ink);
}

/* ---- app.js custom-dropdown progressive enhancement (csel-*) ---- */

/* native select is visually hidden once enhanced; still in DOM for form value */
.csel-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.csel-wrap {
  position: relative;
}

.csel-trigger {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 14px 13px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  outline: none;
  transition: border-color .25s var(--ease);
  overflow: hidden;
}

.csel-trigger:focus-visible,
.csel-wrap[aria-expanded="true"] .csel-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}

.csel-caret {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: transform .22s var(--ease);
}

.csel-wrap[aria-expanded="true"] .csel-caret {
  transform: rotate(180deg);
}

.csel-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 4px;
  margin: 0;
  list-style: none;
  z-index: 100;
  animation: csel-open .18s var(--ease);
}

.csel-list[hidden] { display: none; }

@keyframes csel-open {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.csel-option {
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background .14s var(--ease);
}

.csel-option:hover,
.csel-option.csel-selected {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .csel-caret  { transition: none; }
  .csel-list   { animation: none; }
  .csel-option { transition: none; }
}

/* ---- city_other text input (shown when city=other) ---- */
.city-other-wrap[hidden] { display: none; }

.city-other-input {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 16px;
  outline: none;
  width: 100%;
  transition: border-color .25s var(--ease);
}

.city-other-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}

.city-other-input::placeholder {
  color: var(--muted);
  opacity: .55;
}

/* ---- honeypot (visually hidden, never seen by real users) ---- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---- consent row ---- */
.f-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding-top: 4px;
}

.f-consent-check {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  flex-shrink: 0;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.f-consent-check:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.f-consent-check:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 1.8px solid #fff;
  border-left: none;
  border-top: none;
  transform: rotate(42deg);
}

.f-consent-check:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.f-consent-txt {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- submit row ---- */
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* ---- compliance fineprint ---- */
.form-fineprint {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .07em;
  color: var(--muted);
  opacity: .72;
  line-height: 1.6;
}

.form-fineprint a {
  color: var(--muted);
  text-decoration-color: var(--line-2);
  text-underline-offset: 2px;
  transition: color .2s var(--ease);
}

.form-fineprint a:hover { color: var(--ink); }

/* ---- ARIA live feedback (JS writes status messages here) ---- */
.form-msg {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--muted);
  min-height: 1.4em;
}

/* Distant rooftops — a faint parallax skyline at the foot of the join section */
.s-form { position: relative; overflow: hidden; }
.s-form > .wrap { position: relative; z-index: 1; }
.skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  color: var(--accent);
  opacity: .1;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
/* Varied widths per building type. Widths are ~0.57× the old values because the
   SVG viewBox was cropped from 120→68 wide (dead space removed), so the
   buildings render at the same size but the containers now hug them → they pack
   tight instead of floating in padding. */
.sky-b { flex: 0 0 auto; height: auto; width: clamp(30px, 4.8vw, 54px); }
.sky-t { width: clamp(17px, 2.8vw, 31px); }  /* towers — narrow */
.sky-l { width: clamp(33px, 5.7vw, 62px); }  /* apartment blocks — wide */
.sky-m { width: clamp(26px, 4.3vw, 48px); }
.sky-s { width: clamp(28px, 4.5vw, 51px); }
/* Real clustering: buildings pack tight (near-zero gap) within a cluster, then
   a big decisive gap starts the next one. Cluster SIZES are deliberately
   irregular — 2, 5, 1 (a lone tower), 4, 3, 2 — so nothing reads as a rhythm.
   Gap widths vary too. */
.sky-b { margin-left: -3px; }   /* slight overlap → buildings in a clump touch */
.sky-b:first-child   { margin-left: 0; }
.sky-b:nth-child(3)  { margin-left: clamp(10px, 2vw, 30px); }  /* → cluster of 5 */
.sky-b:nth-child(8)  { margin-left: clamp(16px, 3vw, 42px); }  /* → a lone tower */
.sky-b:nth-child(9)  { margin-left: clamp(12px, 2.4vw, 34px); } /* → cluster of 4 */
.sky-b:nth-child(13) { margin-left: clamp(8px, 1.8vw, 24px); }  /* → cluster of 3 */
.sky-b:nth-child(16) { margin-left: clamp(18px, 3.4vw, 46px); } /* → cluster of 2 */
@media (max-width: 640px) { .skyline { opacity: .12; } }
@media (prefers-reduced-motion: reduce) { .skyline { transform: none !important; } }

/* ============================================================
   FAQ - bare details accordions, hairline rules, +/x icon
   ============================================================ */

.s-faq {
  border-top: 1px solid var(--line);
}

/* ---- header ---- */
.faq-head {
  max-width: 540px;
  margin-bottom: clamp(2.8rem, 6vw, 4rem);
}

.faq-head .eyebrow {
  margin-bottom: 14px;
}

.faq-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  letter-spacing: -.015em;
  line-height: 1.1;
  color: var(--ink);
}

/* ---- list container ---- */
.faq-list {
  max-width: 740px;
  border-top: 1px solid var(--line);
}

/* ---- individual item ---- */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font-family: var(--sans);
  font-size: clamp(.94rem, 1.4vw, 1.04rem);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .22s var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

/* ---- + to x icon (rotate 45deg) ---- */
.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .38s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
}

/* icon snaps back immediately when close animation begins */
.faq-item.is-closing .faq-icon {
  transform: rotate(0deg);
  border-color: var(--line-2);
  color: var(--muted);
}

/* ---- answer body ---- */
.faq-body {
  overflow: hidden;
  max-height: 0;
  padding: 0 40px 0 0;
  font-size: .96rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 66ch;
}

/* JS sets max-height; this is the post-open settled state */
.faq-item[open] > .faq-body {
  max-height: none;
  padding-bottom: 28px;
}

.faq-body p + p { margin-top: 13px; }

.faq-body a {
  color: var(--ink);
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.faq-body a:hover {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon { transition: none; }
  .faq-body { transition: none; }
}

/* ============================================================
   footer -- s-footer
   calm · airy · popcorn-style · hairline top · never heavy
   ============================================================ */

/* mark face tokens (scoped here, not in 00-tokens) */
:root {
  --mark-top:   #3E3E3B;
  --mark-left:  #272725;
  --mark-right: #1A1A18;
}
[data-theme="dark"] {
  --mark-top:   #6A6A64;
  --mark-left:  #4B4B46;
  --mark-right: #343430;
}

/* -- Section shell ----------------------------------------- */
.s-footer {
  border-top: 1px solid var(--line);
  padding: 88px 0 0;
  background: var(--bg);
}

/* -- Main grid: brand left, 3 clusters right --------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 120px;
  gap: 0 56px;
  align-items: start;
  padding-bottom: 72px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 52px 40px;
    padding-bottom: 56px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
  }
}

/* -- Brand block ------------------------------------------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  width: fit-content;
}

/* measured: lift the mark ~3px onto the wordmark's ink centre (line box has
   empty descender space below the letters), same as the topbar */
.footer-mark { transform: translateY(-3px); }

/* match the header wordmark exactly: editorial serif, lowercase, coral ✱ */
.footer-wordmark .wm-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  letter-spacing: -.01em;
  text-transform: lowercase;
  line-height: 1;
}

/* coral superscript ✱ — position, not vertical-align:super, so it doesn't
   inflate the line box (same technique as the topbar) */
.footer-wordmark .wm-star {
  color: var(--accent);
  font-size: .6em;
  vertical-align: baseline;
  position: relative;
  top: -0.55em;
  font-family: var(--serif);
  line-height: 0;
}

.footer-tagline {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 30ch;
  opacity: 1;
}

/* -- Nav column headings ----------------------------------- */
.footer-col h3,
.footer-lang h3 {
  font-family: var(--mono);
  font-size: .70rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
  margin-bottom: 20px;
}

/* -- Nav column links -------------------------------------- */
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col ul a {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
  line-height: 1.4;
}

.footer-col ul a:hover { color: var(--ink); }

/* -- Language switcher ------------------------------------- */
.footer-lang {
  display: flex;
  flex-direction: column;
}

.lang-switcher {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-btn {
  font-family: var(--mono);
  font-size: .70rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
  width: fit-content;
  opacity: 1;
}

.lang-btn:hover {
  color: var(--ink);
  opacity: 1;
}

.lang-btn[aria-current="true"] {
  color: var(--ink);
  font-weight: 500;
  opacity: 1;
}

/* -- Meta bar (hairline above, quiet mono) ----------------- */
.footer-meta {
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-meta-txt {
  font-family: var(--mono);
  font-size: .70rem;
  letter-spacing: .06em;
  color: var(--muted);
  opacity: 1;
}

.footer-meta-txt a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}

.footer-meta-txt a:hover {
  opacity: 1;
  color: var(--ink);
  border-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .footer-col ul a,
  .lang-btn,
  .footer-meta-txt a { transition: none; }
}

/* Legal pages (privacy / terms) — readable long-form text */
.legal p {
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 46rem;
}
.legal ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  max-width: 46rem;
}
.legal li {
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 .4rem;
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal h2.eyebrow {
  color: var(--muted);
}

/* ============================================================
   96-sticky.css  -  sticky CTA bar
   FLAT: no blur/glass. Toggled by app.js via .is-visible on #sticky-cta.
   ============================================================ */

.sticky-cta{
  position:fixed;bottom:0;left:0;right:0;z-index:900;
  background:var(--surface);
  border-top:1px solid var(--line-2);
  transform:translateY(100%);
  opacity:0;
  transition:transform .4s var(--ease),opacity .35s var(--ease);
  will-change:transform;
}
.sticky-cta.is-visible{
  transform:translateY(0);
  opacity:1;
}

/* inner layout: text left, CTA right */
.sticky-cta .inner{
  display:flex;align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  padding:.875rem 0;
}

/* promise copy */
.sc-txt{
  font-family:var(--sans);
  font-size:.82rem;
  line-height:1.35;
  color:var(--ink);
}
.sc-txt b{
  font-weight:600;
}

/* accent dot separator */
.sc-sep{
  display:inline-block;
  width:4px;height:4px;border-radius:50%;
  background:var(--accent);
  vertical-align:middle;
  margin:0 .55rem;
  flex-shrink:0;
}

/* compact ring-cta inside bar */
.sticky-cta .ring-cta{
  padding:10px 22px;
  font-size:.72rem;
  white-space:nowrap;
  flex-shrink:0;
  text-decoration:none;
}

/* dark mode - tokens handle bg/ink; just tighten border */
[data-theme="dark"] .sticky-cta{
  border-top-color:var(--line-2);
}

/* narrow: stack vertically */
@media(max-width:540px){
  .sticky-cta .inner{
    flex-direction:column;
    align-items:flex-start;
    gap:.75rem;
    padding:1rem 0;
  }
  .sticky-cta .ring-cta{
    align-self:stretch;
    justify-content:center;
  }
}

/* a11y: when not visible, remove from focus + a11y tree (no aria-hidden+focusable) */
.sticky-cta:not(.is-visible){visibility:hidden;pointer-events:none}

/* ============================================================
   97-consent.css -- GDPR consent banner
   Flat bottom strip; hairline top border; one red accent (accept).
   All functional hooks (#consent, .accept, [data-reject]) unchanged.
   ============================================================ */

/* ---- Banner shell ---- */
#consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  padding: .9rem 0;
}

/* ---- Inner layout (width-contained flex row) ---- */
#consent .consent-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---- Copy ---- */
#consent .ct {
  flex: 1 1 0;
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
  min-width: 16rem;
}

#consent .ct a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color .2s var(--ease);
}

#consent .ct a:hover {
  text-decoration-color: var(--accent);
}

/* ---- Button group ---- */
#consent .cbtns {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

/* ---- Reject: bare ghost link ---- */
#consent [data-reject] {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  padding-bottom: 2px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

#consent [data-reject]:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---- Accept: red pill (ring-cta variant) ---- */
#consent .accept {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--accent);
  color: var(--on-accent);
  overflow: hidden;
  transition: transform .3s var(--ease);
}

#consent .accept::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-ink);
  transform: scale(.35);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
  z-index: 0;
}

#consent .accept:hover::before {
  transform: scale(1);
  opacity: 1;
}

/* ---- While the cookie banner is visible, hide the sticky CTA (no two stacked bottom bars).
   app.js toggles #consent[hidden]; :has() reacts to that with zero JS. ---- */
body:has(#consent:not([hidden])) #sticky-cta {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---- Mobile: stack copy above buttons ---- */
@media (max-width: 600px) {
  #consent .consent-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
  }
  #consent .ct {
    min-width: 0;
  }
  #consent .cbtns {
    width: 100%;
    justify-content: flex-end;
  }
}
