:root {
  color-scheme: light;
  --bg: #f7f1e8;
  --surface: #fffaf2;
  --ink: #241f1a;
  --muted: #756b60;
  --line: rgba(36, 31, 26, 0.14);
  --accent: #7d5835;
  --accent-dark: #4c3320;
  --accent-soft: #ead8c1;
  --shadow: 0 28px 90px rgba(66, 43, 20, 0.16);
  --radius-lg: 32px;
  --radius-md: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(234, 216, 193, 0.9), transparent 34rem),
    linear-gradient(135deg, #f7f1e8 0%, #efe3d4 45%, #f8f3eb 100%);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header,
.proposal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(247, 241, 232, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 800; }
.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 1.35rem; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.section-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.section-stack { padding: 5.5rem 0; }
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); line-height: 0.92; letter-spacing: -0.075em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.05em; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); line-height: 1.7; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 3rem; align-items: center; padding: 6rem 0 4.5rem; }
.hero-subtitle { max-width: 45rem; font-size: 1.22rem; }
.hero-actions, .proposal-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--ink); color: var(--surface); box-shadow: 0 16px 36px rgba(36,31,26,0.18); }
.button.secondary { background: rgba(255, 250, 242, 0.72); }
.button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.full-width { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.trust-row span, .material-list span {
  padding: 0.55rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.68);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.browser-dots { display: flex; gap: 0.4rem; padding: 1.1rem; border-bottom: 1px solid var(--line); }
.browser-dots span { width: 0.72rem; height: 0.72rem; border-radius: 999px; background: var(--accent-soft); }
.preview-cover { padding: 2rem; }
.preview-cover h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.preview-image-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; grid-template-rows: repeat(2, 9rem); gap: 0.8rem; }
.preview-image-grid div { border-radius: 1.2rem; background: linear-gradient(135deg, #cdb99f, #73533b); }
.preview-image-grid div:first-child { grid-row: span 2; }
.preview-block { margin: 0 1rem 1rem; padding: 1rem; border-radius: 1.2rem; background: #fffaf2; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step-card, .upload-card, .lead-form, .proposal-section, .proposal-cover {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.74);
  box-shadow: 0 14px 42px rgba(66,43,20,0.08);
}
.step-card { padding: 1.4rem; }
.step-card span { color: var(--accent); font-weight: 900; }
.split-section { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2rem; padding: 4.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit-list { display: grid; gap: 1rem; }
.benefit-list p { margin: 0; padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(255,250,242,0.72); }
.plan-badge { position: absolute; top: 1rem; right: 1rem; color: var(--accent); font-size: 0.75rem; font-weight: 900; }
.plan-price { margin: 0; color: var(--ink); font-size: 2.6rem; font-weight: 900; letter-spacing: -0.06em; }
.plan-allowance { margin: 0; color: var(--accent-dark); font-weight: 800; }
.upload-section { padding: 5rem 0; }
.upload-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 1.5rem; padding: 1.25rem; }
.project-form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: grid; gap: 0.4rem; color: var(--ink); font-weight: 800; }
input, select {
  width: 100%;
  padding: 0.88rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fffaf2;
  color: var(--ink);
}
.source-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.source-pill {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--ink);
  font-weight: 800;
}
.source-pill:disabled { opacity: 0.55; cursor: not-allowed; }
.dropzone {
  min-height: 13rem;
  place-items: center;
  padding: 2rem;
  border: 2px dashed rgba(125, 88, 53, 0.35);
  border-radius: 1.4rem;
  background: rgba(255, 250, 242, 0.52);
  text-align: center;
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dropzone-title { font-size: 1.25rem; font-weight: 900; }
.dropzone-help { color: var(--muted); font-weight: 600; }
.render-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.file-chip { display: grid; gap: 0.25rem; padding: 0.8rem; border-radius: 1rem; background: #fffaf2; border: 1px solid var(--line); min-width: 0; }
.file-chip.invalid { border-color: #a8422d; }
.file-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip span { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 900; }
.file-chip small, .proposal-section small { color: var(--muted); }
.form-error { min-height: 1.4rem; color: #a8422d; font-weight: 800; }
.mvp-note { padding: 1rem; border-radius: 1.2rem; background: rgba(36,31,26,0.05); }
.mvp-note li { margin-bottom: 0.7rem; color: var(--muted); line-height: 1.55; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 4rem); color: var(--muted); border-top: 1px solid var(--line); }
.lead-dialog { width: min(520px, calc(100% - 2rem)); border: 0; border-radius: 1.6rem; padding: 0; background: transparent; }
.lead-dialog::backdrop { background: rgba(36, 31, 26, 0.38); backdrop-filter: blur(4px); }
.lead-form { position: relative; display: grid; gap: 1rem; padding: 1.4rem; }
.dialog-close { position: absolute; top: 0.75rem; right: 0.75rem; }
.icon-button { width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 999px; background: #fffaf2; }
.muted { color: var(--muted); }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 100; padding: 0.9rem 1rem; border-radius: 1rem; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); }
.missing-page { min-height: 70vh; display: grid; align-content: center; }
.proposal-page { background: #f6efe6; }
.proposal-cover, .proposal-section { width: min(1120px, calc(100% - 2rem)); margin: 0 auto 1.2rem; padding: clamp(1.4rem, 4vw, 3rem); }
.proposal-cover { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: center; min-height: 78vh; margin-top: 1rem; }
.proposal-cover h1 { color: var(--ink); }
.proposal-cover img, .image-section img { width: 100%; height: min(58vh, 620px); object-fit: cover; border-radius: 1.5rem; box-shadow: 0 20px 70px rgba(66,43,20,0.18); }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 2rem; }
.meta-grid div { padding: 0.85rem; border-radius: 1rem; background: var(--accent-soft); }
dt { color: var(--muted); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
dd { margin: 0.2rem 0 0; font-weight: 900; }
.image-section { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }
.text-section, .palette-section, .highlights-section { max-width: 920px; }
.material-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.highlights-section li { margin: 0.7rem 0; color: var(--muted); line-height: 1.6; }
.proposal-footer { background: #f6efe6; }

.demo-section { padding: 0 0 5.5rem; }
.demo-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,250,242,0.88), rgba(234,216,193,0.58));
  box-shadow: 0 20px 70px rgba(66,43,20,0.1);
}
.demo-panel p { max-width: 46rem; margin-bottom: 0; }
.button:focus-visible,
.source-pill:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(125, 88, 53, 0.28);
  outline-offset: 3px;
}
.hero-card,
.step-card,
.upload-card,
.demo-panel,
.proposal-section,
.proposal-cover {
  will-change: transform, opacity;
}
.dropzone,
.file-chip,
.choice-option,
.hero-card,
.step-card,
.demo-panel {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}
.dropzone:hover,
.choice-option:hover,
.step-card:hover,
.demo-panel:hover { transform: translateY(-2px); }
.dropzone:hover, .dropzone.is-dragging { border-color: rgba(125, 88, 53, 0.62); background: rgba(255, 250, 242, 0.78); box-shadow: inset 0 0 0 1px rgba(125, 88, 53, 0.18); }
/* Editorial proposal presentation upgrade */
.proposal-page {
  padding: 1rem 0 4rem;
  background:
    radial-gradient(circle at 12% 5%, rgba(234, 216, 193, 0.78), transparent 28rem),
    linear-gradient(180deg, #f6efe6 0%, #f1e5d6 48%, #f8f2ea 100%);
}
.proposal-cover,
.proposal-section {
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(255, 250, 242, 0.68);
  box-shadow: 0 24px 90px rgba(66,43,20,0.1);
}
.proposal-cover {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  min-height: calc(100vh - 6rem);
  background:
    linear-gradient(135deg, rgba(255,250,242,0.94), rgba(234,216,193,0.56)),
    radial-gradient(circle at 12% 18%, var(--accent-soft), transparent 20rem);
}
.proposal-cover::before {
  content: "Generated presentation";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 999px;
  background: rgba(255,250,242,0.7);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proposal-cover h1 { max-width: 8ch; font-size: clamp(3.4rem, 8vw, 7.4rem); }
.proposal-cover > div:first-child p:not(.eyebrow) { max-width: 36rem; font-size: 1.08rem; }
.proposal-cover img {
  height: min(68vh, 720px);
  border-radius: 2rem;
  transform: rotate(0.7deg);
}
.editorial-meta div { background: rgba(255,250,242,0.72); backdrop-filter: blur(10px); }
.text-section {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 2rem;
  align-items: start;
}
.text-section .eyebrow { margin-top: 0.25rem; }
.text-section h2 { grid-column: 1; }
.text-section p { grid-column: 2; grid-row: 1 / span 3; font-size: 1.16rem; }
.image-section {
  position: relative;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: 70vh;
  overflow: hidden;
}
.image-section:nth-of-type(2n) img { order: 2; }
.image-section:nth-of-type(2n) > div { order: 1; }
.image-section::after {
  content: "View";
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  color: rgba(36,31,26,0.08);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  pointer-events: none;
}
.image-section img {
  height: min(64vh, 680px);
  border-radius: 2rem;
}
.image-section > div {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 1.6rem;
  background: rgba(255,250,242,0.66);
}
.image-section h2 { font-size: clamp(2.2rem, 4.8vw, 4.8rem); }
.image-section p { font-size: 1.08rem; }
.palette-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  overflow: hidden;
}
.palette-section::after {
  content: "";
  min-height: 15rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(135deg, var(--accent) 0 28%, var(--accent-soft) 28% 56%, #fffaf2 56% 78%, #241f1a 78% 100%);
  box-shadow: inset 0 0 0 1px rgba(36,31,26,0.08);
}
.palette-section .material-list { align-self: end; }
.highlights-section {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 2rem;
}
.highlights-section ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.highlights-section li {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 1.1rem;
  background: rgba(255,250,242,0.74);
}
.feedback-section { margin-top: 3rem; }
.vision-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(36,31,26,0.12);
  border-radius: 999px;
  background: rgba(255,250,242,0.82);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vision-status-pill.status-ok { color: #276342; background: rgba(231, 246, 236, 0.9); }
.vision-status-pill.status-warn { color: #8a623d; background: rgba(255, 244, 214, 0.9); }
.vision-status-pill.status-bad { color: #8b2d2d; background: rgba(255, 230, 226, 0.9); }
.crop-strip {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 7.4rem));
  justify-content: start;
  gap: 0.45rem;
  pointer-events: none;
}
.detail-crop {
  margin: 0;
  min-width: 0;
  padding: 0.28rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 0.85rem;
  background: rgba(255,250,242,0.82);
  box-shadow: 0 10px 24px rgba(36,31,26,0.08);
}
.detail-crop img {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  border-radius: 0.58rem;
  object-fit: cover;
  display: block;
}
.detail-crop figcaption {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.28rem;
  min-width: 0;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-crop figcaption span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: #ff7a1a;
  font-size: 0.58rem;
}
@media (max-width: 860px) {
  .text-section,
  .palette-section,
  .highlights-section { grid-template-columns: 1fr; }
  .text-section p { grid-column: auto; grid-row: auto; }
  .image-section:nth-of-type(2n) img,
  .image-section:nth-of-type(2n) > div { order: initial; }
  .proposal-cover img,
  .image-section img { height: auto; max-height: 70vh; }
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
  border: 1px solid rgba(36, 31, 26, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,250,242,0.95), rgba(234,216,193,0.42));
  box-shadow: 0 20px 80px rgba(66,43,20,0.12);
}
.feedback-form { display: grid; gap: 1rem; }
.feedback-form fieldset { margin: 0; padding: 0; border: 0; }
.feedback-form legend { margin-bottom: 0.65rem; color: var(--ink); font-weight: 900; }
.feedback-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 8rem;
  padding: 0.88rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fffaf2;
  color: var(--ink);
}
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.choice-option {
  position: relative;
  display: grid;
  min-height: 3.4rem;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255,250,242,0.72);
  color: var(--muted);
  text-align: center;
  font-weight: 850;
  cursor: pointer;
}
.choice-option input { position: absolute; opacity: 0; pointer-events: none; }
.choice-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 16px 34px rgba(36,31,26,0.16);
}
.feedback-status { min-height: 1.4rem; margin: 0; font-weight: 800; color: var(--accent-dark); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in 640ms cubic-bezier(.2,.8,.2,1) both; }
  .hero-card { animation: float-in 760ms cubic-bezier(.2,.8,.2,1) 90ms both; }
  .step-card,
  .upload-card,
  .demo-panel,
  .proposal-section,
  .proposal-cover { animation: rise-in 700ms cubic-bezier(.2,.8,.2,1) both; }
  .preview-image-grid div { animation: soft-pulse 3.8s ease-in-out infinite alternate; }
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes float-in {
    from { opacity: 0; transform: translateY(22px) rotate(0deg); }
    to { opacity: 1; transform: translateY(0) rotate(1.5deg); }
  }
  @keyframes soft-pulse {
    from { filter: saturate(0.92) brightness(0.98); }
    to { filter: saturate(1.08) brightness(1.04); }
  }
}

