/* The photograph is a clean plate made from the approved “Снимок в руках”
   reference. All words and controls above it remain real DOM elements. */
.future-surface#screen-home.home-scene-screen {
  padding: 0 !important;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #211a15;
  overflow: visible;
  align-items: center;
}

#screen-home .home-scene {
  --scene-gold: #d6ad6b;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 942px);
  aspect-ratio: 942 / 1672;
  flex: none;
  color: #fffaf3;
  background: #211a15 url('assets/personal-space-scene.png') center / 100% 100% no-repeat;
  box-shadow: 0 12px 80px #100c0a55;
  font-family: 'Times New Roman', Georgia, serif;
}
#screen-home .home-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #130e0b24 0%, #130e0b16 22%, transparent 48%, #130e0b42 59%, #130e0b73 72%, #130e0b55 100%);
  pointer-events: none;
}
#screen-home .home-scene :is(h1,h2,p) { margin: 0; }
#screen-home .home-chapter,
#screen-home .home-scene-eyebrow,
#screen-home .home-scene-goal,
#screen-home .home-scene-promise,
#screen-home .home-scene-line,
#screen-home .home-scene-action,
#screen-home .home-scene-nav,
#screen-home .home-readiness-note,
#screen-home .home-photo-button,
#screen-home .home-sparks-badge,
#screen-home .home-scene-image { position: absolute; }
#screen-home .home-chapter {
  top: 2.5%; left: 0; width: 100%;
  text-align: center;
  color: #e9d0a7;
  font: 500 clamp(11px, 1.7cqw, 17px)/1.2 var(--fx-sans, sans-serif);
  letter-spacing: .34em;
  text-shadow: 0 2px 7px #1d1512;
}
#screen-home .home-scene-eyebrow {
  top: 5.6%; left: 0; width: 100%; text-align: center;
  color: #f9efe4;
  font: 400 clamp(11px, 1.95cqw, 19px)/1.2 var(--fx-sans, sans-serif);
  letter-spacing: .34em;
  text-shadow: 0 2px 7px #1d1512;
}
#screen-home .home-scene-eyebrow::after {
  content: ''; display: block; width: 6.5%; height: 2px;
  margin: 2.6% auto 0;
  background: var(--scene-gold);
}
#screen-home .home-scene-goal {
  top: 10.5%; left: 24%; width: 52%;
  max-height: 8%; overflow: hidden;
  text-align: center;
  font: 400 clamp(23px, 6.1cqw, 62px)/1.1 'Times New Roman', Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 14px #1c1511a3;
}
#screen-home .home-scene-goal.is-long { font-size: clamp(18px, 4.45cqw, 45px); }
#screen-home .home-scene-image {
  /* Внутренние углы бумажного снимка в personal-space-scene.png.
     Поворот прямоугольника оставлял видимыми клинья старой фотографии. */
  left: 19.7%; top: 21.2%; width: 60.1%; height: 30.8%;
  object-fit: cover;
  clip-path: polygon(11.4% 0, 100% 9.8%, 90.9% 100%, .2% 89.3%);
}
#screen-home .home-scene-image[hidden] { display: none; }
#screen-home .home-photo-button {
  left: 54%; top: 50.8%; width: 20%; min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: .55cqw;
  border: 0; background: transparent; color: #2f2720;
  transform: rotate(5.5deg);
  font: 400 clamp(11px, 2.55cqw, 26px)/1.1 'Times New Roman', Georgia, serif;
  white-space: nowrap; cursor: pointer;
}
#screen-home .home-photo-button svg {
  width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.4;
}
#screen-home .home-readiness-note {
  left: 83.3%; top: 22.6%; width: 15%; min-height: 60px;
  padding: .5cqw 0; border: 0; background: transparent; color: #44372c;
  transform: rotate(-8deg); cursor: pointer;
  font: 400 clamp(14px, 3.1cqw, 30px)/1.08 Caveat, cursive;
  text-align: left;
}
#screen-home .home-readiness-note span,
#screen-home .home-readiness-note strong { display: block; font: inherit; }
#screen-home .home-readiness-note strong { margin-top: .25em; }
#screen-home .home-readiness-note[hidden] { display: none; }
#screen-home .home-sparks-badge {
  top: 3.6%; left: 5.5%; z-index: 1;
  display: flex; align-items: center; gap: .5em;
  border: 1px solid #f6eee459; border-radius: 999px;
  background: #00000042; backdrop-filter: blur(2px);
  padding: .45em .9em .45em .7em; cursor: pointer;
  font: 600 clamp(10px, 2.1cqw, 14px)/1 var(--fx-sans, sans-serif);
  letter-spacing: .02em; color: var(--scene-gold);
}
#screen-home .home-sparks-badge svg {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: var(--scene-gold); stroke-width: 1.6;
}
#screen-home .home-sparks-badge[hidden] { display: none; }
#screen-home .home-scene-promise {
  top: 61.9%; left: 10%; width: 80%;
  text-align: center;
  font: 400 clamp(25px, 5.9cqw, 60px)/1.15 'Times New Roman', Georgia, serif;
  letter-spacing: -.02em;
  text-shadow: 0 3px 15px #1c1511a8;
}
#screen-home .home-scene-line {
  top: 71%; left: 46.8%; width: 6.4%; height: 2px;
  background: var(--scene-gold);
}
#screen-home .home-scene-action {
  top: 73%; left: 6.2%; width: 87.5%; height: 14.5%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3.4cqw;
  background: #f7efe3;
  box-shadow: 0 3px 10px #140e0940;
}
#screen-home .home-scene-action button {
  width: 86%; height: 48%; min-height: 50px;
  display: flex; align-items: center; justify-content: center; gap: 2cqw;
  border: 0; border-radius: 999px;
  background: #282520; color: var(--scene-gold);
  font: 400 clamp(17px, 3.8cqw, 37px)/1 'Times New Roman', Georgia, serif;
  cursor: pointer;
  box-shadow: inset 0 1px #ffffff26;
}
#screen-home .home-scene-action button:hover { background: #38322b; }
#screen-home .home-scene-nav {
  top: 90.5%; left: 8%; width: 84%; height: 6%;
  display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center;
}
#screen-home .home-scene-nav > i {
  width: 1px; height: 66%; background: #eee0cf91;
}
#screen-home .home-scene-nav button {
  min-width: 0; height: 100%; padding: 0 2cqw;
  display: flex; align-items: center; gap: 2.5cqw;
  border: 0; background: transparent; color: #f6eee4;
  text-align: left; cursor: pointer;
}
#screen-home .home-scene-nav button:first-child { color: #cba96f; }
#screen-home .home-scene-nav svg {
  width: 12cqw; max-width: 110px; height: 5cqw; max-height: 50px;
  flex: none; fill: none; stroke: var(--scene-gold); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
