/* Edition 4: clear choices, shorter consultation, dependable small-screen layout. */
html { scroll-padding-top: calc(var(--header-height, 80px) + 22px); }
.hero h1 { line-height: 1.6; }
.hero h1 em { white-space: normal; }
.hero h1 span { animation-delay: .18s; }
.hero h1 span:nth-child(2) { animation-delay: .36s; }
.hero-art { animation-duration: 1.65s; }
.hero-description.hero-enter { animation: invitation-arrive .7s .25s backwards; }
.hero-primary.hero-enter { animation: invitation-arrive .45s .06s backwards; }
.hero-secondary.hero-enter { animation: invitation-arrive .55s .15s backwards; }
.hero-actions .button { background: linear-gradient(125deg, #86576c, #50313e); box-shadow: 0 5px 0 #382530, 0 12px 28px #5b32472b; }
.hero-content, .service-copy, .memo-preferences, .memo-card, .result-card-copy { min-width: 0; }
.hero h1, .service-copy h3, .memo-preferences h3 { overflow-wrap: break-word; }
.hero-primary, .service-copy .button, .memo-actions .button { white-space: normal; }
.hero-primary svg, .service-copy .button svg { flex-shrink: 0; }
.check-panel-top { top: var(--header-height, 80px); }

/* A chosen control keeps its choice marker while its shadow compresses. */
.palette-swatch[aria-pressed=true].is-pressed,
.palette-swatch[aria-pressed=true].press-feedback,
.studio-places button[aria-pressed=true].is-pressed,
.studio-places button[aria-pressed=true].press-feedback {
  box-shadow: 0 1px 0 #765264, inset 0 2px 7px #462d3a25;
}
.palette-swatch[aria-pressed=true].is-pressed,
.palette-swatch[aria-pressed=true].press-feedback { border-color: #855269; }
.studio-clear {
  display: block; min-height: 44px; margin: 7px 0 0 auto; padding: 9px 0 5px 12px;
  color: #80596a; font: 12px/1.7 var(--sans); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: #b48d96;
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
}
.studio-places button.studio-clear { min-height: 44px; padding: 9px 0 5px 12px; border: 0; background: transparent; box-shadow: none; color: #80596a; font-size: 12px; border-radius: 0; }
.studio-clear:disabled, .studio-places button.studio-clear:disabled { color: #a58e95; text-decoration: none; cursor: default; }
.studio-preview-caption { font-size: 11px; line-height: 1.85; color: #8a6877; margin-top: 11px; letter-spacing: .04em; }
.studio-controls fieldset { margin-bottom: 10px; }
.studio-controls legend { font-size: 13px; }
.studio-frame { display: flex; flex-direction: column; padding: 5px; height: 76%; min-height: 0; }
.studio-frame img { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; height: 0; width: 100%; object-fit: contain; }
.studio-frame figcaption { position: static; flex: 0 0 auto; padding: .45em .1em .1em; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.reset-note.small-note { font-size: 11px; line-height: 1.9; text-align: right; margin-top: 2px; color: #927580; }
.reset-button { min-height: 46px; }
.result-heading { line-height: 1.85; }
.result-card-copy { overflow-wrap: anywhere; }
.service-guidance { line-height: 1.95; }

/* Only the two first choices are shown until a visitor asks for more. */
.memo-primary-fields { grid-template-columns: 1fr; gap: 0; }
.memo-primary-fields .memo-field { margin-bottom: 20px; }
.consultation-extra {
  margin: 7px 0 18px; border: 1px solid #cdae9b; border-radius: 2px 17px 2px 2px;
  background: linear-gradient(125deg, #fff7ea, #ead8ca); box-shadow: 0 3px 0 #d7bfae70;
}
.consultation-extra>summary {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  list-style: none; cursor: pointer; min-height: 64px; padding: 17px 18px;
  font-size: 13px; line-height: 1.85; color: #704a5d;
}
.consultation-extra>summary::-webkit-details-marker { display: none; }
.extra-toggle { font-size: 22px; flex: 0 0 22px; text-align: center; transition: rotate .3s; }
.consultation-extra[open] .extra-toggle { rotate: 45deg; }
.consultation-extra[open]>summary { border-bottom: 1px solid #d6b9a6; }
.memo-extra-fields { padding: 23px 18px 5px; }
.memo-extra-fields .memo-field-grid { grid-template-columns: 1fr; gap: 0; }
#photo-field[hidden] { display: none; }
.memo-readiness { padding: 15px 17px; margin: 16px 0 7px; border-left: 2px solid #a77c8b; font-size: 13px; line-height: 1.95; color: #785361; background: linear-gradient(90deg, #f9efdf, #f3e5d600); }
.memo-card>p.memo-guidance { font-size: 12px; line-height: 1.95; color: #906673; padding: 0 0 17px; margin: 0 0 18px; border-bottom: 1px solid #ddc3b1; }
.memo-card>label { margin-bottom: 14px; }
.memo-card textarea { min-height: 340px; }
.memo-help, .memo-readiness, .memo-guidance, .copy-status { overflow-wrap: anywhere; }
@keyframes invitation-arrive { from { opacity: .55; } to { opacity: 1; } }

@media(min-width:801px) {
  .memo-card { top: calc(var(--header-height, 80px) + 20px); }
}
@media(max-width:800px) {
  .site-header, .site-header.scrolled { height: auto; min-height: 70px; flex-wrap: wrap; gap: 5px 18px; padding-top: 12px; padding-bottom: 12px; }
  .site-header .brand { min-width: 0; max-width: 100%; }
  .header-controls { margin-left: auto; flex-shrink: 0; }
  .site-header nav { top: 100%; max-height: calc(100svh - var(--header-height, 70px)); max-height: calc(100dvh - var(--header-height, 70px)); overflow-y: auto; overscroll-behavior: contain; }
  .site-header nav a { flex-shrink: 0; }
  .memo-primary-fields { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .memo-extra-fields .memo-field-grid { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .memo-card { top: auto; }
  .memo-card textarea { min-height: 310px; }
}
@media(min-width:601px) and (max-width:800px) {
  #studio-scene { grid-row: 3; }
  .studio-preview-caption { grid-column: 1; grid-row: 4; margin-top: 12px; align-self: start; }
  .studio-controls { grid-column: 2; grid-row: 3/span 2; }
  #studio-description { grid-column: 1/-1; grid-row: 5; margin-top: 13px; }
}
@media(max-width:600px) {
  .site-header, .site-header.scrolled { min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
  .hero { padding-top: calc(var(--header-height, 68px) + 13px); }
  .hero h1 { line-height: 1.43; }
  .hero-description.hero-enter { animation-duration: .55s; animation-delay: .15s; }
  .hero-primary.hero-enter { animation-duration: .35s; animation-delay: .03s; }
  .hero-secondary.hero-enter { animation-duration: .4s; animation-delay: .1s; }
  .hero-side { top: calc(var(--header-height, 68px) + 40px); }
  .hero-art { padding-bottom: 25px; }
  .hero-art img { height: calc(100% - 30px); inset: 5px 5px 25px; }
  .hero-art-caption { font-size: 10px; line-height: 1.6; }
  .studio-frame { padding: 4px; width: 32%; top: 8%; }
  .studio-frame figcaption { font-size: 10px; padding: .4em .05em .1em; }
  .studio-preview-caption { font-size: 11px; margin-top: 10px; }
  .studio-controls { margin-top: 17px; }
  .studio-controls fieldset { margin-bottom: 13px; }
  .studio-clear, .studio-places button.studio-clear { font-size: 12px; min-height: 44px; }
  .reset-note.small-note { font-size: 11px; text-align: left; }
  .memo-primary-fields, .memo-extra-fields .memo-field-grid { grid-template-columns: 1fr; gap: 0; }
  .consultation-extra>summary { font-size: 13px; padding: 15px 15px; min-height: 62px; gap: 10px; }
  .memo-extra-fields { padding: 22px 15px 4px; }
  .memo-readiness { font-size: 13px; padding: 14px 14px; line-height: 1.95; }
  .memo-card>p.memo-guidance { font-size: 12px; line-height: 1.95; }
  .memo-card textarea { min-height: 320px; }
  .memo-actions .button { min-height: 56px; }
  .voice-heading h3 { overflow-wrap: break-word; }
}
@media(max-width:600px) and (max-height:700px) {
  .hero { padding-top: calc(var(--header-height, 68px) + 11px); }
  .hero h1 { line-height: 1.37; }
  .hero-side { top: calc(var(--header-height, 68px) + 35px); }
}
@media(min-width:601px) and (max-width:1100px) and (max-height:500px) {
  .hero { height: auto; min-height: 370px; max-height: none; padding: 0 0 28px; }
  .hero-content { padding-top: calc(var(--header-height, 70px) + 12px); margin-left: 6%; width: 51%; }
  .hero-content .eyebrow { font-size: 10px; line-height: 1.7; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(29px,4.6vw,40px); line-height: 1.4; letter-spacing: .025em; }
  .hero-description { display: none; }
  .hero-actions { margin-top: 18px; gap: 8px; }
  .hero-actions .button { min-height: 49px; padding: 12px 18px; font-size: 12px; gap: 16px; }
  .hero-secondary { min-height: 39px; font-size: 12px; }
  .hero-art { top: calc(var(--header-height, 70px) + 13px); height: calc(100svh - var(--header-height, 70px) - 32px); max-height: 280px; max-width: 37%; right: 5%; padding: 6px 6px 25px; }
  .hero-art-caption { font-size: 10px; }
  .hero-side, .hero-bottom { display: none; }
  .hero-petal.petal-two { top: 78%; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-description.hero-enter, .hero-primary.hero-enter, .hero-secondary.hero-enter { animation: none; }
  .extra-toggle { transition: none; }
}