@media (max-width: 860px) {
  .site-header, .proposal-header { position: static; align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; justify-content: space-between; }
  .hero, .split-section, .upload-card, .proposal-cover, .image-section, .feedback-section { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  .hero-card { transform: none; }
  .steps-grid, .form-grid, .render-preview, .meta-grid, .choice-grid { grid-template-columns: 1fr; }
  .demo-panel { align-items: flex-start; flex-direction: column; }
  .proposal-actions { width: 100%; }
  .proposal-actions .button { flex: 1; }
}

/* Client presentation deck: concept -> space -> render/spec -> materials -> details */
.deck-cover .cover-figure { margin: 0; position: relative; }
.deck-cover .cover-figure figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 70%;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}
.section-kicker h2,
.spec-heading h2,
.tactile-section h2,
.detail-section h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.055em; }
.concept-section,
.spatial-section,
.tactile-section,
.detail-section { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); }
.concept-section { grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr); align-items: center; }
.section-kicker p { max-width: 42rem; }
.moodboard-grid {
  display: grid;
  min-height: 34rem;
  grid-template-columns: 1.1fr 0.9fr 0.72fr;
  grid-template-rows: 1fr 0.72fr 0.5fr;
  gap: 0.8rem;
}
.mood-tile { margin: 0; overflow: hidden; border-radius: 1.45rem; box-shadow: 0 18px 48px rgba(66,43,20,0.14); background: #ddd0c1; }
.mood-tile img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.96) contrast(1.02); }
.mood-tile-1 { grid-row: 1 / 3; }
.mood-tile-2 { grid-column: 2 / 4; }
.mood-tile-3 { grid-column: 2; grid-row: 2; }
.keyword-panel {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  padding: 1.1rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 1.45rem;
  background: rgba(255,250,242,0.78);
}
.keyword-panel span,
.material-card span,
.accessory-list strong,
.sheet-badge { color: var(--accent); font-size: 0.72rem; font-weight: 950; letter-spacing: 0.13em; text-transform: uppercase; }
.keyword-panel strong { font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.palette-strip { grid-column: 1 / 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.palette-strip i {
  position: relative;
  min-height: 5rem;
  border-radius: 1.2rem;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(36,31,26,0.09);
}
.palette-strip span { position: absolute; left: 0.7rem; bottom: 0.55rem; color: rgba(36,31,26,0.55); font-size: 0.75rem; font-style: normal; font-weight: 900; }
.spatial-section { grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr); }
.flow-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.flow-card {
  min-height: 17rem;
  padding: 1.2rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(255,250,242,0.88), rgba(234,216,193,0.44));
}
.flow-card span,
.detail-card span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 950;
}
.flow-card h3,
.detail-card h3,
.material-card h3 { margin: 1rem 0 0.35rem; color: var(--ink); }
.deck-logic {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  padding: 0.7rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 999px;
  background: rgba(255,250,242,0.66);
}
.deck-logic span { position: relative; text-align: center; color: var(--muted); font-size: 0.78rem; font-weight: 900; }
.deck-logic span:not(:last-child)::after { content: "→"; position: absolute; right: -0.65rem; color: var(--accent); }
.render-spec-section { max-width: 1280px; }
.spec-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.spec-heading p { max-width: 55rem; }
.sheet-badge { flex: 0 0 auto; padding: 0.7rem 0.9rem; border: 1px solid rgba(36,31,26,0.1); border-radius: 999px; background: rgba(255,250,242,0.78); }
.spec-layout { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(260px, 0.42fr); gap: 1rem; align-items: stretch; }
.spec-visual-stack { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.65rem; min-width: 0; min-height: 0; }
.spec-stage {
  position: relative;
  min-height: 35rem;
  overflow: hidden;
  border-radius: 1.7rem;
  background: #ece2d7;
  box-shadow: 0 20px 70px rgba(66,43,20,0.16);
}
.spec-stage img { width: 100%; height: 100%; min-height: 35rem; object-fit: cover; display: block; }
.marker-layer { position: absolute; inset: 0; pointer-events: none; }
.spec-marker { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 0.45rem; transform: translate(-50%, -50%); }
.spec-marker::before {
  content: "";
  position: absolute;
  width: clamp(4rem, 8vw, 7rem);
  height: 1px;
  background: var(--accent);
  opacity: 0.95;
  right: calc(100% + 0.25rem);
  top: 50%;
}
.spec-marker.align-right::before { left: calc(100% + 0.25rem); right: auto; }
.spec-marker.align-top::before { width: 1px; height: 4.5rem; left: 50%; right: auto; top: auto; bottom: calc(100% + 0.25rem); }
.spec-marker.align-bottom::before { width: 1px; height: 4.5rem; left: 50%; right: auto; top: calc(100% + 0.25rem); }
.spec-marker span {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: 999px;
  background: #ff7a1a;
  color: #241f1a;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(255,122,26,0.28);
}
.spec-marker small {
  max-width: 10rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,250,242,0.85);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 10px 24px rgba(66,43,20,0.11);
}
.spec-sidebar {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 1.7rem;
  background: rgba(255,250,242,0.74);
}
.spec-material-list { display: grid; gap: 0.7rem; }
.material-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.35fr) minmax(0, 0.65fr);
  gap: 0.9rem;
  align-items: stretch;
  min-height: 9.4rem;
  padding: 0.8rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 1.25rem;
  background: rgba(255,250,242,0.86);
  box-shadow: 0 14px 38px rgba(66,43,20,0.08);
}
.material-card.compact { grid-template-columns: 5.1rem 1fr; min-height: 6.4rem; padding: 0.62rem; border-radius: 1rem; }
.material-card h3 { margin-top: 0.35rem; font-size: 1rem; letter-spacing: -0.02em; }
.material-card p { margin-bottom: 0.25rem; line-height: 1.35; font-size: 0.85rem; }
.material-card small { color: var(--muted); font-weight: 750; }
.material-swatch {
  min-height: 4.8rem;
  border-radius: 0.9rem;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(36,31,26,0.1);
}
.material-wood .material-swatch { background: linear-gradient(90deg, rgba(255,255,255,0.16), transparent 12% 28%, rgba(72,45,25,0.12) 29% 31%, transparent 32% 46%, rgba(72,45,25,0.16) 48% 52%, transparent 54%), var(--swatch); }
.material-stone .material-swatch { background: linear-gradient(135deg, transparent 0 42%, rgba(90,83,76,0.2) 43% 46%, transparent 47% 68%, rgba(90,83,76,0.12) 69% 72%, transparent 73%), var(--swatch); }
.material-metal .material-swatch,
.material-hardware .material-swatch { background: linear-gradient(135deg, rgba(255,255,255,0.55), transparent 40%, rgba(36,31,26,0.22)), var(--swatch); }
.material-light .material-swatch { background: radial-gradient(circle at 50% 50%, #fff8d6, var(--swatch) 42%, rgba(255,188,76,0.35)); }
.material-fabric .material-swatch { background: repeating-linear-gradient(45deg, rgba(36,31,26,0.06) 0 2px, transparent 2px 6px), var(--swatch); }
.accessory-list { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.accessory-list div { display: flex; align-items: center; gap: 0.55rem; }
.accessory-list div span { display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border-radius: 999px; background: #111; color: #fff; font-size: 0.72rem; font-weight: 950; }
.accessory-list p { margin: 0; color: var(--ink); font-size: 0.84rem; font-weight: 850; line-height: 1.25; }
.spec-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.8rem; font-style: italic; }
.tactile-section { grid-template-columns: minmax(280px, 0.46fr) minmax(0, 0.54fr); align-items: center; }
.flatlay-board {
  position: relative;
  display: grid;
  min-height: 38rem;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(234,216,193,0.6), rgba(255,250,242,0.82));
  overflow: hidden;
}
.flatlay-card { min-width: 0; }
.flatlay-card .material-card { height: 100%; }
.flatlay-1 { grid-column: 1 / 4; grid-row: 1 / 4; transform: rotate(-1.5deg); }
.flatlay-2 { grid-column: 4 / 7; grid-row: 1 / 3; transform: rotate(1deg); }
.flatlay-3 { grid-column: 3 / 7; grid-row: 3 / 5; transform: rotate(-0.8deg); }
.flatlay-4 { grid-column: 1 / 3; grid-row: 4 / 7; transform: rotate(1.2deg); }
.flatlay-5 { grid-column: 3 / 5; grid-row: 5 / 7; transform: rotate(0.8deg); }
.flatlay-6 { grid-column: 5 / 7; grid-row: 5 / 7; transform: rotate(-1deg); }
.detail-section { grid-template-columns: minmax(280px, 0.55fr) minmax(0, 0.45fr); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.detail-card { padding: 1rem; border: 1px solid rgba(36,31,26,0.1); border-radius: 1.4rem; background: rgba(255,250,242,0.78); }
.detail-card p { font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 980px) {
  .concept-section,
  .spatial-section,
  .tactile-section,
  .detail-section,
  .spec-layout { grid-template-columns: 1fr; }
  .moodboard-grid { min-height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
  .mood-tile,
  .mood-tile-1,
  .mood-tile-2,
  .mood-tile-3,
  .palette-strip { grid-column: auto; grid-row: auto; }
  .mood-tile { min-height: 14rem; }
  .flow-board,
  .deck-logic,
  .detail-grid { grid-template-columns: 1fr; border-radius: 1.4rem; }
  .deck-logic span:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: 1.1rem; transform: translateX(2.6rem); }
  .spec-heading { display: grid; }
  .spec-stage,
  .spec-stage img { min-height: 24rem; }
  .spec-marker small { display: none; }
  .spec-marker::before { width: 3rem; }
  .flatlay-board { min-height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
  .flatlay-card { grid-column: auto; grid-row: auto; transform: none; }
}

/* MVP proposal slide guard: every generated page is constrained like a 16:9 deck slide. */
.proposal-page {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1rem 0 3rem;
}
.proposal-cover,
.proposal-section {
  width: min(1280px, calc(100vw - 2rem));
  height: min(56.25vw, 720px, calc(100vh - 6.25rem));
  min-height: 0;
  max-height: 720px;
  margin: 0 auto;
  padding: clamp(1rem, 2.05vw, 1.85rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.proposal-cover,
.concept-section,
.spatial-section,
.tactile-section,
.detail-section,
.feedback-section,
.ending-section { align-items: center; }
.proposal-cover { grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr); }
.proposal-cover > div:first-child,
.concept-section > div,
.spatial-section > div,
.tactile-section > div,
.detail-section > div,
.ending-section > div { min-width: 0; min-height: 0; }
.proposal-cover h1 { font-size: clamp(2.4rem, 4.6vw, 5rem); }
.proposal-cover > div:first-child p:not(.eyebrow) { font-size: clamp(0.9rem, 1vw, 1rem); line-height: 1.55; }
.proposal-cover .cover-figure { height: 100%; min-height: 0; }
.proposal-cover img,
.image-section img { height: 100%; max-height: 100%; object-fit: cover; }
.editorial-meta { margin-top: 1.2rem; }
.editorial-meta div { padding: 0.68rem; }
.proposal-section h2 { font-size: clamp(1.9rem, 3vw, 3.35rem); }
.proposal-section p { line-height: 1.48; }
.concept-section,
.spatial-section,
.tactile-section,
.detail-section { gap: clamp(1rem, 1.8vw, 1.6rem); }
.concept-section { grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr); }
.section-kicker p,
.spatial-section > div p,
.tactile-section > div p,
.detail-section > div p,
.ending-section > div p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.moodboard-grid,
.flatlay-board { min-height: 0; height: 100%; }
.moodboard-grid { grid-template-rows: minmax(0, 1fr) minmax(0, 0.72fr) minmax(3.2rem, 0.42fr); }
.keyword-panel { gap: 0.38rem; padding: 0.85rem; }
.keyword-panel strong { font-size: 0.96rem; }
.palette-strip i { min-height: 3.2rem; }
.spatial-section { grid-template-columns: minmax(230px, 0.58fr) minmax(0, 1.12fr); }
.flow-board { align-self: stretch; }
.flow-card { min-height: 0; padding: 1rem; overflow: hidden; }
.flow-card p,
.detail-card p,
.material-card p,
.accessory-list p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deck-logic { align-self: end; padding: 0.55rem; }
.render-spec-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-width: none;
  gap: 0.65rem;
}
.spec-heading { margin-bottom: 0; align-items: start; }
.spec-heading h2 { font-size: clamp(1.55rem, 2.5vw, 2.65rem); }
.spec-heading p {
  max-width: 48rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet-badge { padding: 0.5rem 0.7rem; }
.spec-layout { min-height: 0; height: 100%; grid-template-columns: minmax(0, 1.62fr) minmax(250px, 0.38fr); }
.spec-visual-stack { height: 100%; }
.spec-stage { min-height: 0; }
.spec-stage img { min-height: 0; height: 100%; }
.spec-stage { border-radius: 1.35rem; }
.render-spec-section .crop-strip { grid-template-columns: repeat(4, minmax(0, 6.6rem)); gap: 0.38rem; }
.render-spec-section .detail-crop { padding: 0.24rem; border-radius: 0.72rem; }
.render-spec-section .detail-crop img { border-radius: 0.5rem; }
.render-spec-section .detail-crop figcaption { margin-top: 0.2rem; font-size: 0.58rem; }
.render-spec-section .detail-crop figcaption span { width: 1.05rem; height: 1.05rem; font-size: 0.5rem; }
.spec-sidebar { min-height: 0; overflow: hidden; gap: 0.45rem; padding: 0.68rem; border-radius: 1.25rem; }
.spec-material-list { gap: 0.35rem; }
.material-card { min-height: 0; padding: 0.68rem; overflow: hidden; }
.material-card.compact { grid-template-columns: 3rem 1fr; min-height: 0; padding: 0.4rem; gap: 0.48rem; }
.material-card.compact .material-swatch { min-height: 2.7rem; }
.material-card h3 { margin: 0.22rem 0 0.12rem; font-size: 0.84rem; }
.material-card p { margin: 0; font-size: 0.7rem; line-height: 1.18; }
.material-card small { font-size: 0.62rem; }
.accessory-list { gap: 0.38rem; margin-top: 0; }
.accessory-list div span { width: 1.55rem; height: 1.55rem; font-size: 0.64rem; }
.accessory-list p { font-size: 0.75rem; }
.spec-note { margin: 0; font-size: 0.72rem; line-height: 1.35; }
.flatlay-board { padding: 0.8rem; gap: 0.62rem; border-radius: 1.55rem; }
.flatlay-card .material-card { grid-template-columns: minmax(4.4rem, 0.34fr) minmax(0, 0.66fr); }
.flatlay-card .material-swatch { min-height: 3.7rem; }
.detail-grid { align-self: stretch; gap: 0.65rem; }
.detail-card { padding: 0.85rem; overflow: hidden; }
.detail-card span { width: 1.95rem; height: 1.95rem; }
.detail-card h3 { font-size: 1rem; }
.detail-card p { font-size: 0.84rem; line-height: 1.35; }
.ending-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255,250,242,0.94), rgba(234,216,193,0.5)),
    radial-gradient(circle at 88% 15%, rgba(125,88,53,0.16), transparent 22rem);
}
.ending-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ending-list li {
  padding: clamp(0.85rem, 1.4vw, 1.2rem);
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 1.2rem;
  background: rgba(255,250,242,0.74);
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}
.feedback-section { margin-top: 0; }
.feedback-form { gap: 0.75rem; }
.feedback-form textarea { min-height: 5.6rem; }
.choice-option { min-height: 2.85rem; padding: 0.58rem; }

@media (max-width: 980px) {
  .proposal-page { display: block; padding: 0.75rem 0 2.5rem; }
  .proposal-cover,
  .proposal-section {
    width: min(100% - 1rem, 760px);
    height: auto;
    min-height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
    padding: clamp(1rem, 5vw, 1.4rem);
    margin-bottom: 1rem;
  }
  .proposal-cover,
  .ending-section,
  .feedback-section { grid-template-columns: 1fr; }
  .proposal-cover .cover-figure { height: auto; }
  .proposal-cover img,
  .image-section img { height: auto; max-height: 70vh; }
  .section-kicker p,
  .spatial-section > div p,
  .tactile-section > div p,
  .detail-section > div p,
  .ending-section > div p,
  .flow-card p,
  .detail-card p,
  .material-card p,
  .accessory-list p,
  .spec-heading p {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .moodboard-grid,
  .flatlay-board { height: auto; }
  .spec-layout { height: auto; }
  .spec-stage,
  .spec-stage img { height: auto; min-height: 24rem; }
}

/* QA/UX fixes */
.proposal-actions { align-items: center; flex-wrap: wrap; }
.proposal-vision-meta { width: min(1120px, calc(100% - 2rem)); margin: 0.65rem auto 0.9rem; color: var(--muted); font-size: 0.94rem; letter-spacing: 0.01em; }
.proposal-cover::before { display: none; }
.proposal-cover .cover-figure { position: relative; margin: 0; overflow: hidden; border-radius: 2rem; }
.proposal-cover .cover-figure img { transform: none; }
.render-spec-section .spec-stage img { object-fit: contain; background: #ece2d7; }
.render-spec-section .crop-strip img { object-fit: cover; }
.render-spec-section .material-card.compact {
  grid-template-columns: 2.35rem minmax(0, 1fr);
  padding: 0.34rem;
  gap: 0.42rem;
}
.render-spec-section .material-card.compact .material-swatch { min-height: 2.25rem; border-radius: 0.62rem; }
.render-spec-section .material-card.compact span,
.render-spec-section .material-card.compact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.render-spec-section .material-card.compact span { font-size: 0.55rem; letter-spacing: 0.08em; }
.render-spec-section .material-card.compact h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.08rem 0 0.05rem;
  font-size: 0.72rem;
  line-height: 1.08;
}
.render-spec-section .material-card.compact p { display: none; }
.render-spec-section .material-card.compact small { font-size: 0.56rem; line-height: 1.1; }
.render-spec-section .accessory-list { gap: 0.25rem; }
.render-spec-section .accessory-list div { gap: 0.36rem; }
.render-spec-section .accessory-list div span { width: 1.28rem; height: 1.28rem; font-size: 0.54rem; }
.render-spec-section .accessory-list p { -webkit-line-clamp: 1; font-size: 0.66rem; line-height: 1.12; }
@media (max-width: 980px) {
  .spec-visual-stack { height: auto; }
  .crop-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.7rem; }
}



/* Section 3 clarity: split same-space angles and keep the render unobstructed. */
.render-spec-section .spec-layout {
  grid-template-columns: minmax(0, 1.78fr) minmax(230px, 0.28fr);
}
.render-spec-section .spec-stage {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
}
.render-spec-section .marker-layer { z-index: 2; }
.render-spec-section .spec-marker { gap: 0; }
.render-spec-section .spec-marker small { display: none; }
.render-spec-section .spec-marker::before { width: clamp(2rem, 3.6vw, 3.6rem); opacity: 0.72; }
.render-spec-section .spec-marker.align-top::before,
.render-spec-section .spec-marker.align-bottom::before { height: 2.8rem; }
.render-spec-section .spec-marker span {
  width: 1.58rem;
  height: 1.58rem;
  font-size: 0.66rem;
  box-shadow: 0 8px 18px rgba(255,122,26,0.24);
}
.spec-sidebar-angle { align-content: center; }
.angle-note {
  display: grid;
  gap: 0.45rem;
  padding: 0.78rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 1rem;
  background: rgba(255,250,242,0.82);
}
.angle-note strong { color: var(--ink); font-size: 0.9rem; line-height: 1.15; }
.angle-note p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.35; }
.spec-sidebar-materials .crop-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}
.spec-sidebar-materials .detail-crop figcaption { font-size: 0.54rem; }

