/* ============================================================
   בית הסיפורים — "Museum of a Living Life" design system (R1)
   docs/redesign-plan.md · approved 2026-07-08.
   Dark espresso exhibition chrome; paper artifacts; aged gold.
   Surfaces: [data-surface="wall"] (default, dark museum) and
   [data-surface="paper"] (subject portal — light, huge type).
   ============================================================ */

:root {
  --wall: #221B15; --wall-deep: #1A1410;
  --paper: #F6F0E4; --paper-soft: #EFE6D3;
  --gold: #C9A45C; --gold-deep: #A97E2F;
  /* a filled button carrying pale text: --gold-deep there is 3.46:1, this is 4.8:1 */
  --gold-btn: #8C6725;
  /* gold for text on paper: --gold-deep there is 3.2:1, this is 5.6:1 */
  --gold-ink: #7A5A1F;
  --majorelle: #3D5FC4; --terra: #B0673F;
  --ink: #241E18; --mist: rgba(246, 240, 228, .62);
  --line: rgba(201, 164, 92, .25);
  --font-display: 'Bellefair', 'David Libre', serif;
  --font-body: 'Frank Ruhl Libre', serif;
  --font-ui: 'Heebo', sans-serif;
  --ok: #8fd49a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- keyboard: seeing where you are, and getting past the bar ----------
   The ring is gold on the dark wall (7.2:1) and the deeper gold ink on a
   paper card (5.6:1), since gold on paper is only 2.1:1 and a focus ring
   nobody can see is no focus ring. A container that paints itself paper
   redefines --focus-ring and everything inside it inherits the change. */
:root { --focus-ring: var(--gold); }
.artifact, .gal figure, .chat-msg.a, [data-surface="paper"] { --focus-ring: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }
/* A browser that has no :focus-visible still shows the ring on focus. */
@supports not selector(:focus-visible) {
  a:focus, button:focus, input:focus, textarea:focus, select:focus, summary:focus { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
}

/* First thing the keyboard reaches: a jump past the bar to the page itself.
   Off-screen until focused, then it lands in the corner where it is read. */
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 1000;
  display: inline-flex; align-items: center; min-height: 48px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  font-family: var(--font-ui); font-size: 17px; font-weight: 600; padding: 12px 22px;
}
.skip-link:focus { inset-inline-start: 0; }
/* main takes focus when the skip link is followed; it shows no ring for
   that, since nobody tabbed to it. :focus-visible would not fire here
   anyway, but Safari has shown a ring on a programmatic focus. */
main:focus { outline: none; }
body {
  font-family: var(--font-body);
  background: var(--wall); color: var(--paper);
  min-height: 100vh; overflow-x: hidden; position: relative;
  line-height: 1.75;
}
/* atmosphere: film grain + vignette */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .5; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(12, 8, 5, .55) 100%);
}
.stage { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 40px 90px; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.r { opacity: 0; animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
@media (prefers-reduced-motion: reduce) { .r { animation: none; opacity: 1; } }

/* ---------- top bar ---------- */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-family: var(--font-ui); font-size: 16px; color: var(--gold); display: flex; gap: 14px; align-items: center; text-decoration: none; min-height: 44px; }
.brand .dot { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.bar nav { display: flex; gap: 0 26px; align-items: center; font-family: var(--font-ui); font-size: 16px; color: var(--mist); flex-wrap: wrap; }
.bar nav a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.bar nav a:hover, .bar nav a.on { color: var(--gold); }
/* the hub's sign-out: a form post that reads as one more nav item */
.bar nav form { display: contents; }
.bar nav button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; min-height: 44px; min-width: 44px; }
.bar nav button:hover { color: var(--gold); }

/* Hebrew is never letter-spaced (its letters then read as separate glyphs);
   the English pages keep the spaced capitals of their brand and labels. */
:lang(en) .brand, :lang(en) .kicker { letter-spacing: .42em; }
:lang(en) .artifact .label { letter-spacing: .3em; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; padding: 70px 0 26px; }
.kicker { font-family: var(--font-ui); font-size: 16px; color: var(--gold); margin-bottom: 20px; }
h1.display { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 8vw, 100px); line-height: 1.04; text-wrap: balance; }
h1.display em { font-style: normal; color: var(--gold); }
.meta { font-family: var(--font-ui); font-size: 16px; color: var(--mist); margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; }
.meta b { color: var(--paper); }

