/* The simple phase selector is also the fallback for small screens. */
.terrace-story .step-ready { display:block; }
.terrace-story .film-screen { display:grid; gap:12px; min-width:0; }
.terrace-story .step-ready .step-controls {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-column:auto; grid-row:auto;
}
.terrace-story .step-ready .step-content { grid-column:auto; grid-row:auto; }
.terrace-story .step-ready .step-figure { display:block; }
.terrace-story .step-ready .step-caption {
  margin:0; grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr);
}
.terrace-story .film-narration[hidden] { display:none; }
.terrace-story .film-ready {
  display:grid; grid-template-columns:minmax(0,1.62fr) minmax(0,.78fr);
  gap:clamp(24px,4.8vw,75px); align-items:start;
}
.film-ready .film-screen { position:sticky; top:100px; grid-template-columns:minmax(0,1fr); }
.film-ready .film-screen .step-caption { display:none; }
.terrace-story .film-ready .step-photo img {
  height:min(53vh,510px); max-height:none; aspect-ratio:auto;
}
.film-ready .step-option { min-height:54px; }
.film-ready .step-option img { width:39px; height:37px; }
.film-ready .step-option { grid-template-columns:39px minmax(0,1fr) auto; font-size:12px; }
.film-ready .film-narration { display:grid; }
.film-chapter {
  min-height:clamp(315px,50vh,480px); display:flex; align-items:center;
  padding:28px 0; border-top:1px solid #e3ecd83d;
}
.film-chapter>div { transform:translateY(7px); opacity:.67; transition:opacity .38s,transform .38s; }
.film-current>div { opacity:1; transform:none; }
.film-chapter span { color:#d0e4ab; font-size:12px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
.film-chapter h3 { margin:12px 0; font-size:clamp(30px,3.55vw,55px); letter-spacing:-.06em; line-height:1; }
.film-chapter p { margin:0; color:#e1eadc; max-width:35ch; font-size:15px; }
@media (max-width:460px) {
  .terrace-story .step-ready .step-caption { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:no-preference) {
  .film-ready .step-panel:not([hidden]) { animation:film-in .48s var(--gnc-motion); }
}
@keyframes film-in { from { opacity:.3; transform:translateY(6px); } to { opacity:1; transform:none; } }

.area-planner .plan-heading { max-width:1080px; margin-bottom:clamp(19px,3.2vw,40px); }
.plan-heading h2 { margin:0 0 12px; font-size:clamp(38px,6vw,86px); line-height:.95; letter-spacing:-.071em; }
.plan-heading p { max-width:58ch; margin-bottom:0; }
.plan-heading .work-label { margin-bottom:11px; }
.area-planner .planner-grid {
  grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr); gap:clamp(10px,2vw,27px); align-items:start;
}
.plan-editor { background:#e3e8d7; padding:clamp(15px,2.35vw,30px); }
.plan-options,.plan-fields { border:0; padding:0; margin:0 0 13px; min-width:0; }
.plan-options legend,.plan-fields legend { padding:0; margin:0 0 6px; font-size:13px; font-weight:780; }
.plan-options label { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; min-height:42px; margin-right:3px; background:#f1f3e6; font-size:13px; font-weight:690; cursor:pointer; }
.plan-options label:has(:checked) { background:#ccdcb2; }
.plan-editor :is([type="radio"],[type="checkbox"]) { accent-color:#28533c; }
.plan-path-toggle { display:flex; align-items:center; gap:7px; min-height:38px; font-size:13px; font-weight:740; }
.plan-fields[hidden],.plan-actions [hidden] { display:none; }
.plan-error { margin:5px 0 0; color:#80332c; font-size:13px; font-weight:700; }
.plan-error:empty { display:none; }
.plan-preview { background:#243f32; color:#f6f8ea; padding:clamp(12px,2vw,26px); min-width:0; }
.plan-preview-top { display:flex; align-items:end; justify-content:space-between; gap:8px 12px; flex-wrap:wrap; padding-bottom:12px; }
.plan-preview-top span { font-size:11px; font-weight:750; color:#d7e9b0; text-transform:uppercase; letter-spacing:.1em; }
.plan-preview .planner-output { display:block; margin:0; font-size:clamp(30px,4.5vw,63px); line-height:1; }
.plan-breakdown { margin:0; font-size:12px; color:#e0eddb; }
.plan-preview .planner-drawing {
  display:block; container-type:normal; height:auto; min-height:0;
  border:1px solid #ebf3da35; background-color:#1a3629;
}
.plan-svg { display:block; width:100%; height:auto; }
.planner-invalid .plan-svg { opacity:.4; }
.plan-preview .planner-figure figcaption { color:#e0edda; }
.plan-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px 15px; margin-top:16px; }
.plan-preview .work-button { color:#1e3b2a; background:#dcebb0; }
.plan-preview .work-button:hover { background:#eff7d4; }
.plan-preview .work-link { color:#f7f9ee; }
@media(max-width:760px) {
  .area-planner .planner-grid { grid-template-columns:1fr; }
}