/* Section 4: paginate material boards and show complete card information. */
.material-board-page {
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.6fr);
  align-items: stretch;
}
.material-board-page .tactile-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  min-width: 0;
}
.board-page-badge {
  display: inline-flex;
  width: max-content;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(36,31,26,0.1);
  border-radius: 999px;
  background: rgba(255,250,242,0.86);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.material-board-grid {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  padding: 0.9rem;
  overflow: hidden;
}
.material-board-grid .flatlay-card {
  grid-column: auto;
  grid-row: auto;
  transform: none;
  min-height: 0;
}
.material-board-grid .material-card {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(6.2rem, 0.26fr) minmax(0, 0.74fr);
  gap: 0.85rem;
  padding: 0.78rem;
  border-radius: 1.15rem;
}
.material-board-grid .material-swatch {
  height: 100%;
  min-height: 0;
  border-radius: 0.95rem;
}
.material-board-grid .material-card span {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.66rem;
  line-height: 1.12;
}
.material-board-grid .material-card h3 {
  margin: 0 0 0.16rem;
  font-size: 0.98rem;
  line-height: 1.08;
}
.material-board-grid .material-card p,
.material-board-grid .material-card small {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
.material-board-grid .material-card p {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  line-height: 1.22;
}
.material-board-grid .material-card small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.22;
  font-weight: 760;
}
@media (max-width: 980px) {
  .render-spec-section .spec-layout,
  .material-board-page { grid-template-columns: 1fr; }
  .render-spec-section .spec-marker small { display: none; }
  .material-board-grid { height: auto; grid-template-rows: none; }
  .material-board-grid .material-card { min-height: 10rem; }
}

/* Luxury pitch deck upgrade: McKinsey-style story pages with one decision per slide. */
:root {
  --lux-dark: #1f2426;
  --lux-charcoal: #2c3031;
  --lux-gold: #b9975b;
  --lux-ivory: #f7f2e8;
  --lux-line: rgba(185, 151, 91, 0.28);
}
.proposal-cover,
.proposal-section {
  box-shadow: 0 28px 80px rgba(31, 36, 38, 0.14);
}
.proposal-cover h1,
.proposal-section h2,
.functional-zones-section h2,
.value-prop-section h2,
.spec-table-section h2,
.metrics-section h2,
.ending-section h2 {
  font-family: "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}
.deck-cover {
  background:
    linear-gradient(128deg, rgba(31,36,38,0.97), rgba(44,48,49,0.9) 48%, rgba(185,151,91,0.2)),
    radial-gradient(circle at 10% 10%, rgba(185,151,91,0.28), transparent 22rem);
  color: var(--lux-ivory);
}
.deck-cover h1,
.deck-cover p:not(.eyebrow),
.deck-cover dd { color: var(--lux-ivory); }
.deck-cover .eyebrow,
.dark-slide .eyebrow { color: var(--lux-gold); }
.deck-cover .editorial-meta div {
  border: 1px solid rgba(185,151,91,0.25);
  background: rgba(247,242,232,0.08);
}
.deck-cover dt { color: rgba(247,242,232,0.58); }
.deck-cover .cover-figure img {
  border: 1px solid rgba(247,242,232,0.2);
  box-shadow: 0 28px 70px rgba(0,0,0,0.32);
}
.dark-slide {
  background:
    linear-gradient(135deg, rgba(31,36,38,0.98), rgba(44,48,49,0.96)),
    radial-gradient(circle at 86% 16%, rgba(185,151,91,0.28), transparent 22rem);
  color: var(--lux-ivory);
}
.dark-slide h2,
.dark-slide h3,
.dark-slide p { color: var(--lux-ivory); }
.dark-slide p { opacity: 0.78; }
.pitch-copy p { max-width: 36rem; }
.functional-zones-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.3rem);
  background:
    linear-gradient(135deg, rgba(247,242,232,0.96), rgba(255,250,242,0.82)),
    radial-gradient(circle at 92% 10%, rgba(185,151,91,0.18), transparent 20rem);
}
.functional-zones-section .pitch-copy { min-width: 0; }
.zone-render {
  grid-row: 1 / 3;
  grid-column: 2;
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #e8dfd3;
  box-shadow: 0 18px 54px rgba(31,36,38,0.16);
}
.zone-render img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zone-render figcaption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid rgba(247,242,232,0.25);
  border-radius: 999px;
  background: rgba(31,36,38,0.68);
  color: var(--lux-ivory);
  font-size: 0.68rem;
  font-weight: 820;
  backdrop-filter: blur(14px);
}
.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  min-height: 0;
}
.zone-card,
.value-card,
.metric-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 1.22rem;
}
.zone-card {
  padding: 0.78rem;
  border: 1px solid rgba(31,36,38,0.1);
  background: rgba(255,250,242,0.8);
}
.zone-card span,
.value-card span {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--lux-dark);
  color: var(--lux-ivory);
  font-size: 0.72rem;
  font-weight: 950;
}
.zone-card h3 { margin: 0.55rem 0 0.18rem; font-size: 0.98rem; color: var(--ink); }
.zone-card p { margin: 0; font-size: 0.75rem; line-height: 1.32; }
.value-prop-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}
.value-copy { max-width: 64rem; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1rem);
  min-height: 0;
}
.value-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: clamp(1rem, 2vw, 1.45rem);
  border: 1px solid var(--lux-line);
  background: linear-gradient(180deg, rgba(247,242,232,0.1), rgba(247,242,232,0.04));
}
.value-card span { background: rgba(185,151,91,0.18); color: var(--lux-gold); }
.value-card strong {
  color: var(--lux-gold);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 0.95;
}
.value-card h3 { margin: 0; font-size: 1.15rem; }
.value-card p { margin: 0; font-size: 0.82rem; line-height: 1.45; }
.spec-table-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.9rem;
  background:
    linear-gradient(135deg, rgba(255,250,242,0.96), rgba(247,242,232,0.86)),
    radial-gradient(circle at 8% 16%, rgba(185,151,91,0.12), transparent 16rem);
}
.table-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 0.52fr);
  column-gap: 1.2rem;
  align-items: end;
}
.table-heading .eyebrow,
.table-heading h2 { grid-column: 1; }
.table-heading p:not(.eyebrow) { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 0.82rem; }
.hardware-table-wrap {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(31,36,38,0.12);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.5);
}
.hardware-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(0.56rem, 0.74vw, 0.74rem);
}
.hardware-table th,
.hardware-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid rgba(31,36,38,0.08);
  text-align: left;
  vertical-align: top;
  line-height: 1.24;
}
.hardware-table th {
  background: var(--lux-dark);
  color: var(--lux-ivory);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hardware-table td:first-child {
  width: 8%;
  color: var(--lux-gold);
  font-weight: 950;
}
.hardware-table th:nth-child(1) { width: 8%; }
.hardware-table th:nth-child(2) { width: 14%; }
.hardware-table th:nth-child(3) { width: 20%; }
.hardware-table th:nth-child(4) { width: 22%; }
.hardware-table th:nth-child(5) { width: 36%; }
.metrics-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}
.metrics-copy { align-self: center; }
.metric-grid { display: grid; gap: 0.8rem; min-height: 0; }
.metric-card {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.34fr) minmax(0, 0.66fr);
  gap: 0.9rem;
  align-items: center;
  padding: clamp(0.85rem, 1.5vw, 1.15rem);
  border: 1px solid var(--lux-line);
  background: linear-gradient(90deg, rgba(247,242,232,0.11), rgba(247,242,232,0.04));
}
.metric-card strong {
  color: var(--lux-gold);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.metric-card h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.metric-card p { margin: 0; font-size: 0.78rem; line-height: 1.38; }
@media (max-width: 980px) {
  .functional-zones-section,
  .metrics-section,
  .table-heading { grid-template-columns: 1fr; }
  .zone-render { grid-row: auto; grid-column: auto; min-height: 18rem; }
  .zone-grid,
  .value-grid { grid-template-columns: 1fr; }
  .table-heading p:not(.eyebrow) { grid-column: auto; grid-row: auto; }
}

/* Landing page revision: direct upload CTA, before/after hero, clean workflow, and paywall fake-door test. */
.hero-before-after {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 34rem;
  transform: none;
  background: linear-gradient(145deg, rgba(31,36,38,0.96), rgba(44,48,49,0.9));
  border-color: rgba(185,151,91,0.28);
  color: var(--lux-ivory, #f7f2e8);
}
.hero-before-after .browser-dots { border-bottom-color: rgba(247,242,232,0.12); }
.hero-before-after .browser-dots span { background: rgba(185,151,91,0.72); }
.input-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(190px, 1.2fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem 0.8rem;
}
.input-strip strong { color: var(--lux-ivory, #f7f2e8); line-height: 1.15; }
.mini-label {
  margin: 0 0 0.25rem;
  color: var(--lux-gold, #b9975b);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.input-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.input-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(247,242,232,0.18);
  border-radius: 0.85rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.output-preview {
  position: relative;
  min-height: 0;
  margin: 0 1rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(247,242,232,0.16);
  border-radius: 1.45rem;
  background: #181b1c;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.output-preview img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(1.04) contrast(1.02);
}
.output-preview figcaption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(185,151,91,0.26);
  border-radius: 1rem;
  background: rgba(31,36,38,0.76);
  backdrop-filter: blur(14px);
}
.output-preview figcaption span { color: var(--lux-gold, #b9975b); font-size: 0.68rem; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; }
.output-preview figcaption strong { color: var(--lux-ivory, #f7f2e8); }
.output-preview figcaption small { color: rgba(247,242,232,0.7); }
.steps-grid { align-items: stretch; }
.step-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 13.5rem;
  height: 100%;
  overflow: hidden;
}
.step-card h3 { margin: 0.85rem 0 0.4rem; line-height: 1.16; }
.step-card p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(16,18,19,0.62);
  backdrop-filter: blur(10px);
}
.paywall-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1rem, 2.6vw, 2rem);
  width: min(1040px, 100%);
  max-height: min(720px, calc(100vh - 2rem));
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(185,151,91,0.32);
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #f7f2e8, #fffaf2 62%, #ead8c1);
  box-shadow: 0 34px 100px rgba(0,0,0,0.35);
}
.paywall-close { position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2; }
.paywall-preview {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #1f2426;
}
.paywall-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: blur(3px) saturate(0.95); transform: scale(1.02); opacity: 0.82; }
.watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: 0.65rem 1rem;
  border: 1px solid rgba(247,242,232,0.48);
  border-radius: 999px;
  color: #fffaf2;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(31,36,38,0.48);
}
.paywall-copy { display: grid; align-content: center; gap: 1rem; min-width: 0; }
.paywall-copy h2 { margin: 0; font-family: "Noto Serif SC", Georgia, serif; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -0.055em; }
.paywall-copy p { margin: 0; }
.unlock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.unlock-card {
  display: grid;
  gap: 0.35rem;
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid rgba(31,36,38,0.12);
  border-radius: 1.1rem;
  background: rgba(255,250,242,0.82);
  text-align: left;
}
.unlock-card.featured { border-color: rgba(185,151,91,0.55); box-shadow: inset 0 0 0 1px rgba(185,151,91,0.22); }
.unlock-card span { color: var(--accent); font-size: 0.72rem; font-weight: 950; letter-spacing: 0.1em; text-transform: uppercase; }
.unlock-card strong { color: var(--ink); font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1; }
.unlock-card small { color: var(--muted); font-weight: 760; }
.paywall-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.beta-door {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px dashed rgba(185,151,91,0.65);
  border-radius: 1rem;
  background: rgba(255,250,242,0.72);
}
.beta-door[hidden] { display: none; }
.beta-door p { font-size: 0.9rem; line-height: 1.45; }
.beta-status { color: var(--accent-dark); font-weight: 850; }
@media (max-width: 860px) {
  .input-strip,
  .paywall-card,
  .unlock-grid { grid-template-columns: 1fr; }
  .hero-before-after { min-height: auto; }
  .output-preview img { min-height: 18rem; }
  .paywall-card { overflow: auto; }
  .paywall-preview { min-height: 18rem; }
}

/* Landing QA patch: keep the hero proof image as a strict 16:9 presentation frame and make upload copy more persuasive. */
.hero-before-after {
  grid-template-rows: auto auto auto;
  align-content: start;
  min-height: auto;
}
.output-preview {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.output-preview img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}
.demo-copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(125, 88, 53, 0.16);
  background: linear-gradient(135deg, rgba(255,250,242,0.78), rgba(245,235,220,0.52));
}
.demo-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.demo-copy .eyebrow,
.demo-copy .demo-intro,
.demo-copy .demo-goal { margin: 0; }
.demo-intro,
.demo-goal {
  color: var(--muted);
  line-height: 1.55;
}
.scope-list {
  display: grid;
  gap: 0.7rem;
}
.scope-list p {
  display: grid;
  gap: 0.22rem;
  margin: 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(125, 88, 53, 0.12);
  border-radius: 1rem;
  background: rgba(255,250,242,0.7);
}
.scope-list strong {
  color: var(--accent-dark);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scope-list span {
  color: var(--muted);
  line-height: 1.48;
}
.demo-goal {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(125, 88, 53, 0.14);
  font-weight: 760;
}
@media (max-width: 860px) {
  .output-preview img { min-height: 0; }
  .demo-copy h3 { font-size: 1.42rem; }
}

/* Landing density pass from design QA: reduce fold height, convert workflow to compact 3-card row, and keep upload card visible. */
.site-header {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}
.section-shell {
  width: min(1120px, calc(100% - 2rem));
}
.hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
  min-height: calc(100vh - 4rem);
  padding: clamp(2.4rem, 5.2vw, 4.4rem) 0 clamp(2rem, 4vw, 3.2rem);
}
.hero-copy h1 {
  max-width: 42rem;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 5.65vw, 5.35rem);
  line-height: 0.91;
  letter-spacing: -0.078em;
}
.hero-subtitle {
  max-width: 32rem;
  margin-bottom: 1.1rem;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.55;
}
.hero-actions .button {
  min-height: 2.6rem;
  padding: 0.68rem 1rem;
  font-size: 0.9rem;
}
.trust-row {
  margin-top: 0.95rem;
  gap: 0.48rem;
}
.trust-row span {
  padding: 0.38rem 0.62rem;
  font-size: 0.78rem;
}
.hero-before-after {
  justify-self: end;
  width: min(100%, 420px);
  border-radius: 1.55rem;
  transform: rotate(1.2deg);
}
.hero-before-after .browser-dots {
  padding: 0.68rem 0.85rem;
}
.hero-before-after .browser-dots span {
  width: 0.52rem;
  height: 0.52rem;
}
.input-strip {
  grid-template-columns: minmax(0, 0.88fr) minmax(125px, 1fr);
  gap: 0.68rem;
  padding: 0.72rem 0.78rem 0.65rem;
}
.input-strip strong {
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.1;
}
.mini-label {
  margin-bottom: 0.18rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}
.input-thumbs {
  gap: 0.34rem;
}
.input-thumbs img {
  border-radius: 0.55rem;
}
.output-preview {
  margin: 0 0.78rem 0.78rem;
  border-radius: 1rem;
}
.output-preview figcaption {
  left: 0.58rem;
  right: 0.58rem;
  bottom: 0.58rem;
  padding: 0.52rem 0.65rem;
  border-radius: 0.72rem;
}
.output-preview figcaption span {
  font-size: 0.58rem;
}
.output-preview figcaption strong {
  font-size: 0.92rem;
}
.output-preview figcaption small {
  font-size: 0.72rem;
  line-height: 1.2;
}
.section-stack {
  padding: clamp(2.5rem, 4.5vw, 3.8rem) 0;
}
.section-heading {
  max-width: 620px;
  margin-bottom: 1.25rem;
}
.section-heading h2,
.split-section h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.step-card {
  min-height: 9.4rem;
  padding: 1.05rem;
}
.step-card h3 {
  margin: 0.55rem 0 0.32rem;
  font-size: 1.05rem;
}
.step-card p {
  font-size: 0.82rem;
  line-height: 1.36;
}
.split-section {
  gap: 1.4rem;
  padding: clamp(2.5rem, 4.5vw, 3.6rem) 0;
}
.benefit-list {
  gap: 0.72rem;
}
.benefit-list p {
  padding: 0.78rem 1rem;
  line-height: 1.42;
}
.upload-section {
  padding: clamp(2.8rem, 5vw, 4rem) 0;
}
.upload-section .section-heading {
  margin-bottom: 1.05rem;
}
.upload-section .section-heading p {
  max-width: 760px;
  line-height: 1.5;
}
.upload-card {
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.55fr);
  gap: 0.9rem;
  padding: 0.95rem;
  border-radius: 1.35rem;
}
.project-form {
  gap: 0.72rem;
}
.form-grid {
  gap: 0.72rem;
}
.project-form label {
  gap: 0.28rem;
  font-size: 0.82rem;
}
.project-form input,
.project-form select {
  padding: 0.68rem 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.92rem;
}
.source-row {
  gap: 0.44rem;
}
.source-pill {
  padding: 0.48rem 0.68rem;
  font-size: 0.78rem;
}
.dropzone {
  min-height: 8.1rem;
  padding: 1rem;
  border-radius: 1rem;
}
.dropzone-title {
  font-size: 1rem;
}
.dropzone-help {
  font-size: 0.82rem;
}
.form-error {
  min-height: 1rem;
  margin: 0;
  font-size: 0.82rem;
}
#generate-button {
  min-height: 3.45rem;
  margin-top: 0.15rem;
}
.demo-copy {
  gap: 0.62rem;
  padding: 0.84rem;
  border-radius: 1rem;
}
.demo-copy h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.55rem);
  line-height: 1.02;
}
.demo-intro,
.demo-goal,
.scope-list span {
  font-size: 0.8rem;
  line-height: 1.34;
}
.scope-list {
  gap: 0.46rem;
}
.scope-list p {
  gap: 0.16rem;
  padding: 0.58rem 0.62rem;
  border-radius: 0.74rem;
}
.scope-list strong {
  font-size: 0.62rem;
}
.demo-goal {
  padding-top: 0.55rem;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }
  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 12vw, 4.1rem);
  }
  .hero-before-after {
    justify-self: center;
    width: min(100%, 420px);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .upload-card {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 861px) and (max-height: 760px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2.2rem;
  }
  .hero-copy h1 {
    font-size: clamp(3rem, 5vw, 4.65rem);
  }
  .hero-before-after {
    width: min(100%, 390px);
  }
}

/* Upload affordance + hero proof scale adjustment from QA screenshots. */
@media (min-width: 861px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
  }
  .hero-before-after {
    width: min(100%, 520px);
  }
}
@media (min-width: 1220px) {
  .hero-before-after {
    width: min(100%, 548px);
  }
}
@media (min-width: 861px) and (max-height: 760px) {
  .hero-before-after {
    width: min(100%, 500px);
  }
}
.dropzone {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  min-height: 15.4rem;
  padding: 1.45rem;
}
.dropzone-plus {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  margin-bottom: 0.12rem;
  border: 1.5px solid rgba(125, 88, 53, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--accent-dark);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 5px rgba(234, 216, 193, 0.2);
}
.dropzone:hover .dropzone-plus,
.dropzone.is-dragging .dropzone-plus {
  border-color: rgba(125, 88, 53, 0.58);
  background: rgba(234, 216, 193, 0.44);
  transform: scale(1.03);
}
@media (max-width: 860px) {
  .dropzone {
    min-height: 13rem;
    padding: 1.2rem;
  }
  .dropzone-plus {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.9rem;
  }
}

/* QA fine tune: use remaining upload card space and make hero proof panel more prominent. */
@media (min-width: 861px) {
  .hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(500px, 1.05fr);
    gap: clamp(1.2rem, 2.4vw, 2rem);
  }
  .hero-before-after {
    width: min(100%, 640px);
  }
}
@media (min-width: 1220px) {
  .hero-before-after {
    width: min(100%, 690px);
  }
}
@media (min-width: 861px) and (max-height: 760px) {
  .hero-before-after {
    width: min(100%, 610px);
  }
}
.dropzone {
  min-height: 18.8rem;
}
@media (min-width: 861px) {
  .dropzone {
    min-height: clamp(18.8rem, 30vh, 22.5rem);
  }
}
@media (max-width: 860px) {
  .dropzone {
    min-height: 15.5rem;
  }
}

/* Density pass: tighter rhythm, 3-card feature row, and a shorter upload card that fits common desktop heights. */
.section-shell {
  width: min(1200px, calc(100% - 2rem));
}
.section-stack,
.split-section,
.upload-section {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}
.hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.split-section {
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 1.2rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.feature-card {
  display: grid;
  align-content: start;
  min-height: 5.8rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 250, 242, 0.72);
  color: var(--muted);
  line-height: 1.42;
  box-shadow: 0 12px 28px rgba(66,43,20,0.06);
}
.upload-section {
  padding-bottom: 3.5rem;
}
.upload-card {
  align-items: start;
  grid-template-columns: minmax(0, 1.48fr) minmax(240px, 0.52fr);
  gap: 0.75rem;
  padding: 0.8rem;
}
.project-form {
  gap: 0.5rem;
}
.form-grid {
  gap: 0.5rem;
}
.project-form label {
  gap: 0.24rem;
}
.project-form input,
.project-form select {
  padding: 0.6rem 0.75rem;
}
.source-row {
  gap: 0.35rem;
}
.source-pill {
  padding: 0.42rem 0.62rem;
  font-size: 0.75rem;
}
.dropzone {
  min-height: 8.8rem;
  padding: 0.85rem;
  gap: 0.32rem;
}
.dropzone-plus {
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.8rem;
}
.dropzone-title {
  font-size: 0.96rem;
}
.dropzone-help {
  font-size: 0.78rem;
}
.render-preview {
  gap: 0.5rem;
}
.file-chip {
  padding: 0.66rem;
}
#generate-button {
  min-height: 3.1rem;
}
.compact-copy {
  gap: 0.45rem;
  padding: 0.72rem;
}
.compact-copy h3 {
  font-size: 1.18rem;
  line-height: 1.04;
}
.compact-copy .demo-intro {
  font-size: 0.74rem;
  line-height: 1.32;
}
.compact-copy .scope-list {
  gap: 0.38rem;
}
.compact-copy .scope-list p {
  padding: 0.48rem 0.55rem;
  border-radius: 0.72rem;
}
.compact-copy .scope-list strong {
  font-size: 0.6rem;
}
.compact-copy .scope-list span {
  font-size: 0.72rem;
  line-height: 1.28;
}
@media (max-width: 860px) {
  .section-stack,
  .split-section,
  .upload-section {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }
  .feature-grid,
  .upload-card {
    grid-template-columns: 1fr;
  }
  .dropzone {
    min-height: 8.4rem;
  }
}
@media (min-width: 861px) and (max-height: 800px) {
  .upload-card {
    padding: 0.72rem;
    gap: 0.62rem;
  }
  .dropzone {
    min-height: 8.4rem;
  }
}