#screen-home .home-scene-nav button:last-child svg {
  width: 4.7cqw; max-width: 45px; stroke: #fff5e8;
}
#screen-home .home-scene-nav strong,
#screen-home .home-scene-nav small { display: block; white-space: nowrap; }
#screen-home .home-scene-nav strong {
  font: 400 clamp(16px, 3.05cqw, 30px)/1.1 'Times New Roman', Georgia, serif;
}
#screen-home .home-scene-nav small {
  margin-top: .7cqw;
  font: 400 clamp(7px, 1.35cqw, 13px)/1.2 var(--fx-sans, sans-serif);
  letter-spacing: .2em;
}
#screen-home :is(button,input):focus-visible {
  outline: 3px solid #f0c77f;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  #screen-home .home-scene { min-height: 100svh; aspect-ratio: auto; }
  #screen-home .home-scene-nav { left: 4%; width: 92%; }
  #screen-home .home-scene-nav button { padding: 0 1cqw; gap: 1.5cqw; }
  #screen-home .home-scene-nav small { letter-spacing: .08em; }
  #screen-home .home-photo-button { min-height: 44px; }
}
@media (max-width: 370px) {
  #screen-home .home-scene-nav strong { font-size: 14px; }
  #screen-home .home-scene-nav small { font-size: 6.5px; }
}

.fx-path-routes, .fx-atlas-routes { margin: 28px 0 0; border-top: 1px solid var(--fx-line); }
.fx-atlas-routes h2 { margin: 23px 0 8px; }
.fx-path-routes button, .fx-atlas-routes button, .fx-atlas-routes summary {
  width: 100%; min-height: 48px; padding: 13px 2px;
  display: flex; align-items: center; justify-content: space-between;
  border: 0; border-bottom: 1px solid var(--fx-line);
  background: transparent; color: var(--fx-ink); text-align: left;
  font: 17px/1.3 var(--fx-serif); cursor: pointer;
}
.fx-atlas-routes details button { padding-left: 18px; color: var(--fx-muted); font-size: 15px; }
.fx-path-routes button[hidden] { display: none; }
.fx-path-today { padding: 21px; margin: 0 0 26px; background: #fffaf2; border-left: 2px solid var(--fx-gold); }
.fx-path-today h2 { font: 24px/1.3 var(--fx-serif); margin: 0 0 14px; }
.fx-path-today p:not(.fx-eyebrow) { color: var(--fx-muted); font-size: 13px; line-height: 1.5; }
.fx-path-today button { margin-top: 14px; padding: 8px 0; border: 0; background: transparent; color: var(--fx-accent); cursor: pointer; }
.fx-map-other-routes { margin: 24px 0; border-top: 1px solid var(--fx-line); }
.fx-map-other-routes summary, .fx-map-other-routes button {
  display: block; width: 100%; min-height: 48px; padding: 14px 0;
  border: 0; border-bottom: 1px solid var(--fx-line);
  background: transparent; color: var(--fx-ink); text-align: left;
  font: 15px/1.3 var(--fx-sans); cursor: pointer;
}
.fx-map-other-routes button { padding-left: 16px; color: var(--fx-muted); }
