/* ============================================================
   Kamir Group — Design System
   Warm / Earthy / Trustworthy
   ============================================================ */

:root {
  /* Surfaces — brand: warm sand (from logo background) */
  --paper:    #FBF7EF;
  --cream:    #EBDDC4;
  --cream-2:  #E0CFAF;
  --sand:     #E7D7BA;   /* exact logo field tone */
  --card:     #FFFFFF;

  /* Ink / Text — brand: cool charcoal slate (from logo wordmark) */
  --ink:      #2D313A;
  --ink-soft: #4E535D;
  --muted:    #8A877E;
  --line:     #DCCFB6;

  /* Dark sections — charcoal slate to echo the logo */
  --night:    #353A42;
  --night-2:  #2B2F36;

  /* Accents (warm earthy highlight) */
  --clay:      #B45F3C;
  --clay-dark: #97492A;
  --ochre:     #C8954A;
  --sage:      #6E7257;
  /* vivid positive green — net cashflow / "you keep" */
  --gain:      #1AA06D;
  --gain-deep: #0E7A55;
  --gain-soft: rgba(26,160,109,0.12);
  /* cool complementary accent — mortgage / loan in financials */
  --denim:      #3F6B86;
  --denim-soft: rgba(63,107,134,0.12);
  /* secondary warm accent — plum for richer data palette */
  --plum:       #8A5A7A;

  /* Type */
  --font-display: "Spectral", "Georgia", serif;
  --font-body:    "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display-he: "Frank Ruhl Libre", "Spectral", "Georgia", serif;
  --font-body-he:    "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing rhythm */
  --space-section: clamp(4.5rem, 9vw, 9rem);
  --container: 1180px;

  /* Radius / Shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(34, 37, 44, 0.07);
  --shadow-md: 0 14px 40px rgba(34, 37, 44, 0.11);
  --shadow-lg: 0 30px 70px rgba(34, 37, 44, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
}
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--clay);
  display: inline-block;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 60ch;
}

.serif-accent { font-family: var(--font-display); font-style: italic; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--cream { background: var(--cream); }
.section--night {
  background: var(--night);
  color: #EDE6DB;
}
.section--night h1, .section--night h2, .section--night h3 { color: #FBF7F0; }
.section--night .lead { color: #C9BEB0; }
.section--night .eyebrow { color: var(--ochre); }
.section--night .eyebrow::before { background: var(--ochre); }

.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 24px rgba(180, 95, 60, 0.28);
}
.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(180, 95, 60, 0.34);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.section--night .btn-ghost { color: #EDE6DB; border-color: rgba(255,255,255,0.22); }
.section--night .btn-ghost:hover { border-color: #EDE6DB; }
/* Ghost button on the dark CTA band: light text, otherwise it's invisible */
.cta-band .btn-ghost { color: #EDE6DB; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { border-color: #FDFAF4; color: #FDFAF4; }
/* Hero ghost: readable on top of the photo backdrop */
.btn-ghost--hero {
  color: #FDFAF4;
  border-color: rgba(255,255,255,0.55);
  background: rgba(20,22,27,0.22);
  backdrop-filter: blur(2px);
}
.btn-ghost--hero:hover { border-color: #fff; background: rgba(20,22,27,0.34); transform: translateY(-2px); }
.btn-arrow svg { transition: transform 0.4s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clay);
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.85rem; }

/* ============================================================
   Header / Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.4s var(--ease);
  padding-block: 1.4rem;
}
.nav.scrolled {
  background: rgba(252, 250, 246, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.85rem;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  display: block;
  height: 54px;
  width: auto;
}
.brand__logo--light { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__cta .btn { padding: 0.7rem 1.3rem; }
/* logout in the top bar — hidden on desktop (the dashboard has its own),
   shown next to the language button on mobile */
.nav-logout {
  display: none; align-items: center; gap: 0.4rem;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.42rem 0.85rem; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-logout svg { width: 16px; height: 16px; flex: 0 0 auto; }
.nav-logout:hover { color: var(--clay); border-color: var(--clay); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 1.5rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  overflow: hidden;
  background: var(--night);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(20,22,27,0.60) 0%, rgba(20,22,27,0.28) 46%, rgba(20,22,27,0.05) 100%),
    linear-gradient(0deg, rgba(20,22,27,0.42), rgba(20,22,27,0) 60%);
}
.hero__media img,
.hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 18s var(--ease) forwards;
}
@keyframes kenburns { to { transform: scale(1); } }

/* Cinematic hero slideshow (auto crossfade + Ken Burns) */
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.14);
  transition: opacity 1.6s var(--ease);
  will-change: opacity, transform;
  z-index: 0;
}
.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}

.hero__inner {
  position: relative;
  z-index: 5;
  color: #F6EFE3;
  max-width: 760px;
  /* guarantees legibility regardless of which property photo is behind */
  text-shadow: 0 2px 18px rgba(12, 13, 16, 0.45);
}
.hero .eyebrow { color: #E9C489; text-shadow: 0 1px 10px rgba(12, 13, 16, 0.6); }
.hero .eyebrow::before { background: #E9C489; }
.hero h1 {
  color: #FDFAF4;
  margin: 1.4rem 0 1.6rem;
}
.hero__sub {
  color: #EFE7D8;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 500;
  max-width: 54ch;
  margin: 0 0 1.8rem;
  line-height: 1.65;
}
/* The clay accent ("בצפון אינדיאנה, ארה"ב") can get lost over warm photos, so
   it gets just a soft dark halo — barely-there, only enough to stay readable.
   No box, no frame. */
.hero h1 .serif-accent {
  color: var(--clay);
  text-shadow: 0 1px 12px rgba(10, 11, 14, 0.6), 0 0 3px rgba(10, 11, 14, 0.45);
}
.hero p {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: #D7CCBC;
  max-width: 56ch;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  color: rgba(246,239,227,0.85);
  background: rgba(20,22,27,0.28);
  border: 1px solid rgba(246,239,227,0.22);
  backdrop-filter: blur(4px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.hero__scroll:hover { background: rgba(20,22,27,0.5); color: #fff; }
.hero__scroll svg {
  width: 22px; height: 22px;
  animation: scrollArrow 1.8s ease-in-out infinite;
}
@keyframes scrollArrow {
  0%, 100% { transform: translateY(-2px); opacity: 0.75; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* Pill row in hero */
.hero__pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.pill {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(246,239,227,0.25);
  color: #E7DCCB;
  backdrop-filter: blur(4px);
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }
.stat { padding: 1.2rem 0; }
/* premium bordered panel variant with hairline dividers between stats */
.stats--panel {
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 2.2vw, 1.5rem) clamp(0.8rem, 2vw, 1.4rem);
  overflow: hidden;
}
.stats--panel .stat__num { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.stats--panel .stat__label { margin-top: 0.35rem; font-size: 0.84rem; }
.stats--panel .stat {
  padding: 0.4rem clamp(1rem, 3vw, 2rem);
  text-align: center;
  position: relative;
}
.stats--panel .stat + .stat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 62%;
  background: var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 500;
  color: var(--clay);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.section--night .stat__num { color: var(--ochre); }
.section--night .stat__label { color: #B6AB9C; }

/* ============================================================
   Split / Intro
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--media-right .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.split__media img, .split__media .ph { width: 100%; height: 100%; object-fit: cover; }
.split__media .badge-float {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  background: rgba(252,250,246,0.92);
  backdrop-filter: blur(8px);
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.badge-float strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: block;
  color: var(--clay);
}
.badge-float small { color: var(--muted); font-size: 0.8rem; }

/* ============================================================
   Services / What we do
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.2rem 2rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--clay);
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
  transition: background 0.4s, color 0.4s;
}
.feature:hover .feature__icon { background: var(--clay); color: #fff; }
.feature h3 { margin-bottom: 0.7rem; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }
.feature__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* What-we-do: intro + sharp bullet rows */
.wwd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.4rem;
  align-items: center;
}
.wwd__intro .eyebrow { margin-bottom: 0.9rem; }
.wwd__intro h2 { margin-bottom: 1.1rem; }
.wwd__intro .lead { margin: 0; }
.wwd__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0.4rem;
}
.pstep {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.25rem 1.3rem;
  border-radius: var(--r-md);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.pstep:hover { background: #fff; transform: translateX(-4px); box-shadow: var(--shadow-sm); }
.pstep__ico {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--clay);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(180,95,60,0.28);
}
.pstep__txt h3 { margin: 0 0 0.3rem; font-size: 1.16rem; }
.pstep__txt p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

@media (max-width: 860px) {
  .wwd { grid-template-columns: 1fr; gap: 1.8rem; }
  .pstep { padding: 0.9rem 0; }
  .pstep:hover { transform: none; box-shadow: none; background: transparent; }
}

/* ===== Who is this for (fit) ===== */
.fit-grid {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.fit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.4rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.fit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fit-card__ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: rgba(110,114,87,0.12);
  color: var(--sage);
  display: grid; place-items: center;
}
.fit-card p { margin: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.55; font-weight: 500; }
.fit-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }

/* The roadmap page was feeling very spread out — tighten the vertical rhythm
   so the messages sit closer together without losing the structure. */
.roadmap .page-hero { padding-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.roadmap .section--tight { padding-block: clamp(1.8rem, 4vw, 3rem); }
.roadmap .section { padding-block: clamp(2.4rem, 5vw, 4rem); }

/* roadmap hero pyramid visual, interactive (original SVG look) */
.rm-pyramid { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.rmp-svg {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}
.rmp-tier { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rmp-tier__g {
  transition: filter var(--ease) .3s;
}
.rmp-tier:hover .rmp-tier__g,
.rmp-tier:focus-visible .rmp-tier__g,
.rmp-tier.is-active .rmp-tier__g {
  filter: brightness(1.07) drop-shadow(0 4px 10px rgba(140, 121, 93, 0.35));
}
.rmp-tier:focus { outline: none; }
.rmp-tier:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.rmp-ic { pointer-events: none; }
.rmp__hint {
  margin: 1.1rem auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--sage);
  background: rgba(110, 114, 87, 0.14);
  padding: .55rem 1.15rem;
  border-radius: 999px;
}
.rmp__hint-ic { width: 16px; height: 16px; flex: 0 0 auto; animation: rmpTapBob 1.6s var(--ease) infinite; }
@keyframes rmpTapBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* The pyramid always pulses, tier by tier (a wave of light up the steps), so
   it's immediately obvious every step is tappable — on desktop and mobile. */
.rmp-tier__g { animation: rmpTierPulse 3s var(--ease) infinite; }
.rmp-tier[data-target="stage-1"] .rmp-tier__g { animation-delay: 0s; }
.rmp-tier[data-target="stage-2"] .rmp-tier__g { animation-delay: .4s; }
.rmp-tier[data-target="stage-3"] .rmp-tier__g { animation-delay: .8s; }
.rmp-tier[data-target="stage-4"] .rmp-tier__g { animation-delay: 1.2s; }
@keyframes rmpTierPulse {
  0%, 72%, 100% { filter: brightness(1); }
  36% { filter: brightness(1.34) saturate(1.2) drop-shadow(0 4px 12px rgba(140, 121, 93, 0.55)); }
}
/* pause the pulse on the step the user is actually pointing at / opened */
.rmp-tier:hover .rmp-tier__g,
.rmp-tier:focus-visible .rmp-tier__g,
.rmp-tier.is-active .rmp-tier__g { animation: none; }

/* flash highlight when a stage is opened from the pyramid */
.rstage--flash .rstage__card {
  animation: rstageFlash 1.4s var(--ease);
}
@keyframes rstageFlash {
  0%   { box-shadow: 0 0 0 0 rgba(180, 95, 60, 0); }
  18%  { box-shadow: 0 0 0 4px rgba(180, 95, 60, 0.32); }
  100% { box-shadow: 0 0 0 0 rgba(180, 95, 60, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rmp-tier__g { transition: none; animation: none; }
  .rmp__hint-ic { animation: none; }
  .rstage--flash .rstage__card { animation: none; }
}

/* ===== Portal peek ===== */
.peek {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.4rem;
  align-items: center;
}
.peek__intro .eyebrow { margin-bottom: 0.9rem; }
.peek__intro h2 { margin-bottom: 1.1rem; }
.peek__intro .lead { margin: 0 0 1.6rem; }
.peek__perks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.8rem; }
.peek__perks li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; color: var(--ink); font-weight: 500; }
.peek__perks svg { color: var(--clay); }

/* device frame — faithful miniature of the real investor dashboard */
.peek__device { perspective: 1600px; }
.peek-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 560px;
  margin-inline: auto;
}
.peek-frame__bar {
  display: flex; gap: 7px; align-items: center;
  padding: 0.7rem 1rem;
  background: var(--night);
}
.peek-frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.26); flex: none; }
.peek-frame__bar span:first-child { background: var(--clay); }
.peek-frame__url {
  margin-inline-start: 0.6rem;
  font-family: var(--font-body); font-style: normal; font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  padding: 0.28rem 0.8rem; border-radius: 999px;
  letter-spacing: 0.01em; direction: ltr;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.peek-frame__screen { position: relative; background: var(--cream); padding: 1rem 1.25rem 1.4rem; }

/* Kami (AI assistant) shown floating in the peek mockup */
.peek-kbot {
  position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(150deg, var(--clay), var(--clay-dark));
  box-shadow: 0 8px 18px rgba(180, 95, 60, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.peek-kbot__char { width: 30px; height: 30px; }
.peek-kbot__ai {
  position: absolute; top: -5px; inset-inline-end: -5px;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--clay); background: #fff;
  box-shadow: 0 1px 5px rgba(20, 22, 27, 0.3), 0 0 0 1.5px rgba(255,255,255,0.9);
}
.peek-kbot__ai svg { width: 13px; height: 13px; }
/* little callout that names Kami in the peek */
.peek-kbot__callout {
  position: absolute;
  bottom: calc(100% + 10px);
  inset-inline-end: -2px;
  display: inline-flex; align-items: center; gap: 0.32rem;
  white-space: nowrap;
  background: var(--ink); color: #fff;
  font-size: 0.72rem; font-weight: 600; line-height: 1;
  padding: 0.4rem 0.65rem; border-radius: 9px;
  box-shadow: 0 6px 16px rgba(34, 37, 44, 0.3);
}
.peek-kbot__callout b { font-weight: 800; }
.peek-kbot__spark { width: 12px; height: 12px; color: var(--ochre); flex: 0 0 auto; }
.peek-kbot__arrow {
  position: absolute; top: 100%; inset-inline-end: 16px;
  width: 0; height: 0; border: 6px solid transparent; border-top-color: var(--ink);
}

/* scoped overrides so the real .pdash markup fits the small frame */
.peek-frame .peek-pdash { padding: 0; min-height: 0; background: transparent; }
.peek-pdash .pdash__top { margin-bottom: 0.9rem; align-items: center; gap: 0.6rem; }
.peek-pdash .pdash__id { gap: 0.6rem; }
.peek-pdash .pdash__avatar { width: 38px; height: 38px; border-radius: 11px; font-size: 1.05rem; box-shadow: 0 5px 12px rgba(180,95,60,0.26); }
.peek-pdash .pdash__hello { font-size: 1.1rem; line-height: 1.15; }
.peek-pdash .pdash__since { font-size: 0.72rem; margin-top: 0.1rem; }

/* clean summary: one green cashflow hero (full width) + three tidy stats */
.peek-frame .peek-psummary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1.05rem; }
.peek-pdash .psum { padding: 0.7rem 0.7rem; border-radius: 12px; }
.peek-pdash .psum__icon { width: 24px; height: 24px; border-radius: 8px; margin-bottom: 0.35rem; }
.peek-pdash .psum__icon svg { width: 14px; height: 14px; }
.peek-pdash .psum__label { font-size: 0.62rem; margin-bottom: 0.2rem; line-height: 1.2; }
.peek-pdash .psum__value { font-size: 1rem; }
/* the green hero spans the row and lays out horizontally */
.peek-psum__hero {
  grid-column: 1 / -1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 0.7rem;
  padding: 0.85rem 1rem;
}
.peek-psum__hero .psum__icon { order: 0; margin: 0; width: 30px; height: 30px; }
.peek-psum__hero .psum__icon svg { width: 16px; height: 16px; }
.peek-psum__hero .psum__label { order: 1; flex: 1 1 auto; margin: 0; font-size: 0.7rem; }
.peek-psum__hero .psum__value { order: 2; font-size: 1.4rem; }
.peek-psum__hero .psum__cap { order: 3; flex: 1 0 100%; display: block; font-size: 0.6rem; margin-top: 0.1rem; }

.peek-pdash .pdash__bar { margin-bottom: 0.9rem; }
.peek-pdash .pdash__barhead { margin-bottom: 0.55rem; }
.peek-pdash .pdash__barlabel { font-size: 0.78rem; }
.peek-pdash .ppills { gap: 0.5rem; margin-bottom: 0; }
.peek-pdash .ppill { padding: 0.55rem 0.7rem; border-radius: 11px; cursor: default; flex: 1 1 140px; }
.peek-pdash .ppill:hover { transform: none; box-shadow: none; }
.peek-pdash .ppill.is-active:hover { box-shadow: var(--shadow); }
.peek-pdash .ppill__name { font-size: 0.86rem; }
.peek-pdash .ppill__meta { font-size: 0.66rem; }

.peek-ptabs { gap: 0.15rem; padding: 0.3rem; margin-bottom: 1.05rem; flex-wrap: nowrap; overflow: hidden; border-radius: 13px; }
.peek-pdash .ptab { padding: 0.45rem 0.3rem; font-size: 0.64rem; gap: 0.28rem; cursor: default; flex: 1 1 auto; min-width: 0; justify-content: center; white-space: nowrap; }
.peek-pdash .ptab svg { width: 13px; height: 13px; flex: none; }
.peek-pdash .ptab:not(.is-active):hover { background: transparent; color: var(--ink-soft); }

.peek-hero { margin-bottom: 0; }
.peek-hero img { height: 150px; }
.peek-hero .pcard--hero__body { padding: 0.9rem 1rem; }
.peek-hero .pcard--hero__body h2 { font-size: 1.05rem; margin: 0.3rem 0 0.1rem; }
.peek-hero .pcard--hero__body .muted { font-size: 0.78rem; }

@media (max-width: 860px) {
  .fit-grid, .fit-grid--two { grid-template-columns: 1fr; gap: 0.8rem; margin-top: 2rem; }
  .fit-card { padding: 1.15rem 1.2rem; }
  .peek { grid-template-columns: 1fr; gap: 2.4rem; }
  .peek__device { order: 2; }
  .peek-frame { max-width: 440px; }
}

/* phones: let the frame shrink to the column; keep the clean hero + 3-stat
   layout and a scrollable tab strip */
@media (max-width: 520px) {
  .peek__device { min-width: 0; }
  .peek-frame { max-width: 100%; }
  .peek-frame__screen { padding: 1rem 1rem 1.15rem; }
  .peek-pdash .psum { padding: 0.65rem 0.6rem; }
  .peek-pdash .psum__label { font-size: 0.6rem; }
  .peek-pdash .psum__value { font-size: 0.95rem; }
  .peek-psum__hero .psum__value { font-size: 1.3rem; }
  .peek-ptabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .peek-pdash .ptab { flex: 0 0 auto; font-size: 0.7rem; padding: 0.45rem 0.6rem; gap: 0.3rem; }
  .peek-pdash .ptab svg { width: 13px; height: 13px; }
}

/* Process steps */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--clay);
  line-height: 1;
  min-width: 3ch;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); max-width: 60ch; }

/* Process — horizontal numbered timeline (home) */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  position: relative;
}
/* Connecting line behind the number badges */
.process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  z-index: 0;
}
.process__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.4rem;
}
.process__num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--clay);
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.process__step:hover .process__num {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  transform: translateY(-4px);
}
.process__step h3 { margin-bottom: 0.6rem; }
.process__step p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 32ch;
  margin-inline: auto;
}