/* Upload area refactor: strict two-column form/sidebar layout and clearer upload UX. */
.upload-card {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(260px, 0.32fr);
  align-items: stretch;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.upload-card > .project-form,
.upload-card > .demo-scope-card {
  min-width: 0;
}

.upload-card > .project-form {
  grid-column: 1;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 0.65rem;
}

.upload-card > .demo-scope-card {
  grid-column: 2;
}

.project-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.project-form label {
  gap: 0.26rem;
}

.project-form input,
.project-form select {
  color: #111111;
  background: rgba(255, 255, 255, 0.9);
}

.project-form input::placeholder,
.project-form textarea::placeholder {
  color: #999999;
  font-style: italic;
  opacity: 1;
}

.dropzone {
  min-height: clamp(7.5rem, 16vh, 9.2rem);
  padding: 1rem;
  border: 2px dashed rgba(17, 17, 17, 0.3);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragging {
  border-color: rgba(17, 17, 17, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.045), inset 0 0 0 1px rgba(17, 17, 17, 0.04);
  transform: translateY(-1px);
}

.dropzone-plus {
  width: 3.35rem;
  height: 3.35rem;
  border: 1.5px solid rgba(17, 17, 17, 0.18);
  background: rgba(250, 250, 250, 0.96);
  color: #111111;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
}

.dropzone:hover .dropzone-plus,
.dropzone.is-dragging .dropzone-plus,
.dropzone:focus-visible .dropzone-plus {
  border-color: rgba(17, 17, 17, 0.38);
  background: #ffffff;
  transform: scale(1.04);
}

.dropzone-title {
  color: #111111;
  font-size: 1rem;
  font-weight: 800;
}

.dropzone-help {
  color: #8f8a83;
  font-size: 0.78rem;
}

#generate-button {
  width: 100%;
  max-width: 100%;
  min-height: 3.05rem;
  grid-column: auto;
  justify-self: stretch;
  box-sizing: border-box;
}

.demo-scope-card {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 0.9rem;
  border-radius: 1rem;
  overflow: hidden;
}

.demo-scope-card .eyebrow {
  margin: 0;
}

.scope-badges {
  display: grid;
  gap: 0.7rem;
}

.scope-badge {
  display: grid;
  gap: 0.22rem;
  padding: 0.82rem;
  border: 1px solid rgba(125, 88, 53, 0.14);
  border-radius: 0.86rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 22px rgba(66, 43, 20, 0.05);
}

.scope-badge strong {
  color: #111111;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.scope-badge span {
  color: #716a61;
  font-size: 0.76rem;
  line-height: 1.32;
}

.site-footer {
  color: #a0a0a0;
  font-size: 12px;
  padding: 1.1rem clamp(1rem, 4vw, 4rem);
}

.site-footer span {
  color: inherit;
  font-size: inherit;
}

@media (min-width: 861px) and (max-height: 800px) {
  .upload-card {
    padding: 0.85rem;
    gap: 0.8rem;
  }

  .dropzone {
    min-height: 7.5rem;
    padding: 0.82rem;
  }

  .dropzone-plus {
    width: 2.9rem;
    height: 2.9rem;
    font-size: 2rem;
  }

  .demo-scope-card,
  .scope-badge {
    padding: 0.72rem;
  }
}

@media (max-width: 860px) {
  .upload-card {
    grid-template-columns: 1fr;
  }

  .upload-card > .project-form,
  .upload-card > .demo-scope-card {
    grid-column: 1;
  }

  .project-form .form-grid {
    grid-template-columns: 1fr;
  }

  .dropzone {
    min-height: 8.2rem;
  }
}

/* RenderDeck hero preview replacement: show the provided preview image without cropping or duplicate overlay text. */
.output-preview img.hero-output-image {
  object-fit: contain;
  object-position: center;
  background: #eadfce;
}

.output-preview .hero-output-caption {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* Immediate AI generation feedback: keep the user informed while the Vision request is in flight. */
.generation-card {
  grid-template-columns: 1fr;
  width: min(560px, calc(100% - 2rem));
  max-height: none;
}

.generation-copy {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-height: 260px;
  padding: 1rem;
  text-align: center;
}

.generation-copy h2 { margin: 0; }
.generation-copy p { max-width: 34rem; line-height: 1.6; }
.generation-copy small { color: var(--muted); }
.generation-spinner {
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid rgba(185,151,91,0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: generation-spin 900ms linear infinite;
}
.generation-progress {
  width: min(320px, 100%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31,36,38,0.12);
}
.generation-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: generation-progress 1.6s ease-in-out infinite;
}
@keyframes generation-spin { to { transform: rotate(360deg); } }
@keyframes generation-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(270%); }
}

/* Unified generation + paywall modal: one fixed frame, two smoothly layered states. */
.generation-modal .generation-card {
  width: min(760px, calc(100vw - 2rem));
  max-width: 760px;
  min-height: 430px;
  grid-template-columns: 1fr;
  padding: 1rem;
  overflow: hidden;
}
.generation-stage {
  display: grid;
  min-height: 398px;
}
.generation-state {
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.generation-state.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.generation-loading-view,
.generation-ready-view {
  grid-template-columns: minmax(190px, 0.84fr) minmax(0, 1.16fr);
  gap: 1.25rem;
}
.generation-loading-view {
  padding: 1.25rem;
}
.generation-visual {
  display: grid;
  place-items: center;
  min-height: 300px;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ebe6dc, #d7d0c4 52%, #b9ad9b);
  overflow: hidden;
}
.generation-scan-frame {
  position: relative;
  width: 78%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.75);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(255,250,242,0.82), rgba(117,100,78,0.28));
  box-shadow: 0 1rem 2.5rem rgba(44, 37, 28, 0.16);
}
.generation-scan-frame::before,
.generation-scan-frame::after,
.scan-block {
  content: "";
  position: absolute;
  border-radius: 0.35rem;
  background: rgba(255,250,242,0.56);
  box-shadow: 0 0 1.2rem rgba(255,250,242,0.48);
}
.generation-scan-frame::before { inset: 12% 14% 56% 12%; }
.generation-scan-frame::after { inset: 52% 12% 12% 44%; }
.scan-block-one { inset: 32% 56% 13% 12%; }
.scan-block-two { inset: 68% 33% 12% 58%; }
.scan-block-three { inset: 20% 12% 70% 62%; }
.scan-line {
  position: absolute;
  z-index: 2;
  left: -10%;
  right: -10%;
  top: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 1rem rgba(185,151,91,0.95);
  animation: generation-scan 2.2s ease-in-out infinite;
}
.generation-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem 0.85rem 1rem 0;
  text-align: left;
}
.generation-copy h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.generation-copy p { margin: 0; max-width: 32rem; line-height: 1.55; }
.generation-copy small { color: var(--muted); line-height: 1.45; }
.generation-step-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 30rem);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}
.generation-step-line strong { color: var(--ink); }
.generation-progress {
  width: min(100%, 30rem);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31,36,38,0.12);
}
.generation-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s ease;
}
.generation-ready-view { padding: 0.35rem; }
.generation-ready-view .paywall-preview { min-height: 350px; }
.generation-ready-view .paywall-copy { position: relative; align-content: center; gap: 0.75rem; padding: 1rem 0.85rem 1rem 0.25rem; }
.generation-ready-view .paywall-copy h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.generation-ready-view .paywall-copy > p { line-height: 1.5; }
.generation-ready-view .paywall-close { top: 0.1rem; right: 0.1rem; }
.pricing-table { display: grid; gap: 0; width: 100%; border: 1px solid rgba(31,36,38,0.12); border-radius: 0.9rem; overflow: hidden; background: rgba(255,250,242,0.72); }
.pricing-row { display: grid; grid-template-columns: 0.8fr 0.65fr 1.55fr; gap: 0.5rem; align-items: center; padding: 0.55rem 0.7rem; border-top: 1px solid rgba(31,36,38,0.09); font-size: 0.78rem; }
.pricing-row:first-child { border-top: 0; }
.pricing-row-head { color: var(--muted); font-size: 0.66rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(31,36,38,0.035); }
.pricing-row-featured { background: rgba(185,151,91,0.12); }
.pricing-row strong { font-size: 0.88rem; }
.single-export-note { color: var(--muted); font-size: 0.79rem; }
.single-export-note strong { color: var(--ink); }
.generation-ready-view .paywall-actions { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
.generation-ready-view .paywall-actions .button { width: 100%; }
@keyframes generation-scan { 0%, 100% { top: 8%; opacity: 0.25; } 50% { top: 90%; opacity: 1; } }
@media (max-width: 700px) {
  .generation-modal .generation-card { min-height: 0; max-height: calc(100vh - 1rem); overflow: auto; }
  .generation-stage { min-height: 0; }
  .generation-loading-view,
  .generation-ready-view { grid-template-columns: 1fr; gap: 0.8rem; }
  .generation-visual { min-height: 175px; }
  .generation-scan-frame { width: 45%; aspect-ratio: 16 / 9; }
  .generation-copy,
  .generation-ready-view .paywall-copy { padding: 0.5rem; }
  .generation-ready-view .paywall-preview { min-height: 190px; }
}

/* Part 3 / Overall Bedroom Composition: cleaner 65/35 spec layout and hotspot logic. */
.section-bedroom-composition .spec-layout {
  grid-template-columns: minmax(0, 65fr) minmax(280px, 35fr);
  gap: 1rem;
  align-items: stretch;
  height: calc(100% - 5.2rem);
}
.section-bedroom-composition .spec-stage {
  position: relative;
  display: block;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 20px 70px rgba(66, 43, 20, 0.16);
}
.section-bedroom-composition .spec-stage img,
.render-spec-section.section-bedroom-composition .spec-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover !important;
  display: block;
  background: transparent;
}
.section-bedroom-composition .spec-sidebar {
  align-content: start;
  gap: 0.72rem;
  padding: 0.88rem;
}
.section-bedroom-composition .spec-material-list {
  gap: 0.56rem;
}
.section-bedroom-composition .crop-strip,
.section-bedroom-composition .thumbnail-preview-group {
  display: none !important;
}
.section-bedroom-composition .marker-layer {
  pointer-events: none;
  z-index: 3;
}
.section-bedroom-composition .spec-marker {
  gap: 0;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}
.section-bedroom-composition .spec-marker::before,
.section-bedroom-composition .spec-marker small {
  display: none !important;
}
.section-bedroom-composition .spec-marker span {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #ff6b00;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
  animation: hotspot-pulse 1.8s ease-in-out infinite;
}
.section-bedroom-composition .spec-marker:hover span,
.section-bedroom-composition .spec-marker:focus-visible span {
  transform: scale(1.12);
  box-shadow: 0 0 0 8px rgba(255, 107, 0, 0.16), 0 0 16px rgba(255, 107, 0, 0.72);
}
.section-bedroom-composition .material-card.spec-key-card {
  grid-template-columns: 3rem minmax(0, 1fr);
  min-height: 0;
  padding: 0.52rem;
  border-color: rgba(36, 31, 26, 0.11);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.section-bedroom-composition .material-card.spec-key-card .material-swatch {
  min-height: 2.9rem;
  border-radius: 0.7rem;
}
.section-bedroom-composition .material-card.spec-key-card h3 {
  font-size: 0.78rem;
  line-height: 1.05;
}
.section-bedroom-composition .material-card.spec-key-card small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
}
.section-bedroom-composition .material-card.is-highlighted {
  transform: translateX(-2px);
  border-color: #ff6b00;
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.14), 0 14px 38px rgba(66, 43, 20, 0.12);
}
@keyframes hotspot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.35), 0 0 10px rgba(255, 107, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 107, 0, 0), 0 0 14px rgba(255, 107, 0, 0.7);
  }
}
@media (max-width: 980px) {
  .section-bedroom-composition .spec-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .section-bedroom-composition .spec-stage,
  .section-bedroom-composition .spec-stage img {
    height: auto;
    min-height: 24rem;
  }
}

/* Phase 5: concise design reasoning cards for proposal blocks. */
.design-story-card {
  display: grid;
  gap: 0.52rem;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.78rem;
  border: 1px solid rgba(36, 31, 26, 0.12);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(247, 242, 232, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(185, 151, 91, 0.12), transparent 12rem);
  box-shadow: 0 14px 38px rgba(66, 43, 20, 0.08);
}
.design-story-card article,
.design-story-card .story-evidence {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(36, 31, 26, 0.08);
  border-radius: 0.86rem;
  background: rgba(255, 255, 255, 0.34);
}
.design-story-card article span,
.design-story-card .story-evidence span {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  line-height: 1.1;
  text-transform: uppercase;
}
.design-story-card article p,
.design-story-card .story-evidence p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  font-weight: 720;
  line-height: 1.32;
}
.design-story-card .story-arrow {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin: -0.18rem auto;
  border: 1px solid rgba(185, 151, 91, 0.32);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.86);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1;
}
.design-story-card .story-evidence {
  border-style: dashed;
  background: rgba(234, 216, 193, 0.24);
}
.design-story-card.story-compact {
  margin-top: 0;
  padding: 0.55rem;
  gap: 0.36rem;
  border-radius: 0.95rem;
}
.design-story-card.story-compact article,
.design-story-card.story-compact .story-evidence {
  padding: 0.48rem 0.55rem;
  border-radius: 0.72rem;
}
.design-story-card.story-compact article p,
.design-story-card.story-compact .story-evidence p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.66rem;
  line-height: 1.24;
}
.design-story-card.story-compact .story-evidence { display: none; }
.dark-slide .design-story-card,
.design-story-card.client-value-section {
  border-color: rgba(185, 151, 91, 0.28);
  background: linear-gradient(180deg, rgba(247, 242, 232, 0.1), rgba(247, 242, 232, 0.05));
  box-shadow: none;
}
.dark-slide .design-story-card article,
.dark-slide .design-story-card .story-evidence,
.design-story-card.client-value-section article,
.design-story-card.client-value-section .story-evidence {
  border-color: rgba(185, 151, 91, 0.22);
  background: rgba(247, 242, 232, 0.08);
}
.dark-slide .design-story-card article p,
.dark-slide .design-story-card .story-evidence p,
.design-story-card.client-value-section article p,
.design-story-card.client-value-section .story-evidence p {
  color: var(--lux-ivory);
  opacity: 0.86;
}
.dark-slide .design-story-card .story-arrow,
.design-story-card.client-value-section .story-arrow {
  border-color: rgba(185, 151, 91, 0.38);
  background: rgba(185, 151, 91, 0.14);
  color: var(--lux-gold);
}
.material-story-card {
  border-color: rgba(155, 123, 85, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.92), rgba(234, 216, 193, 0.48)),
    radial-gradient(circle at 18% 0%, rgba(155, 123, 85, 0.14), transparent 14rem);
}
.client-value-section {
  position: relative;
}
.client-value-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: var(--lux-gold, var(--accent));
  opacity: 0.9;
}
.table-heading .design-story-card,
.palette-section .design-story-card,
.text-section .design-story-card {
  grid-column: 1 / -1;
}
.section-kicker .design-story-card,
.pitch-copy .design-story-card,
.tactile-copy .design-story-card,
.ending-section .design-story-card {
  max-width: 34rem;
}
@media (max-width: 760px) {
  .design-story-card {
    gap: 0.45rem;
    padding: 0.66rem;
  }
  .design-story-card article,
  .design-story-card .story-evidence {
    padding: 0.54rem 0.62rem;
  }
}

/* MVP 0.3: nine-section deck layout. Space Transformation pages show the render
   as the hero and keep the Design Intent / Key Decisions copy unobstructed. */
.space-transformation-section .spec-layout {
  grid-template-columns: minmax(0, 3.55fr) minmax(220px, 1fr);
  gap: 1rem;
  min-height: 0;
  height: 100%;
}

.space-transformation-section .spec-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1.35rem;
}

.space-transformation-section .spec-stage img,
.space-transformation-section .spec-stage img.main-render {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  background: #ece2d7;
}

.space-transformation-section .spec-sidebar {
  align-content: start;
  min-height: 0;
  padding: 0.8rem;
  overflow: hidden;
}

.space-transformation-section .marker-layer,
.space-transformation-section .spec-marker,
.space-transformation-section .spec-material-list,
.space-transformation-section .accessory-list,
.space-transformation-section .thumbnail-preview-group,
.space-transformation-section .crop-strip {
  display: none !important;
}

.key-decisions-section {
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  min-width: 0;
}

.decision-card {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(36, 31, 26, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 250, 242, 0.78);
  overflow: hidden;
}

.decision-card > span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.decision-card h3 {
  margin: 0.55rem 0 0.3rem;
  font-size: clamp(0.88rem, 1.1vw, 1.12rem);
  line-height: 1.15;
}

.decision-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  font-size: 0.78rem;
  line-height: 1.34;
}

.decision-card small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .space-transformation-section .spec-layout,
  .key-decisions-section {
    grid-template-columns: 1fr;
  }

  .space-transformation-section .spec-stage,
  .space-transformation-section .spec-stage img {
    height: auto;
    min-height: 24rem;
  }
}

@media (max-width: 620px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }
}
/* Final MVP proposal polish: readable editorial pages, large imagery, and a contained generation modal. */