/* paper quote artifact */
.artifact { background: var(--paper); color: var(--ink); padding: 34px 34px 24px; position: relative; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); transform: rotate(-1.2deg); }
.artifact::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(169, 126, 47, .35); pointer-events: none; }
.artifact .label { font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: var(--gold-ink); margin-bottom: 14px; }
.artifact blockquote { font-size: 20px; line-height: 1.8; font-weight: 500; }
.artifact blockquote::before { content: '״'; color: var(--gold-deep); font-size: 32px; font-family: var(--font-display); }
.artifact .row { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--font-ui); font-size: 16px; color: #6b5b46; flex-wrap: wrap; }
/* the editor's call to action: a button, not a line of small text */
.artifact .cta { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 22px; border-radius: 8px; background: var(--ink); color: var(--paper); font-family: var(--font-ui); font-weight: 600; font-size: 17px; text-decoration: none; }
.artifact .cta:hover { background: #3a3027; }
.artifact .cta:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.artifact .play { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); border: none; display: grid; place-items: center; font-size: 16px; }
.artifact .soon { border: 1px dashed var(--gold-deep); border-radius: 999px; padding: 2px 10px; color: var(--gold-ink); }

/* read by a screen reader, not shown */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- bookshelf ---------- */
.shelf-wrap { margin: 60px 0 8px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }
.shelf-head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.shelf-head span { font-family: var(--font-ui); font-size: 16px; color: var(--mist); }
.shelf-head .key { white-space: nowrap; }
/* in a line of text: underlined, because its colour against the text
   around it is 1.1:1 — colour alone does not say it is a link */
