/* דירומה · דף הבית.
   World: an architectural drawing sheet. Cool drafting white with a millimetre grid, navy ink for walls
   and type, and the coral of a change pin as the only accent. The hero is one scroll-driven render
   sequence (the sales plan rising into a home); everything around it stays quiet. */
@font-face { font-family: 'Assistant'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/assistant-hebrew-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/assistant-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --sheet: #f5f6f7;
  --paper: #ffffff;
  --ink: #16202c;
  --ink-2: #364150;
  --muted: #5b6676;
  --line: rgba(22, 32, 44, 0.14);
  --grid: rgba(22, 32, 44, 0.045);
  --grid-strong: rgba(22, 32, 44, 0.085);
  --pin: #e2583a;
  --pin-strong: #c9462b;
  --pin-soft: #fbe4dc;
  --font: 'Assistant', system-ui, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: max(16px, 4vw);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #9aa3ae transparent; }
body {
  margin: 0; background: var(--sheet); color: var(--ink); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--pin-soft); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.grid-paper {
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 12px; font: 700 1.0625rem/1 var(--font); text-decoration: none; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 140ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn.pin { background: var(--pin-strong); color: #fff; box-shadow: 0 1px 2px rgba(150, 50, 25, 0.25), 0 8px 20px rgba(201, 70, 43, 0.26); }
.btn.line { background: rgba(255, 255, 255, 0.72); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 1rem; border-radius: 10px; }
@media (hover: hover) {
  .btn.pin:hover { background: #b43c23; }
  .btn.line:hover { background: #fff; }
}

/* ---------------------------------------------------------------- top bar */
.bar {
  position: fixed; inset-inline: 0; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px;
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.bar.solid { background: rgba(245, 246, 247, 0.88); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; }
.bar nav { display: flex; gap: 22px; margin-inline-start: auto; }
.bar nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.98rem; }
.bar nav a:hover { color: var(--ink); }
.bar > .btn { flex: none; }
@media (max-width: 760px) { .bar nav { display: none; } .bar > .btn { margin-inline-start: auto; } }

/* ---------------------------------------------------------------- hero: the sequence */
.hero { position: relative; }
.stage { position: relative; padding-top: 72px; }
.seq .hero { height: 560vh; }
.seq .stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; padding-top: 0; }
.stage { background-color: var(--sheet); }
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.frame { position: relative; }
.seq .frame { position: absolute; inset: 0; }
#seq { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.poster-wrap { display: contents; }
.poster { position: relative; display: block; width: min(92vw, 640px); height: auto; margin: 96px auto 0; border-radius: 10px; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.tag-synth { position: absolute; font-size: 0.78rem; color: var(--muted); background: rgba(245, 246, 247, 0.8); padding: 2px 8px; border-radius: 6px; }
.frame > .tag-synth { inset-inline-start: 16px; bottom: 16px; }

.copy { position: relative; z-index: 3; padding: 32px var(--gutter) 64px; display: grid; gap: 48px; max-width: 640px; }
.copy h1 { font-size: clamp(2.4rem, 4.4vw, 4.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.copy h2 { font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.copy .lede { margin-top: 18px; font-size: clamp(1.08rem, 1.25vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 34ch; }
.copy .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.copy .note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); max-width: 40ch; }
.cue { display: none; }

/* scroll-driven mode (set by landing.js when motion is allowed) */
.seq .poster { display: none; }
.seq #seq { display: block; }
.seq .copy { position: absolute; display: block; padding: 0; inset-inline-start: max(var(--gutter), 5vw); top: 50%; width: min(36vw, 520px); max-width: none; transform: translateY(-46%); }
.seq .phase { position: absolute; inset-inline: 0; top: 50%; transform: translateY(calc(-50% + 18px)); opacity: 0; visibility: hidden;
  transition: opacity 520ms var(--ease), transform 620ms var(--ease), visibility 0s linear 620ms; }
.seq .phase.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity 520ms var(--ease), transform 620ms var(--ease), visibility 0s; }
.seq-init .phase { transition: none !important; }
.seq .cue { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seq .frame > .tag-synth { inset-inline-start: auto; bottom: auto; }

/* last phase sits on the full-bleed interior photo */
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 500ms var(--ease);
  background: linear-gradient(270deg, rgba(10, 16, 24, 0.66) 0%, rgba(10, 16, 24, 0.38) 34%, rgba(10, 16, 24, 0) 62%); z-index: 2; }
.stage.is-photo::after { opacity: 1; }
.stage.is-photo .phase.final { color: #fff; }
.stage.is-photo .phase.final .lede { color: rgba(255, 255, 255, 0.9); }
.stage.is-photo .btn.line.on-photo { background: rgba(10, 16, 24, 0.28); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9); }

/* labels drawn over the sequence */
.room-lbl { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; font-size: 0.86rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink);
  transform: translate(-50%, -50%); transition: opacity 260ms var(--ease); text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 2px #fff; }
.room-lbl em { display: block; font-style: normal; font-weight: 600; font-size: 0.78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pin-lbl { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 11px 6px 8px;
  background: var(--paper); color: var(--ink); border-radius: 10px; font-size: 0.92rem; font-weight: 600;
  box-shadow: 0 1px 2px rgba(22, 32, 44, 0.12), 0 10px 26px rgba(22, 32, 44, 0.16); transition: opacity 280ms var(--ease); }
.pin-lbl b { direction: ltr; font-size: 0.8rem; font-weight: 800; color: #fff; background: var(--pin-strong); border-radius: 6px; padding: 2px 7px; font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  .seq .hero { height: 470vh; }
  .seq .copy { inset-inline: var(--gutter); top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); width: auto; transform: none; min-height: 40dvh; }
  .seq .phase { top: auto; bottom: 0; transform: translateY(16px); }
  .seq .phase.is-on { transform: none; }
  .copy h1 { font-size: clamp(2rem, 8.4vw, 2.8rem); }
  .copy h2 { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .copy .lede { margin-top: 12px; font-size: 1.02rem; max-width: none; }
  .copy .ctas { margin-top: 18px; }
  .copy .ctas .btn { flex: 1 1 auto; }
  .seq .cue { margin-top: 16px; }
  .stage::after { background: linear-gradient(0deg, rgba(10, 16, 24, 0.72) 0%, rgba(10, 16, 24, 0.4) 42%, rgba(10, 16, 24, 0) 70%); }
  .pin-lbl { font-size: 0.82rem; padding: 4px 9px 4px 6px; }
  .pin-lbl.short { gap: 0; padding: 4px; }
  .pin-lbl.short span { display: none; }
  .room-lbl { font-size: 0.74rem; }
  .room-lbl em { font-size: 0.68rem; }
}

/* ---------------------------------------------------------------- sections */
.sheet { padding-block: clamp(80px, 11vw, 148px); background: var(--sheet); border-top: 1px solid var(--line); }
.sheet h2, .vision h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; max-width: 20ch; }
.sheet .sub { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }

/* the problem, set as a drawing's revision table */
.revs { width: 100%; margin-top: clamp(36px, 5vw, 64px); border-collapse: collapse; border-top: 2px solid var(--ink); }
.revs thead th { text-align: start; font-size: 0.85rem; font-weight: 700; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--ink); }
.revs tbody th { text-align: start; vertical-align: top; width: 32%; padding: 26px 0 26px 24px; font-size: 1.3rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.revs tbody td { padding: 26px 0; color: var(--ink-2); max-width: 60ch; border-bottom: 1px solid var(--line); }
.revs tbody th { border-bottom: 1px solid var(--line); }
@media (max-width: 680px) {
  .revs thead { display: none; }
  .revs tr { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .revs tbody th, .revs tbody td { display: block; width: auto; padding: 0; border: 0; }
  .revs tbody td { margin-top: 6px; }
}

/* how it works: four stations on one dimension line */
.steps { list-style: none; margin: clamp(44px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; inset-inline: 22px; height: 1px; background: var(--ink); }
.steps li { position: relative; min-width: 0; }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; position: relative; }
.steps li:first-child .n { background: var(--pin-strong); color: #fff; box-shadow: none; }
.steps h3 { margin-top: 22px; font-size: 1.3rem; line-height: 1.25; font-weight: 800; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { top: 22px; bottom: 22px; inset-inline-start: 21px; inset-inline-end: auto; width: 1px; height: auto; }
  .steps li { padding-inline-start: 66px; }
  .steps .n { position: absolute; inset-inline-start: 0; top: 0; }
  .steps h3 { margin-top: 8px; }
}

/* one decisive photograph */
.photo { position: relative; height: min(84vh, 820px); min-height: 460px; overflow: hidden; background: #c9cfd6; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(10, 16, 24, 0.62), rgba(10, 16, 24, 0.12) 58%, rgba(10, 16, 24, 0)); }
.photoCopy { position: absolute; z-index: 1; inset-inline-start: var(--gutter); bottom: clamp(32px, 6vw, 72px); max-width: 520px; color: #fff; display: grid; gap: 14px; justify-items: start; }
.photoCopy h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.photoCopy p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); max-width: 36ch; }
.photo > .tag-synth { z-index: 1; inset-inline-end: 16px; bottom: 16px; }
@media (max-width: 680px) { .photo::after { background: linear-gradient(0deg, rgba(10, 16, 24, 0.72), rgba(10, 16, 24, 0) 70%); } }

/* two sides: two documents */
.docs { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.doc { background: var(--paper); border-radius: 6px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 1px 2px rgba(22, 32, 44, 0.08), 0 18px 44px rgba(22, 32, 44, 0.1); min-width: 0; }
.doc:nth-child(2) { transform: translateY(28px); }
.doc header { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.doc header b { font-size: 0.95rem; color: var(--pin-strong); font-weight: 800; }
.doc header span { font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.doc ul { list-style: none; margin: 0; padding: 0; }
.doc li { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc li:last-child { border-bottom: 0; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } .doc:nth-child(2) { transform: none; } }

/* vision: the one dark field on the page */
.vision { background: var(--ink); color: #fff; padding-block: clamp(96px, 13vw, 180px); }
.vision h2 { max-width: 18ch; }
.vision p { margin-top: 22px; font-size: 1.2rem; color: rgba(255, 255, 255, 0.82); max-width: 56ch; }
.vision .btn { margin-top: 34px; }
.vision :focus-visible { outline-color: #fff; }

/* footer as the plan's title block */
.titleblock { padding-block: 48px calc(env(safe-area-inset-bottom, 0px) + 48px); background: var(--sheet); }
.tb { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); border: 1.5px solid var(--ink); padding: 0; margin-inline: var(--gutter); max-width: calc(1160px - 2 * var(--gutter)); }
@media (min-width: 1160px) { .tb { margin-inline: auto; } }
.cell { padding: 18px 20px; border-inline-start: 1px solid var(--ink); display: grid; align-content: start; gap: 6px; min-width: 0; }
.cell:first-child { border-inline-start: 0; }
.cell small { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.cell b { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.cell span { font-size: 0.95rem; color: var(--ink-2); }
.cell p { font-size: 0.88rem; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 760px) { .tb { grid-template-columns: 1fr; } .cell { border-inline-start: 0; border-top: 1px solid var(--ink); } .cell:first-child { border-top: 0; } }

/* ---------------------------------------------------------------- secondary link next to the one main button */
.copy .ctas { align-items: center; }
.alt { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(22, 32, 44, 0.35); }
.alt:hover { text-decoration-color: currentColor; }
.stage.is-photo .phase.final .alt { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.6); }
@media (max-width: 899px) { .seq .phase.final .alt { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.6); } .copy .ctas .alt { flex: 1 1 100%; justify-content: center; } }

/* ---------------------------------------------------------------- contractors */
.ctGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ctList { list-style: none; margin: 28px 0 0; padding: 0; }
.ctList li { position: relative; padding: 12px 26px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ctList li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--pin); box-shadow: 0 0 0 3px var(--pin-soft); }
.ctPilot { margin-top: 18px; font-weight: 700; }
.ctForm { background: var(--paper); border-radius: 8px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 1px 2px rgba(22, 32, 44, 0.08), 0 18px 44px rgba(22, 32, 44, 0.1); display: grid; gap: 14px; border-top: 4px solid var(--pin); }
.ctForm h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.lf { display: grid; gap: 6px; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.lf input, .lf textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff; border: 1.5px solid rgba(22, 32, 44, 0.28); border-radius: 10px; padding: 11px 12px; min-height: 46px; }
.lf input[dir="ltr"] { text-align: right; }
.lf textarea { resize: vertical; min-height: 88px; }
.lf input:focus-visible, .lf textarea:focus-visible { outline: 3px solid rgba(43, 92, 138, 0.35); outline-offset: 1px; border-color: #2b5c8a; }
.lf input[aria-invalid="true"] { border-color: #b3261e; }
.lfRow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lfHint { font-size: 0.88rem; color: var(--muted); }
.ctForm .btn { justify-self: start; }
.ctForm .btn[disabled] { opacity: 0.6; }
.lfMsg:empty { display: none; }
.lfMsg { padding: 12px 14px; border-radius: 10px; font-weight: 700; background: #e8f4ee; color: #1d6b47; }
.lfMsg.bad { background: #fdecea; color: #a12a1f; }
.lfPriv { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.lfPriv a, .tbLinks a { color: inherit; text-underline-offset: 3px; }
.tbLinks { margin-top: 6px; font-weight: 700; }
@media (max-width: 860px) { .ctGrid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .lfRow { grid-template-columns: 1fr; } .ctForm .btn { justify-self: stretch; } }

/* ---------------------------------------------------------------- skip link + legal pages */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
main:focus { outline: none; }
.legal { padding-block: 120px 96px; background: var(--paper); min-height: 100vh; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.legal .upd { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.legal .lead { margin-top: 22px; font-size: 1.2rem; color: var(--ink-2); }
.legal h2 { margin-top: 40px; padding-top: 18px; border-top: 1.5px solid var(--ink); font-size: 1.35rem; font-weight: 800; }
.legal p, .legal li { margin-top: 10px; color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-inline-start: 22px; }
.legalPage .bar { background: rgba(245, 246, 247, 0.92); }

/* ---------------------------------------------------------------- preferences */
@media (prefers-reduced-motion: reduce) {
  .btn, .bar, .phase, .pin-lbl, .room-lbl, .stage::after { transition: none !important; }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .bar.solid { background: var(--sheet); backdrop-filter: none; -webkit-backdrop-filter: none; } }
