/* Client's 30 October visual corrections. Constructor preview remains untouched. */
:root { --client-olive: #566742; }
body.reference-study .prototype-intro-inner { min-height: 350px; }
body.reference-study .prototype-intro-image { position: relative; align-self: stretch; height: 350px; overflow: visible; }
body.reference-study .prototype-intro-image img { position: absolute; display: block; width: min(640px,135%); max-width: none; height: auto; left: -60px; bottom: -150px; margin: 0; }
body.reference-study main > section.prototype-intro { overflow: hidden; }
/* Static, aligned facts: keeping the final number in the HTML avoids shifting text. */
body.reference-study #values.benefits-section { background: var(--client-olive) !important; }
body.reference-study #values.benefits-section .benefits-inner { padding: 68px 0 64px !important; }
body.reference-study #values .prototype-values-title { margin-bottom: 56px; font-size: clamp(36px,3.4vw,52px) !important; font-weight: 500 !important; }
body.reference-study #values .benefits-stats { gap: 40px; }
body.reference-study #values .benefit-item,
body.reference-study #values .benefit-item:not(:first-child) { display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 0; padding: 0 12px !important; }
body.reference-study #values .benefit-item:nth-child(2) { order: 3; }
body.reference-study #values .benefit-item:nth-child(3) { order: 2; }
body.reference-study #values .prototype-benefit-icon { width: 60px; height: 60px; margin: 0 0 26px; filter: brightness(0) invert(1); }
body.reference-study #values .client-benefit-stat { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 7px; min-height: 36px; width: 100%; }
body.reference-study #values .benefit-number.adv-number { font-size: 25px !important; line-height: 1.3 !important; font-weight: 400 !important; letter-spacing: 0; font-variant-numeric: tabular-nums; }
body.reference-study #values .benefit-copy { display: block; margin: 0; }
body.reference-study #values .adv-caption { max-width: none; font-size: 25px !important; line-height: 1.3 !important; font-weight: 400 !important; }
body.reference-study #values .adv-explanation { max-width: 270px; margin: 44px auto 0; color: #fff; font-size: 21px !important; line-height: 1.4 !important; }
body.reference-study #values .benefits-geography { margin-top: 54px; gap: 56px; }
body.reference-study #values .adv-region-label { color: #e2e9dc; }
/* Reference catalogue: photo field, olive name band, one separate pill action. */
body.reference-study #catalog #catalog-grid { gap: 24px !important; }
body.reference-study #catalog .catalog-card,
body.reference-study #catalog .catalog-card:nth-child(n) { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; overflow: visible; }
body.reference-study #catalog .catalog-image-window { height: clamp(300px,32vw,390px); margin: 0 !important; border-radius: 0 !important; background: #dedede !important; overflow: hidden; }
body.reference-study #catalog .catalog-photo { object-fit: contain; width: 100%; height: 100%; }
body.reference-study #catalog .catalog-meta { display: flex; flex: none; align-items: center; justify-content: center; width: 100% !important; min-height: 112px; margin: 0 !important; padding: 18px 14px; box-sizing: border-box; background: var(--client-olive); text-align: center; }
body.reference-study #catalog .catalog-meta h3 { color: #fff !important; font-size: 21px !important; line-height: 1.3 !important; }
body.reference-study #catalog .catalog-action { width: 100% !important; min-height: 54px !important; margin: 16px 0 0 !important; border-radius: 999px !important; background: #dedede !important; color: #26392d !important; }
body.reference-study #catalog .catalog-save { display: none !important; }
/* Real reversible stone faces. */
body.reference-study #materials .stone-flip { perspective: 1000px; -webkit-perspective: 1000px; overflow: visible !important; }
body.reference-study #materials .stone-flip-inner { isolation: auto !important; transform-style: preserve-3d !important; -webkit-transform-style: preserve-3d !important; transform: rotateY(0deg) !important; transition: transform .6s cubic-bezier(.2,.7,.25,1) !important; }
body.reference-study #materials .stone-flip:is(:focus-visible,[aria-pressed="true"]) .stone-flip-inner,
body.reference-study #materials .reference-stone.is-flipped .stone-flip-inner { transform: rotateY(180deg) !important; }
@media (hover: hover) and (pointer: fine) { body.reference-study #materials .stone-flip:hover .stone-flip-inner { transform: rotateY(180deg) !important; } }
body.reference-study #materials .stone-flip-front,
body.reference-study #materials .stone-flip-back { opacity: 1 !important; visibility: visible !important; isolation: auto !important; backface-visibility: hidden !important; -webkit-backface-visibility: hidden !important; transition: none !important; }
body.reference-study #materials .stone-flip-front,
body.reference-study #materials .stone-flip:is(:hover,:focus-visible,[aria-pressed="true"]) .stone-flip-front,
body.reference-study #materials .reference-stone.is-flipped .stone-flip-front { transform: rotateY(0deg) !important; opacity: 1 !important; }
body.reference-study #materials .stone-flip-back,
body.reference-study #materials .stone-flip:is(:hover,:focus-visible,[aria-pressed="true"]) .stone-flip-back,
body.reference-study #materials .reference-stone.is-flipped .stone-flip-back { transform: rotateY(180deg) !important; opacity: 1 !important; background: #20372c !important; }
/* Neutral stone photography beneath the glass footer. */
body.reference-study footer.footer.footer-stone { background: #fff !important; }
body.reference-study footer.footer .footer-stone-image { inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover !important; object-position: center 48% !important; transform: none !important; filter: saturate(.72) brightness(.82); }
body.reference-study .footer-glass { background: rgba(248,250,247,.86) !important; }
@media (max-width: 900px) {
  body.reference-study .prototype-intro-inner { min-height: 300px; }
  body.reference-study .prototype-intro-image { height: 300px; }
  body.reference-study .prototype-intro-image img { width: 160%; left: -100px; bottom: -100px; }
  body.reference-study #catalog .catalog-image-window { height: 300px; }
}
@media (max-width: 700px) {
  body.reference-study .prototype-intro-inner { min-height: 0; }
  body.reference-study .prototype-intro-image { order: 2; align-self: stretch; width: 100%; height: 225px; }
  body.reference-study .prototype-intro-image img { width: min(125%,470px); left: -18px; bottom: -78px; margin: 0; }
  body.reference-study #values.benefits-section .benefits-inner { width: calc(100% - 40px); padding: 54px 0 50px !important; }
  body.reference-study #values .prototype-values-title { margin-bottom: 36px; }
  body.reference-study #values .benefits-stats { display: grid; grid-template-columns: 1fr; gap: 38px; }
  body.reference-study #values .prototype-benefit-icon { margin-bottom: 16px; }
  body.reference-study #values .adv-caption, body.reference-study #values .benefit-number.adv-number { font-size: 22px !important; }
  body.reference-study #values .adv-explanation { margin-top: 15px; font-size: 17px !important; }
  body.reference-study #values .benefits-geography { margin-top: 42px; }
  body.reference-study #catalog #catalog-grid { gap: 18px !important; }
  body.reference-study #catalog .catalog-image-window { height: min(80vw,330px); }
  body.reference-study #catalog .catalog-meta { min-height: 90px; }
  body.reference-study #catalog .catalog-meta h3 { font-size: 18px !important; }
  body.reference-study #catalog .catalog-action { min-height: 48px !important; margin-top: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.reference-study #materials .stone-flip-inner { transition: none !important; }
}
