/* The approved v9 is preserved separately. This layer adapts its surfaces to
   the supplied olive/white editorial reference without changing the builder. */
:root {
  --prototype-olive: #576644;
  --prototype-olive-deep: #435438;
  --prototype-ink: #25372d;
  --prototype-paper: #fff;
  --prototype-soft: #f3f4ef;
  --prototype-line: #d9ded3;
}
body.reference-study { background: var(--prototype-paper); color: var(--prototype-ink); }
body.reference-study .section-heading h2 { color: inherit; }
body.reference-study .site-header.is-stuck::before { border-radius: 999px; }
body.reference-study .hero { min-height: min(820px,100svh); border-radius: 0 !important; }
body.reference-study .hero-content h1 { max-width: 780px; }
body.reference-study .hero .actions { gap: 14px; }
body.reference-study .hero .button,
body.reference-study .hero-work-link { min-height: 54px; padding: 14px 28px; border-radius: 999px; }
body.reference-study .hero-work-link { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.85); }

/* Intro: the original workshop statement becomes a separate white pause. */
body.reference-study main > section.prototype-intro { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden; background: #fff; }
.prototype-intro-inner { width: min(1240px,calc(100% - 80px)); min-height: 370px; margin: auto; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(48px,7vw,110px); }
.prototype-intro-image { align-self: end; position: relative; height: 330px; margin: 0; overflow: hidden; }
.prototype-intro-image img { position: absolute; width: min(520px,100%); max-width: none; height: auto; inset: 0 auto auto -10px; filter: grayscale(.18) brightness(.68); }
.prototype-intro-copy { padding: 54px 0; }
.prototype-intro-copy .prototype-eyebrow { display: block; color: #6b7868; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.prototype-intro-copy h2 { max-width: 640px; color: var(--prototype-ink); font-size: clamp(30px,3.1vw,44px); line-height: 1.16; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }

/* One calm olive field for the three verified workshop facts. */
body.reference-study #values.benefits-section { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: var(--prototype-olive) !important; color: #fff !important; border-radius: 0 !important; }
body.reference-study #values.benefits-section .benefits-inner { width: min(1240px,calc(100% - 80px)); max-width: 1240px; margin: auto; padding: 68px 0 58px !important; }
body.reference-study #values .prototype-values-title { margin: 0 0 44px; color: #fff; text-align: center; font-size: clamp(28px,2.8vw,40px); font-weight: 400; line-height: 1.15; }
body.reference-study #values .benefits-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; align-items: start; }
body.reference-study #values .benefits-stats::before,
body.reference-study #values .benefits-geography::before,
body.reference-study #values .benefit-item::before,
body.reference-study #values .benefit-region::before { display: none !important; }
body.reference-study #values .benefit-item,
body.reference-study #values .benefit-item:not(:first-child) { display: flex !important; flex-direction: column; align-items: center; min-height: 240px; padding: 0 10px !important; border: 0 !important; background: none !important; color: #fff !important; text-align: center; box-shadow: none !important; }
body.reference-study #values .prototype-benefit-icon { width: 50px; height: 50px; margin: 0 0 17px; object-fit: contain; }
body.reference-study #values .benefit-number.adv-number { display: inline; width: auto; color: #fff; font-size: 54px !important; line-height: 1 !important; font-weight: 300; letter-spacing: -.045em; }
body.reference-study #values .benefit-copy { margin-top: 10px; }
body.reference-study #values .adv-caption { max-width: 230px; color: #fff; font-size: 19px !important; line-height: 1.25 !important; font-weight: 400; }
body.reference-study #values .adv-explanation { max-width: 270px; margin: 14px auto 0; color: #e4ebdd; font-size: 14px !important; line-height: 1.5 !important; }
body.reference-study #values .benefits-geography { display: flex; justify-content: center; gap: 56px; margin-top: 20px; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.38); border-bottom: 0 !important; }
body.reference-study #values .benefit-region,
body.reference-study #values .benefit-region:not(:first-child) { display: flex; flex-direction: row; gap: 8px; align-items: baseline; padding: 0 !important; border: 0 !important; }
body.reference-study #values .benefit-region-empty { display: none; }
body.reference-study #values .adv-region-label { color: #dce6d3; font-size: 14px !important; }
body.reference-study #values .adv-region-value { color: #fff; font-size: 16px !important; font-weight: 400; }
body.reference-study #values.is-motion-ready .benefit-copy { opacity: 1 !important; transform: none !important; }

/* Shared section rhythm. The constructor is intentionally excluded. */
body.reference-study main > section.container:not(#constructor):not(#cost):not(#custom):not(#contacts):not(#process) { width: min(1240px,calc(100% - 80px)) !important; max-width: 1240px !important; margin: 0 auto !important; padding: 78px 0 !important; }
body.reference-study main > section:not(#constructor) .section-heading { margin-bottom: 32px !important; }
body.reference-study main > section:not(#constructor) .section-heading h2 { font-size: clamp(30px,3vw,44px) !important; line-height: 1.14 !important; font-weight: 400 !important; letter-spacing: -.035em !important; }
body.reference-study main > section:not(#constructor) :is(.button,.text-link) { border-radius: 999px !important; }

/* Product catalogue: larger quiet photos and a consistent olive action. */
body.reference-study #catalog #catalog-grid { gap: 18px !important; }
body.reference-study #catalog .catalog-card,
body.reference-study #catalog .catalog-card:nth-child(n) { border: 1px solid var(--prototype-line); border-radius: 8px !important; background: #fff; padding: 12px 12px 16px !important; box-shadow: none !important; }
body.reference-study #catalog .catalog-image-window { height: 285px; margin: 0 !important; border-radius: 4px !important; background: #fff !important; }
body.reference-study #catalog .catalog-photo { object-fit: contain; }
body.reference-study #catalog .catalog-meta { margin: 18px 8px 16px !important; }
body.reference-study #catalog .catalog-meta h3 { color: var(--prototype-ink); font-size: 21px !important; line-height: 1.25 !important; font-weight: 400; }
body.reference-study #catalog .catalog-action { display: flex; align-items: center; justify-content: center; margin: 0 8px !important; min-height: 46px; border-radius: 999px !important; background: var(--prototype-olive) !important; color: #fff !important; text-align: center !important; }
body.reference-study #catalog .catalog-save { border-radius: 999px !important; }

/* Pricing retains its accessible accordion while replacing the black slab
   with the reference's flat olive surface and editorial image/text split. */
body.reference-study #cost.rs-cost { box-sizing: border-box; width: 100% !important; max-width: none !important; min-height: 0; margin: 0 !important; padding: 74px max(40px,calc((100vw - 1240px)/2)) !important; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 70px; align-items: start; border-radius: 0 !important; background: var(--prototype-olive) !important; color: #fff !important; }
body.reference-study #cost.rs-cost::before { display: none !important; }
body.reference-study #cost .rs-cost-lead { position: sticky; top: 110px; align-self: start; }
body.reference-study #cost .rs-cost-lead h2 { max-width: 470px; color: #fff; font-size: clamp(34px,3vw,44px) !important; line-height: 1.15 !important; font-weight: 400 !important; }
body.reference-study #cost .rs-cost-lead p { max-width: 420px; color: #e7edde; font-size: 16px; line-height: 1.6; margin-top: 22px; }
body.reference-study #cost .rs-cost-lead .button { margin-top: 28px; background: #fff !important; color: var(--prototype-ink) !important; }
body.reference-study #cost .rs-cost-factors { grid-column: 2; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
body.reference-study #cost .rs-cost-factors details { border: 0 !important; border-top: 1px solid rgba(255,255,255,.45) !important; }
body.reference-study #cost .rs-cost-factors details:last-child { border-bottom: 1px solid rgba(255,255,255,.45) !important; }
body.reference-study #cost .rs-cost-factors summary { min-height: 90px; padding: 22px 0 !important; color: #fff !important; }
body.reference-study #cost .rs-cost-factors .rs-cost-name { color: #fff !important; font-size: 28px !important; font-weight: 400; }
body.reference-study #cost .rs-cost-factors .rs-cost-body { padding: 0 30px 24px 0 !important; }
body.reference-study #cost .rs-cost-factors .rs-cost-body p { max-width: 520px; color: #e7edde !important; font-size: 16px !important; line-height: 1.6 !important; }
body.reference-study #cost .rb-cost-icon { color: #e8ecdf; }
/* The existing four factor descriptions are all shown in the supplied layout.
   Native details remain available for anyone who wants to collapse a row. */
body.reference-study #cost.rs-cost { display: block; }
body.reference-study #cost .rs-cost-lead { position: static; margin: 0 auto 54px; text-align: center; }
body.reference-study #cost .rs-cost-lead h2,
body.reference-study #cost .rs-cost-lead p { margin-inline: auto; }
body.reference-study #cost .rs-cost-lead .button { margin-top: 24px; }
body.reference-study #cost .rs-cost-factors { display: grid; gap: 60px; }
body.reference-study #cost .prototype-cost-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.82fr); align-items: center; gap: 56px; min-width: 0; }
body.reference-study #cost .prototype-cost-row:nth-child(even) { grid-template-columns: minmax(0,.82fr) minmax(0,1fr); }
body.reference-study #cost .rs-cost-factors details { grid-column: 2; display: block; width: 100%; min-width: 0; border: 0 !important; }
body.reference-study #cost .prototype-cost-row:nth-child(even) details { grid-column: 1; grid-row: 1; }
body.reference-study #cost .prototype-cost-photo { display: block; grid-column: 1; grid-row: 1; width: 100%; height: 290px; object-fit: cover; border-radius: 2px; }
body.reference-study #cost .prototype-cost-row:nth-child(even) .prototype-cost-photo { grid-column: 2; }
body.reference-study #cost .rs-cost-factors summary { min-height: 0; padding: 0 0 16px !important; list-style: none; }
body.reference-study #cost .rs-cost-factors summary::-webkit-details-marker { display: none; }
body.reference-study #cost .rs-cost-factors .rs-cost-body { padding: 0 !important; }

/* Process and materials return to the reference's light breathing space. */
body.reference-study #process.timeline-process { background: #fff !important; color: var(--prototype-ink) !important; }
body.reference-study #process .timeline-shell { padding: 0 !important; isolation: auto; }
body.reference-study #process .timeline-shell::before,
body.reference-study #process .timeline-glide,
body.reference-study #process .timeline-point { display: none !important; }
body.reference-study #process .timeline-list { display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
body.reference-study #process .timeline-step,
body.reference-study #process .timeline-step.is-active { display: block !important; height: auto !important; min-height: 0; z-index: auto; }
body.reference-study #process .timeline-card,
body.reference-study #process .timeline-step.is-active .timeline-card,
body.reference-study #process .timeline-step:nth-child(n) .timeline-card { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; display: flex !important; flex-direction: column; align-items: stretch; width: 100% !important; height: 100% !important; min-height: 310px; padding: 8px 8px 18px !important; gap: 0; border: 1px solid var(--prototype-line) !important; border-radius: 5px !important; background: #fff; box-shadow: none !important; transform: none !important; transition: none !important; cursor: default; }
body.reference-study #process .timeline-card img { width: 100% !important; height: 180px !important; flex: none; border-radius: 2px !important; object-fit: cover; transform: none !important; }
body.reference-study #process .timeline-copy,
body.reference-study #process .timeline-step.is-active .timeline-copy { position: static !important; inset: auto !important; display: flex !important; width: auto !important; min-width: 0 !important; height: auto !important; padding: 17px 8px 0 !important; gap: 8px; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; opacity: 1 !important; visibility: visible !important; transform: none !important; transition: none !important; color: var(--prototype-ink) !important; }
body.reference-study #process .timeline-copy strong { font-size: 17px !important; font-weight: 400; }
body.reference-study #process .timeline-copy > span { display: block !important; font-size: 14px !important; line-height: 1.4; }
body.reference-study #materials .materials-layout { gap: 34px; }
body.reference-study #materials #materials-grid.reference-stones.flip-stones { grid-template-columns: repeat(5,minmax(0,1fr)) !important; gap: 24px 16px !important; }
body.reference-study #materials .reference-stone,
body.reference-study #materials .reference-stone-info { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
body.reference-study #materials .stone-flip { overflow: hidden !important; border: 1px solid var(--prototype-line); border-radius: 4px !important; }
body.reference-study #materials .stone-flip-inner { transform: none !important; transition: none !important; }
body.reference-study #materials .stone-flip-front,
body.reference-study #materials .stone-flip-back { transform: none !important; backface-visibility: visible !important; -webkit-backface-visibility: visible !important; transition: opacity .2s ease,visibility .2s ease !important; }
body.reference-study #materials .stone-flip-back { opacity: 0 !important; visibility: hidden !important; }
body.reference-study #materials .stone-flip:is(:hover,:focus-visible,[aria-pressed="true"]) .stone-flip-back { opacity: 1 !important; visibility: visible !important; }
body.reference-study #materials .stone-flip:is(:hover,:focus-visible,[aria-pressed="true"]) .stone-flip-front { opacity: 0 !important; visibility: hidden !important; }
body.reference-study #materials .stone-flip-back p { color: var(--prototype-ink) !important; font-size: 16px !important; line-height: 1.4 !important; transform: none !important; }
body.reference-study #materials .reference-stone-info { display: flex !important; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: 16px !important; border: 1px solid var(--prototype-line) !important; border-radius: 4px !important; background: #fff !important; }
body.reference-study #materials .reference-stone-info .client-stone-info-face { border: 0; border-radius: 0 !important; background: #fff !important; }
body.reference-study #materials .reference-stone-info p { color: var(--prototype-ink) !important; font-size: 19px !important; line-height: 1.25 !important; text-align: left !important; }
body.reference-study #materials .reference-stone h3 { margin-top: 8px !important; color: var(--prototype-ink) !important; font-size: 14px !important; line-height: 1.35 !important; text-align: left !important; }

/* Existing real photos remain untouched; only their framing changes. */
body.reference-study #decor.v9-decor { background: var(--prototype-soft); }
body.reference-study #decor .v9-decor-installation { margin-inline: auto; }
body.reference-study #works.reference-works { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 76px 0 !important; border-radius: 0 !important; background: var(--prototype-olive) !important; color: #fff; }
body.reference-study #works.reference-works .container { width: min(1240px,calc(100% - 80px)) !important; max-width: 1240px !important; }
body.reference-study #works .section-heading h2 { color: #fff !important; }
body.reference-study #works .v9-photo-group img { border-radius: 4px !important; }
body.reference-study #works .v9-archive-foot p { color: #eef2e9 !important; }
body.reference-study #custom.v9-custom { width: min(1240px,calc(100% - 80px)) !important; max-width: 1240px !important; margin: 80px auto !important; border-radius: 8px !important; background: var(--prototype-soft) !important; }
body.reference-study #custom #custom-title,
body.reference-study #custom .v9-custom-copy,
body.reference-study #custom .v9-custom-copy p { color: var(--prototype-ink) !important; }
body.reference-study #custom .v9-custom-copy .button { background: var(--prototype-olive) !important; color: #fff !important; }
body.reference-study #questions .faq-list details { border-radius: 0 !important; border-bottom: 1px solid var(--prototype-line); background: transparent !important; }
body.reference-study #contacts.contact-section { width: min(1240px,calc(100% - 80px)) !important; max-width: 1240px !important; margin: 0 auto 80px !important; border-radius: 8px !important; background: var(--prototype-olive-deep) !important; }
body.reference-study footer.footer.footer-stone { margin-top: 0 !important; background: #f7f7f3; }
body.reference-study .footer-glass { border-radius: 8px !important; box-shadow: none !important; }

/* Secondary pages share the restrained surface palette without altering content. */
body.subpage { background: #fff; color: var(--prototype-ink); }
body.subpage .sub-header-inner { border-radius: 999px; }
body.subpage .sub-cta { border-radius: 8px; background: var(--prototype-olive); }
body.subpage .sub-product,
body.subpage .sub-work-image { border-radius: 8px; }
body.subpage .sub-button { border-radius: 999px; }

@media (max-width: 900px) {
  .prototype-intro-inner { width: calc(100% - 48px); gap: 28px; min-height: 300px; }
  .prototype-intro-image { height: 300px; }
  body.reference-study #values.benefits-section .benefits-inner { width: calc(100% - 48px); }
  body.reference-study #cost.rs-cost { grid-template-columns: 1fr; gap: 34px; padding-inline: 24px !important; }
  body.reference-study #cost .rs-cost-lead { position: static; }
  body.reference-study #cost .rs-cost-factors { grid-column: 1; }
  body.reference-study #cost .rs-cost-factors { gap: 42px; }
  body.reference-study #cost .prototype-cost-row { gap: 28px; }
  body.reference-study main > section.container:not(#constructor):not(#cost):not(#custom):not(#contacts):not(#process),
  body.reference-study #works.reference-works .container { width: calc(100% - 48px) !important; }
  body.reference-study #materials #materials-grid.reference-stones.flip-stones { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body.reference-study #process .timeline-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  body.reference-study .hero { min-height: 100svh; }
  body.reference-study .hero .actions { align-items: stretch; gap: 10px; }
  body.reference-study .hero .button,
  body.reference-study .hero-work-link { min-height: 48px; justify-content: center; padding-inline: 18px; }
  .prototype-intro-inner { width: calc(100% - 40px); display: flex; flex-direction: column; gap: 0; min-height: 0; }
  .prototype-intro-image { align-self: stretch; width: 100%; height: 210px; order: 2; }
  .prototype-intro-image img { width: 340px; max-width: 110%; top: -28px; left: 0; }
  .prototype-intro-copy { width: 100%; padding: 44px 0 12px; order: 1; }
  .prototype-intro-copy h2 { font-size: 27px; line-height: 1.2; }
  body.reference-study #values.benefits-section .benefits-inner { width: calc(100% - 40px); padding: 50px 0 42px !important; }
  body.reference-study #values .prototype-values-title { margin-bottom: 36px; font-size: 30px; }
  body.reference-study #values .benefits-stats { grid-template-columns: 1fr; gap: 38px; }
  body.reference-study #values .benefit-item,
  body.reference-study #values .benefit-item:not(:first-child) { min-height: 0; padding: 0 6px !important; }
  body.reference-study #values .prototype-benefit-icon { margin-bottom: 8px; width: 42px; height: 42px; }
  body.reference-study #values .benefit-number.adv-number { font-size: 46px !important; }
  body.reference-study #values .adv-caption { font-size: 18px !important; }
  body.reference-study #values .adv-explanation { margin-top: 8px; }
  body.reference-study #values .benefits-geography { flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; padding-top: 22px; }
  body.reference-study #values .benefit-region,
  body.reference-study #values .benefit-region:not(:first-child) { justify-content: center; }
  body.reference-study main > section.container:not(#constructor):not(#cost):not(#custom):not(#contacts):not(#process),
  body.reference-study #works.reference-works .container { width: calc(100% - 40px) !important; padding-block: 50px !important; }
  body.reference-study #catalog #catalog-grid { grid-template-columns: 1fr !important; }
  body.reference-study #catalog .catalog-image-window { height: 250px; }
  body.reference-study #catalog .catalog-card,
  body.reference-study #catalog .catalog-card:nth-child(n) { padding: 10px 10px 16px !important; }
  body.reference-study #cost.rs-cost { padding: 52px 20px !important; border-radius: 0 !important; }
  body.reference-study #cost .rs-cost-lead { margin-bottom: 36px; text-align: left; }
  body.reference-study #cost .rs-cost-lead h2,
  body.reference-study #cost .rs-cost-lead p { margin-inline: 0; }
  body.reference-study #cost .rs-cost-factors { gap: 36px; }
  body.reference-study #cost .prototype-cost-row,
  body.reference-study #cost .prototype-cost-row:nth-child(even) { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  body.reference-study #cost .prototype-cost-row:nth-child(even) .prototype-cost-photo { order: 0; }
  body.reference-study #cost .prototype-cost-row details { order: 1; }
  body.reference-study #cost .prototype-cost-photo { height: 210px; margin-bottom: 18px; }
  body.reference-study #cost .rs-cost-factors summary { align-self: stretch; }
  body.reference-study #cost .rs-cost-factors .rs-cost-body { align-self: stretch; }
  body.reference-study #cost .rs-cost-lead h2 { font-size: 32px !important; }
  body.reference-study #cost .rs-cost-factors .rs-cost-name { font-size: 23px !important; }
  body.reference-study #cost .rs-cost-factors summary { min-height: 72px; }
  body.reference-study #materials #materials-grid.reference-stones.flip-stones { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 20px 10px !important; }
  body.reference-study #process .timeline-list { grid-template-columns: 1fr; gap: 16px; }
  body.reference-study #process .timeline-card,
  body.reference-study #process .timeline-step.is-active .timeline-card,
  body.reference-study #process .timeline-step:nth-child(n) .timeline-card { min-height: 0; padding: 8px 8px 18px !important; }
  body.reference-study #process .timeline-card img { height: 190px !important; }
  body.reference-study #materials .reference-stone-info p { font-size: 16px !important; }
  body.reference-study #works.reference-works { padding: 0 !important; }
  body.reference-study #custom.v9-custom { width: calc(100% - 40px) !important; margin: 50px auto !important; }
  body.reference-study #contacts.contact-section { width: calc(100% - 40px) !important; margin-bottom: 50px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.reference-study .prototype-intro *,
  body.reference-study #materials .stone-flip :is(.stone-flip-front,.stone-flip-back) { transition: none !important; }
}