.shelf-link { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.shelf { display: flex; gap: 10px; align-items: flex-end; padding: 0 6px; }
.spine { flex: 1; min-width: 0; overflow: hidden; height: 170px; border-radius: 4px 4px 0 0; position: relative; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, rgba(246, 240, 228, .06), rgba(246, 240, 228, .03)); border: 1px solid rgba(246, 240, 228, .12); }
.spine i { writing-mode: vertical-rl; font-style: normal; font-family: var(--font-ui); font-size: 16px; line-height: 1.2; color: var(--mist); padding-bottom: 12px; }
.spine.full { background: linear-gradient(180deg, #D9B876, #A97E2F); border-color: var(--gold); box-shadow: 0 8px 26px rgba(201, 164, 92, .25); }
.spine.full i { color: #1d1712; font-weight: 600; }
.spine.part { background: linear-gradient(180deg, rgba(217, 184, 118, .4) 40%, rgba(246, 240, 228, .05) 40%); }
/* the status mark at the top of a spine, so colour is not the only cue */
.spine .mark { position: absolute; top: 10px; inset-inline: 0; text-align: center; font-family: var(--font-ui); font-size: 16px; font-weight: 700; line-height: 1; color: var(--mist); }
.spine.full .mark { color: #1d1712; }
.spine.part .mark { color: var(--paper); }
a.spine { text-decoration: none; }
a.spine:hover { transform: translateY(-4px); transition: transform .2s; }
.ledge { height: 10px; background: linear-gradient(180deg, #3a2e22, #241b12); border-radius: 2px; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }

/* ---------- rooms grid ---------- */
.rooms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 60px; }
.room { position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 24px; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--paper); background: linear-gradient(180deg, rgba(246, 240, 228, .04), rgba(246, 240, 228, .015)); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.room:hover { transform: translateY(-4px); border-color: var(--gold); }
.room .num { position: absolute; top: 16px; inset-inline-start: 20px; font-family: var(--font-display); font-size: 17px; color: var(--gold); }
.room h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin-bottom: 6px; }
.room p { font-family: var(--font-ui); font-size: 16px; color: var(--mist); line-height: 1.65; }
.room.big { grid-column: span 3; min-height: 230px; }
.room.med { grid-column: span 2; }
.room.sml { grid-column: span 2; }
/* the family hub: three or four halls fill their rows, with no empty cell */
.rooms.halls-3 > .room { grid-column: span 2; }
.rooms.halls-4 > .room { grid-column: span 3; }
.room.photo::before { content: ''; position: absolute; inset: 0; background: var(--img) center/cover; opacity: .5; transition: opacity .3s; }
.room.photo:hover::before { opacity: .72; }
.room.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 20, 16, .15), rgba(26, 20, 16, .92) 78%); }
.room.photo h3, .room.photo p, .room.photo .num { position: relative; z-index: 2; }
.badge { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; font-family: var(--font-ui); font-size: 16px; border: 1px dashed var(--gold); color: var(--gold); border-radius: 999px; padding: 2px 12px; background: rgba(26, 20, 16, .6); }
.live-dot { position: absolute; top: 16px; inset-inline-end: 14px; z-index: 2; font-family: var(--font-ui); font-size: 16px; color: var(--ok); display: flex; gap: 6px; align-items: center; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6fbf7d; box-shadow: 0 0 10px #6fbf7d; }

/* ---------- section head ---------- */
.sec { margin-top: 70px; }
.sec > h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin-bottom: 6px; }
.sec > .sub { font-family: var(--font-ui); font-size: 16px; color: var(--mist); margin-bottom: 22px; max-width: 680px; }
.notice a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gal figure { margin: 0; background: var(--paper); padding: 9px 9px 0; cursor: zoom-in; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); transition: transform .25s; }
.gal figure:hover { transform: rotate(0) translateY(-4px); }
.gal img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; filter: sepia(.12); }
.gal figcaption { font-family: var(--font-ui); font-size: 16px; color: #6b5b46; padding: 8px 2px 10px; text-align: center; }
.lightbox { position: fixed; inset: 0; background: rgba(12, 8, 5, .93); display: none; align-items: center; justify-content: center; padding: 34px; z-index: 999; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 920px; text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; box-shadow: 0 12px 46px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: var(--paper); font-family: var(--font-ui); font-size: 16px; margin-top: 16px; }
.lightbox .lb-close { position: absolute; top: 18px; inset-inline-end: 24px; background: none; border: none; color: var(--paper); font-size: 32px; cursor: pointer; }

/* ---------- chat (talk to the biography) ---------- */
.chat-box { background: rgba(246, 240, 228, .04); border: 1px solid var(--line); border-radius: 8px; padding: 22px; max-width: 760px; }
.chat-suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chat-chip { font-family: var(--font-ui); font-size: 16px; color: var(--gold); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer; min-height: 44px; }
.chat-chip:hover { border-color: var(--gold); }
.chat-thread { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.chat-thread:not(:empty) { margin-bottom: 14px; }
.chat-msg { font-family: var(--font-ui); font-size: 17px; line-height: 1.7; padding: 11px 15px; border-radius: 10px; max-width: 88%; }
.chat-msg.q { align-self: flex-start; background: var(--gold-deep); color: #1d1712; }
.chat-msg.a { align-self: flex-end; background: var(--paper); color: var(--ink); }
.chat-msg.a.wait { opacity: .65; font-style: italic; }
.chat-msg a { color: var(--gold-ink); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.chat-msg .cite { font-size: 16px; color: var(--gold-ink); margin-top: 6px; }
.chat-label { display: block; font-family: var(--font-ui); font-size: 16px; color: var(--mist); margin-bottom: 8px; }
.chat-input-row { display: flex; gap: 10px; }
.chat-input-row input { flex: 1; min-width: 0; min-height: 48px; font-family: var(--font-ui); font-size: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: rgba(246, 240, 228, .06); color: var(--paper); }
.chat-input-row input::placeholder { color: var(--mist); }
.chat-input-row input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.chat-input-row button { font-family: var(--font-ui); font-weight: 600; font-size: 16px; background: var(--gold); color: #2c2113; border: none; border-radius: 8px; padding: 10px 22px; cursor: pointer; white-space: nowrap; min-height: 48px; }
.chat-input-row button:hover { background: #D9B876; }

/* ---------- footer ---------- */
.foot { margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; font-family: var(--font-ui); font-size: 16px; color: var(--mist); }
.foot a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============================================================
   PAPER SURFACE — the storyteller's portal (light, huge, calm)
   ============================================================ */
[data-surface="paper"] { background: var(--paper); color: var(--ink); }
[data-surface="paper"]::before { opacity: .35; }
[data-surface="paper"]::after { background: radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(120, 90, 40, .12) 100%); }
[data-surface="paper"] .bar { border-bottom-color: rgba(169, 126, 47, .3); }
[data-surface="paper"] .bar nav { color: #6b5b46; }
[data-surface="paper"] .brand { color: var(--gold-ink); }
[data-surface="paper"] .brand .dot { background: var(--gold-deep); }
[data-surface="paper"] .kicker { color: var(--terra); }
[data-surface="paper"] .meta { color: #6b5b46; }
[data-surface="paper"] .meta b { color: var(--ink); }
[data-surface="paper"] .big-btn { display: block; background: var(--terra); color: #FFF7EC; border-radius: 14px; padding: 26px 30px; font-family: var(--font-ui); font-weight: 600; font-size: 24px; text-align: center; text-decoration: none; margin: 14px 0; box-shadow: 0 10px 26px rgba(176, 103, 63, .35); }
[data-surface="paper"] .big-btn.alt { background: var(--paper-soft); color: var(--ink); border: 2px solid rgba(169, 126, 47, .4); box-shadow: none; }
[data-surface="paper"] .big-btn:hover { filter: brightness(1.05); }
[data-surface="paper"] .told { background: #FFFDF6; border: 1px solid rgba(169, 126, 47, .3); border-radius: 12px; padding: 24px 28px; font-size: 21px; line-height: 1.9; }
[data-surface="paper"] .told .t { font-family: var(--font-ui); font-size: 16px; color: var(--terra); margin-bottom: 10px; }
[data-surface="paper"] .spine { border-color: rgba(36, 30, 24, .18); background: linear-gradient(180deg, rgba(36, 30, 24, .05), rgba(36, 30, 24, .02)); }
[data-surface="paper"] .spine i { color: #6b5b46; }
[data-surface="paper"] .spine.full { background: linear-gradient(180deg, #D9B876, #A97E2F); }
[data-surface="paper"] .shelf-head span { color: #6b5b46; }
[data-surface="paper"] .foot { color: #6b5b46; border-top-color: rgba(169, 126, 47, .3); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stage { padding: 0 20px 70px; }
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .room.big, .room.med, .room.sml { grid-column: span 2; }
  .rooms.halls-3 > .room, .rooms.halls-4 > .room { grid-column: span 2; }
  .shelf { gap: 4px; padding: 0; }
}
/* a phone: ten spines in one row are 31 px wide, narrower than a fingertip,
   so the shelf holds two rows of five, each row on its own ledge */
@media (max-width: 600px) {
  .shelf { flex-wrap: wrap; row-gap: 14px; background: repeating-linear-gradient(180deg, transparent 0 160px, #3a2e22 160px 168px, transparent 168px 174px); }
  .spine { flex: 0 0 calc((100% - 16px) / 5); min-width: 44px; height: 160px; }
}

/* ---------- book format picker (download section) ---------- */
.designs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.design-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; background: rgba(246,240,228,.04); transition: transform .25s, border-color .25s; }
.design-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.design-cover { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; }
.design-cover .nm { font-size: 26px; }
.design-cover .yr { font-size: 16px; letter-spacing: .15em; opacity: .8; }
.design-cover .band { position: absolute; inset-inline: 0; height: 8px; opacity: .6; }
.design-cover .band.top { top: 0; } .design-cover .band.bottom { bottom: 0; }
.design-meta { padding: 12px 16px; font-family: var(--font-ui); }
.design-meta .t { font-size: 17px; font-weight: 600; color: var(--paper); }
.design-meta .s { font-size: 16px; color: var(--mist); margin-top: 2px; line-height: 1.6; }
.design-save { margin-top: 18px; font-family: var(--font-ui); }
.design-save fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px 20px; }
.design-save legend { padding: 0 6px; color: var(--paper); font-size: 16px; }
.design-save label { font-size: 16px; color: var(--mist); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.dl-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-family: var(--font-ui); }
.dl-btn { display: inline-flex; align-items: center; min-height: 48px; background: var(--gold); color: #2c2113; border: none; border-radius: 8px; padding: 8px 22px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.dl-btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--line); }
.dl-btn:hover { filter: brightness(1.08); }
.dl-note { align-self: center; font-size: 16px; color: var(--mist); line-height: 1.7; }

/* ============================================================
   MARKETING (R2) — public pages on the museum system
   ============================================================ */
.m-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 84px 0 36px; }
.m-hero .sub { font-family: var(--font-ui); font-size: 16.5px; color: var(--mist); line-height: 1.9; margin-top: 24px; max-width: 560px; }
.btn-gold { display: inline-block; font-family: var(--font-ui); font-weight: 600; font-size: 16px; background: var(--gold); color: #2c2113; border: none; border-radius: 8px; padding: 14px 30px; text-decoration: none; cursor: pointer; }
.btn-gold:hover { background: #D9B876; }
.btn-ghost { display: inline-block; font-family: var(--font-ui); font-weight: 600; font-size: 16px; color: var(--gold); border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 28px; text-decoration: none; }
.btn-ghost:hover { border-color: var(--gold); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.btn-note { font-family: var(--font-ui); font-size: 16px; color: var(--mist); margin-top: 12px; }
.stat-strip { display: flex; gap: 48px; border-block: 1px solid var(--line); padding: 26px 6px; margin: 46px 0 8px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-size: 44px; font-weight: 400; color: var(--gold); line-height: 1.1; }
.stat span { font-family: var(--font-ui); font-size: 16px; color: var(--mist); }
/* steps rail (how-it-works) */
.rail { position: relative; padding-right: 64px; margin-top: 40px; }
.rail::before { content: ''; position: absolute; right: 24px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.rstep { position: relative; margin-bottom: 44px; }
.rstep .n { position: absolute; right: -64px; top: -4px; width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: #2c2113; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; box-shadow: 0 0 0 6px var(--wall), 0 8px 20px rgba(0,0,0,.4); }
.rstep h2 { font-family: var(--font-display); font-size: 27px; font-weight: 400; margin-bottom: 6px; }
.rstep p { font-family: var(--font-ui); font-size: 16px; color: var(--mist); line-height: 1.8; max-width: 560px; }
/* lead form (dark) */
form.lead { max-width: 560px; display: flex; flex-direction: column; gap: 16px; font-family: var(--font-ui); }
form.lead label { font-size: 16px; font-weight: 600; color: var(--mist); display: block; margin-bottom: 6px; }
form.lead input[type=text], form.lead input[type=email], form.lead textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--paper);
  background: rgba(246,240,228,.05); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
form.lead input:focus, form.lead textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
form.lead textarea { min-height: 110px; resize: vertical; }
form.lead .radio-row { display: flex; gap: 22px; font-size: 16px; color: var(--paper); }
form.lead .radio-row label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; color: var(--paper); }
form.lead fieldset { border: none; }
form.lead legend { font-size: 16px; font-weight: 600; color: var(--mist); margin-bottom: 8px; }
#lead-msg { display: none; font-size: 16px; padding: 12px 16px; border-radius: 8px; }
#lead-msg.ok { display: block; background: rgba(111,191,125,.15); color: var(--ok); }
#lead-msg.err { display: block; background: rgba(224,138,132,.15); color: #E08A84; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 720px; }
.ccard2 { border: 1px solid var(--line); border-radius: 8px; padding: 22px; font-family: var(--font-ui); background: rgba(246,240,228,.04); }
.ccard2 h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.ccard2 p { font-size: 16px; color: var(--mist); line-height: 1.7; }
.ccard2 a { color: var(--gold); font-size: 16px; text-decoration: none; direction: ltr; display: inline-block; margin-top: 10px; }
.cta-band { text-align: center; padding: 76px 0 20px; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 44px); font-weight: 400; margin-bottom: 22px; }
@media (max-width: 900px) { .m-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 50px; } .stat-strip { gap: 26px; } }