/* ============================================================
   Roadmap (process page)
   ============================================================ */
.rmap { position: relative; max-width: 880px; margin-inline: auto; }
/* faint base spine */
.rmap::before {
  content: "";
  position: absolute;
  inset-inline-start: 35px;
  top: 2.2rem; bottom: 2.2rem;
  width: 2px;
  background: var(--line);
  z-index: 0;
}
/* scroll-driven progress fill that draws the spine as you go */
.rmap__progress {
  position: absolute;
  inset-inline-start: 35px;
  top: 2.2rem;
  width: 2px;
  height: 0;
  max-height: calc(100% - 4.4rem);
  background: linear-gradient(180deg, var(--clay), var(--ochre) 55%, var(--sage));
  z-index: 0;
  transition: height 0.25s linear;
}
.rstage {
  position: relative;
  padding-inline-start: 100px;
  padding-bottom: 1.7rem;
}
.rstage:last-child { padding-bottom: 0; }
/* circular marker holding a line icon, sits on the spine */
.rstage__marker {
  position: absolute;
  inset-inline-start: 0;
  top: 0.4rem;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--clay);
  /* paper-colored ring masks the spine so the marker reads as a node on it */
  box-shadow: 0 0 0 6px var(--paper);
  z-index: 1;
  transition: transform 0.45s var(--ease), color 0.45s var(--ease),
              background 0.45s var(--ease), border-color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}