/* Generation + paywall modal: keep the fixed frame stable while the beta form expands. */
.generation-modal {
  overflow-x: hidden;
  overflow-y: auto;
  place-items: center;
}
.generation-modal .generation-card {
  width: min(760px, calc(100vw - 2rem));
  max-width: 760px;
  max-height: calc(100vh - 2rem);
  min-height: 0;
  overflow: hidden;
}
.generation-modal .generation-stage {
  min-height: 0;
  max-height: calc(100vh - 4rem);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.generation-ready-view {
  align-items: start;
}
.generation-ready-view .paywall-preview {
  height: clamp(210px, 38vh, 320px);
  min-height: 0;
}
.generation-ready-view .paywall-copy {
  align-content: start;
  gap: 0.55rem;
  min-height: 0;
  padding: 0.72rem 0.7rem 0.72rem 0.15rem;
}
.generation-ready-view .paywall-copy h2 {
  font-size: clamp(1.75rem, 4vw, 2.85rem);
}
.generation-ready-view .paywall-copy > p {
  font-size: 0.78rem;
  line-height: 1.36;
}
.generation-ready-view .pricing-table {
  font-size: 0.74rem;
}
.generation-ready-view .pricing-row {
  padding: 0.42rem 0.58rem;
}
.generation-ready-view .single-export-note {
  font-size: 0.74rem;
}
.generation-ready-view .beta-door {
  gap: 0.55rem;
  min-width: 0;
  padding: 0.65rem;
}
.generation-ready-view .beta-door p {
  font-size: 0.76rem;
  line-height: 1.35;
}
.generation-ready-view .beta-door input,
.generation-ready-view .beta-door .button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.generation-ready-view .paywall-actions {
  gap: 0.45rem;
}
.generation-ready-view .paywall-actions .button {
  min-width: 0;
  white-space: normal;
}

/* Do not truncate proposal copy; text should wrap instead of becoming an ellipsis. */
.flow-card,
.editorial-decision,
.editorial-decision-copy,
.zone-card,
.value-card,
.material-card,
.material-card > div:last-child {
  overflow: visible;
}
.flow-card p,
.editorial-decision-copy p,
.editorial-decision-copy small,
.zone-card p,
.value-card p,
.material-board-grid .material-card p,
.material-board-grid .material-card small {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  white-space: normal;
}

/* 03 / Client Lifestyle Understanding — horizontal story cards plus a spatial relationship line. */
.spatial-section {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.7rem);
}
.spatial-intro {
  display: grid;
  align-content: center;
  min-width: 0;
}
.spatial-intro > p:not(.eyebrow) {
  display: block;
  overflow: visible;
  max-width: 32rem;
}
.spatial-flow-content {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-width: 0;
}
.flow-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.65rem;
}
.flow-card {
  display: grid;
  align-content: start;
  min-height: 11.5rem;
  height: 100%;
  padding: 0.9rem;
}
.flow-card h3 {
  margin: 0.65rem 0 0.35rem;
  font-size: clamp(0.92rem, 1.2vw, 1.18rem);
  line-height: 1.1;
}
.flow-card p {
  margin: 0;
  font-size: clamp(0.72rem, 0.9vw, 0.83rem);
  line-height: 1.38;
}
.spatial-relationship {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid rgba(36, 31, 26, 0.15);
  border-bottom: 1px solid rgba(36, 31, 26, 0.15);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spatial-relationship i {
  color: var(--accent);
  font-size: 1rem;
  font-style: normal;
}

/* 04 / Space Transformation — image first, then a compact design explanation. */
.space-transformation-section {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
}
.space-transformation-section .spec-layout,
.space-transformation-section .render-analysis-layout {
  display: block;
  min-height: 0;
  height: auto;
}
.space-transformation-section .spec-stage,
.space-transformation-section .render-analysis-figure {
  width: 100%;
  height: clamp(15rem, 42vh, 28rem);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1.35rem;
}
.space-transformation-section .spec-stage img,
.space-transformation-section .spec-stage img.main-render {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover !important;
  object-position: center;
  background: transparent;
}
.space-transformation-section .spec-note,
.space-transformation-section .marker-layer,
.space-transformation-section .spec-marker,
.space-transformation-section .spec-sidebar,
.space-transformation-section .crop-strip,
.space-transformation-section .thumbnail-preview-group {
  display: none !important;
}
.render-story-panel {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.render-story-panel > .eyebrow {
  margin: 0;
}
.render-story-panel .design-story-card {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.42rem;
  margin-top: 0;
  padding: 0.52rem;
}
.render-story-panel .design-story-card article {
  padding: 0.5rem 0.6rem;
}
.render-story-panel .design-story-card article p {
  font-size: 0.72rem;
  line-height: 1.28;
}
.render-story-panel .design-story-card .story-arrow {
  align-self: center;
}

/* 05 / Key Design Decisions — editorial rows, not dashboard cards. */
.key-decisions-section {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1.66fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.8rem);
}
.key-decisions-intro {
  min-width: 0;
}
.key-decisions-intro > p:not(.eyebrow) {
  display: block;
  overflow: visible;
}
.editorial-decision-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
}
.editorial-decision {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) 8.8rem;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(36, 31, 26, 0.14);
}
.editorial-decision:last-child {
  border-bottom: 1px solid rgba(36, 31, 26, 0.14);
}
.editorial-decision-number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.55rem);
  line-height: 1;
}
.editorial-decision-copy {
  min-width: 0;
}
.editorial-decision-copy .eyebrow {
  margin: 0 0 0.22rem;
  font-size: 0.58rem;
}
.editorial-decision-copy h3 {
  margin: 0 0 0.24rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  line-height: 1.05;
}
.editorial-decision-copy p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.34;
}
.editorial-decision-copy small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.28;
}
.editorial-decision-figure {
  width: 100%;
  height: 5.3rem;
  margin: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #ddd0c1;
}
.editorial-decision-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 06 / Material & Color Story — one page with a left philosophy and a compact palette board. */
.material-board-page {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.7rem);
}
.material-board-page .tactile-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}
.material-board-page .tactile-copy > p:not(.eyebrow):not(.material-language-label) {
  display: block;
  overflow: visible;
}
.material-language-label {
  margin: 0.9rem 0 0.28rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.material-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  gap: 0.58rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.material-board-grid .flatlay-card {
  display: grid;
  min-width: 0;
  min-height: 0;
}
.material-board-grid .material-card {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  align-items: center;
  height: 100%;
  min-height: 0;
  padding: 0.56rem;
  gap: 0.58rem;
  overflow: visible;
}
.material-board-grid .material-swatch {
  min-height: 100%;
  height: 100%;
  border-radius: 0.72rem;
}
.material-board-grid .material-card h3 {
  margin: 0.18rem 0 0.12rem;
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  line-height: 1.1;
}
.material-board-grid .material-card span {
  font-size: 0.57rem;
}
.material-board-grid .material-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.22;
}
.material-board-grid .material-card small {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.62rem;
  line-height: 1.2;
}

/* 07 / Functional Experience — let the render carry the emotional focus. */
.functional-experience-section {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.7rem;
}
.functional-heading {
  min-width: 0;
}
.functional-heading p:not(.eyebrow) {
  display: block;
  max-width: 54rem;
  overflow: visible;
}
.functional-experience-section .zone-render {
  grid-row: auto;
  grid-column: auto;
  width: 100%;
  height: clamp(15rem, 37vh, 25rem);
  min-height: 0;
}
.functional-experience-section .zone-render img {
  object-fit: cover;
}
.functional-experience-section .zone-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}
.functional-experience-section .zone-card {
  min-height: 0;
  padding: 0.7rem;
}
.functional-experience-section .zone-card h3 {
  margin: 0.42rem 0 0.18rem;
  font-size: 0.88rem;
}
.functional-experience-section .zone-card p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
}

/* 08 / Why This Design Works — dark climax page with a large image and a large number. */
.value-prop-section {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(0.8rem, 1.6vw, 1.25rem);
}
.value-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: none;
}
.value-copy p:not(.eyebrow) {
  display: block;
  overflow: visible;
}
.value-hero-render {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #181b1c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.value-hero-render img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.value-hero-number {
  position: absolute;
  right: 0.8rem;
  bottom: -0.38rem;
  color: rgba(185, 151, 91, 0.92);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  pointer-events: none;
}
.value-prop-section .value-grid {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.48rem;
}
.value-prop-section .value-card {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  grid-template-areas:
    "number metric"
    "number title"
    "number text";
  column-gap: 0.62rem;
  row-gap: 0.18rem;
  padding: 0.58rem 0.68rem;
  overflow: visible;
}
.value-prop-section .value-card span { grid-area: number; }
.value-prop-section .value-card strong {
  grid-area: metric;
  font-size: 1.24rem;
}
.value-prop-section .value-card h3 {
  grid-area: title;
  font-size: 0.92rem;
}
.value-prop-section .value-card p {
  grid-area: text;
  font-size: 0.68rem;
  line-height: 1.28;
}

/* Keep the deck copy clean and remove any legacy disclaimer if old data is loaded. */
.space-transformation-section [class*="note"],
.space-transformation-section .ai-disclaimer,
.space-transformation-section .vision-disclaimer,
.proposal-page .ai-disclaimer,
.proposal-page .vision-disclaimer {
  display: none !important;
}

@media (max-width: 980px) {
  .spatial-section,
  .key-decisions-section,
  .material-board-page,
  .value-prop-section {
    grid-template-columns: 1fr;
  }
  .flow-board,
  .functional-experience-section .zone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .space-transformation-section .spec-stage,
  .space-transformation-section .render-analysis-figure {
    height: clamp(16rem, 44vh, 25rem);
  }
  .value-hero-render {
    grid-column: 1;
    grid-row: auto;
    height: clamp(16rem, 44vh, 25rem);
  }
  .value-copy,
  .value-prop-section .value-grid {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .generation-modal {
    align-items: start;
    padding: 0.55rem;
  }
  .generation-modal .generation-card {
    width: min(760px, 100%);
    max-height: calc(100vh - 1.1rem);
  }
  .generation-modal .generation-stage {
    max-height: calc(100vh - 2.2rem);
  }
  .generation-ready-view {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .generation-ready-view .paywall-preview {
    height: 190px;
  }
  .generation-ready-view .paywall-copy {
    padding: 0.5rem;
  }
  .flow-board,
  .functional-experience-section .zone-grid {
    grid-template-columns: 1fr;
  }
  .flow-card {
    min-height: 0;
  }
  .spatial-relationship {
    justify-content: center;
  }
  .editorial-decision {
    grid-template-columns: 2.3rem minmax(0, 1fr);
  }
  .editorial-decision-figure {
    display: none;
  }
  .render-story-panel .design-story-card {
    grid-template-columns: 1fr;
  }
  .render-story-panel .design-story-card .story-arrow {
    margin: 0 auto;
    transform: rotate(0deg);
  }
  .material-board-grid {
    grid-template-rows: none;
  }
  .material-board-grid .flatlay-card {
    min-height: 5rem;
  }
}

/* Final QA pass: contain the modal, show full proposal copy, and use the slide height intentionally. */
html:has(#generation-modal),
body:has(#generation-modal) {
  overflow: hidden;
}

.generation-modal {
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  place-items: center;
  overscroll-behavior: contain;
}
.generation-modal .generation-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: min(760px, calc(100vw - 1.5rem));
  height: min(688px, calc(100vh - 1.5rem));
  max-width: 760px;
  max-height: calc(100vh - 1.5rem);
  min-height: 0;
  padding: 0.75rem;
  overflow: hidden;
}
.generation-modal .generation-stage {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.generation-modal .generation-close {
  top: 0.7rem;
  right: 0.7rem;
  z-index: 12;
}
.generation-modal .generation-close[hidden] {
  display: none;
}
.generation-loading-view,
.generation-ready-view {
  min-width: 0;
  min-height: 100%;
}
.generation-loading-view {
  align-content: center;
  padding: 0.75rem;
}
.generation-loading-view .generation-visual {
  min-height: min(300px, 42vh);
}
.generation-ready-view {
  align-content: start;
  padding: 0.2rem;
}
.generation-ready-view .paywall-preview {
  height: clamp(210px, 34vh, 300px);
  min-height: 0;
}
.generation-ready-view .paywall-copy {
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.25rem 0.7rem 0.35rem 0.1rem;
}
.generation-ready-view .paywall-copy h2 {
  max-width: 12ch;
  font-size: clamp(1.75rem, 3.3vw, 2.45rem);
  line-height: 0.98;
}
.generation-ready-view .paywall-copy > p {
  font-size: 0.74rem;
  line-height: 1.34;
}
.generation-ready-view .pricing-table {
  min-width: 0;
  font-size: 0.7rem;
}
.generation-ready-view .pricing-row {
  grid-template-columns: 0.72fr 0.72fr 1.56fr;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.38rem 0.52rem;
  overflow-wrap: anywhere;
}
.generation-ready-view .pricing-row span,
.generation-ready-view .pricing-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.generation-ready-view .pricing-row-head {
  font-size: 0.58rem;
}
.generation-ready-view .single-export-note {
  font-size: 0.7rem;
  line-height: 1.25;
}
.generation-ready-view .paywall-actions {
  gap: 0.42rem;
}
.generation-ready-view .paywall-actions .button {
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.62rem 0.78rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.generation-ready-view .beta-door {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.55rem;
}
.generation-ready-view .beta-door p,
.generation-ready-view .beta-door .beta-status {
  grid-column: 1 / -1;
}
.generation-ready-view .beta-door p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
}
.generation-ready-view .beta-door input {
  min-width: 0;
  width: 100%;
  padding: 0.65rem 0.75rem;
}
.generation-ready-view .beta-door .button {
  width: auto;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.62rem 0.78rem;
  white-space: nowrap;
}
.generation-ready-view .beta-status {
  font-size: 0.68rem;
  line-height: 1.25;
}

/* Never replace readable proposal copy with an ellipsis. */
.proposal-page .section-kicker > p:not(.eyebrow),
.proposal-page .spatial-intro > p:not(.eyebrow),
.proposal-page .functional-heading > p:not(.eyebrow),
.proposal-page .value-copy > p:not(.eyebrow),
.proposal-page .tactile-copy > p:not(.eyebrow),
.proposal-page .ending-section > div > p:not(.eyebrow),
.proposal-page .spec-heading p,
.proposal-page .flow-card p,
.proposal-page .editorial-decision-copy p,
.proposal-page .editorial-decision-copy small,
.proposal-page .zone-card p,
.proposal-page .value-card p,
.proposal-page .material-board-grid .material-card p,
.proposal-page .material-board-grid .material-card small,
.proposal-page .design-story-card article p,
.proposal-page .design-story-card .story-evidence p {
  display: block !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}
.proposal-page .flow-card,
.proposal-page .editorial-decision,
.proposal-page .editorial-decision-copy,
.proposal-page .zone-card,
.proposal-page .value-card,
.proposal-page .material-board-grid .material-card {
  min-width: 0;
  overflow: visible;
}

/* 03 / Client Lifestyle Understanding: give the three moments and the relationship line the full slide height. */
.proposal-page .spatial-section {
  align-items: stretch;
}
.proposal-page .spatial-flow-content {
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0.8rem;
}
.proposal-page .flow-board {
  min-height: 0;
  height: 100%;
  align-self: stretch;
}
.proposal-page .flow-card {
  min-height: 0;
  height: 100%;
  align-content: start;
  padding: 0.9rem;
}
.proposal-page .spatial-relationship {
  align-self: end;
  min-height: 2.2rem;
  padding-block: 0.55rem;
}

/* 04 / Space Transformation: one large render frame, then the story below it. */
.proposal-page .space-transformation-section {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 0.55rem;
}
.proposal-page .space-transformation-section .spec-layout,
.proposal-page .space-transformation-section .render-analysis-layout {
  display: block;
  height: auto;
  min-height: 0;
}
.proposal-page .space-transformation-section .spec-stage,
.proposal-page .space-transformation-section .render-analysis-figure {
  width: 100%;
  height: clamp(18rem, 48vh, 31rem);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1.35rem;
}
.proposal-page .space-transformation-section .spec-stage img,
.proposal-page .space-transformation-section .spec-stage img.main-render {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover !important;
  object-position: center 42%;
}
.proposal-page .space-transformation-section .render-story-panel {
  min-width: 0;
  max-height: none;
  overflow: visible;
}
.proposal-page .space-transformation-section .render-story-panel .design-story-card {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

/* 05 / Key Design Decisions: editorial rows use the available height without dashboard-style clipping. */
.proposal-page .key-decisions-section {
  align-items: stretch;
}
.proposal-page .key-decisions-intro,
.proposal-page .editorial-decision-list {
  min-height: 0;
}
.proposal-page .editorial-decision-list {
  align-content: stretch;
}
.proposal-page .editorial-decision {
  min-height: 0;
}

/* 06 / Material & Color Story: keep one board and show the complete material reasoning. */
.proposal-page .material-board-page .tactile-copy,
.proposal-page .material-board-page .material-board-grid {
  min-height: 0;
}
.proposal-page .material-board-grid .material-card {
  height: 100%;
}

/* 07 / Functional Experience: image first, experience points directly underneath. */
.proposal-page .functional-experience-section {
  align-content: stretch;
}
.proposal-page .functional-experience-section .zone-render {
  height: clamp(17rem, 39vh, 26rem);
  min-height: 0;
}
.proposal-page .functional-experience-section .zone-render img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.proposal-page .functional-experience-section .zone-grid {
  min-height: 0;
  align-items: stretch;
}

/* 08 / Why This Design Works: make the three value points fill the climax instead of leaving dead space. */
.proposal-page .value-prop-section {
  min-height: 0;
  align-items: stretch;
}
.proposal-page .value-prop-section .value-grid {
  min-height: 0;
  align-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
}
.proposal-page .value-prop-section .value-card {
  min-height: 0;
  align-content: center;
}

@media (max-width: 620px) {
  .generation-modal {
    align-items: start;
    padding: 0.5rem;
  }
  .generation-modal .generation-card {
    width: 100%;
    height: calc(100vh - 1rem);
    max-height: calc(100vh - 1rem);
    padding: 0.55rem;
  }
  .generation-ready-view .beta-door {
    grid-template-columns: 1fr;
  }
  .generation-ready-view .beta-door p,
  .generation-ready-view .beta-door .beta-status {
    grid-column: auto;
  }
  .generation-ready-view .beta-door .button {
    width: 100%;
  }
  .proposal-page .space-transformation-section .spec-stage,
  .proposal-page .space-transformation-section .render-analysis-figure {
    height: clamp(15rem, 44vh, 24rem);
  }
}

/* Final presentation QA: keep the generation modal usable when the beta form opens. */
.generation-modal .generation-card {
  width: min(760px, calc(100vw - 1.5rem));
  height: min(688px, calc(100vh - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  min-height: 0;
  overflow: hidden;
}
.generation-modal .generation-stage {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}
.generation-modal .generation-ready-view {
  min-width: 0;
  min-height: 100%;
  align-items: start;
}
.generation-modal .generation-ready-view .paywall-copy,
.generation-modal .generation-ready-view .paywall-preview {
  min-width: 0;
}
.generation-modal .generation-ready-view .beta-door {
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.generation-modal .generation-ready-view .beta-door p,
.generation-modal .generation-ready-view .beta-door .beta-status,
.generation-modal .generation-ready-view .beta-door input,
.generation-modal .generation-ready-view .beta-door .button {
  grid-column: auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}
.generation-modal .generation-ready-view .beta-door input {
  min-height: 2.7rem;
}
.generation-modal.is-beta-open .generation-ready-view .paywall-actions {
  display: none;
}
.generation-modal.is-beta-open .generation-stage {
  scroll-behavior: smooth;
}

/* Proposal copy must wrap fully; ellipses are reserved for filenames only. */
.proposal-page .flow-card h3,
.proposal-page .flow-card p,
.proposal-page .editorial-decision-copy h3,
.proposal-page .editorial-decision-copy p,
.proposal-page .editorial-decision-copy small,
.proposal-page .zone-card h3,
.proposal-page .zone-card p,
.proposal-page .value-card strong,
.proposal-page .value-card h3,
.proposal-page .value-card p,
.proposal-page .material-card h3,
.proposal-page .material-card p,
.proposal-page .material-card small,
.proposal-page .design-story-card article p,
.proposal-page .design-story-card .story-evidence p {
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-line-clamp: unset !important;
}

/* 03 / Client Lifestyle Understanding: three concise moments and a clear flow line. */
.proposal-page .spatial-section {
  grid-template-columns: minmax(220px, 0.56fr) minmax(0, 1.44fr);
  align-items: stretch;
}
.proposal-page .spatial-flow-content {
  align-self: center;
  height: auto;
  min-height: 0;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0.75rem;
}
.proposal-page .flow-board {
  height: auto;
  min-height: 0;
  align-self: auto;
}
.proposal-page .flow-card {
  height: auto;
  min-height: 9.5rem;
  padding: 0.85rem;
  align-content: start;
}
.proposal-page .spatial-relationship {
  align-self: auto;
  min-height: 2.1rem;
  padding-block: 0.48rem;
}

/* 04 / Space Transformation: large cropped render first, story below it. */
.proposal-page .space-transformation-section {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 0.6rem;
}
.proposal-page .space-transformation-section .spec-layout,
.proposal-page .space-transformation-section .render-analysis-layout {
  display: block;
  height: auto;
  min-height: 0;
}
.proposal-page .space-transformation-section .spec-stage,
.proposal-page .space-transformation-section .render-analysis-figure {
  width: 100%;
  height: clamp(17rem, 43vh, 27rem);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #e5d9ca;
  aspect-ratio: 16 / 9;
}
.proposal-page .space-transformation-section .spec-stage img,
.proposal-page .space-transformation-section .spec-stage img.main-render {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover !important;
  object-position: center 44%;
  background: transparent;
}
.proposal-page .angle-sheet-1 .main-render { object-position: center 42%; }
.proposal-page .angle-sheet-2 .main-render { object-position: center 50%; }
.proposal-page .angle-sheet-3 .main-render { object-position: center 46%; }
.proposal-page .space-transformation-section .render-story-panel {
  min-width: 0;
  max-height: none;
  overflow: visible;
}
.proposal-page .space-transformation-section .render-story-panel .design-story-card {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

/* 05 / Key Design Decisions: magazine-like editorial rows with a useful fallback image. */
.proposal-page .key-decisions-section {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1.66fr);
  align-items: stretch;
}
.proposal-page .editorial-decision-list {
  min-height: 0;
  align-content: start;
}
.proposal-page .editorial-decision {
  min-height: 0;
  grid-template-columns: 2.6rem minmax(0, 1fr) 10rem;
  gap: 0.75rem;
  padding: 0.7rem 0;
}
.proposal-page .editorial-decision-figure {
  height: 5.8rem;
}

/* 06 / Material & Color Story: one page, a calm philosophy column, and a 3 x 2 board. */
.proposal-page .material-board-page {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
  align-items: stretch;
}
.proposal-page .material-board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
  height: 100%;
  min-height: 0;
}
.proposal-page .material-board-grid .material-card {
  grid-template-columns: 3.35rem minmax(0, 1fr);
  gap: 0.5rem;
  min-height: 0;
  padding: 0.52rem;
}
.proposal-page .material-board-grid .material-swatch {
  min-height: 100%;
}

/* 07 / Functional Experience: the render carries the emotion before the three points. */
.proposal-page .functional-experience-section {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
}
.proposal-page .functional-experience-section .zone-render {
  grid-column: 1;
  width: 100%;
  height: clamp(17rem, 40vh, 27rem);
  min-height: 0;
}
.proposal-page .functional-experience-section .zone-render img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
}
.proposal-page .functional-experience-section .zone-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
  align-items: stretch;
}

/* 08 / Why This Design Works: deep background, large image, number, and three value points. */
.proposal-page .value-prop-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
}
.proposal-page .value-hero-render {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.proposal-page .value-hero-render img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
}
.proposal-page .value-prop-section .value-grid {
  min-height: 0;
  align-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
}
.proposal-page .value-prop-section .value-card {
  min-height: 0;
  align-content: center;
  overflow: visible;
}

@media (max-width: 980px) {
  .proposal-page .spatial-section,
  .proposal-page .key-decisions-section,
  .proposal-page .material-board-page,
  .proposal-page .value-prop-section {
    grid-template-columns: 1fr;
  }
  .proposal-page .flow-board,
  .proposal-page .functional-experience-section .zone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .proposal-page .space-transformation-section .spec-stage,
  .proposal-page .space-transformation-section .render-analysis-figure {
    height: clamp(16rem, 43vh, 25rem);
  }
  .proposal-page .value-hero-render {
    grid-column: 1;
    grid-row: auto;
    height: clamp(16rem, 43vh, 25rem);
  }
  .proposal-page .value-copy,
  .proposal-page .value-prop-section .value-grid {
    grid-column: 1;
    grid-row: auto;
  }
  .proposal-page .material-board-grid {
    height: auto;
    grid-template-rows: repeat(2, minmax(10rem, 1fr));
  }
}

@media (max-width: 620px) {
  .generation-modal .generation-card {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    max-height: calc(100vh - 1rem);
  }
  .proposal-page .flow-board,
  .proposal-page .functional-experience-section .zone-grid,
  .proposal-page .material-board-grid {
    grid-template-columns: 1fr;
  }
  .proposal-page .material-board-grid {
    grid-template-rows: none;
  }
  .proposal-page .editorial-decision {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }
  .proposal-page .editorial-decision-figure {
    grid-column: 2;
    height: 7rem;
  }
}

/* Final acceptance pass: keep the beta form contained and let proposal copy grow naturally. */
.generation-modal [hidden] {
  display: none !important;
}
.generation-modal.is-beta-open .generation-card {
  height: auto !important;
  max-height: calc(100vh - 1.5rem) !important;
}
.generation-modal.is-beta-open .generation-stage {
  height: auto !important;
  max-height: calc(100vh - 2.5rem) !important;
  overflow-x: hidden;
  overflow-y: auto;
}
.generation-modal.is-beta-open .generation-ready-view {
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start;
  min-height: 0;
  padding: 0.7rem 0.8rem 0.85rem;
}
.generation-modal.is-beta-open .paywall-preview,
.generation-modal.is-beta-open .pricing-table,
.generation-modal.is-beta-open .single-export-note,
.generation-modal.is-beta-open .paywall-actions {
  display: none !important;
}
.generation-modal.is-beta-open .paywall-copy {
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: 0.55rem 0.2rem 0.35rem;
  gap: 0.7rem;
}
.generation-modal.is-beta-open .paywall-copy h2 {
  max-width: none;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.05;
}
.generation-modal.is-beta-open .beta-door {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  gap: 0.62rem;
  padding: 0.78rem;
  border: 1px solid rgba(36, 31, 26, 0.12);
  border-radius: 1rem;
  background: rgba(255, 250, 242, 0.68);
  box-sizing: border-box;
}
.generation-modal.is-beta-open .beta-door p,
.generation-modal.is-beta-open .beta-door input,
.generation-modal.is-beta-open .beta-door .button,
.generation-modal.is-beta-open .beta-door .beta-status {
  grid-column: auto !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}
.generation-modal.is-beta-open .beta-door p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.generation-modal.is-beta-open .beta-door input {
  min-height: 2.85rem;
}
.generation-modal.is-beta-open .beta-door .button {
  min-height: 2.85rem;
  white-space: normal;
}

/* Proposal pages are content-led; only the imagery keeps an intentional frame. */
.proposal-page .proposal-cover,
.proposal-page .proposal-section {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}
.proposal-page .proposal-cover {
  min-height: clamp(28rem, 40vw, 38rem) !important;
}
.proposal-page .proposal-cover .cover-figure {
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.proposal-page .proposal-cover .cover-figure img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.proposal-page .proposal-section > *,
.proposal-page .proposal-section p,
.proposal-page .proposal-section h2,
.proposal-page .proposal-section h3,
.proposal-page .proposal-section small {
  max-height: none !important;
}
.proposal-page .section-kicker p,
.proposal-page .spatial-intro p,
.proposal-page .spec-heading p,
.proposal-page .key-decisions-intro p,
.proposal-page .tactile-copy p,
.proposal-page .functional-heading p,
.proposal-page .value-copy p,
.proposal-page .ending-section p {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

/* 03 / Client Lifestyle Understanding: title first, three equal moments, then the flow line. */
.proposal-page .spatial-section {
  grid-template-columns: 1fr !important;
  align-items: start;
  gap: 1rem;
}
.proposal-page .spatial-intro {
  align-content: start;
  max-width: 58rem;
}
.proposal-page .spatial-flow-content {
  display: grid;
  grid-template-rows: auto auto;
  width: 100%;
  height: auto !important;
  align-self: auto;
  align-content: start;
  gap: 0.85rem;
}
.proposal-page .flow-board {
  width: 100%;
  height: auto !important;
  min-height: 0;
  align-items: stretch;
}
.proposal-page .flow-card {
  height: auto !important;
  min-height: 10.5rem;
  padding: 1rem;
}
.proposal-page .spatial-relationship {
  width: 100%;
  align-self: auto;
}

/* 04 / Space Transformation: one large cropped render, then intent and decisions below. */
.proposal-page .space-transformation-section {
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 0.85rem;
}
.proposal-page .space-transformation-section .spec-layout,
.proposal-page .space-transformation-section .render-analysis-layout {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0;
}
.proposal-page .space-transformation-section .spec-stage,
.proposal-page .space-transformation-section .render-analysis-figure {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1.35rem;
}
.proposal-page .space-transformation-section .spec-stage img,
.proposal-page .space-transformation-section .render-analysis-figure img,
.proposal-page .space-transformation-section .main-render {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  display: block;
  object-fit: cover !important;
  background: transparent;
}
.proposal-page .space-transformation-section.angle-sheet-1 .main-render {
  object-position: center 43%;
}
.proposal-page .space-transformation-section.angle-sheet-2 .main-render {
  object-position: center 50%;
}
.proposal-page .space-transformation-section.angle-sheet-3 .main-render {
  object-position: center 46%;
}
.proposal-page .space-transformation-section .render-story-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  max-height: none !important;
  overflow: visible !important;
}
.render-analysis-intent,
.render-analysis-decisions {
  min-width: 0;
}
.render-analysis-intent {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 1rem 1rem 0;
  background: rgba(255, 250, 242, 0.68);
}
.render-analysis-intent .eyebrow,
.render-analysis-intent p:last-child {
  margin: 0;
}
.render-analysis-intent p:last-child {
  margin-top: 0.4rem;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  line-height: 1.5;
}
.render-analysis-decisions {
  display: grid;
  gap: 0;
}
.render-analysis-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.45rem;
  border-bottom: 1px solid rgba(36, 31, 26, 0.14);
}
.render-analysis-label span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.render-analysis-label small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}
.render-decision-row {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(36, 31, 26, 0.12);
}
.render-decision-number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1;
}
.render-decision-row .eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.58rem;
}
.render-decision-row h3 {
  margin: 0 0 0.2rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  line-height: 1.12;
}
.render-decision-row p:last-child {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

/* 05 / Key Design Decisions: full-width editorial rows instead of a dashboard split. */
.proposal-page .key-decisions-section {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 1rem;
}
.proposal-page .key-decisions-intro {
  max-width: 58rem;
}
.proposal-page .editorial-decision-list {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  align-content: start;
}
.proposal-page .editorial-decision {
  grid-template-columns: 3rem minmax(0, 1fr) minmax(11rem, 0.48fr);
  gap: 0.95rem;
  min-height: 0;
  padding: 0.85rem 0;
}
.proposal-page .editorial-decision-figure {
  height: 6.2rem;
  aspect-ratio: 16 / 9;
}
.proposal-page .editorial-decision-figure img {
  object-fit: cover;
}

/* 06 / Material & Color Story: one board, complete labels, no continuation page. */
.proposal-page .material-board-page {
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr) !important;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.7rem);
}
.proposal-page .material-board-page .tactile-copy {
  align-content: start;
}
.proposal-page .material-board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(9.5rem, auto));
  height: auto !important;
  min-height: 0;
  align-self: start;
}
.proposal-page .material-board-grid .flatlay-card,
.proposal-page .material-board-grid .material-card {
  min-height: 9.5rem;
  height: 100%;
}
.proposal-page .material-board-grid .material-card {
  overflow: visible;
}

