/* Cadenza America — middle of the page (v47) and site-wide finish.
   Rhythm: photo → night (closer look) → paper (statement) → night (product) → paper (places) → globe → paper (voices) → night (details) …
   Motion states apply only once america-middle.js adds .am-mid-motion, so content never depends on the script. */

/* ---------- Statement ---------- */
.am-statement { background: var(--paper-warm, #f4f0e8); color: var(--ink-warm, #16140f); padding: clamp(110px, 14vw, 210px) max(28px, calc((100vw - 1280px)/2)); }
.am-statement-inner { max-width: 1100px; }
.am-statement h2 { font: 300 clamp(40px, 5.2vw, 78px)/1.06 var(--display); letter-spacing: -.035em; color: var(--ink-warm, #16140f); max-width: 18ch; }
.am-statement h2 em { display: block; font: italic 400 1.08em/1.05 var(--script); letter-spacing: -.01em; color: #8a7e66; }
.am-statement-lede { margin-top: clamp(40px, 5vw, 70px); margin-left: auto; max-width: 34ch; font: 400 clamp(21px, 2vw, 28px)/1.5 var(--display); letter-spacing: -.012em; color: var(--ink-warm, #16140f); }
@media (min-width:0px) {
  .am-mid-motion [data-scrub] .w { color: #c9bfae; transition: color .35s ease; }
  .am-mid-motion [data-scrub] .w.is-lit { color: var(--ink-warm, #16140f); }
}
@media (max-width:760px) { .am-statement-lede { margin-left: 0; } }

/* ---------- Product ---------- */
.am-product-v2 .am-product-image { min-height: 0; aspect-ratio: 4/5; max-height: 92vh; margin: clamp(20px, 3vw, 44px); border-radius: 18px; }
.am-product-v2 .am-product-image img { filter: none; }
.am-product-v2 .am-product-copy h2 em { font: italic 400 1.1em/1 var(--script); letter-spacing: -.01em; color: #d9cfbd; }
.am-product-v2 .am-product-copy > p { color: #c9c4b9; font-size: 16px; }
.am-product-v2 .am-product-notes > div { position: relative; border-top: 0; padding: 20px 0; }
.am-product-v2 .am-product-notes > div::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #3a3833; transform-origin: left; }
.am-product-v2 .am-product-notes dt { font: 400 19px/1.3 var(--display); letter-spacing: -.01em; }
.am-product-v2 .am-product-notes dd { color: #b9b3a7; font-size: 15px; margin-top: 6px; }
.am-product-v2 .am-link { color: #f4f2ee; border-bottom-color: #6c675d; }
@media (min-width:0px) {
  .am-mid-motion [data-reveal=frame] img { clip-path: inset(10% 8% 10% 8% round 18px); transform: scale(1.12); transition: clip-path 1.3s var(--out), transform 1.8s var(--out); }
  .am-mid-motion [data-reveal=frame].is-in img { clip-path: inset(0 round 18px); transform: none; }
  .am-mid-motion [data-reveal=notes] > div::before { transform: scaleX(0); transition: transform 1s var(--out); }
  .am-mid-motion [data-reveal=notes] > div > * { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--out), transform .8s var(--out); }
  .am-mid-motion [data-reveal=notes].is-in > div::before { transform: none; }
  .am-mid-motion [data-reveal=notes].is-in > div > * { opacity: 1; transform: none; }
  .am-mid-motion [data-reveal=notes].is-in > div:nth-child(2)::before, .am-mid-motion [data-reveal=notes].is-in > div:nth-child(2) > * { transition-delay: .12s; }
  .am-mid-motion [data-reveal=notes].is-in > div:nth-child(3)::before, .am-mid-motion [data-reveal=notes].is-in > div:nth-child(3) > * { transition-delay: .24s; }
}
@media (max-width:760px) { .am-product-v2 .am-product-image { aspect-ratio: 4/3.4; height: auto; min-height: 0; margin: 16px; } }

/* ---------- Places ---------- */
.am-places-v2 { background: var(--paper-warm, #f4f0e8); color: var(--ink-warm, #16140f); }
.am-places-v2 .am-heading-row h2 em { font: italic 400 1.1em/1 var(--script); letter-spacing: -.01em; color: #8a7e66; }
.am-places-v2 .am-heading-row > p { color: #5a5346; }
.am-places-v2 .am-setting-cards { gap: clamp(16px, 2vw, 28px); }
.am-places-v2 .am-setting-card { position: relative; }
.am-places-v2 .am-setting-card figure { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4/5; margin: 0; }
.am-places-v2 .am-setting-card figure img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.am-places-v2 .am-setting-card figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: #16140fb3; color: #f4f0e8; font-size: 12px; }
.am-places-v2 .am-setting-card h3 { font: 400 clamp(22px, 1.8vw, 27px)/1.2 var(--display); letter-spacing: -.02em; margin: 20px 0 8px; }
.am-places-v2 .am-setting-card p { color: #5a5346; font-size: 15px; }
.am-places-v2 .am-setting-card .am-link { margin-top: 16px; }
.am-places-v2 .am-filmstrip img { border-radius: 14px; filter: none; }
.am-places-v2 .am-filmstrip figcaption { border-top: 0; color: var(--ink-warm, #16140f); }
.am-places-v2 .am-filmstrip figcaption span:last-child { color: #6b6354; }
.am-places-v2 .am-filmstrip-arrows button { border-color: #cbbfa8; color: var(--ink-warm, #16140f); }
.am-places-v2 .am-filmstrip-arrows button:hover { background: var(--ink-warm, #16140f); color: #f4f0e8; }
.am-places-v2 .am-gallery-note { color: #6b6354; }
@media (min-width:0px) and (hover:hover) and (pointer:fine) {
  .am-places-v2 .am-setting-card figure img { transition: transform .8s var(--out); }
  .am-places-v2 .am-setting-card:hover figure img { transform: scale(1.045); }
}
@media (min-width:0px) {
  .am-mid-motion [data-reveal=cards] .am-setting-card { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--out), transform 1s var(--out); }
  .am-mid-motion [data-reveal=cards].is-in .am-setting-card { opacity: 1; transform: none; }
  .am-mid-motion [data-reveal=cards].is-in .am-setting-card:nth-child(2) { transition-delay: .1s; }
  .am-mid-motion [data-reveal=cards].is-in .am-setting-card:nth-child(3) { transition-delay: .2s; }
}
@media (max-width:760px) { .am-places-v2 .am-setting-card figure { aspect-ratio: 4/3; } }

/* ---------- Details: the piano stands in the room, no box ---------- */
.am-detail-visual { position: sticky; top: 140px; }
@media (max-width:900px) { .am-detail-visual { position: static; } }
.am-detail-visual img { border-radius: 0; position: relative; z-index: 1; }
.am-detail-visual::after { content: ''; position: absolute; left: 10%; right: 6%; bottom: 7%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, #000c, #0000); filter: blur(6px); }
.am-detail-visual figcaption { position: relative; z-index: 1; text-align: center; margin-top: 14px; font-size: 13px; color: #a7a195; }
@media (min-width:0px) {
  .am-lower-motion [data-reveal=unveil] img { clip-path: none; opacity: 0; transform: translateY(40px) scale(.97); transition: opacity 1s var(--out), transform 1.4s var(--out); }
  .am-lower-motion [data-reveal=unveil].is-in img { opacity: 1; transform: none; }
}

/* ---------- Site-wide finish: readable sizes, steady contrast, no eyebrow labels ---------- */
.am-globe-head h2 { margin-top: 0; }
.am-inside-animated .am-inside-card > span { text-transform: none; letter-spacing: .01em; font-size: 13px; color: #cfe0f5; }
.am-inside-card > span { font-size: 13px; letter-spacing: .01em; text-transform: none; }
.am-hero-base, .am-hero-base > span, .am-hero-base a { font-size: 12px; }
.am-inside-note, .am-gallery-note, .am-map-note, .am-detail-visual figcaption, .am-footer-base { font-size: 12px; }
.am-callout-label { font-size: 12px; letter-spacing: .08em; }
.field label { font-size: 13px; }
.am-opening-caption { display: none; }
.cadenza-field-hint { color: #5f594d; }
.am-studio .am-heading-row h2 em { color: #6d717a; }
.am-inside-steps button, .am-inside-toggle { font-size: 13px; }
.am-globe-hint { letter-spacing: .02em; font-size: 13px; }
.am-globe-group h3 { font-size: 13px; letter-spacing: .02em; text-transform: none; }
.am-footer nav .am-site-switch, .am-footer nav .am-site-switch small { font-size: 13px; letter-spacing: 0; }
.am-callout-label { letter-spacing: .04em; }
/* warm accents that read at AA on paper */
.am-voices h2 em, .am-journey h2 em, .am-statement h2 em, .am-places-v2 .am-heading-row h2 em { color: #6e624b; }
.am-journey li > .am-journey-num { color: #9a8458; }

/* v74: step labels and callouts in sentence case, like every other label on the site */
.am-callout-label { text-transform: lowercase; letter-spacing: .01em; }
.am-callout-label::first-letter { text-transform: uppercase; }
/* small captions read at 12px on phones */
.am-places-v2 .am-filmstrip figcaption span, .am-inside-note { font-size: 12px; }