.rstage__marker svg { width: 30px; height: 30px; }
.rstage.is-active .rstage__marker {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  box-shadow: 0 0 0 6px var(--paper), var(--shadow-md);
  transform: scale(1.04);
}
.rstage--intro .rstage__marker { color: var(--sage); }
.rstage--intro.is-active .rstage__marker { background: var(--sage); border-color: var(--sage); color: #fff; }
.rstage--bonus .rstage__marker { color: var(--ochre); border-style: dashed; }
.rstage--bonus.is-active .rstage__marker { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.rstage__card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem clamp(1.4rem, 3vw, 2.2rem) 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.rstage:hover .rstage__card { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rstage--intro .rstage__card { background: var(--cream); box-shadow: none; }
.rstage--bonus .rstage__card { background: var(--cream); border-style: dashed; border-color: rgba(200, 149, 74, 0.5); box-shadow: none; }
/* oversized ghost stage number, editorial watermark — vertically centred on
   the heading side (opposite the duration pill, so they never collide) */
.rstage__ghost {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 1.1rem;
  inset-inline-end: auto;
  font-family: var(--font-display);
  font-size: 5.4rem;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  font-variant-numeric: tabular-nums;
}
.rstage--intro .rstage__ghost { color: var(--sage); opacity: 0.12; }
.rstage--bonus .rstage__ghost { color: var(--ochre); opacity: 0.14; }
.rstage__head {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  flex-wrap: nowrap; gap: 0.5rem 1rem; margin-bottom: 0.25rem;
}
/* English now the bold modern display heading */
.rstage__en {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.12;
  color: var(--ink);
  min-width: 0;
}
.rstage--intro .rstage__en { color: var(--sage); }
.rstage--bonus .rstage__en { color: var(--ochre); }
.rstage__time {
  flex: 0 0 auto;
  margin-inline-start: auto;
  /* calm, informational tone (not an alarming red) — a duration, not a warning */
  background: var(--denim-soft);
  color: var(--denim);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
/* a little colour variety per stage so each step feels distinct */
.rstage--intro .rstage__time { background: rgba(110, 114, 87, 0.16); color: var(--sage); }
#stage-2 .rstage__time { background: rgba(200, 149, 74, 0.20); color: #9a6c22; }
#stage-3 .rstage__time { background: rgba(138, 90, 122, 0.16); color: var(--plum); }
#stage-4 .rstage__time { background: var(--gain-soft); color: var(--gain-deep); }
.rstage--bonus .rstage__time { background: rgba(200, 149, 74, 0.18); color: #9a6c22; }
/* Hebrew now the small, quiet sub-label under the English heading */
.rstage__title {
  position: relative; z-index: 1;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
  line-height: 1.45;
}
.rstage__intro { position: relative; z-index: 1; color: var(--ink-soft); margin: 0 0 1.4rem; font-size: 1rem; max-width: 60ch; }
.rstage__steps {
  position: relative; z-index: 1;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.05rem 1.8rem;
}
.rstage__steps li { position: relative; padding-inline-start: 1.85rem; }
.rstage__steps li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 0.05em;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}
.rstage__steps strong { display: block; font-weight: 600; font-size: 0.96rem; color: var(--ink); margin-bottom: 0.12rem; }
.rstage__steps span { display: block; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; }
.rstage__goal {
  position: relative; z-index: 1;
  margin: 1.6rem 0 0;
  padding: 0.95rem 1.15rem;
  background: var(--cream);
  border-radius: var(--r-md);
  font-size: 0.94rem; color: var(--ink-soft);
}
.rstage--intro .rstage__goal,
.rstage--bonus .rstage__goal { background: var(--card); }
.rstage__goal-label {
  color: var(--clay);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.rstage__goal b { color: var(--ink); font-weight: 600; }

/* collapsible stage detail, compact by default, expands on click */
.rstage__summary { cursor: pointer; position: relative; z-index: 1; }
.rstage__summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 6px;
  border-radius: var(--r-md);
}
.rstage__summary .rstage__title { margin-bottom: 0.5rem; }
.rstage__hint {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--clay); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
}
.rstage:hover .rstage__hint { color: var(--ochre); }
.rstage__chev { flex: none; transition: transform 0.4s var(--ease); }
.rstage.is-open .rstage__chev { transform: rotate(180deg); }
.rstage__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.rstage.is-open .rstage__body { grid-template-rows: 1fr; }
.rstage__body-inner { overflow: hidden; min-height: 0; }
.rstage__body .rstage__intro { margin-top: 1.3rem; }

@media (prefers-reduced-motion: reduce) {
  .rmap__progress { transition: none; }
  .rstage__marker { transition: none; }
  .rstage__body { transition: none; }
}

@media (max-width: 600px) {
  .rstage { padding-inline-start: 64px; padding-bottom: 2rem; }
  .rmap::before,
  .rmap__progress { inset-inline-start: 25px; }
  .rstage__marker {
    width: 52px; height: 52px;
    top: 0.3rem;
  }
  .rstage__marker svg { width: 24px; height: 24px; }
  .rstage__card { padding: 1.4rem 1.3rem 1.5rem; }
  .rstage__steps { grid-template-columns: 1fr; gap: 0.85rem; }
  /* keep the duration pill on the same row, to the left of the name,
     so it never wraps down onto the watermark stage number */
  .rstage__head { flex-wrap: nowrap; }
  .rstage__ghost { font-size: 4.2rem; inset-inline-start: 0.7rem; }
}
.rmap__outcome { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; max-width: 640px; }
.rmap__outcome li { position: relative; padding-inline-start: 2rem; color: var(--ink-soft); }
.rmap__outcome li svg { position: absolute; inset-inline-start: 0; top: 2px; color: var(--sage); }
.rmap__outcome strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Projects
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.project {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.project__media img, .project__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project:hover .project__media img,
.project:hover .project__media .ph { transform: scale(1.06); }
.project__status {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.status--sold { background: rgba(110,114,87,0.92); }
.status--progress { background: rgba(200,149,74,0.95); }
.status--invest { background: rgba(180,95,60,0.95); }
.status--done { background: rgba(43,42,40,0.92); }
.project__body { padding: 1.5rem 1.6rem 1.8rem; }
.project__loc {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.project__body h3 { margin-bottom: 1.2rem; font-size: 1.35rem; }
.project__meta {
  display: flex;
  gap: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.project__meta div span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.project__meta div strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.project__meta .up { color: var(--sage); }

/* ---- Clickable project tiles (gallery) ---- */
.projects-grid .project { cursor: pointer; }
.projects-grid .project__media { aspect-ratio: 4 / 3; }
.projects-grid .project__body { display: none; }
.project__status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  margin-inline-end: 0.45rem;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22);
  animation: statusPulse 2.6s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.22); }
  50% { box-shadow: 0 0 0 5px rgba(255,255,255,0.05); }
}
.project__expand {
  position: absolute;
  top: 1rem; inset-inline-end: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 2;
}
.project__expand svg { width: 18px; height: 18px; }
.project:hover .project__expand,
.project:focus-visible .project__expand { transform: scale(1.08); background: #fff; }
.project__cue {
  position: absolute;
  inset-inline: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem;
  padding: 2.2rem 1.2rem 1.1rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(0deg, rgba(28,31,37,0.82), rgba(28,31,37,0));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.project__cue svg { width: 20px; height: 20px; }
.project:hover .project__cue,
.project:focus-visible .project__cue { opacity: 1; transform: none; }
.project:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

/* ---- Project detail modal ---- */
.no-scroll { overflow: hidden; }
.pmodal {
  position: fixed; inset: 0;
  z-index: 2000;
  display: grid; place-items: center;
  padding: 5vh 4vw;
}
.pmodal[hidden] { display: none; }
.pmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(28,31,37,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pmodal__panel {
  position: relative;
  width: min(540px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: pmodalIn 0.4s var(--ease);
}
@keyframes pmodalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.pmodal__close {
  position: absolute;
  z-index: 3;
  top: 0.8rem; inset-inline-end: 0.9rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.pmodal__close:hover { transform: scale(1.06); }
.pmodal__content .project__media {
  aspect-ratio: 16 / 10;
}
.pmodal__content .project__body { display: block; padding: 1.7rem 1.9rem 2.1rem; }
.pmodal__content .project__expand,
.pmodal__content .project__cue { display: none; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   Video section
   ============================================================ */
.video-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.video-card img, .video-card .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.video-card:hover img, .video-card:hover .ph { transform: scale(1.04); }
.video-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(28,31,37,0.5), rgba(28,31,37,0.05));
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.video-play span {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(252,250,246,0.95);
  display: grid; place-items: center;
  color: var(--clay);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease);
}
.video-card:hover .video-play span { transform: scale(1.1); }
.video-meta {
  position: absolute;
  bottom: 1.4rem; left: 1.6rem;
  z-index: 2;
  color: #fff;
}
.video-meta h3 { color: #fff; font-size: 1.4rem; }
.video-meta p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ============================================================
   Success stories
   ============================================================ */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.story {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.story:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.story__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.story__media img, .story__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.story:hover .story__media img, .story:hover .story__media .ph { transform: scale(1.06); }
.story__tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  color: #fff;
  background: rgba(110,114,87,0.92);
  backdrop-filter: blur(4px);
}
.story__body { padding: 1.5rem 1.6rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.story__body h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.story__body > p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.2rem; }
/* one compact row: rent (start) · cashflow (centre) · Zillow link (end) */
.story__stats {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.story__stats > div { flex: 0 1 auto; }
.story__stats div span { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 0.15rem; }
.story__stats div strong {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.story__stats .up { color: var(--sage); }
.story__zillow {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 0.34rem;
  font-size: 0.82rem; font-weight: 700; color: #1277e1;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s var(--ease), gap 0.2s var(--ease);
}
.story__zillow .zillow-ic { width: 17px; height: 17px; flex: 0 0 auto; }
.story__zillow:hover { opacity: 0.78; gap: 0.5rem; }

/* ============================================================
   Current deals (live)
   ============================================================ */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.deal {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.deal:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2); }
.deal__media { aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
.deal .video-play span { width: 56px; height: 56px; }
.deal__live {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  color: #fff;
  background: rgba(180,95,60,0.95);
  backdrop-filter: blur(4px);
}
.deal__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .deal__dot { animation: none; } }
.deal__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.deal__body .project__loc { color: rgba(246,239,227,0.65); }
.deal__body h3 { color: #FBF7F0; font-size: 1.25rem; margin-bottom: 0.5rem; }
.deal__body > p { color: rgba(246,239,227,0.78); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.2rem; }
.deal__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.deal__stage { font-size: 0.8rem; font-weight: 700; color: var(--ochre); }
.deal__meta { font-size: 0.8rem; color: rgba(246,239,227,0.6); }
.deal__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.82rem; font-weight: 700;
  color: var(--ochre);
  white-space: nowrap;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.deal__link:hover { color: #FBF7F0; gap: 0.5rem; }
a.deal__media { display: block; cursor: pointer; }
a.story__media { display: block; cursor: pointer; }
/* English street addresses read left-to-right even inside RTL cards */
.addr-ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }
html[dir="ltr"] .addr-ltr { text-align: left; }

@media (max-width: 900px) {
  .stories-grid, .deals-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .stories-grid, .deals-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Testimonials
   ============================================================ */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.4rem 2.2rem;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.quote__by { display: flex; align-items: center; gap: 0.9rem; }
.quote__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay), var(--ochre));
  display: grid; place-items: center;
  color: #fff; font-weight: 600;
  font-family: var(--font-display);
}
.quote__by strong { display: block; font-size: 0.95rem; }
.quote__by small { color: var(--muted); }
.stars { color: var(--ochre); margin-bottom: 1rem; letter-spacing: 2px; font-size: 0.9rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
  border-radius: var(--r-lg);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  color: #F6EFE3;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(200,149,74,0.22), transparent 70%);
}
.cta-band h2 { color: #FDFAF4; margin-bottom: 1rem; position: relative; }
.cta-band p { color: #CFC4B5; max-width: 50ch; margin: 0 auto 2rem; position: relative; }
.cta-band .hero__actions { justify-content: center; position: relative; }

/* ============================================================
   Forms
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(180,95,60,0.12);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* Password field */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { width: 100%; padding-inline-end: 3rem; }
.pw-toggle {
  position: absolute;
  inset-inline-end: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: none; background: none;
  color: var(--muted); cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.pw-toggle:hover { color: var(--clay); background: var(--cream); }
.pw-toggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* ============================================================
   Client portal / login
   ============================================================ */
.portal { padding-top: 8.5rem; background: var(--cream); min-height: 80vh; }
.portal__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.portal__aside .eyebrow { margin-bottom: 1.1rem; }
.portal__aside h1 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); line-height: 1.12; margin-bottom: 1.1rem; }
.portal__aside .lead, .portal__aside p { color: var(--ink-soft); max-width: 46ch; font-size: 1.05rem; }
.portal__perks { list-style: none; margin-top: 2rem; display: grid; gap: 1.1rem; }
.portal__perks li { display: flex; gap: 0.85rem; align-items: center; font-weight: 500; color: var(--ink); }
.portal__perks svg {
  flex-shrink: 0;
  width: 42px; height: 42px; padding: 10px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--clay);
  box-shadow: var(--shadow-sm);
}
.portal__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  margin-inline: auto;
}
.portal__head { text-align: center; margin-bottom: 1.8rem; }
.portal__lock {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--night);
  color: var(--sand);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.portal__head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 0.4rem; }
.portal__head p { color: var(--muted); font-size: 0.95rem; }
.portal__row {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.checkbox {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  cursor: pointer;
}
.checkbox input {
  width: 18px; height: 18px; min-height: 0;
  accent-color: var(--clay);
  cursor: pointer;
}
.portal__forgot { font-size: 0.9rem; font-weight: 600; color: var(--clay); }
.portal__forgot:hover { text-decoration: underline; }
.portal__foot {
  display: flex; gap: 0.5rem; align-items: center; justify-content: center;
  margin-top: 1.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.82rem; text-align: center;
}
.portal__foot svg { flex-shrink: 0; color: var(--sage); }
.portal__signup { text-align: center; margin-top: 1.2rem; font-size: 0.92rem; color: var(--ink-soft); }
.portal__signup a { font-weight: 600; color: var(--clay); }
.portal__signup a:hover { text-decoration: underline; }

/* Google sign-in */
.portal__google { text-align: center; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  background: #fff; color: #3c4043; border: 1px solid #dadce0;
  font-weight: 600; font-size: 1rem; padding: 0.85rem 1.2rem; border-radius: 10px;
  cursor: pointer; transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-google:hover { background: #f7f8f8; box-shadow: 0 1px 4px rgba(60,64,67,0.18); }
.btn-google:active { background: #f1f3f4; }
.btn-google:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-google__g { flex-shrink: 0; }
.portal__noaccess {
  margin-top: 1.4rem; padding: 1.1rem 1.2rem; text-align: start;
  background: var(--cream, #f6f1e7); border: 1px solid var(--line); border-radius: 12px;
}
.portal__noaccess b { display: block; margin-bottom: 0.4rem; color: var(--ink); }
.portal__noaccess p { margin: 0 0 1rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.portal__noaccess-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.portal__noaccess-actions .btn { flex: 1 1 auto; }

/* Dashboard loading / error state */
.pstate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; min-height: 50vh; text-align: center; color: var(--ink-soft);
}
.pstate__spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--clay);
  animation: pspin 0.8s linear infinite;
}
@keyframes pspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pstate__spinner { animation-duration: 2s; } }
@media (max-width: 860px) {
  .portal__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .portal__aside { text-align: center; }
  .portal__aside .lead, .portal__aside p { margin-inline: auto; }
  .portal__perks { max-width: 380px; margin-inline: auto; text-align: start; }
}

/* Contact info list */
.info-list { display: grid; gap: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--clay);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-item span { display: block; font-size: 0.82rem; color: var(--muted); }
.info-item strong { font-size: 1.05rem; font-weight: 600; }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
  padding-top: 9rem;
  padding-bottom: 3rem;
  background: var(--cream);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1rem; }
.page-hero p { max-width: 60ch; color: var(--ink-soft); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--clay); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--night);
  color: #C9BEB0;
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand { margin-bottom: 1.2rem; }
.footer .brand__logo { height: 46px; }
.footer__col h4 {
  color: #FBF7F0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer__col a { display: block; padding: 0.35rem 0; color: #B6AB9C; transition: color 0.25s; }
.footer__col a:hover { color: var(--ochre); }
.footer__about p { color: #B6AB9C; font-size: 0.95rem; max-width: 36ch; }
.footer__socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center;
  color: #C9BEB0;
  transition: all 0.3s var(--ease);
}
.footer__socials a:hover { background: var(--clay); border-color: var(--clay); color: #fff; transform: translateY(-3px); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.8rem;
  font-size: 0.85rem;
  color: #8E8375;
}

/* ============================================================
   Photo placeholders (swap for real photos)
   ============================================================ */
.ph {
  background:
    linear-gradient(135deg, rgba(180,95,60,0.10), rgba(200,149,74,0.10)),
    var(--cream-2);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--muted);
}
.ph::after {
  content: attr(data-label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.ph svg { opacity: 0.35; width: 56px; height: 56px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -130%); }
/* Hero placeholder: no label/icon — the dark gradient stands on its own */
.hero__photo.ph::after { content: none; }
.hero__photo.ph svg { display: none; }

/* ============================================================
   Portal (coming soon)
   ============================================================ */
.portal-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--night);
  color: #EDE6DB;
  text-align: center;
  padding: 7rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.portal-wrap::before {
  content: "";
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,149,74,0.16), transparent 65%);
}
.portal-card {
  position: relative;
  max-width: 560px;
}
.portal-card h1 { color: #FDFAF4; margin: 1.4rem 0 1rem; font-size: clamp(2.2rem,5vw,3.4rem); }
.portal-card p { color: #C9BEB0; margin-bottom: 2rem; }
.portal-mini-form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.portal-mini-form input {
  flex: 1; min-width: 240px;
  padding: 0.95rem 1.2rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1rem;
  min-height: 48px;
}
.portal-mini-form input::placeholder { color: #9A8F80; }
.portal-mini-form input:focus { outline: none; border-color: var(--ochre); }
.portal-features {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3rem;
}
.portal-feature { display: flex; align-items: center; gap: 0.6rem; color: #B6AB9C; font-size: 0.9rem; }
.portal-feature svg { color: var(--ochre); }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-scale { transform: scale(0.97); }
[data-delay="1"] { transition-delay: 0.05s; }
[data-delay="2"] { transition-delay: 0.10s; }
[data-delay="3"] { transition-delay: 0.15s; }
[data-delay="4"] { transition-delay: 0.20s; }
[data-delay="5"] { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__photo, .hero__media img { animation: none !important; transform: scale(1) !important; }
  .hero__slide { transition: opacity 0.3s linear !important; transform: none !important; }
  .hero__scroll svg { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .process { grid-template-columns: 1fr 1fr; gap: 2.4rem 1.5rem; }
  .process::before { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .brand__logo { height: 44px; }
  /* portal: logout moves into the top bar next to the language button on mobile */
  .nav__cta { gap: 0.55rem; }
  .nav-logout { display: inline-flex; }
  .pdash:not(.peek-pdash) .pdash__topactions { display: none; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--media-right .split__media { order: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .stats--3 { grid-template-columns: repeat(3, 1fr); gap: 1rem 0.6rem; }
  /* the bordered panel stays edge-to-edge with even divided columns */
  .stats--panel { gap: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step__no { font-size: 2rem; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; gap: 2rem; max-width: 28rem; margin-inline: auto; }
  /* stack the stat panel vertically with horizontal hairline dividers */
  .stats--panel.stats--3 { grid-template-columns: 1fr; }
  .stats--panel .stat { padding: 1rem 0.5rem; }
  .stats--panel .stat + .stat::before {
    inset-inline-start: 12%;
    inset-inline-end: 12%;
    top: 0;
    transform: none;
    width: auto;
    height: 1px;
  }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ============================================================
   Language toggle button
   ============================================================ */
.lang-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.85rem;
  min-width: 46px;
  min-height: 40px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.4s var(--ease);
}
.lang-btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.mobile-menu .lang-btn { align-self: flex-start; margin-top: 1.2rem; }

/* ============================================================
   Transparent nav over dark hero (home only) — readability
   ============================================================ */
.home .nav:not(.scrolled) .nav__links a { color: #F6EFE3; }
.home .nav:not(.scrolled) .nav__links a:hover { color: #fff; }
.home .nav:not(.scrolled) .brand__logo--dark { display: none; }
.home .nav:not(.scrolled) .brand__logo--light { display: block; }
.home .nav:not(.scrolled) .lang-btn { color: #F6EFE3; border-color: rgba(246,239,227,0.4); }
.home .nav:not(.scrolled) .lang-btn:hover { color: #fff; border-color: #fff; }
.home .nav:not(.scrolled) .nav-toggle span { background: #F6EFE3; }
/* Investor-login (ghost) button: keep it clearly visible over the dark hero */
.home .nav:not(.scrolled) .btn-ghost {
  color: #FFFFFF;
  border-color: rgba(246,239,227,0.65);
  background: rgba(255,255,255,0.10);
  backdrop-filter: saturate(120%) blur(2px);
}
.home .nav:not(.scrolled) .btn-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,0.18);
}

/* ============================================================
   Hebrew typography (applied when <html lang="he">)
   ============================================================ */
html[lang="he"] body { font-family: var(--font-body-he); }
html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] .display,
html[lang="he"] .brand,
html[lang="he"] .stat__num,
html[lang="he"] .badge-float strong,
html[lang="he"] .quote p,
html[lang="he"] .project__meta div strong,
html[lang="he"] .step__no,
html[lang="he"] .quote__avatar,
html[lang="he"] .mobile-menu a {
  font-family: var(--font-display-he);
}
html[lang="he"] .serif-accent { font-family: var(--font-display-he); font-style: normal; color: var(--clay); }
html[lang="he"] .eyebrow { letter-spacing: 0.06em; }
html[lang="he"] .brand small,
html[lang="he"] .footer__col h4,
html[lang="he"] .pill,
html[lang="he"] .hero__scroll,
html[lang="he"] .filter,
html[lang="he"] .project__status { letter-spacing: 0.02em; }

/* ============================================================
   RTL overrides
   ============================================================ */
html[dir="rtl"] .hero__media::after {
  background:
    linear-gradient(255deg, rgba(18,20,25,0.78) 0%, rgba(18,20,25,0.48) 46%, rgba(18,20,25,0.16) 100%),
    linear-gradient(0deg, rgba(18,20,25,0.55), rgba(18,20,25,0) 60%);
}
/* On phones the text fills most of the screen, so a side gradient is not
   enough — darken more evenly so the copy stays readable over any photo
   without hiding the property itself. */
@media (max-width: 760px) {
  .hero__media::after,
  html[dir="rtl"] .hero__media::after {
    background:
      linear-gradient(0deg, rgba(18,20,25,0.80) 0%, rgba(18,20,25,0.42) 48%, rgba(18,20,25,0.30) 100%);
  }
}
html[dir="rtl"] .split__media .badge-float { left: auto; right: 1.2rem; }
html[dir="rtl"] .project__status { left: auto; right: 1rem; }
html[dir="rtl"] .story__tag,
html[dir="rtl"] .deal__live { left: auto; right: 1rem; }
html[dir="rtl"] .video-meta { left: auto; right: 1.6rem; }
html[dir="rtl"] .cta-band::before { right: auto; left: -10%; }
html[dir="rtl"] .nav__links a::after { transform-origin: right; }

/* Mobile menu slides in from the left in RTL */
html[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
html[dir="rtl"] .mobile-menu.open { transform: translateX(0); }

/* Directional arrow icons point toward reading direction (left) in RTL */
html[dir="rtl"] .btn-arrow svg,
html[dir="rtl"] .link-arrow svg,
html[dir="rtl"] .breadcrumb { /* breadcrumb separators read fine; placeholder */ }
html[dir="rtl"] .btn-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .btn-arrow:hover svg { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }

/* ============================================================
   Investor Portal — login demo hint
   ============================================================ */
.portal__demo {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.portal__demo-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-inline-end: 0.5rem;
}
.portal__demo code {
  font-family: var(--font-body);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font-weight: 600;
  color: var(--clay);
}

/* ============================================================
   Investor Portal — dashboard
   ============================================================ */
.pdash { padding: 7.5rem 0 4rem; background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, var(--cream) 100%); min-height: 80vh; }

/* admin (manager preview) bar */
.padminbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem 1.2rem;
  margin-bottom: 1.4rem; padding: 0.7rem 1rem;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.padminbar__tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.01em;
}
.padminbar__tag svg { width: 18px; height: 18px; color: var(--ochre); }
.padminbar__pick { display: inline-flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.padminbar__pick > span { font-size: 0.85rem; opacity: 0.78; }
.padminbar__pick select {
  font: inherit; font-size: 0.9rem; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; padding: 0.5rem 2.2rem 0.5rem 0.95rem;
  cursor: pointer; max-width: min(78vw, 360px);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23232323' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
}
html[dir="rtl"] .padminbar__pick select {
  padding: 0.5rem 0.95rem 0.5rem 2.2rem;
  background-position: left 0.85rem center;
}
.padminbar__pick select:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
@media (max-width: 600px) {
  .padminbar { align-items: stretch; }
  .padminbar__pick { width: 100%; }
  .padminbar__pick select { flex: 1 1 auto; max-width: 100%; }
}

.pdash__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 0.4rem;
}
/* investor identity: monogram avatar + greeting, like a real app header */
.pdash__id { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.pdash__idtext { display: block; min-width: 0; }
.pdash__avatar {
  flex: 0 0 auto;
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1;
  color: #fff; background: linear-gradient(150deg, var(--clay), var(--clay-dark));
  box-shadow: 0 8px 20px rgba(180, 95, 60, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}
html[lang="he"] .pdash__avatar { font-family: var(--font-display-he); }
.pdash__hello { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); }
.pdash__hello b { color: var(--clay); font-weight: 600; }
.pdash__since { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.pdash__topactions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.pdemo-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 1.6rem; opacity: 0.85; }

/* summary cards */
.psummary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
/* On desktop the toggle button does not exist visually and .psum-more is
   transparent to layout, so all five number cards sit in the grid as before.
   The mobile media query below turns .psum-more into a real collapsible. */
.psum-toggle { display: none; }
.psum-more { display: contents; }
.psum {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.psum__label { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.psum__value { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
/* icon chip + plain-language caption (real dashboard only; the homepage
   peek uses its own static markup without these elements) */
.psum__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 0.7rem;
  background: var(--cream); color: var(--clay);
}
.psum__icon svg { width: 18px; height: 18px; }
/* per-metric icon tints — quiet colour variety across the summary row */
.psum__icon--denim { background: var(--denim-soft); color: var(--denim); }
.psum__icon--gain  { background: var(--gain-soft);  color: var(--gain-deep); }
.psum__icon--ochre { background: rgba(200,149,74,0.16); color: var(--ochre); }
.psum__icon--clay  { background: rgba(180,95,60,0.12); color: var(--clay); }
.psum__cap { display: block; font-size: 0.74rem; color: var(--muted); line-height: 1.35; margin-top: 0.4rem; }
/* aligned, non-shifting figures everywhere numbers appear */
.psum__value, .ftile__value, .fio__v, .pmetric__value, .stat__num { font-variant-numeric: tabular-nums; }
.psum--accent { background: linear-gradient(135deg, var(--sage), #565a44); border-color: transparent; }
.psum--accent .psum__label { color: rgba(255,255,255,0.82); }
.psum--accent .psum__value { color: #fff; }
/* gain (green) lead card — "what lands in your pocket" */
.psum--gain { background: linear-gradient(150deg, var(--gain), var(--gain-deep)); border-color: transparent; }
.psum--gain .psum__label { color: rgba(255,255,255,0.85); }
.psum--gain .psum__value { color: #fff; }
.psum--gain .psum__cap { color: rgba(255,255,255,0.78); }
.psum--gain .psum__icon { background: rgba(255,255,255,0.18); color: #fff; }

/* property selector bar */
.pdash__bar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pdash__barlabel { font-size: 0.85rem; color: var(--ink-soft); }
.pselect {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1.1rem; cursor: pointer;
}

/* tabs */
.ptabs {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 0.4rem; margin-bottom: 1.6rem; box-shadow: var(--shadow-sm);
}
.ptab {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft); background: transparent; border: 0; cursor: pointer;
  padding: 0.6rem 0.95rem; border-radius: 11px; transition: all 0.25s var(--ease);
}
.ptab svg { width: 17px; height: 17px; opacity: 0.8; }
.ptab:hover { background: var(--cream); color: var(--ink); }
.ptab.is-active { background: linear-gradient(135deg, var(--clay), var(--clay-dark)); color: #fff; box-shadow: 0 6px 16px rgba(180, 95, 60, 0.28); }
.ptab.is-active svg { opacity: 1; }

/* generic cards / grids */
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.pcard__title { font-size: 1.05rem; margin: 0 0 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.pcard__foot { margin: 1rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.pgrid { display: grid; gap: 1.2rem; }
.pgrid--2 { grid-template-columns: repeat(2, 1fr); }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
.pgrid--2 > .pcard, .pgrid--3 > .pcard { margin-bottom: 0; }
.psection__intro { color: var(--ink-soft); margin: 0 0 1.2rem; }
.muted { color: var(--ink-soft); }

/* hero card */
.pcard--hero { position: relative; padding: 0; overflow: hidden; }
.pcard--hero img { width: 100%; height: 300px; object-fit: cover; display: block; }
.pcard--hero__body {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.6rem;
  background: linear-gradient(0deg, rgba(20,20,20,0.78), rgba(20,20,20,0) 100%); color: #fff;
}
.pcard--hero__body h2 { color: #fff; margin: 0.5rem 0 0.2rem; font-size: 1.6rem; }
.pcard--hero__body .muted { color: rgba(255,255,255,0.85); margin: 0; }

/* chips */
.pchip { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px; letter-spacing: 0.02em; }
.pchip--ok { background: rgba(110,114,87,0.15); color: var(--sage); }
.pchip--wait { background: rgba(200,149,74,0.18); color: var(--ochre); }
.pchip--cat { background: rgba(180,95,60,0.1); color: var(--clay); }
.pchip--demo { background: var(--ink); color: #fff; }

/* metric tiles */
.pmetrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.pmetric { background: var(--cream); border-radius: 12px; padding: 0.9rem 1rem; }
.pmetric__label { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.pmetric__value { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.pmetric__value small { font-family: var(--font-body); font-size: 0.7rem; color: var(--ink-soft); font-weight: 500; }

/* spec list */
.pspecs { margin: 0; display: grid; gap: 0.1rem; }
.pspecs > div { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.pspecs > div:last-child { border-bottom: 0; }
.pspecs dt { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }
.pspecs dd { margin: 0; font-weight: 600; color: var(--ink); }

/* key/value rows */
.prow { display: flex; justify-content: space-between; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.prow:last-child { border-bottom: 0; }
.prow span { color: var(--ink-soft); }
.prow b { color: var(--ink); }
.prow b.pos { color: var(--sage); }
.prow b.neg { color: var(--clay); }
.prow--total { margin-top: 0.3rem; border-top: 2px solid var(--ink); border-bottom: 0; padding-top: 0.8rem; font-size: 1.05rem; }
.prow--total b { font-family: var(--font-display); font-size: 1.25rem; }

/* distributions table */
.pbanner {
  display: flex; align-items: center; gap: 0.5rem 1.4rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--clay), var(--ochre)); border: 0; color: #fff;
}
.pbanner__label { font-size: 0.8rem; opacity: 0.9; letter-spacing: 0.04em; text-transform: uppercase; }
.pbanner__period { font-weight: 600; }
.pbanner__amount { margin-inline-start: auto; font-family: var(--font-display); font-size: 1.7rem; }
.ptable-wrap { padding: 0; overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.ptable th, .ptable td { padding: 0.85rem 1rem; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable thead th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); background: var(--cream); }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable td.neg { color: var(--clay); }
.ptable .pchip { font-size: 0.68rem; }

/* photo gallery */
.pgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.pphoto { margin: 0; cursor: pointer; border-radius: 14px; overflow: hidden; position: relative; background: var(--cream); }
.pphoto img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.pphoto:hover img { transform: scale(1.05); }
.pphoto figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 0.6rem 0.8rem; font-size: 0.82rem; color: #fff;
  background: linear-gradient(0deg, rgba(20,20,20,0.7), transparent);
}
.pphoto:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
/* full gallery: responsive auto-fill so all photos sit in a clean grid */
.pgallery--all { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.7rem; }
.pgallery--all .pphoto img { height: 150px; }
/* property videos */
.pvideos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0.9rem; }
.pvideo { margin: 0; }
.pvideo video { width: 100%; height: 380px; border-radius: 14px; background: #000; display: block; object-fit: contain; box-shadow: var(--shadow-sm); }
.pvideo--drive { position: relative; height: 380px; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.pvideo--drive img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pvideo--drive .pvideo__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; transition: background 0.2s var(--ease); }
.pvideo--drive .pvideo__play svg { width: 26px; height: 26px; }
.pvideo--drive:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pvideo--drive:hover .pvideo__play { background: var(--clay); }
@media (max-width: 560px) {
  .pgallery--all { grid-template-columns: repeat(2, 1fr); }
  .pgallery--all .pphoto img { height: 130px; }
  .pvideos { grid-template-columns: 1fr; }
  .pvideo video, .pvideo--drive { height: 320px; }
}

/* lightbox */
.plightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,20,20,0.9); display: grid; place-items: center; padding: 4vw; }
.plightbox[hidden] { display: none; }
.plightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.plightbox__close { position: absolute; top: 1rem; inset-inline-end: 1.4rem; background: transparent; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.plightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; max-width: 92vw; }
.plightbox__cap { color: rgba(255,255,255,0.85); font-size: 0.92rem; text-align: center; max-width: 80ch; }
.plightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background 0.2s var(--ease); z-index: 2; }
.plightbox__nav:hover { background: rgba(255,255,255,0.28); }
.plightbox__nav--prev { inset-inline-start: 1.4rem; }
.plightbox__nav--next { inset-inline-end: 1.4rem; }
@media (max-width: 560px) {
  .plightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .plightbox__nav--prev { inset-inline-start: 0.5rem; }
  .plightbox__nav--next { inset-inline-end: 0.5rem; }
}

/* documents */
.pdocs { padding: 0.5rem 0.6rem; }
.pdoc { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0.9rem; border-radius: 12px; cursor: pointer; transition: background 0.2s var(--ease); }
.pdoc:hover { background: var(--cream); }
.pdoc__icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(180,95,60,0.1); color: var(--clay); }
.pdoc__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.pdoc__body b { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.pdoc__meta { font-size: 0.78rem; color: var(--ink-soft); }
.pdoc__dl { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); padding: 0.4rem; cursor: pointer; transition: all 0.2s var(--ease); }
.pdoc__dl:hover { color: var(--clay); border-color: var(--clay); }
.pdoc--open:hover { background: var(--cream); }
.pdoc__ext { flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); transition: all 0.2s var(--ease); }
.pdoc__ext:hover { color: var(--clay); border-color: var(--clay); background: var(--paper); }
.pdoc__ext svg { width: 16px; height: 16px; }

/* Drive folders (per property) */
.pcard__sub { margin: -0.4rem 0 1rem; font-size: 0.85rem; color: var(--ink-soft); }
.pdrivefolders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0.9rem; }
.pdrivefolder {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  text-decoration: none; transition: all 0.2s var(--ease);
}
.pdrivefolder:hover { border-color: var(--clay); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pdrivefolder__icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(180,95,60,0.1); color: var(--clay); }
.pdrivefolder__icon svg { width: 22px; height: 22px; }
.pdrivefolder__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.pdrivefolder__body b { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.pdrivefolder__body p { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.pdrivefolder__ext { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--clay); }
.pdrivefolder__ext svg { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .pdrivefolders { grid-template-columns: 1fr; }
  .pdrivefolder__ext span { display: none; }
}

/* ---- branded system links (Mercury / TenantCloud / Drive) ---- */
.psyslinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.9rem; }
.psyslink {
  --brand: var(--clay);
  position: relative; display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.15rem 1.2rem 1rem; text-decoration: none; overflow: hidden;
  border: 1px solid var(--line); transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.psyslink::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: var(--brand); opacity: 0.9;
}
.psyslink:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.psyslink__logo {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
}
.psyslink__logo img { width: 34px; height: 34px; object-fit: contain; display: block; }
.psyslink__mono {
  display: none; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: #fff; width: 100%; height: 100%; place-items: center; background: var(--brand);
}
.psyslink__logo.is-mono { background: var(--brand); border-color: transparent; }
.psyslink__logo.is-mono .psyslink__mono { display: grid; }
.psyslink__body { display: flex; flex-direction: column; gap: 0.12rem; }
.psyslink__name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.psyslink__role { font-size: 0.82rem; font-weight: 600; color: var(--brand); }
.psyslink__desc { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; margin-top: 0.15rem; }
.psyslink__go {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 700; color: var(--brand);
  padding-top: 0.5rem;
}
@media (max-width: 560px) { .psyslinks { grid-template-columns: 1fr; } }

/* contacts */
.pcontact h3 { font-size: 1.1rem; margin: 0 0 0.2rem; }
.pcontact__role { color: var(--ochre); font-weight: 600; font-size: 0.85rem; margin: 0 0 0.7rem; }
.pcontact__when { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.1rem; line-height: 1.55; }
.pcontact__when b { color: var(--ink); }
.pcontact__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pbtn {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 600;
  background: var(--clay); color: #fff; border: 1px solid var(--clay); border-radius: 999px;
  padding: 0.5rem 0.95rem; cursor: pointer; text-decoration: none; transition: all 0.25s var(--ease);
}
.pbtn svg { width: 15px; height: 15px; }
.pbtn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.pbtn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pbtn--ghost:hover { border-color: var(--clay); color: var(--clay); }
.pbtn span { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* media */
.pmedia { padding: 0; overflow: hidden; }
.pmedia__thumb { position: relative; cursor: pointer; }
.pmedia__thumb img { width: 100%; height: 170px; object-fit: cover; display: block; }
.pmedia__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(20,20,20,0.25); transition: background 0.25s var(--ease); }
.pmedia__play svg { width: 46px; height: 46px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.pmedia:hover .pmedia__play { background: rgba(20,20,20,0.4); }
.pmedia__dur { position: absolute; bottom: 0.6rem; inset-inline-end: 0.6rem; background: rgba(20,20,20,0.8); color: #fff; font-size: 0.74rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 6px; }
.pmedia__body { padding: 1rem 1.1rem 1.2rem; }
.pmedia__body b { display: block; font-size: 1rem; margin-bottom: 0.3rem; }
.pmedia__body p { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 0.9rem; line-height: 1.5; }
.pmedia[role="button"] { cursor: pointer; }
.pmedia__thumb--video { background: linear-gradient(135deg, #2a2f25, #4a3f2d); }
.pmedia__thumb--video img { height: 170px; }
.pmedia__actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.pmedia__ext { font-size: 0.82rem; font-weight: 600; color: var(--ochre); text-decoration: none; white-space: nowrap; }
.pmedia__ext:hover { text-decoration: underline; }

/* video modal (Google Drive embed) */
.pvideobox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,20,20,0.92); display: grid; place-items: center; padding: 4vw; }
.pvideobox[hidden] { display: none; }
.pvideobox__frame { width: min(960px, 92vw); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.pvideobox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pvideobox__close { position: absolute; top: 1rem; inset-inline-end: 1.4rem; background: transparent; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* drive folder modal (in-portal) */
.pfolderbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,20,20,0.92); display: grid; place-items: center; padding: 4vw; }
.pfolderbox[hidden] { display: none; }
.pfolderbox__panel { width: min(1040px, 94vw); height: min(78vh, 760px); display: flex; flex-direction: column; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pfolderbox__bar { flex: 0 0 auto; display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--cream); }
.pfolderbox__title { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--ink); font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfolderbox__ext { flex: 0 0 auto; font-size: 0.85rem; font-weight: 600; color: var(--clay); text-decoration: none; }
.pfolderbox__ext:hover { text-decoration: underline; }
.pfolderbox__close { flex: 0 0 auto; background: transparent; border: 0; color: var(--ink-soft); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.pfolderbox__close:hover { color: var(--ink); }
.pfolderbox__frame { flex: 1 1 auto; background: #fff; }
.pfolderbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* toast */
.ptoast {
  position: fixed; bottom: 1.5rem; inset-inline-start: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 0.85rem 1.3rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 2100;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: 90vw; text-align: center;
}
.ptoast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- property switcher (pills) + portfolio count ---- */
.pdash__bar { display: block; }
.pdash__barhead { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.pdash__barlabel { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.pcount { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--clay); background: rgba(180,95,60,0.1); padding: 0.3rem 0.7rem; border-radius: 999px; }
.pcount svg { width: 14px; height: 14px; }
.ppills { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ppill {
  flex: 1 1 220px; min-width: 0; text-align: start; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 0.85rem 1.05rem; transition: all 0.2s var(--ease);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.ppill:hover { border-color: var(--clay); transform: translateY(-2px); box-shadow: var(--shadow); }
.ppill.is-active { border-color: var(--clay); background: linear-gradient(135deg, rgba(180,95,60,0.07), rgba(200,149,74,0.05)); box-shadow: var(--shadow); }
.ppill__name { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); line-height: 1.15; }
.ppill.is-active .ppill__name { color: var(--clay); }
.ppill__meta { font-size: 0.78rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* thumbnail + cashflow stat on a pill are mobile-only (see mobile block) */
.ppill__thumb, .ppill__stat, .ppill__status { display: none; }

/* ---- financials: headline tiles ---- */
.fhead { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.ftile {
  background: linear-gradient(160deg, #fff 30%, var(--cream));
  border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1.25rem;
  position: relative; overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.ftile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ftile::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--clay); }
.ftile--value  { background: linear-gradient(155deg, #fff 18%, rgba(63,107,134,0.18)); }
.ftile--value::before { background: var(--denim); }
.ftile--equity { background: linear-gradient(155deg, #fff 18%, rgba(26,160,109,0.20)); }
.ftile--equity::before { background: var(--gain); }
.ftile--invest { background: linear-gradient(155deg, #fff 18%, rgba(200,149,74,0.26)); }
.ftile--invest::before { background: var(--ochre); }
.ftile--yield  { background: linear-gradient(155deg, #fff 18%, rgba(180,95,60,0.24)); }
.ftile--yield::before { background: var(--clay); }
.ftile__label { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.ftile__value { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); line-height: 1.1; }

/* ---- value composition bar ---- */
.fbar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--cream); margin: 0.4rem 0 1rem; }
.fbar__seg { height: 100%; transition: width 0.6s var(--ease); }
.fbar__seg--equity { background: linear-gradient(90deg, var(--sage), #828766); }
.fbar__seg--loan { background: var(--denim); opacity: 0.85; }
.flegend { display: flex; flex-direction: column; gap: 0.55rem; }
.flegend__item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.flegend__item b { color: var(--ink); }
.fdot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.fdot--equity { background: var(--sage); }
.fdot--loan { background: var(--ochre); opacity: 0.6; }

/* ---- monthly cashflow waterfall ---- */
.fflow { margin-bottom: 0.9rem; }
.fflow__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; font-size: 0.92rem; }
.fflow__head span { color: var(--ink-soft); }
.fflow__head b { color: var(--ink); }
.fflow__head b.neg { color: var(--clay); }
.fflow__head b.pos { color: var(--sage); }
.fflow__track { height: 9px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.fflow__fill { display: block; height: 100%; border-radius: 999px; transition: width 0.6s var(--ease); }
.fflow__fill--pos { background: var(--sage); }
.fflow__fill--neg { background: var(--clay); opacity: 0.7; }
.fflow__fill--net { background: linear-gradient(90deg, var(--clay), var(--ochre)); }
.fnet { margin-top: 1.1rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.fnet__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.45rem; }
.fnet__head span { font-weight: 600; color: var(--ink); }
.fnet__head b { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.fnet__head b small { font-family: var(--font-body); font-size: 0.72rem; color: var(--ink-soft); font-weight: 500; }
.fnet__yield { margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.fnet__yield b { color: var(--gain); font-weight: 700; }
.fnote { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.fnote b { color: var(--ink); font-weight: 700; }
.fnote--payoff { display: flex; align-items: baseline; gap: 0.4rem; }
/* "tap an item to highlight it" cue above the chart */
.ftaphint { display: flex; align-items: center; gap: 0.45rem; margin: 1rem 0 0.4rem; font-size: 0.82rem; color: var(--ink-soft); }
.ftaphint svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--clay); }
/* small starred recommendation footnote */
.fadvice { display: flex; gap: 0.45rem; margin: 1rem 0 0; padding-top: 0.85rem; border-top: 1px dashed var(--line); font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); }
.fadvice__star { color: var(--clay); font-weight: 800; font-size: 1.05rem; line-height: 1; flex: 0 0 auto; }
/* two-yield breakdown (property return vs all-in return) */
.fyield__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.fyield__row:last-child { border-bottom: 0; }
.fyield__lbl { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; font-weight: 700; color: var(--ink); font-size: 1rem; }
.fyield__lbl small { font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.45; }
.fyield__val { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.fyield__row--prop .fyield__val { color: var(--gain-deep); }
@media (max-width: 480px) { .fyield__val { font-size: 1.45rem; } .fyield__lbl { font-size: 0.92rem; } }
.fyield__row--add .fyield__val, .fyield__val--add { color: var(--gain-deep); font-size: 1.35rem; }
.fyield__row--total { border-top: 1.5px solid var(--line); border-bottom: 0; margin-top: 0.15rem; padding-top: 1rem; }
.fyield__val--total { color: var(--gain-deep); }

/* ===== Yield card, interactive (fy2) ===== */
.fy2 { text-align: center; }
.fy2-controls {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.3rem 0 1.4rem;
}
.fy2-seg {
  display: inline-flex;
  padding: 4px;
  background: rgba(122, 90, 62, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(122, 90, 62, 0.14);
}
.fy2-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.fy2-seg button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(60, 40, 22, 0.12);
}
.fy2-seg button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.fy2-result {
  padding: 1.6rem 0 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.fy2-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 4.6rem);
  font-weight: 700;
  color: var(--gain-deep);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
}
.fy2-per {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-inline-start: 0.5rem;
  align-self: flex-end;
  padding-bottom: 0.55rem;
  letter-spacing: 0;
}
.fy2-numv { transition: opacity 0.15s; }
.fy2-sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.5;
}
.fy2-note {
  margin: 1.2rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 480px) {
  .fy2-seg button { font-size: 0.8rem; padding: 0.45rem 0.75rem; }
  .fy2-sub { font-size: 0.88rem; }
}
.fy2-wink {
  font-style: italic;
  color: var(--clay);
  font-weight: 500;
  white-space: normal;
}

/* ---- monthly cashflow: donut + plain-language in/out/keep ---- */
.fmonthly { margin-bottom: 1.4rem; }
/* view toggle (donut / bars / table) sits at the top of the collapsible body */
.fmonthly__toggle { display: flex; justify-content: flex-end; margin-bottom: 0.9rem; }
.fdonut-wrap {
  display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 2.6rem);
  flex-wrap: wrap; margin: 0.4rem 0 0.6rem;
}
.fdonut { width: clamp(150px, 38vw, 200px); height: auto; flex: 0 0 auto; }
.fdonut__track { fill: none; stroke: var(--cream); stroke-width: 16; }
.fdonut__seg { fill: none; stroke-width: 16; stroke-linecap: butt; }
.fdonut__seg--net  { stroke: var(--gain); }
.fdonut__seg--loan { stroke: var(--denim); }
.fdonut__seg--ins  { stroke: var(--ochre); }
.fdonut__seg--tax  { stroke: var(--plum); }
.fdonut__seg--op   { stroke: var(--clay); }
.fdonut-box { position: relative; flex: 0 0 auto; }
.fdonut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  text-align: center;
  padding: 0 16%;
}
.fdonut__top {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.8vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
  direction: ltr;
  unicode-bidi: isolate;
}
.fdonut__bottom {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 2.4vw, 0.85rem);
  color: var(--ink-soft);
  line-height: 1.25;
  max-width: 100%;
  word-break: keep-all;
}
/* interactive focus: dim the others, thicken the hovered slice */
.fdonut__seg { transition: opacity 0.2s var(--ease), stroke-width 0.2s var(--ease); }
.fdonut.is-focus .fdonut__seg { opacity: 0.22; }
.fdonut.is-focus .fdonut__seg.is-hot { opacity: 1; stroke-width: 19; }
@media (prefers-reduced-motion: no-preference) {
  .fdonut__seg { transition: stroke-dasharray 0.6s var(--ease), opacity 0.2s var(--ease), stroke-width 0.2s var(--ease); }
  .fdonut { animation: fdonutIn 0.6s var(--ease) both; transform-origin: 50% 50%; }
  @keyframes fdonutIn { from { opacity: 0; transform: rotate(-14deg) scale(0.9); } to { opacity: 1; transform: none; } }
}
.flegend2 { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; min-width: 180px; display: flex; flex-direction: column; gap: 0.4rem; }
.fleg { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; padding: 0.4rem 0.5rem; border-radius: 9px; cursor: pointer; transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease); -webkit-tap-highlight-color: transparent; }
.fleg:hover, .fleg:focus-visible { background: var(--cream); outline: none; }
/* tapped/selected legend row — clearly marked while its donut slice is lit */
.fleg.is-sel { background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--clay); }
.fleg:focus-visible { box-shadow: inset 0 0 0 1.5px var(--clay); }
.fleg__dot { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.fleg__dot--net  { background: var(--gain); }
.fleg__dot--loan { background: var(--denim); }
.fleg__dot--ins  { background: var(--ochre); }
.fleg__dot--tax  { background: var(--plum); }
.fleg__dot--op   { background: var(--clay); }
.fleg__label { color: var(--ink); }
.fleg__val { margin-inline-start: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fleg__val small { font-weight: 500; color: var(--ink-soft); font-size: 0.78em; margin-inline-start: 0.25rem; }

.fio {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch;
  gap: 0.6rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line);
}
.fio__item { background: var(--cream); border-radius: 14px; padding: 0.9rem 1rem; text-align: center; border: 1px solid var(--line); }
.fio__item--in   { background: linear-gradient(160deg, #fff, rgba(110,114,87,0.16)); border-color: rgba(110,114,87,0.40); }
.fio__item--in .fio__v { color: var(--sage); }
.fio__item--out  { background: linear-gradient(160deg, #fff, rgba(178,69,47,0.14)); border-color: rgba(178,69,47,0.34); }
.fio__item--keep { background: var(--gain-deep); border-color: var(--gain-deep); box-shadow: 0 8px 22px rgba(14,122,85,0.28); }
.fio__k { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.25rem; }
.fio__item--keep .fio__k { color: rgba(255,255,255,0.85); }
.fio__v { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fio__item--out .fio__v { color: var(--clay); }
.fio__item--keep .fio__v { color: #fff; }
.fio__s { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.2rem; }
.fio__item--keep .fio__s { color: rgba(255,255,255,0.9); }
.fio__op { align-self: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  /* keep money in / out / keep as a compact 3-up row of small cubes instead of
     three big stacked boxes — the donut/bars/table stays the hero below */
  .fio { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; margin-top: 1rem; padding-top: 1rem; }
  .fio__op { display: none; }
  .fio__item { padding: 0.6rem 0.4rem; border-radius: 11px; }
  .fio__k { font-size: 0.62rem; margin-bottom: 0.15rem; }
  .fio__v { font-size: 1.02rem; }
  .fio__s { font-size: 0.58rem; margin-top: 0.1rem; }
}

/* ---- monthly cashflow: view toggle (donut / bars / table) ---- */
.fmonthly__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fmonthly__head .pcard__title { margin: 0; padding: 0; border: 0; }
.finview-toggle { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.finseg { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); padding: 0.42rem 0.95rem; border-radius: 999px; transition: all 0.2s var(--ease); }
.finseg:hover { color: var(--ink); }
.finseg.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.finviews { margin-top: 0.2rem; }
.finview { display: none; }
.finview.is-active { display: block; }

/* bars view */
.fbars { display: flex; flex-direction: column; gap: 0.95rem; margin-top: 0.3rem; }
.fbars__top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.92rem; }
.fbars__label { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); }
.fbars__val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fbars__val small { font-weight: 500; color: var(--ink-soft); font-size: 0.78em; margin-inline-start: 0.3rem; }
.fbars__track { height: 13px; background: var(--cream); border-radius: 999px; overflow: hidden; }
.fbars__fill { display: block; height: 100%; border-radius: 999px; }
.fbars__fill--rent { background: var(--ink); opacity: 0.18; }
.fbars__fill--net  { background: linear-gradient(90deg, var(--gain), var(--gain-deep)); }
.fbars__fill--loan { background: var(--denim); }
.fbars__fill--ins  { background: var(--ochre); }
.fbars__fill--tax  { background: var(--plum); }
.fbars__fill--op   { background: var(--clay); }
.fbars__row--ref { opacity: 0.9; }
.fbars__row--ref .fbars__label { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .fbars__fill { transition: width 0.6s var(--ease); }
  /* grow each bar in when the bars view becomes active */
  .finview[data-finview="bars"].is-active .fbars__fill {
    animation: fbarGrow 0.7s var(--ease) both; transform-origin: left center;
  }
  html[dir="rtl"] .finview[data-finview="bars"].is-active .fbars__fill { transform-origin: right center; }
  .finview[data-finview="bars"].is-active .fbars__row:nth-child(2) .fbars__fill { animation-delay: 0.06s; }
  .finview[data-finview="bars"].is-active .fbars__row:nth-child(3) .fbars__fill { animation-delay: 0.12s; }
  .finview[data-finview="bars"].is-active .fbars__row:nth-child(4) .fbars__fill { animation-delay: 0.18s; }
  .finview[data-finview="bars"].is-active .fbars__row:nth-child(5) .fbars__fill { animation-delay: 0.24s; }
  .finview[data-finview="bars"].is-active .fbars__row:nth-child(6) .fbars__fill { animation-delay: 0.30s; }
  @keyframes fbarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* table view */
/* only 3 columns — must NOT inherit .ptable's 560px min-width, or the amount
   columns get pushed off-screen on a phone (looks like "no numbers") */
.fcftable { width: 100%; min-width: 0; border-collapse: collapse; }
.fcftable th, .fcftable td { padding: 0.65rem 0.7rem; text-align: start; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.fcftable th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 600; }
.fcftable .fnum { text-align: end; font-variant-numeric: tabular-nums; }
.fcftable td .fleg__dot { display: inline-block; vertical-align: middle; margin-inline-end: 0.5rem; }
.fcft__in td { font-weight: 700; color: var(--ink); }
.fcft__keep td { font-weight: 700; color: var(--gain-deep); background: var(--gain-soft); border-bottom: 0; }
.fcft__keep td:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.fcft__keep td:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }

/* Zillow link on the property hero */
.pzillow {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.9rem;
  background: #fff; color: #1277e1; font-size: 0.84rem; font-weight: 700;
  padding: 0.45rem 0.9rem; border-radius: 999px; text-decoration: none; transition: all 0.2s var(--ease);
  box-shadow: 0 2px 8px rgba(18,119,225,0.18);
}
.pzillow .zillow-ic { width: 17px; height: 17px; }
.pzillow:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(18,119,225,0.3); }

/* ---- expense ledger ---- */
.fledger { margin-top: 1.4rem; }
.fledger__head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.fledger__head .pcard__title { margin: 0; padding: 0; border: 0; }
.ftable td.fnum, .ftable th.fnum { text-align: end; font-variant-numeric: tabular-nums; }
.ftable td.fmuted { color: var(--ink-soft); font-size: 0.85rem; }
.ftable__total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; color: var(--ink); background: var(--cream); }
.ftable__total td.fnum { font-family: var(--font-display); font-size: 1.05rem; }

/* ---- empty state ---- */
.pempty { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; padding: 2.4rem 1.5rem; color: var(--ink-soft); }
.pempty svg { width: 34px; height: 34px; opacity: 0.5; }
.pempty p { margin: 0; font-size: 0.95rem; max-width: 44ch; }

/* ---- under-contract (pending) property ---- */
.pchip--wip { background: rgba(200, 149, 74, 0.18); color: var(--clay-dark); }
.ppending { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.4rem; background: linear-gradient(180deg, var(--paper), rgba(231, 215, 186, 0.4)); border: 1px solid var(--line); }
.ppending__ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: rgba(200, 149, 74, 0.16); color: var(--clay); display: flex; align-items: center; justify-content: center; }
.ppending__ic svg { width: 24px; height: 24px; }
.ppending__txt h3 { margin: 0 0 0.3rem; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.ppending__txt p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.pdeal__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 0.5rem; }
.pdeal__note { margin: 0.85rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px) { .pdeal__tiles { grid-template-columns: 1fr; } }

/* ---- document upload ---- */
.pupload { margin-bottom: 1.2rem; }
.pupload__zone {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center;
  border: 2px dashed var(--line); border-radius: 14px; padding: 1.8rem 1.5rem; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.pupload__zone:hover, .pupload.is-drag .pupload__zone { border-color: var(--clay); background: rgba(180,95,60,0.04); }
.pupload__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(180,95,60,0.1); color: var(--clay); }
.pupload__icon svg { width: 22px; height: 22px; }
.pupload__title { width: 100%; font-weight: 600; color: var(--ink); font-size: 1rem; }
.pupload__hint { width: 100%; font-size: 0.82rem; color: var(--ink-soft); }
.pupload__list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
/* disabled "coming soon" state (free plan — uploads not yet active) */
.pupload__zone--soon { cursor: default; border-style: dashed; opacity: 0.72; }
.pupload__zone--soon:hover { border-color: var(--line); background: transparent; }
.pupload.is-disabled .pupload__icon { background: rgba(110,114,87,0.12); color: var(--sage); }
.pupload__zone--soon .pupload__hint { font-weight: 600; color: var(--sage); }
.puprow { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.6rem 0.85rem; border-radius: 10px; background: var(--cream); font-size: 0.88rem; }
.puprow__name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--ink); }
.puprow__name svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-soft); }
.puprow__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puprow__status { flex: 0 0 auto; font-weight: 600; font-size: 0.82rem; color: var(--ink-soft); }
.puprow.is-uploading .puprow__status { color: var(--ochre); }
.puprow.is-done .puprow__status { color: var(--sage); }
.puprow.is-error .puprow__status { color: var(--clay); }
.puprow.is-pending .puprow__status { color: var(--ink-soft); }

/* portal responsive */
@media (max-width: 1040px) {
  .psummary { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .psummary { grid-template-columns: repeat(2, 1fr); }
  .pgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .fhead { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .pdash { padding-top: 6.5rem; }
  .pgrid--2, .pgrid--3 { grid-template-columns: 1fr; }
  .pmetrics { grid-template-columns: repeat(2, 1fr); }
  .pgallery { grid-template-columns: repeat(2, 1fr); }
  .ptabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ptab span { white-space: nowrap; }
  .pcard--hero img { height: 220px; }
  .pbanner__amount { margin-inline-start: 0; }
  .ppill { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .pgallery { grid-template-columns: 1fr; }
  /* keep the headline figures as a tidy 2×2 of small tiles, never a stack of
     four long rectangles */
  .fhead { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Accessibility widget (נגישות)
   ========================================================================== */
.a11y-fab {
  position: fixed;
  inset-inline-start: 20px;
  bottom: 20px;
  z-index: 1200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--night);
  color: var(--sand);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  /* tucked toward the edge and quiet by default, so it stays out of the way;
     it slides fully out and brightens on hover / focus / tap */
  margin-inline-start: -28px;
  opacity: 0.5;
  transition: margin .3s var(--ease), opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.a11y-fab:hover,
.a11y-fab:focus,
.a11y-fab:focus-visible { margin-inline-start: 0; opacity: 1; transform: scale(1.05); background: var(--night-2); }
.a11y-fab:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.a11y-panel {
  position: fixed;
  inset-inline-start: 20px;
  bottom: 84px;
  z-index: 1200;
  width: min(320px, calc(100vw - 40px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.1rem 1.2rem;
  font-family: var(--font-body);
}
.a11y-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
}
.a11y-panel__head strong { font-size: 1.05rem; color: var(--ink); }
.a11y-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 .2rem;
}
.a11y-close:hover { color: var(--ink); }

.a11y-fontrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .5rem .7rem;
  margin-bottom: .9rem;
}
.a11y-fontrow__lbl { font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.a11y-step {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--r-sm);
  width: 44px;
  height: 36px;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.a11y-step:hover { background: var(--cream); border-color: var(--clay); }

.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: .9rem;
}
.a11y-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: var(--r-md);
  padding: .75rem .4rem;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  transition: all .2s var(--ease);
}
.a11y-opt:hover { border-color: var(--clay); color: var(--ink); }
.a11y-opt__ic { color: var(--clay); display: grid; place-items: center; }
.a11y-opt.is-on {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}
.a11y-opt.is-on .a11y-opt__ic { color: var(--ochre); }

.a11y-reset {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: var(--r-md);
  padding: .6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.a11y-reset:hover { background: var(--cream); color: var(--ink); }

.footer__a11y-link {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.footer__a11y-link:hover { text-decoration: underline; }
.footer__legal { display: inline-flex; gap: 1.1rem; align-items: center; }
.footer__addr { display: block; opacity: .85; }

/* ---- Accessibility modes applied to <html> ---- */
.a11y-readable, .a11y-readable * { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; }
.a11y-links a { text-decoration: underline !important; text-underline-offset: 2px; }
.a11y-links a:not(.btn) { color: var(--clay-dark) !important; }
.a11y-spacing p, .a11y-spacing li, .a11y-spacing span, .a11y-spacing a {
  letter-spacing: .03em !important;
  word-spacing: .12em !important;
  line-height: 1.9 !important;
}
.a11y-pause * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-pause .reveal { opacity: 1 !important; transform: none !important; }
.a11y-contrast { filter: contrast(1.25); }
.a11y-contrast body { background: #fff; }
.a11y-contrast .nav,
.a11y-contrast .footer { border-color: #000; }
.a11y-contrast p, .a11y-contrast li, .a11y-contrast span:not(.eyebrow),
.a11y-contrast h1, .a11y-contrast h2, .a11y-contrast h3, .a11y-contrast h4 { color: #14161a !important; }

@media (max-width: 560px) {
  .a11y-fab { width: 46px; height: 46px; }
}

/* ==========================================================================
   Legal / Privacy page
   ========================================================================== */
.container--narrow { max-width: 820px; }
.legal__intro {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.legal__block { margin-bottom: 2rem; }
.legal__block h2 {
  font-family: var(--font-display-he);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink);
  margin-bottom: .7rem;
}
html[lang="en"] .legal__block h2 { font-family: var(--font-display); }
.legal__block p {
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: 1.02rem;
}

/* ==========================================================================
   Investor portal — premium polish layer (v=34)
   Applies to the real dashboard (.pdash:not(.peek-pdash)) + login card.
   Static type refinements are shared so the homepage peek stays in sync.
   ========================================================================== */

/* Tabular, evenly-spaced figures everywhere numbers matter */
.psum__value, .pmetric__value, .pspecs dd, .pdash__hello b { font-variant-numeric: tabular-nums; }

/* Summary cards — refined labels + quiet hover lift */
.psum__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--muted);
}
.psum--accent .psum__label,
.psum--gain .psum__label { color: rgba(255,255,255,0.85); }
.pdash:not(.peek-pdash) .psummary { gap: 1.15rem; margin-bottom: 2.2rem; }
.pdash:not(.peek-pdash) .psum {
  position: relative;
  padding: 1.3rem 1.3rem 1.2rem;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.pdash:not(.peek-pdash) .psum::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--ochre));
  opacity: 0; transition: opacity 0.28s var(--ease);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.pdash:not(.peek-pdash) .psum:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pdash:not(.peek-pdash) .psum:hover::before { opacity: 1; }
.pdash:not(.peek-pdash) .psum--accent:hover { box-shadow: 0 14px 30px rgba(86,90,68,0.30); }
.pdash:not(.peek-pdash) .psum--gain { box-shadow: 0 10px 26px rgba(14,122,85,0.22); }
.pdash:not(.peek-pdash) .psum--gain:hover { box-shadow: 0 16px 34px rgba(14,122,85,0.30); }
.pdash:not(.peek-pdash) .psum--gain::before { display: none; }
.pdash:not(.peek-pdash) .psum__value { font-size: 1.7rem; letter-spacing: -0.01em; }

/* Greeting — airier spacing above the data band */
.pdash:not(.peek-pdash) .pdash__top { margin-bottom: 1.4rem; }
.pdash:not(.peek-pdash) .psection { margin-top: 0.4rem; }

/* Section intros — calmer, more readable lead text */
.pdash:not(.peek-pdash) .psection__intro {
  font-size: 1.02rem; line-height: 1.6; max-width: 60ch; color: var(--ink-soft);
}

/* Greeting — a touch more presence */
.pdash:not(.peek-pdash) .pdash__hello { letter-spacing: -0.01em; }

/* Tab bar — softer container, crisper active pill */
.pdash:not(.peek-pdash) .ptabs {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: inset 0 1px 2px rgba(34,37,44,0.04);
}
.pdash:not(.peek-pdash) .ptab.is-active {
  box-shadow: 0 4px 12px rgba(180,95,60,0.28);
}

/* Cards — display-font titles + a hairline of warmth */
.pdash:not(.peek-pdash) .pcard {
  transition: box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.pdash:not(.peek-pdash) .pcard:hover { box-shadow: var(--shadow-md); border-color: var(--cream-2); }
.pdash:not(.peek-pdash) .pcard__title {
  font-family: var(--font-display-he);
  font-weight: 700;
  letter-spacing: -0.005em;
  position: relative;
  padding-inline-start: 0.9rem;
}
/* a short warm accent bar before each section title — a crafted, app-like cue */
.pdash:not(.peek-pdash) .pcard__title::before {
  content: "";
  position: absolute; inset-inline-start: 0; top: 0.12em; bottom: 0.34em;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--clay), var(--ochre));
}
html[lang="en"] .pdash:not(.peek-pdash) .pcard__title { font-family: var(--font-display); }

/* Metric tiles — gentle separation from the card */
.pdash:not(.peek-pdash) .pmetric {
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s var(--ease);
}
.pdash:not(.peek-pdash) .pmetric:hover { border-color: var(--cream-2); }

/* Property pills — clearer selected state */
.pdash:not(.peek-pdash) .ppill.is-active {
  border-color: var(--clay);
  box-shadow: 0 6px 16px rgba(180,95,60,0.18);
}

/* ---- Login card — quietly premium ---- */
.portal__card {
  background: linear-gradient(180deg, #fff, var(--paper));
  border-color: var(--cream-2);
}
.portal__lock {
  background: linear-gradient(145deg, var(--night), var(--night-2));
  box-shadow: 0 8px 20px rgba(43,47,54,0.28);
}
.btn-google { border-radius: 12px; padding: 0.95rem 1.2rem; box-shadow: var(--shadow-sm); }
.portal__aside .eyebrow + h1 { letter-spacing: -0.015em; }

@media (max-width: 600px) {
  .pdash:not(.peek-pdash) .psum__value { font-size: 1.35rem; }
}

/* ==========================================================================
   Portal — mobile experience: simpler, lighter, far less scrolling.
   All rules below are phone-only and never touch the desktop layout.
   ========================================================================== */
@media (max-width: 680px) {
  /* ---- entry order: greeting → properties (count + swipeable photos) →
     collapsed stats → tabs → section. Numbers never greet the investor. ---- */
  .pdash:not(.peek-pdash) .container { display: flex; flex-direction: column; }
  .pdash:not(.peek-pdash) .padminbar { order: 0; }
  .pdash:not(.peek-pdash) .pdash__top { order: 1; }
  .pdash:not(.peek-pdash) .pdash__bar { order: 2; }
  .pdash:not(.peek-pdash) .psummary  { order: 3; }
  .pdash:not(.peek-pdash) .ptabs     { order: 4; }
  .pdash:not(.peek-pdash) .psection  { order: 5; }

  /* start the content higher up */
  .pdash:not(.peek-pdash) .pdash__top { margin-bottom: 1rem; }
  .pdash:not(.peek-pdash) .pdash__hello { font-size: 1.4rem; }
  .pdash:not(.peek-pdash) .pdash__since { font-size: 0.78rem; }
  .pdash:not(.peek-pdash) .pdash__avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 1.25rem; }
  .pdash:not(.peek-pdash) .pdash__id { gap: 0.7rem; }

  /* ---- summary: collapsed by default, sits below the photos ----
     The entry screen shows no figures at all. Tapping the toggle reveals every
     number in a tidy 2-up grid, so there are no big half-empty cards. */
  .pdash:not(.peek-pdash) .psummary {
    display: block; grid-template-columns: none;
    margin: 0 0 1.4rem;
  }
  .pdash:not(.peek-pdash) .psum { margin: 0; }
  .pdash:not(.peek-pdash) .psum:hover { transform: none; }

  /* the reveal toggle — a clear, full-width control */
  .pdash:not(.peek-pdash) .psum-toggle {
    display: flex; align-items: center; gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1.05rem;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 14px;
    font-family: inherit; font-size: 0.92rem; font-weight: 600;
    color: var(--ink); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  }
  .pdash:not(.peek-pdash) .psum-toggle__ic { color: var(--clay); flex: 0 0 auto; }
  .pdash:not(.peek-pdash) .psum-toggle__txt { flex: 1 1 auto; text-align: start; }
  .pdash:not(.peek-pdash) .psum-toggle__chev { flex: 0 0 auto; transition: transform 0.3s var(--ease); color: var(--ink-soft); }
  .pdash:not(.peek-pdash) .psum-toggle.is-open { background: var(--cream); border-color: var(--cream-2); }
  .pdash:not(.peek-pdash) .psum-toggle.is-open .psum-toggle__chev { transform: rotate(180deg); }

  /* collapsible 2-up grid of every number */
  .pdash:not(.peek-pdash) .psum-more {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem; margin-top: 0.7rem;
  }
  .pdash:not(.peek-pdash) .psum-more.is-open {
    display: grid;
    animation: psumReveal 0.32s var(--ease);
  }
  @keyframes psumReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  /* the green cashflow card leads, spanning the full width */
  .pdash:not(.peek-pdash) .psum-more .psum--gain { grid-column: 1 / -1; }
  .pdash:not(.peek-pdash) .psum-more .psum { padding: 0.9rem 1rem; }
  .pdash:not(.peek-pdash) .psum-more .psum--gain {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.9rem;
    padding: 1rem 1.15rem;
  }
  .pdash:not(.peek-pdash) .psum-more .psum--gain .psum__icon { margin: 0 0 0 0.2rem; order: 0; }
  .pdash:not(.peek-pdash) .psum-more .psum--gain .psum__label { order: 1; flex: 1 1 auto; margin: 0; }
  .pdash:not(.peek-pdash) .psum-more .psum--gain .psum__value { order: 2; }
  .pdash:not(.peek-pdash) .psum-more .psum--gain .psum__cap { order: 3; flex: 1 0 100%; }
  .pdash:not(.peek-pdash) .psum-more .psum__icon { width: 28px; height: 28px; margin-bottom: 0.5rem; border-radius: 9px; }
  .pdash:not(.peek-pdash) .psum-more .psum__icon svg { width: 15px; height: 15px; }
  .pdash:not(.peek-pdash) .psum-more .psum__label { font-size: 0.66rem; margin-bottom: 0.2rem; }
  .pdash:not(.peek-pdash) .psum-more .psum__value { font-size: 1.32rem; }
  .pdash:not(.peek-pdash) .psum-more .psum--gain .psum__value { font-size: 1.7rem; }
  .pdash:not(.peek-pdash) .psum-more .psum__cap { display: none; }
  .pdash:not(.peek-pdash) .psum-more .psum--gain .psum__cap { display: block; font-size: 0.7rem; margin-top: 0.25rem; }

  /* ---- properties: swipeable image cards ---- */
  .pdash .ppills {
    flex-wrap: nowrap; gap: 0.8rem; margin-bottom: 1.2rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 0.3rem;
  }
  .pdash .ppills::-webkit-scrollbar { display: none; }
  .pdash .ppill {
    flex: 0 0 76%; scroll-snap-align: center;
    display: block; padding: 0; overflow: hidden; border-radius: 16px;
  }
  .pdash .ppill:hover { transform: none; box-shadow: var(--shadow-sm); }
  .pdash .ppill__thumb { display: block; height: 140px; background: var(--cream); }
  .pdash .ppill__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* clean, centred address block — no more jumbled right/left/zip wrapping */
  .pdash .ppill__name {
    display: block; padding: 0.85rem 0.9rem 0;
    font-size: 1.08rem; font-weight: 700; line-height: 1.25;
    text-align: center; color: var(--ink);
  }
  .pdash .ppill__meta {
    display: block; padding: 0.25rem 0.9rem 0;
    font-size: 0.85rem; line-height: 1.35; color: var(--ink-soft);
    text-align: center; white-space: normal;
  }
  /* rental-status chip — centred below, with breathing room at the bottom */
  .pdash .ppill__status {
    display: block; width: fit-content; margin: 0.7rem auto 1.1rem;
    padding: 0.34rem 0.9rem; border-radius: 999px;
    font-size: 0.74rem; font-weight: 700;
    color: var(--gain-deep); background: rgba(26,160,109,0.14);
  }
  .pdash .ppill.is-active { box-shadow: 0 8px 22px rgba(180,95,60,0.20); }

  /* ---- financials: compact figures, the chart stays the hero ---- */
  /* headline tiles: small 2×2 cubes, not long rectangles */
  .fhead { gap: 0.6rem; margin-bottom: 1.1rem; }
  .ftile { padding: 0.75rem 0.55rem 0.75rem 0.8rem; border-radius: 12px; }
  .ftile::before { width: 4px; }
  .ftile:hover { transform: none; }
  .ftile__label { font-size: 0.66rem; margin-bottom: 0.22rem; }
  .ftile__value { font-size: 1.2rem; }

  /* bigger, readable donut stacked above its legend */
  .fdonut-wrap { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .fdonut { width: min(60vw, 220px); margin-inline: auto; }
  .flegend2 { width: 100%; min-width: 0; flex-basis: auto; gap: 0.15rem; }
  /* legend rows: tight, so no single line eats the screen */
  .fleg { font-size: 0.85rem; padding: 0.3rem 0.4rem; gap: 0.5rem; }
  .fleg__dot { width: 10px; height: 10px; }

  /* bars view: tighter rows */
  .fbars__row { margin-bottom: 0.55rem; }
  .fbars__label, .fbars__val { font-size: 0.82rem; }
}

/* ==========================================================================
   Kami — portfolio AI assistant (floating house character + chat)
   ========================================================================== */
.kbot-fab {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 1190;
  width: 60px; height: 60px; border-radius: 20px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(150deg, var(--clay), var(--clay-dark));
  box-shadow: 0 12px 30px rgba(180, 95, 60, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: kbotBob 3.6s var(--ease) infinite;
}
.kbot-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 40px rgba(180, 95, 60, 0.5); }
.kbot-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.kbot-fab__char { width: 38px; height: 38px; position: relative; z-index: 1; }
.kbot-fab__char .kbot-eye { transform-origin: center; animation: kbotBlink 4.2s steps(1, end) infinite; }
.kbot-fab__ping { position: absolute; inset: 0; border-radius: 20px; pointer-events: none; animation: kbotPing 2.8s ease-out infinite; }
@keyframes kbotBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes kbotBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes kbotPing { 0% { box-shadow: 0 0 0 0 rgba(180, 95, 60, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(180, 95, 60, 0); } }

.kbot {
  position: fixed; inset-inline-end: 20px; bottom: 92px; z-index: 1191;
  width: min(360px, calc(100vw - 40px));
  max-height: min(560px, calc(100dvh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg);
  animation: kbotIn 0.28s var(--ease);
}
.kbot[hidden] { display: none; }
@keyframes kbotIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.kbot__head {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem;
  background: linear-gradient(150deg, var(--clay), var(--clay-dark)); color: #fff;
}
.kbot__ava {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16); color: #fff;
}
.kbot__ava svg { width: 29px; height: 29px; }
.kbot__id { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.kbot__id b { font-family: var(--font-display); font-size: 1.02rem; }
html[lang="he"] .kbot__id b { font-family: var(--font-display-he); }
.kbot__id small { font-size: 0.74rem; opacity: 0.85; }
.kbot__close {
  margin-inline-start: auto; flex: 0 0 auto;
  width: 30px; height: 30px; border: none; border-radius: 9px;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.kbot__close:hover { background: rgba(255, 255, 255, 0.3); }
.kbot__log { flex: 1 1 auto; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.kbot__msg { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 15px; font-size: 0.92rem; line-height: 1.5; }
.kbot__msg--bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-start-start-radius: 5px; color: var(--ink); }
.kbot__msg--me { align-self: flex-end; background: linear-gradient(150deg, var(--gain), var(--gain-deep)); color: #fff; border-start-end-radius: 5px; }
.kbot__dots { display: inline-flex; gap: 4px; padding: 0.15rem 0; }
.kbot__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: kbotDots 1s infinite; }
.kbot__dots i:nth-child(2) { animation-delay: 0.15s; }
.kbot__dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes kbotDots { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.kbot__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; }
.kbot__chip {
  font-family: inherit; font-size: 0.78rem; font-weight: 600; color: var(--clay);
  background: rgba(180, 95, 60, 0.1); border: 1px solid rgba(180, 95, 60, 0.22);
  border-radius: 999px; padding: 0.38rem 0.7rem; cursor: pointer; transition: background 0.15s var(--ease);
}
.kbot__chip:hover { background: rgba(180, 95, 60, 0.17); }
.kbot__form { display: flex; gap: 0.5rem; padding: 0.7rem 1rem 1rem; border-top: 1px solid var(--line); }
.kbot__input {
  flex: 1 1 auto; min-width: 0; font-family: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.85rem;
}
.kbot__input:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.kbot__send {
  flex: 0 0 auto; width: 44px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(150deg, var(--clay), var(--clay-dark)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.kbot__send svg { width: 18px; height: 18px; }
/* in RTL the paper-plane glyph should point the other way */
html[dir="rtl"] .kbot__send svg { transform: scaleX(-1); }
@media (max-width: 480px) {
  .kbot { inset-inline: 10px; width: auto; bottom: 82px; }
  .kbot-fab { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .kbot-fab, .kbot-fab__char .kbot-eye, .kbot-fab__ping { animation: none; }
}

/* ==========================================================================
   Overview accordions (Key metrics / Property specs) — open on desktop,
   collapsible on mobile so the overview isn't heavy.
   ========================================================================== */
.pacc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  width: 100%; background: none; border: 0; padding: 0; cursor: default;
  text-align: start; font: inherit; color: inherit;
}
.pdash:not(.peek-pdash) .pacc__head .pcard__title { margin: 0; border-bottom: 0; padding-bottom: 0; flex: 1 1 auto; }
.pacc__chev { display: none; flex: 0 0 auto; color: var(--ink-soft); transition: transform 0.3s var(--ease); }
.pacc__body { margin-top: 1rem; }
@media (max-width: 680px) {
  .pacc__head { cursor: pointer; }
  .pacc__chev { display: block; }
  .pacc.is-open .pacc__chev { transform: rotate(180deg); }
  .pacc__body { display: none; margin-top: 0; }
  .pacc.is-open .pacc__body { display: block; margin-top: 1rem; }
}

/* AI "sparkles" badge on Kami — the universally recognised AI marker */
.kbot-fab__ai {
  position: absolute; top: -7px; inset-inline-end: -7px; z-index: 2;
  width: 25px; height: 25px; border-radius: 50%;
  background: #fff; color: var(--clay);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 9px rgba(20, 22, 27, 0.32), 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}
.kbot-fab__ai svg { width: 18px; height: 18px; }

/* ============================================================
   Investor portal, ROADMAP tab (the investor's journey)
   ============================================================ */
.rmap-track, .rmap-steps { list-style: none; margin: 0; padding: 0; }

/* hero with circular progress ring */
.rmap-hero {
  display: flex; align-items: center; gap: 22px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(200, 149, 74, 0.20), transparent 58%),
    linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff; border-radius: 22px; padding: 22px 26px; margin: 4px 0 22px;
  box-shadow: 0 18px 44px rgba(34, 37, 44, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden;
  animation: rmapIn 0.55s var(--ease) both;
}
.rmap-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent); opacity: 0.7; }
.rmap-ring { position: relative; width: 92px; height: 92px; flex: none; }
.rmap-ring svg { width: 100%; height: 100%; display: block; }
.rmap-ring__track { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 6; }
.rmap-ring__prog { fill: none; stroke: url(#rmapRingGrad); stroke-width: 6; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
  stroke-dasharray: var(--circ); stroke-dashoffset: var(--off);
  animation: rmapRing 1.1s var(--ease) both; }
@keyframes rmapRing { from { stroke-dashoffset: var(--circ); } }
.rmap-ring__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rmap-ring__val { font-weight: 800; font-size: 1.55rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.rmap-ring__val i { font-size: 0.6rem; font-style: normal; color: var(--ochre); vertical-align: super; margin-inline-start: 1px; }
.rmap-hero__now { min-width: 0; }
.rmap-hero__nowlabel { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); font-weight: 700; margin-bottom: 6px; }
.rmap-hero__nowtitle { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.rmap-hero__sub { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.66); margin-top: 7px; }
/* complete state */
.rmap-hero.is-complete {
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(255, 255, 255, 0.16), transparent 52%),
    linear-gradient(135deg, var(--gain-deep), var(--gain));
}
.rmap-hero.is-complete::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); }
.rmap-hero__badge { width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.rmap-hero__badge svg { width: 30px; height: 30px; color: #fff; }
.rmap-hero__title { margin: 0 0 5px; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; }
.rmap-hero.is-complete .rmap-hero__sub { margin: 0; color: rgba(255, 255, 255, 0.86); }

/* pyramid of the 4 building blocks */
.rmap-pyramid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 18px 22px; margin-bottom: 24px; background: linear-gradient(180deg, var(--paper), #fff); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); animation: rmapIn 0.55s var(--ease) 0.06s both; }
.rmap-pyramid__cap { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.rmap-tier { height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; font-weight: 700; font-size: 0.9rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); background: var(--card); border: 1.5px solid var(--line); color: var(--ink-soft); max-width: 100%; }
.rmap-tier__n { width: 23px; height: 23px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; flex: none; background: var(--cream); color: var(--ink); }
.rmap-tier__t { min-width: 0; overflow: hidden; }
.rmap-tier__t bdi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rmap-tier.is-done { background: linear-gradient(180deg, rgba(26, 160, 109, 0.11), rgba(26, 160, 109, 0.04)); border-color: rgba(26, 160, 109, 0.38); color: var(--gain-deep); }
.rmap-tier.is-done .rmap-tier__n { background: var(--gain); color: #fff; }
.rmap-tier.is-active { background: #fff; border-color: var(--ochre); color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 149, 74, 0.16), 0 9px 24px rgba(180, 95, 60, 0.16); transform: scale(1.025); }
.rmap-tier.is-active .rmap-tier__n { background: linear-gradient(135deg, var(--ochre), var(--clay)); color: #fff; }
.rmap-tier__chk { width: 18px; height: 18px; display: flex; color: var(--gain-deep); flex: none; }
.rmap-tier__chk svg { width: 16px; height: 16px; }

/* the journey track */
.rmap-phase { position: relative; animation: rmapIn 0.5s var(--ease) both; }
.rmap-phase:nth-child(1) { animation-delay: 0.10s; }
.rmap-phase:nth-child(2) { animation-delay: 0.15s; }
.rmap-phase:nth-child(3) { animation-delay: 0.20s; }
.rmap-phase:nth-child(4) { animation-delay: 0.25s; }
.rmap-phase:nth-child(5) { animation-delay: 0.30s; }
.rmap-phase:nth-child(6) { animation-delay: 0.35s; }
/* continuous journey spine in the gap under each marker */
.rmap-phase:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 34px; bottom: -1px; width: 2.5px; height: 16px; background: var(--line); border-radius: 2px; z-index: 0; }
.rmap-phase.is-done:not(:last-child)::after { background: var(--gain); }
.rmap-phase.is-active:not(:last-child)::after { background: linear-gradient(var(--ochre), var(--line)); }
.rmap-phase details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(34, 37, 44, 0.05); transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.rmap-phase.is-active details { border-color: rgba(200, 149, 74, 0.55); box-shadow: 0 0 0 1px rgba(200, 149, 74, 0.22), 0 14px 34px rgba(180, 95, 60, 0.12); }
@media (hover: hover) { .rmap-phase details:hover { box-shadow: 0 10px 26px rgba(34, 37, 44, 0.1); } }
.rmap-phase summary { list-style: none; display: block; }
.rmap-phase summary::-webkit-details-marker { display: none; }
.rmap-phase__head { display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; }
.rmap-phase__marker { width: 38px; height: 38px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; background: var(--cream); color: var(--ink); position: relative; z-index: 1; transition: transform 0.3s var(--ease); }
.rmap-phase.is-done .rmap-phase__marker { background: linear-gradient(135deg, var(--gain), var(--gain-deep)); color: #fff; box-shadow: 0 4px 12px rgba(14, 122, 85, 0.28); }
.rmap-phase.is-active .rmap-phase__marker { background: linear-gradient(135deg, var(--ochre), var(--clay)); color: #fff; box-shadow: 0 5px 16px rgba(180, 95, 60, 0.34); }
.rmap-phase__headtext { flex: 1; min-width: 0; }
.rmap-phase__tag { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rmap-phase__title { display: block; font-weight: 800; font-size: 1.04rem; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; margin-top: 1px; }
.rmap-phase__meta { display: block; font-size: 0.77rem; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.rmap-phase__badge { font-size: 0.7rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex: none; }
.rmap-badge--done { background: rgba(26, 160, 109, 0.12); color: var(--gain-deep); }
.rmap-badge--active { background: linear-gradient(135deg, rgba(200, 149, 74, 0.22), rgba(180, 95, 60, 0.16)); color: var(--clay-dark); }
.rmap-badge--upcoming { background: rgba(138, 135, 126, 0.1); color: var(--muted); }
.rmap-phase__chev { width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform 0.3s var(--ease); }
.rmap-phase details[open] .rmap-phase__chev { transform: rotate(180deg); }
.rmap-phase__body { padding: 0 16px 18px; }
.rmap-phase details[open] .rmap-phase__body { animation: rmapFade 0.35s var(--ease) both; }
.rmap-phase__intro { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; margin: 0 0 16px; padding-inline-start: 52px; }

/* steps */
.rmap-step { display: flex; gap: 14px; padding: 9px 0; position: relative; }
.rmap-step__dot { width: 26px; height: 26px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); background: var(--card); color: #fff; position: relative; z-index: 1; transition: all 0.3s var(--ease); }
.rmap-step__dot svg { width: 14px; height: 14px; }
.rmap-step:not(:last-child) .rmap-step__dot::after { content: ""; position: absolute; top: 26px; left: 50%; transform: translateX(-50%); width: 2px; height: calc(100% - 8px); background: var(--line); }
.rmap-step.is-done .rmap-step__dot { background: linear-gradient(135deg, var(--gain), var(--gain-deep)); border-color: var(--gain); box-shadow: 0 2px 8px rgba(14, 122, 85, 0.2); }
.rmap-step.is-done .rmap-step__dot::after { background: var(--gain); }
.rmap-step.is-skipped .rmap-step__dot { background: var(--muted); border-color: var(--muted); }
.rmap-step.is-current .rmap-step__dot { border-color: var(--ochre); background: #fff; box-shadow: 0 0 0 4px rgba(200, 149, 74, 0.16); }
.rmap-step__pulse { width: 11px; height: 11px; border-radius: 999px; background: linear-gradient(135deg, var(--ochre), var(--clay)); animation: rmapPulse 1.9s infinite; }
@keyframes rmapPulse { 0% { box-shadow: 0 0 0 0 rgba(200, 149, 74, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(200, 149, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 149, 74, 0); } }
.rmap-step__txt { padding-top: 2px; min-width: 0; }
.rmap-step__t { display: block; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.rmap-step.is-upcoming .rmap-step__t { color: var(--ink-soft); font-weight: 600; }
.rmap-step.is-upcoming .rmap-step__d { opacity: 0.85; }
.rmap-step__d { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.55; margin-top: 3px; }
.rmap-here { display: inline-flex; align-items: center; font-size: 0.66rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--clay), var(--clay-dark)); padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-inline-start: 8px; letter-spacing: 0.04em; box-shadow: 0 3px 9px rgba(151, 73, 42, 0.3); }
.rmap-opt { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }

/* goal */
.rmap-phase__goal { display: flex; gap: 11px; align-items: flex-start; margin: 16px 0 0; padding: 13px 15px; background: linear-gradient(180deg, var(--paper), rgba(231, 215, 186, 0.34)); border: 1px solid var(--line); border-radius: 13px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; }
.rmap-phase__goal svg { width: 18px; height: 18px; flex: none; color: var(--clay); margin-top: 1px; }
.rmap-phase__goal b { color: var(--ink); }
.rmap-phase.is-bonus details { border-style: dashed; }

/* ---- the winding journey MAP (road weaving between stops) ---- */
.rmap-map { position: relative; margin: 10px 0 6px; animation: rmapIn 0.55s var(--ease) 0.06s both; }
.rmap-road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.rmap-road path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.rmap-road__edge { stroke: #D8C4A0; stroke-width: 21; }
.rmap-road__base { stroke: var(--paper); stroke-width: 16; }
.rmap-road__done { stroke: url(#rmapRoadGrad); stroke-width: 16; animation: rmapFadeIn 0.9s var(--ease) both; }
.rmap-road__dash { stroke: rgba(255, 255, 255, 0.82); stroke-width: 2.6; stroke-dasharray: 8 13; }
@keyframes rmapFadeIn { from { opacity: 0; } }

.rmap-node { position: absolute; inset-inline: 0; height: 0; z-index: 2; }
/* game-style coin / medal nodes */
.rmap-node__dot { width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; position: absolute; left: var(--x); top: 0; transform: translate(-50%, -50%); transition: transform 0.25s var(--ease);
  background: radial-gradient(circle at 33% 27%, #fff, #ECE2CC 74%); border: 3px solid #fff; color: var(--muted);
  box-shadow: 0 6px 14px rgba(34, 37, 44, 0.16), inset 0 -3px 6px rgba(0, 0, 0, 0.07), inset 0 3px 5px rgba(255, 255, 255, 0.7); }
.rmap-node__dot svg { width: 20px; height: 20px; }
.rmap-node__dot svg.rmap-ic { width: 19px; height: 19px; }
/* done = glossy green medal */
.rmap-node.is-done .rmap-node__dot { color: #fff; border-color: #E6F5EE; background: radial-gradient(circle at 33% 27%, #46c997, var(--gain) 55%, var(--gain-deep));
  box-shadow: 0 7px 16px rgba(14, 122, 85, 0.38), inset 0 -3px 6px rgba(8, 70, 48, 0.38), inset 0 3px 6px rgba(255, 255, 255, 0.45); }
.rmap-node.is-skipped .rmap-node__dot { color: #fff; border-color: #efece4; background: radial-gradient(circle at 33% 27%, #b8b5ac, var(--muted)); }
/* locked upcoming */
.rmap-node.is-upcoming .rmap-node__dot { color: var(--muted); }
/* the next level glows to invite the player onward */
.rmap-node.is-next .rmap-node__dot { color: var(--clay); box-shadow: 0 0 0 4px rgba(200, 149, 74, 0.22), 0 6px 16px rgba(180, 95, 60, 0.22), inset 0 3px 5px rgba(255, 255, 255, 0.7); animation: rmapNext 2.2s ease-in-out infinite; }
@keyframes rmapNext { 0%, 100% { box-shadow: 0 0 0 4px rgba(200, 149, 74, 0.16), 0 6px 16px rgba(180, 95, 60, 0.18), inset 0 3px 5px rgba(255, 255, 255, 0.7); } 50% { box-shadow: 0 0 0 8px rgba(200, 149, 74, 0.3), 0 8px 20px rgba(180, 95, 60, 0.3), inset 0 3px 5px rgba(255, 255, 255, 0.7); } }
/* goal / destination flag */
.rmap-node.is-goal.is-upcoming .rmap-node__dot { color: #fff; border-color: #FBEFD6; background: radial-gradient(circle at 33% 27%, #F2C879, #C8954A 68%, #A6772F); box-shadow: 0 7px 16px rgba(166, 119, 47, 0.4), inset 0 -3px 6px rgba(120, 80, 20, 0.32), inset 0 3px 6px rgba(255, 255, 255, 0.5); }
/* current = big glowing level the player stands on */
.rmap-node.is-current .rmap-node__dot { width: 62px; height: 62px; color: var(--clay); border-color: #fff; background: radial-gradient(circle at 33% 27%, #fff, #FBEFD6 76%);
  box-shadow: 0 0 0 6px rgba(200, 149, 74, 0.2), 0 0 22px rgba(200, 149, 74, 0.45), 0 11px 26px rgba(180, 95, 60, 0.3); animation: rmapGlow 2s ease-in-out infinite; }
@keyframes rmapGlow { 0%, 100% { box-shadow: 0 0 0 6px rgba(200, 149, 74, 0.18), 0 0 18px rgba(200, 149, 74, 0.4), 0 11px 26px rgba(180, 95, 60, 0.28); } 50% { box-shadow: 0 0 0 9px rgba(200, 149, 74, 0.26), 0 0 32px rgba(200, 149, 74, 0.62), 0 13px 30px rgba(180, 95, 60, 0.36); } }
.rmap-node.is-current .rmap-step__pulse { width: 18px; height: 18px; }
/* Kami avatar standing on the current level */
.rmap-node__avatar { position: absolute; left: var(--x); top: 0; transform: translate(-50%, -50%) translateY(-54px); width: 44px; height: 44px; display: flex; align-items: flex-end; justify-content: center; color: var(--clay); animation: rmapBob 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(34, 37, 44, 0.24)); z-index: 4; pointer-events: none; }
.rmap-node__char { width: 100%; height: 100%; }
@keyframes rmapBob { 0%, 100% { transform: translate(-50%, -50%) translateY(-54px); } 50% { transform: translate(-50%, -50%) translateY(-60px); } }

/* ---- roadmap view toggle (road / pyramid) ---- */
.rmap-seg { display: flex; width: max-content; max-width: 100%; margin: 4px auto 20px; gap: 4px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.rmap-seg__btn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); padding: 0.5rem 1.1rem; border-radius: 999px; transition: all 0.2s var(--ease); }
.rmap-seg__btn svg { width: 17px; height: 17px; }
.rmap-seg__btn:hover { color: var(--ink); }
.rmap-seg__btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---- building-block gate bands on the road ---- */
.rmap-gate { position: absolute; inset-inline: 5%; top: 0; transform: translateY(-50%); z-index: 1; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 15px; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--bc); box-shadow: 0 8px 20px rgba(34, 37, 44, 0.12); }
.rmap-gate__num { width: 34px; height: 34px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.02rem; color: #fff; background: var(--bc); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); }
.rmap-gate__txt { flex: 1; min-width: 0; }
.rmap-gate__tag { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bc); }
.rmap-gate__title { display: block; font-size: 0.92rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.rmap-gate__status { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 0.68rem; font-weight: 800; color: var(--muted); }
.rmap-gate__ic { width: 18px; height: 18px; display: flex; }
.rmap-gate__ic svg { width: 16px; height: 16px; }
.rmap-gate.is-done .rmap-gate__status { color: var(--gain-deep); }
.rmap-gate.is-active { border-inline-start-width: 5px; box-shadow: 0 10px 28px rgba(34, 37, 44, 0.18); }
.rmap-gate.is-active .rmap-gate__status { color: var(--bc); }
.rmap-gate.is-upcoming { opacity: 0.94; }
.rmap-gate.is-upcoming .rmap-gate__num { background: var(--muted); }

/* ---- pyramid view (brand's 4 building blocks, tan/brown, clickable) ---- */
.rmap-pyr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 12px; animation: rmapIn 0.5s var(--ease) both; }
.rmap-pyr__apex { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.rmap-pyr__apex svg { width: 30px; height: 30px; }
.rmap-pyr__apex.is-done { color: var(--gain-deep); }
/* each tier is a clickable <details>; the bar is sized to the pyramid width */
.rmap-pyr__tier { width: 100%; display: flex; flex-direction: column; align-items: center; }
.rmap-pyr__bar { width: var(--w); max-width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 13px; background: var(--bc); color: var(--tc); cursor: pointer; list-style: none; box-shadow: 0 5px 14px rgba(58, 42, 24, 0.2); border: 2px solid transparent; transition: all 0.2s var(--ease); }
.rmap-pyr__bar::-webkit-details-marker { display: none; }
.rmap-pyr__bar:hover { filter: brightness(1.04); }
.rmap-pyr__n { width: 32px; height: 32px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; color: #5a4426; background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.rmap-pyr__btxt { flex: 1; min-width: 0; text-align: start; display: flex; flex-direction: column; }
.rmap-pyr__name { font-size: 0.95rem; font-weight: 800; line-height: 1.2; }
.rmap-pyr__cnt { font-size: 0.72rem; font-weight: 600; opacity: 0.88; font-variant-numeric: tabular-nums; }
.rmap-pyr__st { flex: none; display: flex; align-items: center; }
.rmap-pyr__st svg { width: 18px; height: 18px; }
.rmap-pyr__st .rmap-step__pulse { width: 12px; height: 12px; }
.rmap-pyr__chev { width: 16px; height: 16px; flex: none; opacity: 0.7; transition: transform 0.25s var(--ease); }
.rmap-pyr__tier[open] .rmap-pyr__chev { transform: rotate(180deg); }
.rmap-pyr__tier.is-active .rmap-pyr__bar { border-color: #fff; box-shadow: 0 0 0 3px rgba(200, 149, 74, 0.45), 0 9px 24px rgba(58, 42, 24, 0.3); }
.rmap-pyr__tier.is-upcoming .rmap-pyr__bar { opacity: 0.6; }
/* drill-down step list */
.rmap-pyr__steps { list-style: none; margin: 8px auto 4px; padding: 10px 16px; width: min(94%, 480px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); animation: rmapFade 0.3s var(--ease) both; }
.rmap-pyr__step { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rmap-pyr__step:last-child { border-bottom: 0; }
.rmap-pyr__sdot { width: 25px; height: 25px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); background: #fff; color: #fff; }
.rmap-pyr__sdot svg { width: 13px; height: 13px; }
.rmap-pyr__step.is-done .rmap-pyr__sdot { background: var(--gain); border-color: var(--gain); }
.rmap-pyr__step.is-skipped .rmap-pyr__sdot { background: var(--muted); border-color: var(--muted); }
.rmap-pyr__step.is-current .rmap-pyr__sdot { border: 0; background: transparent; color: var(--ochre); }
.rmap-pyr__step.is-current .rmap-pyr__sdot svg { width: 22px; height: 22px; }
.rmap-pyr__stxt { flex: 1; min-width: 0; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.rmap-pyr__step.is-upcoming .rmap-pyr__stxt { color: var(--muted); font-weight: 500; }
.rmap-pyr__sdate { flex: none; font-size: 0.72rem; font-weight: 700; color: var(--gain-deep); font-variant-numeric: tabular-nums; }
.rmap-pyr__wip { display: inline-block; font-size: 0.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ochre), var(--clay)); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-inline-start: 6px; }
/* financing = a more serious "milestone" sub-step inside Safe Transaction */
.rmap-pyr__step.is-key { background: rgba(200, 149, 74, 0.1); border-radius: 9px; border-bottom-color: transparent; padding-inline: 8px; }
.rmap-pyr__step.is-key .rmap-pyr__sdot { border: 0; background: transparent; color: var(--clay); }
.rmap-pyr__step.is-key .rmap-pyr__sdot svg { width: 21px; height: 21px; }
.rmap-pyr__step.is-key .rmap-pyr__stxt { font-weight: 800; }
.rmap-pyr__keytag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ochre), var(--clay)); padding: 2px 8px; border-radius: 999px; margin-inline-start: 6px; vertical-align: middle; }
.rmap-pyr__keytag svg { width: 12px; height: 12px; }
.rmap-pyr__st .rmap-ic circle { opacity: 0.55; }
.rmap-pyr__base { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 13px; background: var(--cream); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }
.rmap-pyr__base.is-done { background: var(--gain-soft); color: var(--gain-deep); border-color: rgba(26, 160, 109, 0.32); }
.rmap-pyr__baseic { display: inline-flex; align-items: center; width: 18px; height: 18px; }
.rmap-pyr__baseic svg { width: 16px; height: 16px; }
.rmap-pyr__bonus { font-size: 0.74rem; font-weight: 700; color: var(--bc); background: #fff; border: 1px dashed var(--bc); border-radius: 999px; padding: 5px 14px; margin-top: 4px; }
.rmap-pyr__bonus.is-upcoming { color: var(--muted); border-color: var(--line); }
.rmap-pyr__hint { display: inline-flex; align-items: center; gap: 6px; margin: 12px auto 0; font-size: 0.76rem; color: var(--muted); }
.rmap-pyr__hint svg { width: 15px; height: 15px; }

/* labels live in the outer margin, beside the dot, clear of the central road */
.rmap-node__label { position: absolute; top: 0; transform: translateY(-50%); }
.rmap-node.side-l .rmap-node__label { left: 2%; right: calc(100% - var(--x) + 38px); text-align: right; }
.rmap-node.side-r .rmap-node__label { right: 2%; left: calc(var(--x) + 38px); text-align: left; }
.rmap-node__phase { font-size: 0.61rem; font-weight: 800; letter-spacing: 0.03em; color: var(--clay-dark); background: rgba(180, 95, 60, 0.1); padding: 3px 9px; border-radius: 999px; margin-bottom: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmap-node__title { font-size: 0.83rem; font-weight: 700; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rmap-node.is-upcoming .rmap-node__title { color: var(--muted); font-weight: 600; }
.rmap-node__desc { font-size: 0.74rem; color: var(--ink-soft); line-height: 1.45; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rmap-node__date { display: block; font-size: 0.69rem; font-weight: 700; color: var(--gain-deep); font-variant-numeric: tabular-nums; margin-top: 2px; }
.rmap-node__here { display: inline-block; font-size: 0.64rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--clay), var(--clay-dark)); padding: 3px 11px; border-radius: 999px; box-shadow: 0 3px 9px rgba(151, 73, 42, 0.3); margin-bottom: 4px; }
.rmap-node__key { display: inline-flex; align-items: center; gap: 4px; font-size: 0.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ochre), var(--clay)); padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; box-shadow: 0 3px 8px rgba(180, 95, 60, 0.25); }
.rmap-node__key svg { width: 12px; height: 12px; }
.rmap-node.is-upcoming.is-key .rmap-node__dot { color: var(--clay); border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(200, 149, 74, 0.3), 0 6px 16px rgba(180, 95, 60, 0.22), inset 0 3px 5px rgba(255, 255, 255, 0.7); }
.rmap-node.is-upcoming.is-key .rmap-node__dot svg { width: 22px; height: 22px; }

@keyframes rmapIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes rmapFade { from { opacity: 0; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .rmap-hero, .rmap-pyramid, .rmap-phase, .rmap-phase__body, .rmap-ring__prog, .rmap-step__pulse, .rmap-map, .rmap-road__done, .rmap-node__dot, .rmap-node__avatar { animation: none !important; }
}

@media (max-width: 560px) {
  .rmap-node__dot { width: 40px; height: 40px; }
  .rmap-node.is-current .rmap-node__dot { width: 54px; height: 54px; }
  .rmap-node__avatar { width: 38px; height: 38px; }
  .rmap-node.side-l .rmap-node__label { right: calc(100% - var(--x) + 30px); }
  .rmap-node.side-r .rmap-node__label { left: calc(var(--x) + 30px); }
  .rmap-node__title { font-size: 0.76rem; }
  .rmap-node__desc { font-size: 0.7rem; }
}

@media (max-width: 560px) {
  .rmap-hero { padding: 18px; gap: 16px; }
  .rmap-ring { width: 76px; height: 76px; }
  .rmap-ring__val { font-size: 1.3rem; }
  .rmap-hero__nowtitle { font-size: 1.05rem; }
  .rmap-phase__intro { padding-inline-start: 0; }
  .rmap-tier { font-size: 0.8rem; height: 42px; }
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20, 22, 27, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(20, 22, 27, 0.34); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 720px) {
  .wa-float { width: 50px; height: 50px; bottom: 16px; left: 16px; }
}

/* ============================================================
   Roadmap, Hebrew-first hierarchy: the Hebrew title leads,
   the English label becomes a quiet small tag
   ============================================================ */
html[lang="he"] .rstage__en {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.72;
  line-height: 1.4;
}
html[lang="he"] .rstage__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0.15rem 0 0.7rem;
}

/* Project tile caption: address always readable over the photo */
.project__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(20, 22, 27, 0.72), rgba(20, 22, 27, 0));
  color: #FDFAF4;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  pointer-events: none;
}
.project__caption strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.project__caption span { font-size: 0.8rem; opacity: 0.85; }

/* ============================================================
   Landing page (Instagram link-in-bio) — process at a glance
   ============================================================ */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.lp-step {
  text-align: center;
  padding: 1.8rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lp-step__n {
  width: 40px; height: 40px;
  margin: 0 auto 0.9rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--clay-soft, rgba(180,95,60,0.12));
  color: var(--clay);
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
}
.lp-step h3 { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.lp-more { text-align: center; }
@media (max-width: 760px) {
  .lp-steps { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .lp-step { padding: 1.3rem 0.8rem; }
  .lp-step h3 { font-size: 0.95rem; }
}

/* Roadmap pyramid caption — labels what the pyramid represents */
.rmp__label {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

/* Who-it's-for: 3 centered cards with a touch of colour variety per icon */
.fit-grid--color {
  grid-template-columns: repeat(3, 1fr);
  max-width: 860px;
  margin-inline: auto;
}
.fit-grid--color .fit-card:nth-child(1) .fit-card__ico { background: rgba(110,114,87,0.15); color: var(--sage); }
.fit-grid--color .fit-card:nth-child(2) .fit-card__ico { background: var(--denim-soft); color: var(--denim); }
.fit-grid--color .fit-card:nth-child(3) .fit-card__ico { background: rgba(200,149,74,0.20); color: #9a6c22; }
@media (max-width: 760px) {
  .fit-grid--color { grid-template-columns: 1fr; }
}

/* ============================================================
   Roadmap page — direct-response landing bits
   (audience qualifier, objection-killers, pain → turn → promise)
   ============================================================ */
.lp-qual {
  display: inline-block;
  background: rgba(110, 114, 87, 0.16);
  color: var(--sage);
  font-weight: 700;
  font-size: clamp(0.86rem, 1.4vw, 0.98rem);
  line-height: 1.5;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.lp-nos {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}
.lp-nos li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.lp-nos__x {
  width: 19px; height: 19px; flex: none;
  border-radius: 50%;
  background: rgba(180, 95, 60, 0.14);
  color: var(--clay);
  display: grid; place-items: center;
}
.lp-nos__x svg { width: 11px; height: 11px; }
.lp-proof {
  margin: 1.3rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* pain → turn → promise */
.lp-pain { max-width: 64ch; }
.lp-pain__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.lp-pain__list li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.8rem;
  align-items: start; font-size: 1.04rem; line-height: 1.55; color: var(--ink);
}
.lp-pain__ic {
  width: 22px; height: 22px; flex: none; margin-top: 3px;
  border-radius: 50%;
  background: rgba(180, 95, 60, 0.12);
  color: var(--clay);
  display: grid; place-items: center;
}
.lp-pain__ic svg { width: 12px; height: 12px; }
.lp-turn {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 500;
  color: var(--ink);
  margin: 2.1rem 0 0.7rem;
  letter-spacing: -0.01em;
}
.lp-promise { font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); margin: 0; max-width: 62ch; }
@media (max-width: 640px) {
  .lp-nos { gap: 0.5rem 1rem; }
  .lp-nos li { font-size: 0.9rem; }
}

/* ============================================================
   "התהליך" v2 — lighter, clearer, colour-coded journey
   One accent per phase · numbered nodes · less visual noise.
   Applies the design pass: single focal point per row, colour
   used to convey the 4 building blocks, decorative clutter cut.
   ============================================================ */
:root {
  --rm-intro: #6E7257; /* sage  · onboarding */
  --rm-1: #B45F3C;     /* clay  · foundation */
  --rm-2: #C8954A;     /* ochre · acquisition */
  --rm-3: #8A5A7A;     /* plum  · transaction */
  --rm-4: #1AA06D;     /* green · cashflow */
  --rm-bonus: #C8954A; /* ochre · bonus */
}

/* 1 — drop the oversized ghost watermark number (main source of "heavy") */
.rstage__ghost { display: none !important; }

/* 2 — markers become bold numbered nodes, filled in the phase colour */
.rstage__marker svg { display: none; }
.rstage__marker {
  border-width: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.6vw, 2rem);
  background: var(--rm-intro);
}
.rstage__marker::before { content: ""; line-height: 1; }
.rstage--intro .rstage__marker { background: var(--rm-intro); }
.rstage--intro .rstage__marker::before { content: "•"; font-size: 1.6em; }
#stage-1 .rstage__marker { background: var(--rm-1); } #stage-1 .rstage__marker::before { content: "1"; }
#stage-2 .rstage__marker { background: var(--rm-2); } #stage-2 .rstage__marker::before { content: "2"; }
#stage-3 .rstage__marker { background: var(--rm-3); } #stage-3 .rstage__marker::before { content: "3"; }
#stage-4 .rstage__marker { background: var(--rm-4); } #stage-4 .rstage__marker::before { content: "4"; }
.rstage--bonus .rstage__marker { background: var(--rm-bonus); border-style: solid; }
.rstage--bonus .rstage__marker::before { content: "+"; }
/* active node: lift + glow, keep its phase colour (no recolour to clay) */
.rstage.is-active .rstage__marker { transform: scale(1.06); box-shadow: 0 0 0 6px var(--paper), var(--shadow-md); }
.rstage--intro.is-active .rstage__marker { background: var(--rm-intro); }
.rstage--bonus.is-active .rstage__marker { background: var(--rm-bonus); }

/* 3 — card gets a clean coloured top cap matching its phase */
.rstage--intro .rstage__card { border-top: 3px solid var(--rm-intro); }
#stage-1 .rstage__card { border-top: 3px solid var(--rm-1); }
#stage-2 .rstage__card { border-top: 3px solid var(--rm-2); }
#stage-3 .rstage__card { border-top: 3px solid var(--rm-3); }
#stage-4 .rstage__card { border-top: 3px solid var(--rm-4); }
.rstage--bonus .rstage__card { border-top: 3px solid var(--rm-bonus); }

/* 4 — the scroll spine draws through the real phase colours */
.rmap__progress {
  background: linear-gradient(180deg, var(--rm-intro), var(--rm-1) 26%, var(--rm-2) 48%, var(--rm-3) 72%, var(--rm-4));
}

/* 5 — English code line: a quiet coloured eyebrow, never a 2nd heading */
.rstage__en { opacity: 0.9; }
#stage-1 .rstage__en { color: var(--rm-1); }
#stage-2 .rstage__en { color: #9a6c22; }
#stage-3 .rstage__en { color: var(--rm-3); }
#stage-4 .rstage__en { color: var(--rm-4); }

/* 6 — mobile: roomier stepper, one clear focal point per row */
@media (max-width: 600px) {
  .rstage { padding-inline-start: 62px; padding-bottom: 1.5rem; }
  .rmap::before, .rmap__progress { inset-inline-start: 23px; }
  .rstage__marker { width: 46px; height: 46px; font-size: 1.4rem; }
  html[lang="he"] .rstage__en { font-size: 0.68rem; letter-spacing: 0.08em; }
  html[lang="he"] .rstage__title { font-size: 1.28rem; }
  .rstage__card { padding: 1.25rem 1.2rem 1.35rem; }
  .rstage__summary .rstage__hint { font-size: 0.82rem; }
}

/* ============================================================
   Portal — monthly investor checklist (collapsible, resets monthly)
   ============================================================ */
.pchecklist {
  margin: 0 0 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.pchecklist.is-complete { border-color: rgba(26, 160, 109, 0.4); }
.pcheck-head {
  width: 100%;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1.05rem;
  background: none; border: 0; cursor: pointer; text-align: start;
  font-family: inherit;
}
.pcheck-head__ic {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: rgba(200, 149, 74, 0.15);
  color: #9a6c22;
  display: grid; place-items: center;
}
.pcheck-head__ic svg { width: 19px; height: 19px; }
.pchecklist.is-complete .pcheck-head__ic { background: var(--gain-soft); color: var(--gain-deep); }
.pcheck-head__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin-inline-end: auto; }
.pcheck-head__title { font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.pcheck-head__sub { font-size: 0.78rem; color: var(--ink-soft); }
.pcheck-count {
  flex: none;
  font-weight: 700; font-size: 0.8rem; color: var(--ink-soft);
  background: var(--cream);
  border-radius: 999px; padding: 0.2rem 0.65rem;
  font-variant-numeric: tabular-nums;
}
.pchecklist.is-complete .pcheck-count { background: var(--gain-soft); color: var(--gain-deep); }
.pcheck-chev { flex: none; color: var(--ink-soft); transition: transform 0.35s var(--ease); }
.pcheck-head.is-open .pcheck-chev { transform: rotate(180deg); }
.pcheck-body { padding: 0 1.05rem 1.1rem; border-top: 1px solid var(--line); }
.pcheck-intro { margin: 0.9rem 0 1rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.pcheck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.pcheck-lab {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  border-radius: 11px;
  background: var(--cream);
  transition: background 0.2s var(--ease);
}
.pcheck-lab:hover { background: rgba(200, 149, 74, 0.1); }
.pcheck-box { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pcheck-mark {
  width: 24px; height: 24px; flex: none; margin-top: 1px;
  border-radius: 7px;
  border: 2px solid var(--line);
  background: #fff;
  display: grid; place-items: center; color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pcheck-mark svg { width: 15px; height: 15px; opacity: 0; transform: scale(0.55); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.pcheck-box:checked + .pcheck-mark { background: var(--gain-deep); border-color: var(--gain-deep); }
.pcheck-box:checked + .pcheck-mark svg { opacity: 1; transform: scale(1); }
.pcheck-box:focus-visible + .pcheck-mark { outline: 2px solid var(--clay); outline-offset: 2px; }
.pcheck-txt { display: flex; flex-direction: column; gap: 2px; }
.pcheck-txt strong { font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: color 0.2s var(--ease); }
.pcheck-txt small { font-size: 0.83rem; color: var(--ink-soft); line-height: 1.5; }
.pcheck-box:checked ~ .pcheck-txt strong { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.22); }
.pcheck-alldone { margin: 1rem 0 0; font-weight: 600; font-size: 0.9rem; color: var(--gain-deep); text-align: center; }

/* ===== Landing lead form (roadmap / process page) ===== */
#lead { scroll-margin-top: 90px; }
.lp-cta1 { text-align: center; margin-top: clamp(1.5rem, 3vw, 2.2rem); }

.lp-lead {
  max-width: 620px;
  margin: 0 auto;
  background: linear-gradient(180deg, #FFFDF9, #FBF4E8);
  border: 1px solid rgba(122, 90, 62, 0.16);
  border-radius: 22px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 26px 60px -34px rgba(90, 62, 38, 0.5);
  text-align: center;
}
.lp-lead__head h2 { margin: 0 0 0.6rem; }
.lp-lead__head p { color: var(--muted); max-width: 44ch; margin: 0 auto 1.7rem; line-height: 1.6; }
.lp-lead__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; text-align: right; }
.lp-lead__form .field { margin: 0; }
.lp-lead__btn { width: 100%; margin-top: 1.1rem; justify-content: center; }
.lp-lead .form-result { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.2em; }
.lp-lead__note { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }
.lp-lead__note a { color: var(--clay); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  .lp-lead__fields { grid-template-columns: 1fr; }
}

/* ===== /start VSL landing page ===== */
.lp2-hero {
  text-align: center;
  padding: clamp(2.4rem, 6vw, 4.4rem) 0 clamp(1rem, 3vw, 1.8rem);
  background: linear-gradient(180deg, #FBF4E8 0%, var(--paper) 100%);
}
.lp2-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--clay);
  background: rgba(180, 95, 60, 0.10);
  border: 1px solid rgba(180, 95, 60, 0.20);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.lp2-h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.13;
  letter-spacing: -0.01em;
  max-width: 21ch;
  margin: 0 auto 1rem;
}
.lp2-sub {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 1.5rem;
}
.lp2-hero .lp-nos { justify-content: center; }

.lp2-core { padding-top: clamp(1rem, 3vw, 1.6rem); }
.lp2-core__head { text-align: center; max-width: 42ch; margin: 0 auto clamp(1.3rem, 3vw, 2rem); }
.lp2-core__head h2 { margin: 0.5rem 0 0; }

/* Video slot (upload assets/video/vsl.mp4 to publish) */
.lp-video {
  max-width: 780px;
  margin: 0 auto clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 20px;
  overflow: hidden;
  background: #1c1a17;
  box-shadow: 0 30px 70px -30px rgba(60, 40, 22, 0.6);
  border: 1px solid rgba(122, 90, 62, 0.18);
}
.lp-video__el {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1c1a17;
}

/* Wrapped-label fields inside the inline lead forms */
.lp-lead .field { margin: 0; text-align: right; }
.lp-lead .field > span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.lp-lead--wide { max-width: 680px; }

/* Hero CTA row */
.lp2-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
}
.lp2-trust {
  margin: 0.95rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
@media (max-width: 480px) {
  .lp2-hero__cta { width: 100%; }
  .lp2-hero__cta .btn { width: 100%; justify-content: center; }
}

/* ===== Live mortgage card (portal financials) ===== */
.fmort__flow { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.fmort__stat { display: flex; flex-direction: column; gap: 0.22rem; flex: 1; min-width: 0; }
.fmort__stat-lbl { font-size: 0.78rem; color: var(--ink-soft); }
.fmort__stat-val { font-weight: 700; letter-spacing: -0.01em; }
.fmort__stat-val--start { font-size: 1.15rem; color: var(--ink-soft); }
.fmort__stat-val--now { font-size: clamp(1.5rem, 5.4vw, 2.05rem); color: var(--ink); line-height: 1; }
.fmort__arrow { color: var(--clay); flex: none; display: grid; place-items: center; opacity: 0.75; }
.fmort__bar { height: 8px; border-radius: 999px; background: rgba(122, 90, 62, 0.14); overflow: hidden; margin: 1.1rem 0 0.9rem; }
.fmort__bar > span { display: block; height: 100%; border-radius: 999px; background: var(--gain-deep); transition: width 0.6s ease; }
.fmort__built-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.85rem; background: rgba(110, 114, 87, 0.09); border-radius: 12px; }
.fmort__built-lbl { font-size: 0.86rem; color: var(--ink-soft); }
.fmort__built { font-size: 1.2rem; font-weight: 700; color: var(--gain-deep); white-space: nowrap; }
.fmort__built::before { content: "↓ "; font-size: 0.85em; }
.fmort__split { font-size: 0.9rem; color: var(--ink-soft); margin: 0.75rem 0 0; line-height: 1.55; }
.fmort__split b { color: var(--gain-deep); }
.fmort__note { font-size: 0.8rem; color: var(--muted); margin: 0.55rem 0 0; }
.fyield__note { font-size: 0.82rem; color: var(--ink-soft); margin: 0.9rem 0 0; padding-top: 0.7rem; border-top: 1px dashed var(--line); line-height: 1.5; }
.pmetric__sub { display: block; margin-top: 0.25rem; font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.fmorthist th:last-child, .fmorthist td:last-child { font-weight: 600; color: var(--ink); }
.fnote--zest { font-size: 0.82rem; color: var(--ink-soft); }