/* 07 / Functional Experience: let the render carry the emotional focus. */
.proposal-page .functional-experience-section {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 0.85rem;
}
.proposal-page .functional-experience-section .zone-render {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: none;
}
.proposal-page .functional-experience-section .zone-render img {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center 44%;
}
.proposal-page .functional-experience-section .zone-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
  align-items: stretch;
}
.proposal-page .functional-experience-section .zone-card {
  min-height: 0;
  height: auto;
}

/* 08 / Why This Design Works: dark climax with a large image and a readable value stack. */
.proposal-page .value-prop-section {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  grid-template-rows: auto auto;
  min-height: 0;
  align-items: stretch;
}
.proposal-page .value-hero-render {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 4 / 3;
}
.proposal-page .value-hero-render img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center 44%;
}
.proposal-page .value-prop-section .value-grid {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  align-content: start;
  grid-auto-rows: auto;
}
.proposal-page .value-prop-section .value-card {
  min-height: 0;
  align-content: start;
  overflow: visible;
}

/* The legacy AI disclaimer is intentionally not part of the MVP presentation. */
.proposal-page .ai-disclaimer,
.proposal-page .vision-disclaimer,
.proposal-page [data-ai-disclaimer] {
  display: none !important;
}

@media (max-width: 900px) {
  .proposal-page .space-transformation-section .render-story-panel {
    grid-template-columns: 1fr;
  }
  .proposal-page .material-board-page {
    grid-template-columns: 1fr !important;
  }
  .proposal-page .material-board-grid {
    grid-template-rows: repeat(2, minmax(9rem, auto));
  }
  .proposal-page .value-prop-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .proposal-page .value-hero-render,
  .proposal-page .value-copy,
  .proposal-page .value-prop-section .value-grid {
    grid-column: 1;
    grid-row: auto;
  }
  .proposal-page .value-hero-render {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .generation-modal.is-beta-open .generation-card {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem) !important;
  }
  .proposal-page .flow-board,
  .proposal-page .functional-experience-section .zone-grid,
  .proposal-page .material-board-grid {
    grid-template-columns: 1fr;
  }
  .proposal-page .material-board-grid {
    grid-template-rows: none;
  }
  .proposal-page .editorial-decision {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }
  .proposal-page .editorial-decision-figure {
    grid-column: 2;
    height: 7rem;
  }
  .render-analysis-label {
    display: grid;
    gap: 0.25rem;
  }
}
/* Final layout QA: keep the beta email state inside the modal at every viewport. */
.generation-modal .generation-card,
.generation-modal .generation-stage,
.generation-modal .generation-state,
.generation-modal .generation-copy,
.generation-modal .paywall-copy,
.generation-modal .beta-door {
  box-sizing: border-box;
  min-width: 0;
}
.generation-modal.is-beta-open .generation-card {
  width: min(560px, calc(100vw - 1rem));
  max-width: calc(100vw - 1rem);
  min-height: 0 !important;
  max-height: calc(100dvh - 1rem) !important;
  padding: 0.65rem;
  overflow: hidden;
}
.generation-modal.is-beta-open .generation-stage {
  min-height: 0 !important;
  height: auto !important;
  max-height: calc(100dvh - 2.25rem) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.generation-modal.is-beta-open .generation-ready-view {
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  padding: 0.7rem 0.75rem 0.8rem;
}
.generation-modal.is-beta-open .generation-ready-view .paywall-copy {
  display: grid;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.35rem 0.15rem 0;
  gap: 0.65rem;
}
.generation-modal.is-beta-open .generation-ready-view .paywall-copy > * {
  min-width: 0;
  max-width: 100%;
}
.generation-modal.is-beta-open .beta-door {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.generation-modal.is-beta-open .beta-door input,
.generation-modal.is-beta-open .beta-door button {
  max-width: 100%;
}

/* Proposal copy is readable content, not a fixed-height dashboard label. */
.proposal-page .proposal-section :where(h1, h2, h3, h4, p, small, strong, li, dt, dd) {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}
.proposal-page .proposal-section :where(h1, h2, h3, h4, p, small, li, dt, dd) {
  overflow-wrap: anywhere;
}

/* Render images keep a generous presentation frame while the source remains untouched. */
.proposal-page .cover-figure,
.proposal-page .space-transformation-section .spec-stage,
.proposal-page .space-transformation-section .render-analysis-figure,
.proposal-page .functional-experience-section .zone-render {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.proposal-page .cover-figure img,
.proposal-page .space-transformation-section .spec-stage img,
.proposal-page .space-transformation-section .render-analysis-figure img,
.proposal-page .functional-experience-section .zone-render img {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
}

/* The flow page uses the requested three named client moments. */
.proposal-page .spatial-flow-content {
  min-width: 0;
}
.proposal-page .flow-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.proposal-page .flow-card h3 {
  min-height: 2.3em;
}

@media (max-width: 620px) {
  .generation-modal.is-beta-open .generation-card {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem) !important;
  }
  .proposal-page .flow-board {
    grid-template-columns: 1fr;
  }
}

/* Final presentation-frame cleanup: neutralize the browser's default figure margins so
   large render frames cannot create a horizontal scroll strip at the right edge. */
.proposal-page .proposal-section figure,
.proposal-page .proposal-cover figure,
.proposal-page .space-transformation-section .spec-stage,
.proposal-page .space-transformation-section .render-analysis-figure,
.proposal-page .functional-experience-section .zone-render,
.proposal-page .value-hero-render,
.proposal-page .editorial-decision-figure {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
}
.proposal-page .space-transformation-section .spec-layout,
.proposal-page .space-transformation-section .render-analysis-layout,
.proposal-page .space-transformation-section .render-story-panel {
  min-width: 0;
  max-width: 100%;
}

/* Final modal state frame: no desktop scrollbars and one stable two-column layout. */
html:has(#generation-modal),
body:has(#generation-modal) {
  overflow: hidden !important;
}

.generation-modal {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.generation-modal .generation-card,
.generation-modal.is-beta-open .generation-card {
  width: min(760px, calc(100vw - 2rem)) !important;
  max-width: 760px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 2rem) !important;
  overflow: hidden !important;
}

.generation-modal .generation-stage,
.generation-modal.is-beta-open .generation-stage {
  display: grid !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  scrollbar-width: none;
}
.generation-modal .generation-stage::-webkit-scrollbar,
.generation-modal.is-beta-open .generation-stage::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.generation-modal .generation-loading-view,
.generation-modal .generation-ready-view,
.generation-modal.is-beta-open .generation-ready-view {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
  gap: 1rem !important;
  align-items: stretch;
  min-width: 0;
  min-height: 0 !important;
  overflow: hidden !important;
}

.generation-modal .generation-loading-view {
  min-height: 360px !important;
  padding: 0.75rem !important;
}
.generation-modal .generation-visual {
  min-height: 0 !important;
  height: 100%;
  aspect-ratio: 16 / 9;
}
.generation-modal .generation-copy {
  min-width: 0;
  min-height: 0;
  padding: 0.75rem 0.55rem 0.75rem 0 !important;
  gap: 0.65rem !important;
}
.generation-modal .generation-copy h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.65rem) !important;
  line-height: 1.04;
}
.generation-modal .generation-copy p {
  font-size: 0.82rem;
  line-height: 1.4;
}
.generation-modal .generation-copy small {
  font-size: 0.7rem;
}

.generation-modal .generation-ready-view {
  padding: 0.25rem !important;
}
.generation-modal .generation-ready-view .paywall-preview,
.generation-modal.is-beta-open .generation-ready-view .paywall-preview {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  align-self: start;
}
.generation-modal .generation-ready-view .paywall-preview img,
.generation-modal.is-beta-open .generation-ready-view .paywall-preview img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
}
.generation-modal .generation-ready-view .paywall-copy,
.generation-modal.is-beta-open .generation-ready-view .paywall-copy {
  display: grid !important;
  align-content: start !important;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.3rem 0.45rem 0.3rem 0 !important;
  gap: 0.5rem !important;
}
.generation-modal .generation-ready-view .paywall-copy h2,
.generation-modal.is-beta-open .generation-ready-view .paywall-copy h2 {
  max-width: none;
  font-size: clamp(1.45rem, 3.2vw, 2.45rem) !important;
  line-height: 1.05;
}
.generation-modal .generation-ready-view .paywall-copy > p,
.generation-modal.is-beta-open .generation-ready-view .paywall-copy > p {
  font-size: 0.75rem;
  line-height: 1.35;
}
.generation-modal .generation-ready-view .pricing-table,
.generation-modal.is-beta-open .generation-ready-view .pricing-table {
  display: grid !important;
  width: 100%;
  font-size: 0.68rem;
}
.generation-modal .generation-ready-view .pricing-row,
.generation-modal.is-beta-open .generation-ready-view .pricing-row {
  grid-template-columns: 0.7fr 0.6fr 1.7fr;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  line-height: 1.2;
}
.generation-modal .generation-ready-view .pricing-row strong,
.generation-modal.is-beta-open .generation-ready-view .pricing-row strong {
  font-size: 0.78rem;
}
.generation-modal .generation-ready-view .single-export-note,
.generation-modal.is-beta-open .generation-ready-view .single-export-note {
  display: block !important;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
}
.generation-modal .generation-ready-view .paywall-actions {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
.generation-modal .generation-ready-view .paywall-actions .button {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.72rem;
}

.generation-modal.is-beta-open .generation-card {
  width: min(760px, calc(100vw - 2rem)) !important;
  max-width: 760px !important;
}
.generation-modal.is-beta-open .generation-ready-view {
  display: grid !important;
}
.generation-modal.is-beta-open .generation-ready-view .paywall-preview,
.generation-modal.is-beta-open .generation-ready-view .pricing-table,
.generation-modal.is-beta-open .generation-ready-view .single-export-note {
  display: block !important;
}
.generation-modal.is-beta-open .generation-ready-view .pricing-table {
  display: grid !important;
}
.generation-modal.is-beta-open .generation-ready-view .paywall-actions {
  display: none !important;
}
.generation-modal.is-beta-open .beta-door {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.45rem !important;
  width: 100%;
  min-width: 0;
  padding: 0.55rem !important;
  overflow: visible !important;
}
.generation-modal.is-beta-open .beta-door p {
  grid-column: 1 / -1 !important;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
}
.generation-modal.is-beta-open .beta-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  min-width: 0;
}
.generation-modal.is-beta-open .beta-form-row input,
.generation-modal.is-beta-open .beta-form-row button {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.35rem;
}
.generation-modal.is-beta-open .beta-form-row button {
  width: auto;
  white-space: nowrap;
  padding-inline: 0.7rem;
  font-size: 0.7rem;
}
.generation-modal.is-beta-open .beta-status {
  display: block;
  min-width: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.generation-modal.is-beta-open .beta-status[data-saved="false"] {
  color: #9b3d2c;
}

@media (max-width: 680px) {
  .generation-modal {
    padding: 0.5rem !important;
  }
  .generation-modal .generation-card,
  .generation-modal.is-beta-open .generation-card {
    width: calc(100vw - 1rem) !important;
    max-width: calc(100vw - 1rem) !important;
    max-height: calc(100dvh - 1rem) !important;
  }
  .generation-modal .generation-stage,
  .generation-modal.is-beta-open .generation-stage {
    max-height: calc(100dvh - 2rem) !important;
    overflow-y: auto !important;
    scrollbar-width: none;
  }
  .generation-modal .generation-loading-view,
  .generation-modal .generation-ready-view,
  .generation-modal.is-beta-open .generation-ready-view {
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }
  .generation-modal .generation-loading-view {
    min-height: 0 !important;
  }
  .generation-modal .generation-visual {
    height: 9.5rem;
    aspect-ratio: 16 / 9;
  }
  .generation-modal .generation-copy,
  .generation-modal .generation-ready-view .paywall-copy,
  .generation-modal.is-beta-open .generation-ready-view .paywall-copy {
    padding: 0.45rem 0.25rem !important;
  }
  .generation-modal.is-beta-open .beta-form-row {
    grid-template-columns: 1fr;
  }
  .generation-modal.is-beta-open .beta-form-row button {
    width: 100%;
  }
}


/* Fix (2026-08-06): loading visual was overflowing its grid column and
   overlapping the copy column; the scan frame was clipped by the short
   visual container. Constrain the visual to its column and let the scan
   frame fill the visual height without clipping (desktop two-column layout). */
@media (min-width: 701px) {
  .generation-modal .generation-loading-view .generation-visual {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
  }
  .generation-modal .generation-loading-view .generation-scan-frame {
    width: auto !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 5 !important;
  }
}


/* ============================================================
   RenderDeck 16:9 slide deck (2026-08-06)
   Every generated page is a strict 16:9 slide. Content is
   compacted to fit the frame; dense panels scroll inside the
   slide so no text is ever cut off or overlapped.
   ============================================================ */
.proposal-page {
  display: grid !important;
  justify-items: center !important;
  gap: 1.1rem !important;
  padding: 1rem 0 3rem !important;
}
.proposal-page .proposal-cover,
.proposal-page .proposal-section {
  width: min(1280px, calc(100vw - 2rem)) !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  border-radius: clamp(1.1rem, 2vw, 1.8rem);
}
.proposal-page .proposal-cover { overflow: hidden !important; }
.proposal-page .proposal-section {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}
.proposal-page .proposal-section::-webkit-scrollbar { display: none; }

/* Slide typography scale */
.proposal-page .proposal-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.7rem) !important;
  line-height: 1.05 !important;
  margin: 0 0 0.3rem !important;
  letter-spacing: -0.045em;
}
.proposal-page .proposal-section h3 { font-size: clamp(0.98rem, 1.4vw, 1.25rem) !important; margin: 0 !important; }
.proposal-page .proposal-section p,
.proposal-page .proposal-section small,
.proposal-page .proposal-section li {
  font-size: clamp(0.72rem, 0.95vw, 0.86rem) !important;
  line-height: 1.4 !important;
}
.proposal-page .proposal-section .eyebrow { font-size: 0.62rem !important; letter-spacing: 0.14em !important; margin-bottom: 0.2rem !important; }

