/* Cadenza America — lower half (v46): voices, details at night, the journey, contact stage, footer.
   Alternates warm paper and deep night; the italic serif carries the voice. Content is visible by default:
   motion states only apply once america-lower.js adds .am-lower-motion to <html>. */
:root {
  --paper-warm: #f4f0e8;
  --ink-warm: #16140f;
  --ink-warm-2: #5a5346;
  --night: #0c0d0f;
  --night-2: #b8b3a8;
  --serif-accent: #d9cfbd;
  --out: cubic-bezier(.16,1,.3,1);
}
.am-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: #d9cfbd; color: #16140f; }

/* ---------- Voices ---------- */
.am-voices {
  position: relative;
  background: var(--paper-warm);
  color: var(--ink-warm);
  padding: clamp(90px, 11vw, 170px) max(28px, calc((100vw - 1280px)/2));
  overflow: hidden;
}
.am-voices-inner { position: relative; max-width: 1080px; margin: 0 auto; }
.am-voices h2 { font: 400 clamp(36px, 4vw, 58px)/1.05 var(--display); letter-spacing: -.035em; text-align: center; }
.am-voices h2 em { font: italic 400 1.1em/1 var(--script); letter-spacing: -.01em; color: #8a7e66; }
.am-voices-mark {
  display: block; margin: 36px auto -40px; width: max-content;
  font: italic 400 clamp(130px, 14vw, 210px)/.8 var(--script);
  color: #cdbf9f;
  user-select: none;
}
.am-voices-stage { display: grid; gap: 56px; text-align: center; }
.am-voice { margin: 0; }
.am-voice blockquote { margin: 0; }
.am-voice blockquote p {
  font: italic 400 clamp(30px, 3.5vw, 52px)/1.2 var(--script);
  letter-spacing: -.005em;
  color: var(--ink-warm);
  max-width: 26ch; margin: 0 auto;
  text-wrap: balance;
}
.am-voice figcaption { margin-top: 22px; font: 500 13px/1.6 var(--ui); color: var(--ink-warm-2); letter-spacing: .02em; }
.am-voices-people { display: none; }

/* Enhanced: one voice at a time, chosen from the people row */
.am-voices.is-enhanced .am-voices-stage { display: grid; grid-template-areas: "v"; min-height: 3.8em; font-size: clamp(30px, 3.5vw, 52px); }
.am-voices.is-enhanced .am-voice { grid-area: v; align-self: center; font-size: 1rem; }
.am-voices.is-enhanced .am-voice:not(.is-active) { visibility: hidden; }
.am-voices.is-enhanced .am-voice figcaption { display: none; }
.am-voices.is-enhanced .am-voices-people {
  display: flex; justify-content: center; align-items: stretch; gap: 10px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
}
.am-voices-people [role=tab] {
  position: relative; overflow: hidden;
  display: grid; gap: 4px; justify-items: start; text-align: left;
  min-width: 220px; padding: 16px 20px 18px;
  border: 1px solid #d8cfbd; border-radius: 16px;
  background: transparent; color: var(--ink-warm-2);
  font: 400 13px/1.45 var(--ui); cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform 160ms ease-out;
}
.am-voices-people [role=tab]:hover { border-color: #b9ab8f; color: var(--ink-warm); }
.am-voices-people [role=tab]:active { transform: scale(.98); }
.am-voices-people [role=tab][aria-selected=true] { background: #fffdf8; border-color: #fffdf8; color: var(--ink-warm); box-shadow: 0 10px 30px #3a2f1a14; }
.am-voice-initials { font: 600 15px/1.2 var(--display); letter-spacing: .04em; color: var(--ink-warm); }
.am-voice-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #b49a6a; transform: scaleX(0); transform-origin: left; }
.am-voices-pause {
  align-self: center; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #d8cfbd; background: transparent; color: var(--ink-warm); cursor: pointer;
}
.am-voices-pause svg { width: 16px; height: 16px; fill: currentColor; }
.am-voices-pause[aria-pressed=true] svg { display: none; }
.am-voices-pause[aria-pressed=true]::before { content: ''; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.am-voices-people [role=tab]:focus-visible, .am-voices-pause:focus-visible { outline: 2px solid var(--ink-warm); outline-offset: 3px; }

@media (min-width:0px) {
  .am-lower-motion .am-voices-mark { opacity: 0; transform: translateY(30px) scale(.9); transition: opacity 1s var(--out), transform 1.2s var(--out); }
  .am-lower-motion .am-voices.is-in .am-voices-mark { opacity: 1; transform: none; }
  /* words come into focus one after another */
  .am-voices.is-enhanced .am-voice .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.22em); transition: opacity .2s ease, filter .2s ease, transform .2s ease; }
  .am-voices.is-enhanced.is-in .am-voice.is-active .w { opacity: 1; filter: blur(0); transform: none; transition: opacity .7s var(--out), filter .8s var(--out), transform .9s var(--out); transition-delay: calc(var(--i) * 32ms + 120ms); }
  .am-voices.is-enhanced [aria-selected=true] .am-voice-progress { animation: am-voice-progress var(--voice-hold, 8s) linear forwards; }
  .am-voices.is-paused [aria-selected=true] .am-voice-progress, .am-voices:not(.is-visible) [aria-selected=true] .am-voice-progress { animation-play-state: paused; }
  .am-voices.is-stopped .am-voice-progress { animation: none !important; transform: scaleX(0); }
  @keyframes am-voice-progress { to { transform: scaleX(1); } }
}
@media (max-width:760px) {
  .am-voices-mark { margin-bottom: -26px; }
  .am-voices.is-enhanced .am-voices-stage { min-height: 0; font-size: 26px; }
  .am-contact-stage .am-fields { grid-template-columns: 1fr; }
  .am-voices-people [role=tab] { min-width: 0; flex: 1 1 100%; padding: 12px 16px 14px; }
  .am-voices-pause { flex: 0 0 auto; }
}

/* ---------- Details at night ---------- */
.am-details-night { background: var(--night); color: #f4f2ee; }
.am-details-night .am-heading-row h2 { color: #f6f4ef; }
.am-details-night .am-heading-row h2 em, .am-journey h2 em, .am-contact-stage h2 em {
  font: italic 400 1.1em/1 var(--script); letter-spacing: -.01em;
}
.am-details-night .am-heading-row h2 em { color: var(--serif-accent); }
.am-details-night .am-heading-row > p { color: var(--night-2); }
.am-details-night .am-detail-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.am-detail-visual { position: sticky; top: 130px; margin: 0; }
.am-detail-visual img { width: 100%; height: auto; border-radius: 4px; }
.am-detail-visual figcaption { margin-top: 10px; font-size: 12px; color: #8d887d; letter-spacing: .02em; }
.am-details-night .am-accordions details { border-color: #2a2b2f; }
.am-details-night .am-accordions summary { color: #f2f0ea; font-size: clamp(19px, 1.6vw, 23px); padding-block: 24px; transition: color .2s ease; }
.am-details-night .am-accordions summary:hover { color: #fff; }
.am-details-night .am-accordions details[open] summary { color: #fff; }
.am-details-night .am-accordions p { color: #c4bfb4; font-size: 15px; line-height: 1.75; }
.am-details-night .am-plus::before, .am-details-night .am-plus::after { background: var(--serif-accent); transition: transform .35s var(--out); }
.am-details-night details[open] .am-plus { opacity: 1; }
.am-details-night details[open] .am-plus::after { transform: rotate(0deg); }
.am-details-night .am-accordions details > div { padding-left: 0; }
.am-details-night .am-detail-intro { margin-top: 36px; }
.am-details-night .am-detail-intro > p { color: var(--night-2); max-width: 46ch; }
.am-details-night .am-link { color: #f4f2ee; border-bottom-color: #6c675d; }
.am-details-night .am-link:hover { color: var(--serif-accent); }
.am-details-night summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
/* smooth open where supported; content always arrives with a short rise */
@supports (interpolate-size: allow-keywords) {
  .am-details-night .am-accordions { interpolate-size: allow-keywords; }
  .am-details-night .am-accordions details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--out), content-visibility .45s allow-discrete; }
  .am-details-night .am-accordions details[open]::details-content { block-size: auto; }
}
@media (min-width:0px) {
  .am-details-night details[open] > div { animation: am-acc-in .5s var(--out) both; }
  @keyframes am-acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .am-lower-motion [data-reveal=unveil] img { clip-path: inset(8% 6% 8% 6% round 4px); transform: scale(1.06); opacity: .4; transition: clip-path 1.2s var(--out), transform 1.6s var(--out), opacity .8s ease; }
  .am-lower-motion [data-reveal=unveil].is-in img { clip-path: inset(0 0 0 0 round 4px); transform: none; opacity: 1; }
}
@media (max-width:900px) {
  .am-details-night .am-detail-layout { grid-template-columns: 1fr; }
  .am-detail-visual { position: static; }
}

/* ---------- The journey ---------- */
.am-journey { background: var(--paper-warm); color: var(--ink-warm); }
.am-journey h2 { font-weight: 300; }
.am-journey h2 em { color: #8a7e66; }
.am-journey ol { position: relative; gap: clamp(28px, 4vw, 64px); margin-top: 70px; }
.am-journey ol::before { /* the rail the three steps sit on */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, #b49a6a, #d8cfbd 70%, #d8cfbd);
  transform-origin: left;
}
.am-journey li { border-top: 0; padding-top: 34px; position: relative; }
.am-journey li::before { /* a node on the rail */
  content: ''; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper-warm); border: 1px solid #b49a6a;
}
.am-journey li > .am-journey-num { display: block; font: italic 400 clamp(64px, 6vw, 92px)/.9 var(--script); color: #b6a37c; }
.am-journey h3 { font-size: 24px; margin: 18px 0 12px; color: var(--ink-warm); }
.am-journey li p { color: var(--ink-warm-2); font-size: 15px; line-height: 1.75; }
@media (min-width:0px) {
  .am-lower-motion [data-reveal=journey]::before { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.65,0,.35,1); }
  .am-lower-motion [data-reveal=journey].is-in::before { transform: scaleX(1); }
  .am-lower-motion [data-reveal=journey] li::before { transform: scale(0); transition: transform .5s var(--out); }
  .am-lower-motion [data-reveal=journey] li > * { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--out), transform .9s var(--out); }
  .am-lower-motion [data-reveal=journey].is-in li::before,
  .am-lower-motion [data-reveal=journey].is-in li > * { opacity: 1; transform: none; }
  .am-lower-motion [data-reveal=journey].is-in li:nth-child(1)::before, .am-lower-motion [data-reveal=journey].is-in li:nth-child(1) > * { transition-delay: .1s; }
  .am-lower-motion [data-reveal=journey].is-in li:nth-child(2)::before, .am-lower-motion [data-reveal=journey].is-in li:nth-child(2) > * { transition-delay: .6s; }
  .am-lower-motion [data-reveal=journey].is-in li:nth-child(3)::before, .am-lower-motion [data-reveal=journey].is-in li:nth-child(3) > * { transition-delay: 1.1s; }
}
@media (max-width:760px) {
  .am-journey ol::before { left: 5px; right: auto; width: 1px; height: 100%; transform-origin: top; background: linear-gradient(180deg, #b49a6a, #d8cfbd); }
  .am-lower-motion [data-reveal=journey]::before { transform: scaleY(0); }
  .am-lower-motion [data-reveal=journey].is-in::before { transform: scaleY(1); }
  .am-journey li { padding: 0 0 8px 34px; }
  .am-journey li::before { top: 8px; }
  .am-journey li > .am-journey-num { font-size: 56px; }
}

/* ---------- Contact stage ---------- */
.am-contact-stage { position: relative; isolation: isolate; overflow: hidden; background: #0c0d0f; color: #f4f2ee; align-items: center; }
.am-contact-bg { position: absolute; inset: 0; z-index: -1; }
.am-contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.am-contact-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0c0d0ff2 0%, #0c0d0fcc 38%, #0c0d0f8c 62%, #0c0d0f66 100%), linear-gradient(0deg, #0c0d0fb3, transparent 40%); }
.am-contact-stage h2 { color: #f7f5f0; }
.am-contact-stage h2 em { color: var(--serif-accent); }
.am-contact-stage .am-contact-copy > p:not(.am-kicker) { color: #d5d0c6; }
.am-contact-stage .am-contact-form {
  background: #f7f5f0; color: var(--ink-warm);
  border-radius: 22px; padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 40px 90px #0009, 0 2px 6px #0004;
}
.am-contact-stage .field input, .am-contact-stage .field textarea { background: #fff; border-color: #ddd5c6; }
.am-contact-stage .field label, .am-contact-stage .am-consent { color: #4b453a; }
@media (min-width:0px) {
  .am-lower-motion .am-contact-bg img { transform: scale(1.08); transition: transform 2.4s var(--out); }
  .am-lower-motion .am-contact-stage.is-in .am-contact-bg img { transform: none; }
  .am-lower-motion [data-reveal=rise] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--out) .2s, transform 1.1s var(--out) .2s; }
  .am-lower-motion [data-reveal=rise].is-in { opacity: 1; transform: none; }
}
@media (max-width:760px) {
  .am-contact-bg::after { background: linear-gradient(180deg, #0c0d0fd9 0%, #0c0d0fb3 45%, #0c0d0fe6 100%); }
}

/* ---------- Footer ---------- */
.am-footer { position: relative; overflow: hidden; }
.am-footer-top > p { font-family: var(--display); }
.am-footer-top > p em { font: italic 400 1.12em/1 var(--script); color: var(--serif-accent); letter-spacing: -.01em; }
.am-footer-mark { margin: 40px 0 0; pointer-events: none; }
.am-footer-top::before { display: none; }
.am-footer-mark img { width: 100%; height: auto; filter: brightness(0) invert(1); opacity: .07; }
.am-footer nav .am-site-switch { background: transparent; border: 1px solid #ffffff38; border-radius: 14px; }
.am-footer nav .am-site-switch:hover { background: #ffffff12; border-color: #ffffff70; }
@media (min-width:0px) {
  .am-lower-motion .am-footer-mark img { opacity: 0; transform: translateY(30%); transition: opacity 1.4s ease, transform 1.6s var(--out); }
  .am-lower-motion .am-footer-mark.is-in img { opacity: .07; transform: none; }
}
@media print { .am-contact-bg, .am-footer-mark, .am-voices-mark { display: none; } }

/* Keep the finish link separate from the product description. */
.am-details-night .am-accordions .am-detail-order-link { margin-top: 12px; }

/* Installation photo viewer: contain the complete image, with a visible close control. */
.am-globe-photo-open{display:block;position:relative;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:white}
.am-globe-photo-open[hidden]{display:none}
.am-globe-photo-hint{position:absolute;right:14px;bottom:14px;padding:8px 12px;border-radius:999px;background:#0b1525e8;color:#fff;font:500 12px/1.4 'DM Sans',sans-serif}
.am-globe-photo-open:focus-visible{outline:3px solid #e8d4a7;outline-offset:-3px}
.am-globe-photo-dialog{box-sizing:border-box;width:min(1200px,96vw);max-width:96vw;max-height:94svh;padding:60px 18px 18px;border:1px solid #ffffff40;border-radius:16px;background:#0b111b;color:white;overflow:auto}
.am-globe-photo-dialog::backdrop{background:#000d}
.am-globe-photo-dialog>img{display:block;width:100%;height:auto;max-height:calc(94svh - 120px);object-fit:contain}
.am-globe-photo-close{position:absolute;top:10px;right:14px;min-height:44px;padding:8px 16px;border:1px solid #ffffff70;border-radius:999px;background:#fff;color:#10151d;font:500 14px/1.4 'DM Sans',sans-serif;cursor:pointer}
.am-globe-photo-close:focus-visible{outline:3px solid #e8d4a7;outline-offset:3px}
.am-globe-photo-caption{margin:14px 0 0;text-align:center;font:400 14px/1.5 'DM Sans',sans-serif}
body:has(.am-globe-photo-dialog[open]){overflow:hidden}

/* v82 Specifications and questions, in the dark details section */
.am-details-night .am-specs-live { margin-top: clamp(56px, 7vw, 96px); padding-top: 34px; border-top: 1px solid #2a2b2f; scroll-margin-top: 90px; }
.am-specs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.am-details-night .am-specs h3, .am-details-night .am-product-faq h3 { color: #f6f4ef; margin: 0; }
.am-details-night .am-specs table { margin-top: 26px; font-size: 15px; }
.am-details-night .am-specs caption { color: var(--serif-accent); font-size: 13px; letter-spacing: .01em; margin-bottom: 10px; }
.am-details-night .am-specs th { color: #f2f0ea; border-color: #2a2b2f; font-weight: 500; }
.am-details-night .am-specs td { color: #c4bfb4; border-color: #2a2b2f; }
.am-details-night .am-specs-dims thead th, .am-details-night .am-specs-dims thead td { color: #8d887d; font-size: 13px; font-weight: 400; padding: 0 0 10px; border-top: 0; }
.am-details-night .am-specs-dims td span { display: block; color: #8d887d; font-size: 13px; }
.am-details-night .am-specs-dims th { width: 28%; }
@media (max-width:760px) {
  .am-details-night .am-specs-dims thead { display: table-header-group; }
  .am-details-night .am-specs-dims tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; border-top: 1px solid #2a2b2f; }
  .am-details-night .am-specs-dims thead tr { border-top: 0; }
  .am-details-night .am-specs-dims th, .am-details-night .am-specs-dims td { display: block; width: auto; padding: 14px 0; border: 0; }
}
.am-details-night .am-product-faq { margin-top: clamp(48px, 6vw, 80px); }
.am-details-night .am-product-faq h3 { margin-bottom: 10px; }

