/* Independent art layers: content determines the height, never a raster's empty space. */
.closing-tableau { background: #07120e; color: #f6f0e3; border-top: 6px solid #d9a441; overflow: clip; }
.closing-tableau__stage { position: relative; isolation: isolate; max-width: 128rem; margin: auto; padding-top: clamp(7rem, 12vw, 15rem); }
.closing-tableau__arch { position: absolute; z-index: -1; top: 1rem; left: 3%; width: 94%; height: auto; pointer-events: none; }
.closing-tableau__copy { position: relative; z-index: 2; width: 50%; margin: auto; text-align: center; }
.closing-tableau h2 { max-width: 24ch; margin: 0 auto; color: inherit; font-size: clamp(2.2rem, 3.8vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; }
.closing-tableau__copy p { max-width: 40ch; margin: 1.4rem auto 0; font: 400 clamp(.95rem, 1.2vw, 1.15rem)/1.6 var(--mono); color: #d2d5ca; }
.closing-tableau__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.7rem; }
.closing-tableau__actions .button { font-size: 1rem; min-height: 3.5rem; padding: 1rem 1.7rem; }
.closing-tableau__actions .text-link { color: #ebc86c; font-size: 1rem; }
.closing-tableau__ground { position: relative; z-index: 1; padding: 2.5rem 0 0; display: grid; place-items: end center; min-height: 11rem; }
/* Visible pedestal ends at row 829 of 887; ignore faint alpha residue below its gold edge. */
.closing-tableau__scales { width: 30%; height: auto; transform: translateY(6.539%); }
.closing-tableau__goddess { position: absolute; z-index: 1; bottom: 0; width: 28%; height: auto; pointer-events: none; }
.closing-tableau__goddess--left { left: 0; }
.closing-tableau__goddess--right { right: 0; }
@media (max-width: 48rem) {
  .closing-tableau__stage { padding-top: clamp(5.5rem, 16vw, 8rem); }
  .closing-tableau__copy { width: calc(100% - 48px); max-width: 34rem; }
  .closing-tableau h2 { font-size: clamp(2.2rem, 6vw, 3rem); }
  .closing-tableau__ground { min-height: clamp(11rem, 40vw, 20rem); padding-top: 2rem; align-items: end; }
  .closing-tableau__goddess { width: 32%; }
  .closing-tableau__scales { width: 32%; }
}

/* Beta: a real DOM coverage instrument sits behind a transparent illustrated frame. */
.beta-lab { margin: 0 auto; padding-top: clamp(3rem, 5vw, 5rem); color: #f6f0e3; }
.beta-lab__heading { max-width: 48rem; margin: 0 auto 2.5rem; padding-inline: clamp(16px, 4vw, 24px); text-align: center; }
.beta-lab__heading h2 { margin: 0; font-size: clamp(2.4rem, 3.8vw, 4rem); line-height: 1.04; letter-spacing: -.035em; }
.beta-lab__heading p { margin: 1rem auto 0; color: #d2d5ca; max-width: 40ch; }
.beta-lab__stage { width: min(96rem, calc(100% - 24px)); margin-inline: auto; position: relative; isolation: isolate; display: grid; place-items: center; min-height: 35rem; padding: 5rem 27%; }
.beta-lab__paper { position: absolute; z-index: -2; inset: 0; background: #f5ead0; border-radius: 50%; }
.beta-lab__frame { position: absolute; z-index: -1; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.beta-lab__figure, .beta-lab__botanicals { display: none; }
.beta-lab__note-band { margin-top: 0; border-top: 1px solid #a88a48; padding-block: 2rem; background: linear-gradient(rgba(7, 18, 14, .35), rgba(7, 18, 14, .35)), url("/assets/art/tinta-viva-marble-ink-v1.webp") center / cover; }
.beta-lab__note { max-width: 64ch; margin: 0 auto; padding-inline: 1.5rem; text-align: center; font: .8rem/1.6 var(--mono); color: #f6f0e3; }
.coverage-demo { width: 100%; min-width: 0; color: #17251c; }
.coverage-demo [hidden] { display: none !important; }
.coverage-demo__eyebrow { margin: 0 0 .6rem; color: #70531b; text-align: center; font: 700 .65rem/1.5 var(--mono); letter-spacing: .1em; }
.coverage-demo h3 { margin: 0 0 1rem; font-size: clamp(1.6rem, 2.3vw, 2.5rem); line-height: 1.05; text-align: center; }
.coverage-demo__accounts { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; margin: 0; padding: 0; border: 0; }
.coverage-demo__accounts legend { width: 100%; text-align: center; font: .7rem/1.4 var(--mono); margin-bottom: .3rem; }
.coverage-demo__accounts label { display: flex; align-items: center; gap: .4rem; min-height: 2.75rem; cursor: pointer; font-size: .85rem; }
.coverage-demo input { accent-color: #17251c; width: 1.1rem; height: 1.1rem; }
.coverage-demo__summary { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .2rem .65rem; margin: .7rem 0 .7rem; }
.coverage-demo__summary strong { font: 600 2.4rem/1 var(--display); font-variant-numeric: tabular-nums; }
.coverage-demo__summary span { font-size: .75rem; }
.coverage-demo__timeline { display: grid; grid-template-columns: repeat(31, minmax(0,1fr)); gap: 3px; height: 2rem; }
.coverage-demo__day { background: #42624e; border-radius: 2px; }
.coverage-demo__day[data-gap] { background: transparent; border: 1px dashed #a13d28; }
.coverage-demo__dates { display: flex; justify-content: space-between; font: .65rem/1.6 var(--mono); margin-top: .25rem; }
.coverage-demo__status { min-height: 2.7em; margin: .85rem 0 .7rem; text-align: center; font-size: .85rem; line-height: 1.4; }
.coverage-demo__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.coverage-demo__actions button { min-height: 2.75rem; padding: .65rem .9rem; border: 1px solid #17251c; border-radius: 0; background: #17251c; color: #fff9ed; font: 600 .8rem/1.3 var(--body); cursor: pointer; }
.coverage-demo__actions .coverage-demo__fill { background: transparent; color: #17251c; }
.coverage-demo__actions button[aria-disabled=true] { background: transparent; color: #756c57; border-color: #a69b82; cursor: not-allowed; }
.coverage-demo :focus-visible, .hero-divider button:focus-visible { outline: 3px solid #a23e28; outline-offset: 4px; }
.coverage-demo__receipt { border-block: 1px solid #a88a48; padding: 1.2rem .5rem; text-align: center; margin-block: 1rem; }
.coverage-demo__receipt p { font: .8rem/1.6 var(--mono); }
.coverage-demo__receipt strong { font: 600 2rem/1.2 var(--display); }
@media (min-width: 90rem) {
  .beta-lab__stage { min-height: 0; aspect-ratio: 2106 / 747; padding-block: 5.5%; }
}
@media (max-width: 89.99rem) {
  .beta-lab__stage { min-height: 0; padding: 5rem max(1.5rem, 18%) clamp(7rem, 32vw, 20rem); }
  .beta-lab__frame { display: none; }
  .beta-lab__paper { inset: 2rem 8% 1rem; border: 2px solid #b88c35; border-radius: 50% / 30%; }
  .beta-lab__figure { display: block; position: absolute; width: 22%; height: auto; bottom: 0; pointer-events: none; }
  .beta-lab__paper::after { content: ""; position: absolute; inset: 9px; border: 1px solid #b88c35; border-radius: inherit; pointer-events: none; }
  .beta-lab__botanicals { display: block; position: absolute; z-index: -1; bottom: 0; width: 60%; max-width: 36rem; height: auto; pointer-events: none; left: 50%; transform: translateX(-50%); }
  .beta-lab__figure--left { left: 0; }
  .beta-lab__figure--right { right: 0; }
}
@media (max-width: 40rem) {
  .beta-lab__stage { padding: 4.5rem 24px 7rem; }
  .beta-lab__paper { inset: 1.5rem 0 1rem; border-radius: 50% / 15%; }
  .beta-lab__figure { width: 25%; }
  .coverage-demo__timeline { gap: 2px; height: 1.5rem; }
  .coverage-demo__summary strong { font-size: 2.2rem; }
  .coverage-demo h3 { font-size: 1.8rem; }
  .coverage-demo__eyebrow { font-size: .6rem; }
}

/* The sloping reveal clips two stationary layers; dragging does not reflow the copy. */
.hero-divider { display: none; }
@media (min-width: 58.01rem) {
  .tinta-viva-page .home-hero__stage[data-reveal-ready] { --hero-split: 43%; --hero-slant: 12%; }
  .tinta-viva-page .home-hero__stage[data-reveal-ready] .home-hero__art { left: 0; width: 100%; clip-path: none; opacity: 1; transform: none !important; }
  .tinta-viva-page .home-hero__stage[data-reveal-ready] .home-hero__art img { object-position: 74% 45%; }
  .tinta-viva-page .home-hero__stage[data-reveal-ready] .home-hero__paper { width: 100%; clip-path: polygon(0 0, calc(var(--hero-split) + 6%) 0, calc(var(--hero-split) - 6%) 100%, 0 100%); }
  .tinta-viva-page .home-hero__stage[data-reveal-ready] .home-hero__center { width: 100%; clip-path: polygon(0 0, calc(var(--hero-split) + 6%) 0, calc(var(--hero-split) - 6%) 100%, 0 100%); }
  .tinta-viva-page .home-hero__stage[data-reveal-ready] .home-hero__copy { width: min(28rem, 31vw); }
  .hero-divider:not([hidden]) { display: block; position: absolute; left: calc(var(--hero-split) - 22px); top: 0; width: 44px; height: 100%; z-index: 8; transform: skewX(var(--hero-angle, -12deg)); touch-action: none; cursor: ew-resize; }
  .hero-divider::before { content: ''; position: absolute; inset: 0 auto 0 21px; width: 2px; background: #d9a441; }
  .hero-divider button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) skewX(var(--hero-counter-angle, 12deg)); min-width: 4.25rem; min-height: 2rem; padding: .4rem .6rem; color: #17251c; background: #e4b451; border: 1px solid #725216; border-radius: 2rem; font: 600 .68rem/1 var(--body); cursor: ew-resize; touch-action: none; }
  .home-hero__stage[data-dragging] { user-select: none; }
}

@media (max-width: 48rem) {
  .closing-tableau__actions .button { max-width: 100%; padding: 16px 24px; }
  .closing-tableau__actions .text-link { max-width: 100%; }
}
/* Keep the instrument's reading width when the browser enlarges rem-based type. */
.tinta-route-page .beta-lab.marketing-frame { width: 100%; padding-bottom: 0; border: 0; }
.coverage-demo__summary strong { white-space: nowrap; }

/* Proof phones follow the screenshot's intrinsic ratio instead of letterboxing in a fixed height. */
.tinta-viva-page .home-proof-card { min-height: 0; row-gap: 1.5rem; }
.tinta-viva-page .home-proof-card__visual { height: auto; }
.tinta-viva-page .home-proof-card__visual img { height: auto; }

/* Keep a generous invisible grab target around the quieter visible handle. */
.hero-divider button::after { content: ""; position: absolute; inset: -7px -6px; border-radius: inherit; }

/* The story has an opaque surface so the former A-scene cannot bleed through. */
.tinta-viva-page .home-story,
.tinta-viva-page[data-immersive-state="ready"] .home-story {
  background: linear-gradient(rgba(7,18,14,.78),rgba(7,18,14,.78)), #07120e url("/assets/art/tinta-viva-marble-ink-v1.webp") center / cover;
  min-height: 0;
}
.tinta-viva-page .home-story__copy { width: min(100%, 56rem); margin-inline: auto; min-height: 0; text-align: center; align-items: center; background: none; }
.tinta-viva-page .home-story__copy h2 { max-width: 18ch; }
.tinta-viva-page .home-story__copy > p { max-width: 48ch; }

/* Portrait alternative: original section and restore script live in design-alternatives. */
.tinta-route-page .closing-cta--portrait { padding-block: clamp(2.5rem,5vw,4rem); background: #07120e; }
.tinta-route-page .closing-cta--portrait .closing-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; min-height: 0; text-align: center; padding: 0 1.5rem; }
.closing-portrait { display: block; width: clamp(7rem,12vw,10rem); height: auto; border-radius: 50%; }
.tinta-route-page .closing-cta--portrait h2 { max-width: 20ch; margin: 0 auto; font-size: clamp(2.4rem,4vw,4rem); }
.tinta-route-page .closing-cta--portrait p { max-width: 48ch; margin: 1.5rem auto; }
.tinta-route-page .closing-cta--portrait .closing-cta__actions { justify-content: center; }
@media (max-width: 40rem) {
  .tinta-route-page .closing-cta--portrait .closing-cta__actions { flex-direction: column; align-items: stretch; }
}