/* 01 / Cover */
.proposal-page .proposal-cover {
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr) !important;
  gap: clamp(1rem, 2vw, 2rem) !important;
  padding: clamp(1rem, 2vw, 2rem) !important;
  align-items: center;
}
.proposal-page .proposal-cover h1 { font-size: clamp(2.2rem, 4.2vw, 4.6rem) !important; max-width: none !important; }
.proposal-page .proposal-cover .cover-figure { height: 100% !important; min-height: 0 !important; }
.proposal-page .proposal-cover .cover-figure img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 1.2rem; }
.proposal-page .proposal-cover .editorial-meta { margin-top: 1rem !important; }
.proposal-page .proposal-cover .editorial-meta div { padding: 0.5rem 0.65rem !important; }

/* Design story cards (shared) */
.proposal-page .design-story-card { gap: 0.4rem !important; min-width: 0; }
.proposal-page .design-story-card article { gap: 0.12rem !important; padding: 0.45rem 0.6rem !important; }
.proposal-page .design-story-card article span { font-size: 0.56rem !important; }
.proposal-page .design-story-card article p { font-size: 0.7rem !important; line-height: 1.3 !important; margin: 0 !important; }
.proposal-page .design-story-card .story-arrow { font-size: 0.7rem !important; padding: 0.1rem 0 !important; }
.proposal-page .design-story-card .story-evidence { padding: 0.4rem 0.6rem !important; }
.proposal-page .design-story-card .story-evidence p { font-size: 0.66rem !important; margin: 0 !important; }

/* 02 / Design Vision */
.proposal-page .concept-section {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr) !important;
  gap: clamp(1rem, 2vw, 1.8rem) !important;
  align-items: stretch !important;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
}
.proposal-page .concept-section .section-kicker { align-content: center !important; min-width: 0; }
.proposal-page .concept-section .section-kicker > p:not(.eyebrow) { margin: 0 0 0.6rem !important; }
.proposal-page .concept-section .moodboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.62fr) minmax(2.4rem, 0.34fr) !important;
  gap: 0.55rem !important;
  height: 100% !important;
}
.proposal-page .concept-section .mood-tile { min-height: 0 !important; }
.proposal-page .concept-section .mood-tile img { height: 100% !important; width: 100% !important; object-fit: cover; }
.proposal-page .concept-section .keyword-panel { padding: 0.6rem !important; gap: 0.3rem !important; }
.proposal-page .concept-section .keyword-panel strong { font-size: 0.74rem !important; }
.proposal-page .concept-section .palette-strip i { min-height: 2.2rem !important; }

/* 03 / Client Lifestyle Understanding */
.proposal-page .spatial-section {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1.5fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: clamp(0.9rem, 1.5vw, 1.4rem) !important;
  align-items: stretch !important;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
}
.proposal-page .spatial-section .spatial-intro { align-content: center !important; min-width: 0; }
.proposal-page .spatial-section .spatial-intro > p:not(.eyebrow) { margin: 0 0 0.6rem !important; }
.proposal-page .spatial-section .spatial-flow-content { display: grid !important; grid-template-rows: minmax(0, 1fr) auto !important; gap: 0.6rem !important; width: 100% !important; height: 100% !important; min-height: 0 !important; }
.proposal-page .spatial-section .flow-board { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0.6rem !important; height: 100% !important; min-height: 0 !important; align-content: stretch !important; }
.proposal-page .spatial-section .flow-card { min-height: 0 !important; padding: 0.7rem !important; }
.proposal-page .spatial-section .flow-card p { margin: 0 !important; }
.proposal-page .spatial-section .spatial-relationship { justify-content: center !important; gap: 0.7rem !important; }

/* 04 / Render sheets (image + story + practical answers) */
.proposal-page .render-spec-section.deck-sheet {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 0.6rem !important;
  align-content: start !important;
  padding: clamp(0.9rem, 1.6vw, 1.3rem) !important;
}
.proposal-page .render-spec-section .spec-heading { display: flex !important; justify-content: space-between !important; align-items: flex-start !important; gap: 1rem; margin-bottom: 0 !important; }
.proposal-page .render-spec-section .spec-heading h2 { font-size: clamp(1.3rem, 2.1vw, 2rem) !important; margin-bottom: 0 !important; }
.proposal-page .render-spec-section .spec-heading p { margin: 0 !important; }
.proposal-page .render-spec-section .sheet-badge { font-size: 0.6rem !important; padding: 0.35rem 0.6rem !important; white-space: nowrap; }
.proposal-page .render-spec-section .sheet-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr) !important;
  gap: 0.8rem !important;
  min-height: 0 !important;
  height: 100% !important;
}
.proposal-page .render-spec-section .sheet-figure { margin: 0 !important; min-height: 0 !important; height: 100% !important; overflow: hidden !important; border-radius: 1rem !important; background: #1f2426; }
.proposal-page .render-spec-section .sheet-figure img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
.proposal-page .render-spec-section .sheet-copy {
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  padding-right: 0.15rem;
}
.proposal-page .render-spec-section .sheet-copy::-webkit-scrollbar { display: none; }
.proposal-page .render-spec-section .render-analysis-story { gap: 0.35rem !important; }
.proposal-page .render-spec-section .render-analysis-story article { padding: 0.4rem 0.55rem !important; }
.proposal-page .render-spec-section .render-analysis-story article p { font-size: 0.68rem !important; }
/* Practical living answers */
.proposal-page .sheet-questions { display: grid !important; gap: 0.4rem !important; min-width: 0; }
.proposal-page .sheet-questions-heading { display: grid; gap: 0.08rem; }
.proposal-page .sheet-questions-heading span { font-size: 0.6rem !important; font-weight: 900 !important; letter-spacing: 0.12em !important; text-transform: uppercase !important; color: var(--accent-dark, #8a6a3b); }
.proposal-page .sheet-questions-heading small { font-size: 0.6rem !important; color: var(--muted) !important; }
.proposal-page .client-question {
  display: grid !important;
  grid-template-columns: 1.6rem minmax(0, 1fr) !important;
  gap: 0.45rem !important;
  align-items: start !important;
  padding: 0.45rem 0.55rem !important;
  border: 1px solid rgba(36, 31, 26, 0.1) !important;
  border-radius: 0.75rem !important;
  background: rgba(255, 250, 242, 0.7) !important;
}
.proposal-page .client-question-number { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark, #8a6a3b); font-size: 0.6rem; font-weight: 950; }
.proposal-page .client-question-copy { min-width: 0; }
.proposal-page .client-question h4 { margin: 0 0 0.18rem !important; font-size: 0.74rem !important; line-height: 1.25 !important; }
.proposal-page .client-question p { margin: 0 !important; font-size: 0.68rem !important; line-height: 1.35 !important; }

/* 05 / Key Design Decisions */
.proposal-page .key-decisions-section {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1.55fr) !important;
  gap: clamp(1rem, 2vw, 1.6rem) !important;
  align-items: stretch !important;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
}
.proposal-page .key-decisions-section .key-decisions-intro { align-content: center !important; min-width: 0; }
.proposal-page .key-decisions-section .key-decisions-intro > p:not(.eyebrow) { margin: 0 0 0.5rem !important; }
.proposal-page .key-decisions-section .editorial-decision-list { display: grid !important; gap: 0.6rem !important; align-content: center !important; }
.proposal-page .key-decisions-section .editorial-decision {
  display: grid !important;
  grid-template-columns: 1.9rem minmax(0, 1fr) minmax(0, 5.2rem) !important;
  gap: 0.7rem !important;
  align-items: center !important;
  padding: 0.5rem 0.6rem !important;
  border: 1px solid rgba(36, 31, 26, 0.08) !important;
  border-radius: 0.9rem !important;
  background: rgba(255, 250, 242, 0.66) !important;
}
.proposal-page .key-decisions-section .editorial-decision-number { font-size: 0.72rem !important; }
.proposal-page .key-decisions-section .editorial-decision-copy h3 { font-size: 0.92rem !important; margin: 0 0 0.15rem !important; }
.proposal-page .key-decisions-section .editorial-decision-copy p { margin: 0 0 0.12rem !important; font-size: 0.68rem !important; }
.proposal-page .key-decisions-section .editorial-decision-copy small { font-size: 0.64rem !important; }
.proposal-page .key-decisions-section .editorial-decision-figure { margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.6rem; }
.proposal-page .key-decisions-section .editorial-decision-figure img { width: 100%; height: 100%; object-fit: cover; }

/* 06 / Material & Color Story */
.proposal-page .material-board-page {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1.52fr) !important;
  gap: clamp(1rem, 2vw, 1.6rem) !important;
  align-items: stretch !important;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
}
.proposal-page .material-board-page .tactile-copy { align-content: center !important; min-width: 0; }
.proposal-page .material-board-page .tactile-copy > p { margin: 0 0 0.5rem !important; }
.proposal-page .material-board-page .flatlay-board {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0.6rem !important;
}
.proposal-page .material-board-page .flatlay-card { min-height: 0 !important; }
.proposal-page .material-board-page .material-card { padding: 0.5rem !important; }
.proposal-page .material-board-page .material-swatch { min-height: 2.6rem !important; }

/* 07 / Functional Experience */
.proposal-page .functional-zones-section {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1.54fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: clamp(0.8rem, 1.4vw, 1.2rem) !important;
  align-items: stretch !important;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
}
.proposal-page .functional-zones-section .functional-heading { grid-column: 1; grid-row: 1; align-content: start !important; min-width: 0; }
.proposal-page .functional-zones-section .functional-heading > p:not(.eyebrow) { margin: 0 0 0.5rem !important; }
.proposal-page .functional-zones-section .zone-render { grid-column: 2; grid-row: 1 / 3; margin: 0 !important; min-height: 0 !important; }
.proposal-page .functional-zones-section .zone-render img { width: 100% !important; height: 100% !important; object-fit: cover; }
.proposal-page .functional-zones-section .zone-grid { grid-column: 1 / 3; grid-row: 2; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0.55rem !important; min-height: 0 !important; }
.proposal-page .functional-zones-section .zone-card { padding: 0.6rem !important; min-height: 0 !important; }
.proposal-page .functional-zones-section .zone-card p { margin: 0 !important; }

/* 08 / Why This Design Works */
.proposal-page .value-prop-section {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1.54fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: clamp(0.8rem, 1.4vw, 1.2rem) !important;
  align-items: stretch !important;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
}
.proposal-page .value-prop-section .value-copy { grid-column: 1; grid-row: 1; align-content: start !important; min-width: 0; }
.proposal-page .value-prop-section .value-copy > p:not(.eyebrow) { margin: 0 0 0.5rem !important; }
.proposal-page .value-prop-section .value-hero-render { grid-column: 2; grid-row: 1 / 3; margin: 0 !important; min-height: 0 !important; }
.proposal-page .value-prop-section .value-hero-render img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 1rem; }
.proposal-page .value-prop-section .value-grid { grid-column: 1 / 3; grid-row: 2; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0.55rem !important; min-height: 0 !important; }
.proposal-page .value-prop-section .value-card { padding: 0.6rem !important; min-height: 0 !important; }
.proposal-page .value-prop-section .value-card p { margin: 0 !important; }

/* 09 / Approval & Feedback */
.proposal-page .ending-section {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr) !important;
  gap: clamp(1rem, 2vw, 1.8rem) !important;
  align-items: center !important;
  padding: clamp(1rem, 2vw, 1.8rem) !important;
}
.proposal-page .ending-section > div:first-child { align-content: center !important; min-width: 0; }
.proposal-page .ending-section > div:first-child > p:not(.eyebrow) { margin: 0 0 0.5rem !important; }
.proposal-page .ending-section .ending-list { display: grid !important; gap: 0.45rem !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.proposal-page .ending-section .ending-list li { padding: 0.55rem 0.7rem !important; border: 1px solid rgba(36, 31, 26, 0.08) !important; border-radius: 0.8rem !important; background: rgba(255, 250, 242, 0.66) !important; }

/* Feedback page */
.proposal-page .feedback-section {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr) !important;
  gap: clamp(1rem, 2vw, 1.6rem) !important;
  align-items: center !important;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
}


/* ============================================================
   Layout fixes (2026-08-07)
   1) No internal page scroll: content must fit each 16:9 slide.
   2) Why This Design Works: value cards must not overlap the image.
   3) Key Decisions / Client Lifestyle: lists fill the slide height
      (no bottom whitespace).
   4) Ready/paywall modal: left preview fills the column height.
   ============================================================ */
.proposal-page .proposal-section {
  overflow: hidden !important;
}
.proposal-page .render-spec-section .sheet-copy {
  overflow: hidden !important;
}
.proposal-page .render-spec-section .sheet-copy::-webkit-scrollbar { display: none; }

/* Why This Design Works: keep the image in the right column only */
.proposal-page .value-prop-section {
  grid-template-columns: minmax(250px, 0.44fr) minmax(0, 1.56fr) !important;
}
.proposal-page .value-prop-section .value-grid {
  grid-column: 1 !important;
  grid-row: 2 !important;
  grid-template-columns: 1fr !important;
  align-content: stretch !important;
  gap: 0.5rem !important;
  min-height: 0 !important;
}
.proposal-page .value-prop-section .value-card {
  min-height: 0 !important;
  height: 100%;
  padding: 0.55rem 0.65rem !important;
}
.proposal-page .value-prop-section .value-card p { margin: 0 !important; }

/* Key Design Decisions: three rows fill the full slide height */
.proposal-page .key-decisions-section .editorial-decision-list {
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  height: 100% !important;
  align-content: stretch !important;
  gap: 0.55rem !important;
}
.proposal-page .key-decisions-section .editorial-decision {
  height: 100% !important;
  min-height: 0 !important;
}

/* Client Lifestyle Understanding: flow cards fill the right column */
.proposal-page .spatial-section .flow-board {
  grid-template-rows: minmax(0, 1fr) !important;
}
.proposal-page .spatial-section .flow-card {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.proposal-page .spatial-section .spatial-intro { align-content: center !important; }

/* Ready/paywall modal: left preview aligns to the right column height */
.generation-modal .generation-ready-view .paywall-preview {
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}
.generation-modal .generation-ready-view .paywall-preview img {
  height: 100% !important;
  max-height: 100%;
  object-fit: cover;
  object-position: top center;
}


/* Fix (2026-08-07 round 2): keep zone/value cards inside the left column and
   distribute them across the slide height without overflow. */
.proposal-page .value-prop-section .value-grid {
  grid-column: 1 !important;
  grid-row: 2 !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  align-content: stretch !important;
  gap: 0.5rem !important;
  min-height: 0 !important;
}
.proposal-page .value-prop-section .value-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 0.55rem 0.65rem !important;
}
.proposal-page .functional-zones-section .zone-grid {
  grid-column: 1 !important;
  grid-row: 2 !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
  min-height: 0 !important;
}
.proposal-page .functional-zones-section .zone-card {
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 0.6rem !important;
}


/* Fix (2026-08-07 round 3): compact the value cards so the third card never
   overflows the 16:9 slide. */
.proposal-page .value-prop-section .value-grid { gap: 0.4rem !important; }
.proposal-page .value-prop-section .value-card {
  padding: 0.42rem 0.55rem !important;
  column-gap: 0.5rem !important;
  row-gap: 0.1rem !important;
}
.proposal-page .value-prop-section .value-card strong { font-size: 0.82rem !important; line-height: 1.1 !important; }
.proposal-page .value-prop-section .value-card h3 { font-size: 0.8rem !important; line-height: 1.1 !important; }
.proposal-page .value-prop-section .value-card p { font-size: 0.64rem !important; line-height: 1.25 !important; }


/* Fix (2026-08-07 round 4): hide decorative number overlapping the image;
   spread render-sheet right column so no bottom whitespace. */
.proposal-page .value-hero-number { display: none !important; }
.proposal-page .render-spec-section .sheet-copy { justify-content: space-between !important; }


/* Fix (2026-08-07 round 5): stretch the ready-modal preview so its bottom
   aligns with the right text column (override align-self:start). */
.generation-modal .generation-ready-view .paywall-preview {
  align-self: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}


/* Fix (2026-08-07 round 6): let the ready-modal preview STRETCH (auto height)
   so its bottom aligns with the right text column; explicit height:100%
   breaks grid stretch on an auto row. */
.generation-modal .generation-ready-view .paywall-preview {
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}


/* Fix (2026-08-07 round 7): fill the ready-modal preview with the image via
   absolute positioning so the image bottom truly matches the right text. */
.generation-modal .generation-ready-view .paywall-preview {
  position: relative !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}
.generation-modal .generation-ready-view .paywall-preview img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
}


/* Latest presentation banner (reopen generated link after modal closes) */
.latest-proposal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.2rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(185, 151, 91, 0.4);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(234, 216, 193, 0.6));
  box-shadow: 0 14px 44px rgba(66, 43, 20, 0.1);
}
.latest-proposal-banner div { display: grid; gap: 0.15rem; }
.latest-proposal-banner strong { color: var(--ink); }
.latest-proposal-banner span { color: var(--muted); font-size: 0.8rem; }
.latest-proposal-banner .button { white-space: nowrap; }

/* Real examples (homepage cases) */
.cases-section .cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.case-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(36, 31, 26, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 250, 242, 0.75);
  box-shadow: 0 18px 54px rgba(66, 43, 20, 0.08);
}
.case-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid rgba(36, 31, 26, 0.08);
}
.case-card-body h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.case-card-body p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
@media (max-width: 760px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* Ready modal: stacked action buttons stay compact */
.generation-modal .generation-ready-view .paywall-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.4rem !important;
}
.generation-modal .generation-ready-view .paywall-actions .button { width: 100%; min-height: 2.5rem; }


/* Clickable case cards + preview lightbox */
.case-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(36, 31, 26, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 250, 242, 0.75);
  box-shadow: 0 18px 54px rgba(66, 43, 20, 0.08);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.case-card:hover, .case-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(185, 151, 91, 0.55);
  box-shadow: 0 22px 64px rgba(66, 43, 20, 0.14);
  outline: none;
}
.case-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid rgba(36, 31, 26, 0.08);
  display: block;
}
.case-card-body { display: grid; gap: 0.25rem; }
.case-title { font-weight: 900; color: var(--ink); font-size: 1rem; }
.case-desc { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(16, 18, 19, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 260ms ease;
}
.case-lightbox.is-open {
  opacity: 1;
}
.case-lightbox-card {
  position: relative;
  width: min(1080px, 100%);
  border-radius: 1.4rem;
  overflow: hidden;
  background: #f7f2e8;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1);
}
.case-lightbox.is-open .case-lightbox-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.case-lightbox-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.case-lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(247, 242, 232, 0.35);
  border-radius: 999px;
  background: rgba(31, 36, 38, 0.6);
  color: #fffaf2;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.case-lightbox-caption { display: grid; gap: 0.3rem; padding: 1rem 1.2rem 1.2rem; }
.case-lightbox-caption h3 { margin: 0; font-size: 1.3rem; }
.case-lightbox-caption p { margin: 0; color: var(--muted); }
.case-lightbox-caption small { color: var(--muted); opacity: 0.75; }


/* ============================================================
   Ready modal UX refactor (2026-08-08)
   - Symmetric card padding, no excess bottom whitespace.
   - Comfortable close-button hit area with margin from the edge.
   - Sans-serif title.
   - Pricing table: fixed column widths, 1.4 line-height, centered.
   ============================================================ */
.generation-modal .generation-card {
  padding: 1.05rem 1.1rem 0.95rem !important;
}
.generation-modal.is-ready .generation-card,
.generation-modal.is-beta-open .generation-card {
  min-height: 0 !important;
}
.generation-modal.is-ready .generation-stage,
.generation-modal.is-beta-open .generation-stage {
  min-height: 0 !important;
}
.generation-modal.is-ready .generation-ready-view {
  padding: 0.2rem 0.2rem 0.1rem !important;
}

/* Close button: comfortable, not stuck to the edge */
.generation-modal .generation-ready-view .paywall-close,
.generation-modal .generation-close {
  top: 0.85rem !important;
  right: 0.85rem !important;
  width: 2.4rem !important;
  height: 2.4rem !important;
  display: grid !important;
  place-items: center;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

/* Title: sans-serif */
.generation-modal .generation-ready-view .paywall-copy h2,
.generation-modal.is-beta-open .generation-ready-view .paywall-copy h2 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: -0.02em !important;
}

/* Pricing table: fixed columns, clean wrapping, centered cells */
.generation-modal .generation-ready-view .pricing-table,
.generation-modal.is-beta-open .generation-ready-view .pricing-table {
  font-size: 0.72rem !important;
}
.generation-modal .generation-ready-view .pricing-row,
.generation-modal.is-beta-open .generation-ready-view .pricing-row {
  grid-template-columns: 22% 18% 60% !important;
  align-items: center !important;
  line-height: 1.4 !important;
  gap: 0.5rem !important;
  padding: 0.45rem 0.55rem !important;
}
.generation-modal .generation-ready-view .pricing-row span,
.generation-modal .generation-ready-view .pricing-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Ensure pricing rows stay readable */
.generation-modal .generation-ready-view .pricing-row,
.generation-modal.is-beta-open .generation-ready-view .pricing-row {
  font-size: 0.72rem !important;
}


/* ============================================================
   Modules 05/07/08/09 layout polish (2026-08-08)
   ============================================================ */

/* 05 / Key Design Decisions — 3-column grid, image on top */
.proposal-page .key-decisions-section {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: clamp(0.8rem, 1.4vw, 1.2rem) !important;
  align-items: start !important;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
}
.proposal-page .key-decisions-intro { max-width: 46rem; }
.proposal-page .key-decisions-intro > p:not(.eyebrow) { margin: 0 !important; }
.proposal-page .editorial-decision-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: clamp(0.7rem, 1.2vw, 1rem) !important;
  min-height: 0 !important;
  height: 100% !important;
}
.proposal-page .editorial-decision {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 0.6rem !important;
  padding: 0.6rem !important;
  border: 1px solid rgba(36, 31, 26, 0.08) !important;
  border-radius: 0.9rem !important;
  background: rgba(255, 250, 242, 0.7) !important;
  min-height: 0 !important;
}
.proposal-page .editorial-decision-figure {
  margin: 0 !important;
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
  overflow: hidden;
  border-radius: 0.7rem;
}
.proposal-page .editorial-decision-figure img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
.proposal-page .editorial-decision-copy { min-width: 0; align-content: start; display: grid; gap: 0.18rem; }
.proposal-page .editorial-decision-number { font-size: 0.7rem !important; font-weight: 950 !important; color: var(--accent-dark, #8a6a3b); }
.proposal-page .editorial-decision-copy h3 { margin: 0 !important; font-size: 0.95rem !important; line-height: 1.2 !important; }
.proposal-page .editorial-decision-copy p { margin: 0 !important; line-height: 1.4 !important; }
.proposal-page .editorial-decision-copy small { display: block !important; line-height: 1.4 !important; }

/* 07 / Functional Experience — equal height + readable cards */
.proposal-page .functional-zones-section {
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1.54fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}
.proposal-page .functional-zones-section .functional-heading { grid-column: 1; grid-row: 1; align-content: start !important; }
.proposal-page .functional-zones-section .zone-render { grid-column: 2; grid-row: 1 / 3; height: 100% !important; min-height: 0 !important; }
.proposal-page .functional-zones-section .zone-render img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.proposal-page .functional-zones-section .zone-grid {
  grid-column: 1 !important;
  grid-row: 2 !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  min-height: 0 !important;
}
.proposal-page .functional-zones-section .zone-card {
  display: grid !important;
  align-content: center !important;
  gap: 0.2rem !important;
  padding: 1rem 1.2rem !important;
  line-height: 1.5 !important;
  background: rgba(255, 250, 242, 0.82) !important;
  border: 1px solid rgba(36, 31, 26, 0.08) !important;
  border-radius: 0.85rem !important;
  min-height: 0 !important;
}
.proposal-page .functional-zones-section .zone-card p { margin: 0 !important; line-height: 1.5 !important; }

/* 08 / Why This Design Works — soft warm dark + breathing room */
.proposal-page .value-prop-section.dark-slide {
  background:
    linear-gradient(135deg, rgba(84, 74, 63, 0.98), rgba(103, 89, 72, 0.95)),
    radial-gradient(circle at 86% 16%, rgba(185, 151, 91, 0.24), transparent 22rem) !important;
}
.proposal-page .value-prop-section.dark-slide h2,
.proposal-page .value-prop-section.dark-slide h3,
.proposal-page .value-prop-section.dark-slide p { color: var(--lux-ivory) !important; }
.proposal-page .value-prop-section.dark-slide .eyebrow { color: var(--lux-gold) !important; }
.proposal-page .value-prop-section {
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1.56fr) !important;
  gap: clamp(1rem, 2vw, 1.6rem) !important;
  padding: clamp(1.2rem, 2.2vw, 1.8rem) !important;
}
.proposal-page .value-prop-section .value-grid { gap: 0.75rem !important; }
.proposal-page .value-prop-section .value-card {
  background: rgba(247, 242, 232, 0.09) !important;
  border: 1px solid rgba(247, 242, 232, 0.16) !important;
  border-radius: 0.8rem !important;
  padding: 0.75rem 0.9rem !important;
}
.proposal-page .value-prop-section .value-card p { line-height: 1.45 !important; }
.proposal-page .value-prop-section .value-copy { padding-right: 0.4rem; }

/* 09 / Approval & Feedback — 2-column form card, trimmed whitespace */
.proposal-page .feedback-section {
  display: grid !important;
  align-items: center !important;
  padding: clamp(0.9rem, 1.6vw, 1.3rem) !important;
}
.proposal-page .feedback-card {
  display: grid !important;
  grid-template-columns: minmax(250px, 0.4fr) minmax(0, 1.6fr) !important;
  gap: clamp(1rem, 2vw, 1.8rem) !important;
  align-items: start !important;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(1rem, 2vw, 1.6rem) !important;
  border: 1px solid rgba(36, 31, 26, 0.1) !important;
  border-radius: 1.2rem !important;
  background: rgba(255, 250, 242, 0.72) !important;
}
.proposal-page .feedback-info { align-content: start !important; min-width: 0; }
.proposal-page .feedback-info > p:not(.eyebrow) { margin: 0 !important; line-height: 1.5 !important; }
.proposal-page .feedback-form { display: grid !important; gap: 0.75rem !important; min-width: 0; }
.proposal-page .feedback-form fieldset { margin: 0 !important; padding: 0 !important; border: 0 !important; display: grid; gap: 0.4rem; }
.proposal-page .feedback-form legend { font-weight: 800; font-size: 0.78rem; }
.proposal-page .feedback-form .choice-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0.5rem !important; }
.proposal-page .feedback-form label { display: grid; gap: 0.35rem; min-width: 0; font-weight: 800; font-size: 0.78rem; }
.proposal-page .feedback-form textarea { width: 100%; box-sizing: border-box; min-height: 4.5rem; resize: vertical; font: inherit; padding: 0.55rem 0.65rem; border: 1px solid rgba(36,31,26,0.14); border-radius: 0.6rem; background: #fffaf2; }
.proposal-page .feedback-form .button { justify-self: start; }
.proposal-page .feedback-status { margin: 0 !important; }


/* Fix (2026-08-08 round 2): correct specificity so the 05 cards stack
   image-over-text, and scope feedback label styles so choice-option pills
   are not broken. */
.proposal-page .key-decisions-section .editorial-decision {
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
}
.proposal-page .key-decisions-section .editorial-decision-figure {
  width: 100% !important;
}
.proposal-page .feedback-form > label { display: grid; gap: 0.35rem; min-width: 0; font-weight: 800; font-size: 0.78rem; }
.proposal-page .feedback-form .choice-option {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-weight: 700 !important;
}
.proposal-page .feedback-form .choice-option span { white-space: normal; line-height: 1.3; }


/* Fix (2026-08-08 round 3):
   - feedback-section must be a single column so the 2-col form card fills it.
   - 05 decision cards: figure fills ~55% on top, compact copy below. */
.proposal-page .feedback-section {
  grid-template-columns: 1fr !important;
}
.proposal-page .key-decisions-section .editorial-decision {
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr) !important;
}
.proposal-page .key-decisions-section .editorial-decision-figure {
  height: 100% !important;
  aspect-ratio: auto !important;
  align-self: stretch !important;
}
.proposal-page .key-decisions-section .editorial-decision-copy {
  gap: 0.14rem !important;
}
.proposal-page .key-decisions-section .editorial-decision-copy h3 { font-size: 0.9rem !important; line-height: 1.15 !important; }
.proposal-page .key-decisions-section .editorial-decision-copy p { font-size: 0.72rem !important; line-height: 1.3 !important; }
.proposal-page .key-decisions-section .editorial-decision-copy small { font-size: 0.66rem !important; line-height: 1.25 !important; }


/* Fix (2026-08-08 round 4): compact the functional heading and zone cards so
   the three cards' text fits without overflow. */
.proposal-page .functional-zones-section .functional-heading h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.9rem) !important;
  margin-bottom: 0.2rem !important;
}
.proposal-page .functional-zones-section .functional-heading > p:not(.eyebrow) {
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.proposal-page .functional-zones-section .zone-card {
  padding: 0.95rem 1.05rem !important;
  gap: 0.15rem !important;
}
.proposal-page .functional-zones-section .zone-card h3 { font-size: 0.9rem !important; line-height: 1.2 !important; }
.proposal-page .functional-zones-section .zone-card p { font-size: 0.76rem !important; line-height: 1.5 !important; }


/* Fix (2026-08-08 round 5): decision cards fill the list row so the 05 module
   has no bottom whitespace. */
.proposal-page .key-decisions-section .editorial-decision {
  height: 100% !important;
  align-self: stretch !important;
}


/* Fix (2026-08-08 round 6): override the legacy 3-row list grid with the
   same specificity so the cards sit in ONE row and fill the slide height. */
.proposal-page .key-decisions-section .editorial-decision-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: minmax(0, 1fr) !important;
}


/* Fix (2026-08-09): last page — feedback card fills the full 16:9 slide and
   its content is vertically centered (no big blank, content no longer small). */
.proposal-page .feedback-section {
  align-items: stretch !important;
}
.proposal-page .feedback-card {
  height: 100% !important;
  align-items: center !important;
}
.proposal-page .feedback-info { align-content: center !important; }
.proposal-page .feedback-form { align-content: center !important; }

/* Support link in footers */
.support-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(117, 107, 96, 0.35);
}
.support-link:hover { color: var(--accent-dark, #8a6a3b); border-bottom-color: currentColor; }
.site-footer { flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }

.proposal-page .feedback-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(36, 31, 26, 0.14);
  border-radius: 0.6rem;
  background: #fffaf2;
  font: inherit;
}

/* Loading modal visual: fill the column so the background spans the full width
   and there is no leftover whitespace around the scan frame (2026-08-10). */
.generation-modal .generation-loading-view .generation-visual {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  align-self: stretch !important;
}
.generation-modal .generation-loading-view .generation-scan-frame {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 0.85rem !important;
}

/* Correct the loading visual stretch: explicit height:100% blocks grid stretch,
   so let align-self:stretch fill the column height (2026-08-10). */
.generation-modal .generation-loading-view .generation-visual {
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
}
.generation-modal .generation-loading-view .generation-scan-frame {
  height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
}

.generation-modal .generation-loading-view {
  align-content: stretch !important;
}

.share-expiry-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.project-form .form-hint {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
}

.project-form .req-mark {
  color: var(--accent);
  font-weight: 900;
}
