/* Mariani V20.7 homepage — complete homeowner story, measured editorial rhythm */
.site-header .brand::before{background-image:url("assets/brand/mariani-open-join-reverse.svg")}
.footer-brand::before{background-image:url("assets/brand/mariani-open-join-reverse.svg")}
.footer-brand{margin-bottom:1.3rem}

.chapter{position:relative;padding:clamp(5.5rem,8vw,8.5rem) max(var(--gutter),calc((100vw - 90rem)/2));overflow:hidden}
.chapter-shell{width:100%;max-width:90rem;margin:0 auto}
.story-head{max-width:73rem;margin-bottom:clamp(2.6rem,4.5vw,4.5rem)}
.story-head .eyebrow{margin-bottom:1.1rem}
.story-head h2{max-width:19ch;margin-bottom:1.4rem;font-size:clamp(3rem,4.65vw,4.75rem);line-height:1.04;text-wrap:pretty}
.story-head>p:not(.eyebrow){max-width:44rem;color:var(--ink-soft);font-size:clamp(1.08rem,1.3vw,1.2rem);line-height:1.65}
.story-head .text-link{margin-top:.8rem}
.early-trust{display:block;min-width:0;margin:-.5rem 0 2rem;padding:1.5rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.early-trust strong{max-width:31rem;font-family:var(--serif);font-size:clamp(1.45rem,2vw,2rem);font-weight:400;line-height:1.12}
.early-trust p{max-width:40rem;margin:0;color:var(--ink-soft);font-size:clamp(1.02rem,1.2vw,1.12rem);line-height:1.65}
.early-trust>p:only-child{grid-column:1/-1;max-width:68ch;color:var(--ink)}
.story-head-light>p:not(.eyebrow){color:rgba(255,253,248,.74)}
.story-head-light .eyebrow{color:var(--copper)}
.section-actions{display:flex;flex-wrap:wrap;gap:1rem 2rem;margin-top:1.5rem}
.nowrap{white-space:nowrap}

/* Approved hero: fixed message, four automatically rotating photographs, no controls. */
.hero-v20{min-height:100svh;position:relative;display:grid;align-items:end;overflow:hidden;background:var(--timber);color:var(--chalk)}
.hero-frames,.hero-frame{position:absolute;inset:0;width:100%;height:100%}
.hero-frame{object-fit:cover;object-position:center 50%;opacity:0;transform:scale(1.012);transition:opacity 1s ease,transform 7s ease}
.hero-frame.is-active{opacity:1;transform:scale(1)}
.hero-frame:nth-child(2){object-position:center 56%}
.hero-frame:nth-child(3){object-position:center 48%}
.hero-frame:nth-child(4){object-position:center 52%}
.hero-v20::after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(11,19,15,.91) 0%,rgba(11,19,15,.70) 35%,rgba(11,19,15,.18) 70%,rgba(11,19,15,.08) 100%),linear-gradient(0deg,rgba(11,18,14,.55),transparent 55%,rgba(11,18,14,.25))}
.hero-v20 .hero-copy{z-index:2;width:min(100% - (2 * var(--gutter)),90rem);min-height:100svh;margin:0 auto;padding:clamp(6.5rem,12vh,8rem) 0 clamp(2rem,3.8vh,3rem);display:flex;flex-direction:column;justify-content:flex-end}
.hero-v20 .hero-copy.reveal{transform:none}
.hero-v20 .eyebrow{margin-bottom:.8rem;color:rgba(255,253,248,.84)}
.hero-v20 h1{max-width:16.5ch;margin:0 0 1.15rem;font-size:clamp(3.25rem,5.6vw,5.85rem);line-height:1;letter-spacing:-.04em;text-wrap:balance}
.hero-v20 .hero-lead{max-width:43rem;margin:0;color:rgba(255,253,248,.9);font-size:clamp(1.04rem,1.28vw,1.16rem);line-height:1.6}
.hero-button{align-self:flex-start;margin-top:1.4rem;background:var(--chalk);border-color:var(--chalk);color:var(--green-deep)}
.hero-button:hover,.hero-button:focus-visible{background:transparent;color:var(--chalk)}

/* Twelve-image inspiration runway. */
.inspiration-story{background:var(--ivory)}
.inspiration-runway{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;grid-auto-rows:clamp(15rem,20vw,21rem);gap:.55rem}
.inspiration-runway .image-button{grid-column:span 3;min-height:0}
.inspiration-runway .runway-large{grid-column:span 6;grid-row:span 2}
.inspiration-runway .runway-wide{grid-column:span 6}
.inspiration-runway .image-button::before{content:"";position:absolute;z-index:1;inset:42% 0 0;background:linear-gradient(transparent,rgba(12,18,15,.78));pointer-events:none}
.inspiration-runway .image-button>span{position:absolute;z-index:2;right:1.15rem;bottom:1.05rem;left:1.15rem;color:var(--chalk);font-size:.94rem;font-weight:500;letter-spacing:0;line-height:1.5;text-align:left}

/* Scope relief: Mariani diagnoses the project before the homeowner has to choose a route. */
.project-routes{background:var(--paper)}
.scope-scene{display:grid;grid-template-columns:minmax(20rem,.78fr) minmax(0,1.22fr);gap:clamp(2.5rem,6vw,6rem);align-items:center}
.scope-copy h2{max-width:15ch;margin-bottom:1.4rem;font-size:clamp(3rem,4.65vw,4.75rem);line-height:1.04;text-wrap:pretty}
.scope-copy>p:not(.eyebrow){max-width:45rem;color:var(--ink-soft);font-size:clamp(1.04rem,1.2vw,1.13rem);line-height:1.65}
.scope-copy .scope-support{margin-top:1.3rem;padding-top:1.15rem;border-top:1px solid var(--line);color:var(--ink);font-weight:600}
.scope-copy .button{margin-top:1.25rem}
.scope-room{height:clamp(34rem,52vw,48rem);position:relative;margin:0;overflow:hidden;background:var(--timber)}
.scope-room img{object-position:52% 50%}
.route-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.route-card{min-height:35rem;position:relative;overflow:hidden;background:var(--timber);color:var(--chalk)}
.route-card img{position:absolute;inset:0;transition:transform .7s var(--ease)}
.route-card::after{content:"";position:absolute;inset:25% 0 0;background:linear-gradient(transparent,rgba(12,18,15,.92))}
.route-card:hover img,.route-card:focus-visible img{transform:scale(1.018)}
.route-card>span{position:absolute;z-index:1;right:clamp(1.2rem,3vw,2rem);bottom:clamp(1.2rem,3vw,2rem);left:clamp(1.2rem,3vw,2rem);display:block}
.route-card small{display:block;margin-bottom:.45rem;color:rgba(255,253,248,.72);font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.route-card strong{display:block;font-family:var(--serif);font-size:clamp(2.1rem,3.5vw,3.75rem);font-weight:400;line-height:.98}
.route-card em{display:block;max-width:35rem;margin-top:.75rem;color:rgba(255,253,248,.84);font-size:1rem;font-style:normal;line-height:1.55}
.route-card b{min-height:44px;display:inline-flex;align-items:center;margin-top:.7rem;padding:.45rem 0;border-bottom:1px solid currentColor;font-size:.88rem;letter-spacing:.025em}

/* Smart value: one room and one clear spending judgement. */
.smart-value{background:var(--sand)}
.value-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(1.5rem,4vw,4rem);align-items:center}
.value-copy{grid-column:1/span 5;padding-top:1rem}
.value-copy h2{max-width:15ch;margin-bottom:1.4rem;font-size:clamp(3rem,4.65vw,4.75rem);line-height:1.04;text-wrap:pretty}
.value-copy>p:not(.eyebrow){max-width:38rem;color:var(--ink)}
.value-copy .text-link{margin-top:.8rem}
.value-room{grid-column:6/-1;height:auto;aspect-ratio:5/4;margin:0}
.value-room .image-button{width:100%;height:100%}
.value-room img{object-position:58% 50%}
.value-principles{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid rgba(31,33,29,.28);border-bottom:1px solid rgba(31,33,29,.28)}
.value-principles article{min-width:0;padding:1.35rem 1.35rem 1.35rem 0}
.value-principles article+article{padding-left:1.35rem;border-left:1px solid rgba(31,33,29,.28)}
.value-principles span{color:var(--green-deep);font-size:.65rem;font-weight:700;letter-spacing:.13em}
.value-principles h3{margin:0;font-size:clamp(1.45rem,2vw,2rem);line-height:1.08}
.value-principles p{max-width:27rem;margin:0;color:var(--ink);font-size:.96rem;line-height:1.55}

/* Materials and technology is the largest branch after inspiration. */
.technology-story{background:var(--green-deep);color:var(--chalk)}
.technology-story .text-link{color:var(--chalk)}
.technology-film{position:relative;width:100%;height:auto;aspect-ratio:16/9;margin:0 0 .6rem;overflow:hidden;background:var(--timber)}
.technology-film video{width:100%;height:100%;object-fit:cover}
.technology-film figcaption{position:absolute;right:1.2rem;bottom:1.2rem;left:1.2rem;max-width:44rem;padding:.9rem 1rem;background:rgba(17,29,24,.86);font-family:var(--serif);font-size:clamp(1.25rem,2vw,1.9rem);line-height:1.12}
.technology-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:dense;gap:.6rem}
.technology-card{min-width:0;margin:0;display:grid;grid-template-rows:clamp(21rem,29vw,31rem) auto;background:#14251f}
.technology-card.tech-wide{grid-column:span 2}
.technology-card.tech-wide:last-child{grid-column:1/-1}
.technology-card .image-button{width:100%;height:100%}
.technology-card figcaption{padding:1.2rem 1.25rem 1.35rem}
.technology-card strong{display:block;max-width:25ch;font-family:var(--serif);font-size:clamp(1.65rem,2.1vw,2.1rem);font-weight:400;line-height:1.12;text-wrap:pretty}
.technology-card span{display:block;max-width:38rem;margin-top:.75rem;color:rgba(255,253,248,.84);font-size:1rem;line-height:1.6}
.technology-card:nth-child(1) img{object-position:50% 54%}
.technology-card:nth-child(2) img{object-position:52% 55%}

/* One concise human/operating chapter. */
.company-story{background:var(--ivory)}
.company-layout{display:grid;grid-template-columns:minmax(17rem,.72fr) minmax(0,1.28fr);gap:clamp(2.5rem,6vw,6rem);align-items:center}
.company-person{min-width:0}
.yan-image{height:clamp(31rem,46vw,43rem);position:relative;margin:0;overflow:hidden}
.yan-image img{object-position:40% 45%;transform:none}
.person-role{margin:.8rem 0 0;color:var(--ink-soft);font-size:1rem;line-height:1.45}
.company-copy h2{max-width:17ch;margin-bottom:1.4rem;font-size:clamp(3rem,4.65vw,4.75rem);line-height:1.04;text-wrap:pretty}
.company-copy>p:not(.eyebrow){max-width:48rem;color:var(--ink-soft);font-size:clamp(1.04rem,1.2vw,1.13rem)}
.company-copy .text-link{margin-top:.8rem}
.delivery-steps{margin:1.5rem 0 0;padding:0;border-top:1px solid var(--line);list-style:none}
.delivery-steps li{display:grid;grid-template-columns:2.25rem minmax(0,1fr);gap:.8rem;align-items:start;padding:.85rem 0;border-bottom:1px solid var(--line)}
.delivery-steps span{padding-top:.17rem;color:var(--oxblood);font-size:.72rem;font-weight:700;letter-spacing:.12em}
.delivery-steps strong{font-size:1rem;font-weight:600;line-height:1.5}
.trust-rail{margin-top:clamp(3rem,5vw,5rem);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trust-rail>*{min-height:6rem;display:flex;align-items:center;padding:1rem;border-left:1px solid var(--line);color:var(--ink);font-size:.95rem;font-weight:700;line-height:1.45;text-align:center;justify-content:center;text-decoration:none}
.trust-rail a:hover,.trust-rail a:focus-visible{text-decoration:underline;text-underline-offset:.25rem}
.trust-rail>*:first-child{border-left:0;color:var(--oxblood);font-family:var(--serif);font-size:clamp(1.4rem,2vw,2rem);font-weight:400}
.kitchen-review{max-width:62rem;margin:2.5rem 0;padding:0 0 0 1.5rem;border-left:2px solid var(--oxblood)}
.kitchen-review blockquote{max-width:34ch;margin:0 0 1rem;font-family:var(--serif);font-size:clamp(1.7rem,2.45vw,2.5rem);font-weight:400;line-height:1.25;letter-spacing:-.015em}
.kitchen-review figcaption{color:var(--ink-soft);font-size:.94rem;line-height:1.65}
.kitchen-review a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:.25em}
.production-strip{margin-top:.75rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.production-strip figure{height:clamp(25rem,34vw,34rem);position:relative;margin:0;overflow:hidden;background:var(--timber)}
.production-strip video{width:100%;height:100%;object-fit:cover}
.production-strip figcaption{position:absolute;right:.75rem;bottom:.75rem;left:.75rem;padding:.65rem .75rem;background:rgba(17,29,24,.88);color:var(--chalk);font-size:.95rem;line-height:1.35}

/* Deep closing inspiration library; completed cases remain a separate Projects route. */
.inspiration-library{background:var(--paper)}

.library-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;grid-auto-rows:clamp(14rem,17vw,18rem);gap:.55rem}
.library-grid .image-button{grid-column:span 3;min-height:0}
.library-grid .library-wide{grid-column:span 6}
.library-grid .library-tall{grid-row:span 2}
.library-grid .library-feature{grid-column:span 6;grid-row:span 2}
.library-grid .image-button::before{content:"";position:absolute;z-index:1;inset:48% 0 0;background:linear-gradient(transparent,rgba(12,18,15,.84));pointer-events:none}
.library-grid .image-button>span{position:absolute;z-index:2;right:1.15rem;bottom:1.05rem;left:1.15rem;color:var(--chalk);font-size:.94rem;font-weight:500;letter-spacing:0;line-height:1.5;text-align:left}
.inspiration-runway .image-button::after,.library-grid .image-button::after{top:1rem;right:1rem;bottom:auto;width:44px;height:44px}

/* Direct inquiry: no showroom detour. */
.direct-inquiry{background:var(--green-deep);color:var(--chalk)}
.inquiry-stage{display:grid;grid-template-columns:minmax(21rem,.78fr) minmax(0,1.22fr);gap:clamp(2rem,5vw,5rem);align-items:center}
.inquiry-copy h2{max-width:14ch;margin-bottom:1.5rem;font-size:clamp(3.2rem,4.8vw,5.2rem);line-height:1.04;text-wrap:pretty}
.inquiry-copy p:not(.eyebrow){max-width:39rem;color:rgba(255,253,248,.76);font-size:clamp(1.02rem,1.25vw,1.14rem)}
.inquiry-copy .eyebrow{color:var(--copper)}
.inquiry-copy .button{margin-top:1.2rem;background:var(--chalk);border-color:var(--chalk);color:var(--green-deep)}
.inquiry-copy .button:hover,.inquiry-copy .button:focus-visible{background:transparent;color:var(--chalk)}
.inquiry-photo{position:relative;height:clamp(32rem,56vw,52rem);overflow:hidden}
.inquiry-photo img{object-position:52% 50%}
.inquiry-photo span{position:absolute;right:1rem;bottom:1rem;left:1rem;padding:1rem 1.1rem;background:rgba(17,29,24,.84);font-family:var(--serif);font-size:clamp(1.2rem,2vw,1.9rem)}

.site-footer .footer-top>div:first-child{max-width:34rem}
.footer-links{display:grid;grid-template-columns:repeat(2,minmax(10rem,1fr));gap:4rem;padding:0}
.footer-links nav{display:grid;gap:.55rem}
.footer-links strong{margin-bottom:.4rem;color:rgba(255,253,248,.55);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase}
.field-hint{display:block;margin-top:.35rem;color:var(--ink-soft);font-size:.86rem}

@media(min-width:901px){
  .technology-card.tech-wide:last-child{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);grid-template-rows:clamp(26rem,34vw,32rem)}
  .technology-card.tech-wide:last-child figcaption{align-self:center;padding:clamp(1.5rem,3vw,3rem)}
  .technology-card.tech-wide:last-child img{object-position:48% 64%}
}

@media(max-width:1180px){
  .chapter{padding-top:6.5rem;padding-bottom:6.5rem}
  .inspiration-runway{grid-auto-rows:18rem}
  .scope-scene{grid-template-columns:minmax(18rem,.9fr) minmax(0,1.1fr);gap:3rem}
  .scope-room{height:39rem}
}

@media(max-width:900px){
  .story-head h2{font-size:clamp(2.8rem,7vw,4.3rem)}
  .inspiration-runway{grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:20rem}.inspiration-runway .image-button{grid-column:span 4}.inspiration-runway .runway-large{grid-column:span 8}.inspiration-runway .runway-wide{grid-column:span 8}
  .scope-scene{grid-template-columns:1fr;gap:2.5rem}.scope-copy{max-width:46rem}.scope-room{height:auto;aspect-ratio:16/10}
  .route-card{min-height:31rem}
  .value-layout{grid-template-columns:1fr;gap:2.5rem}.value-copy,.value-room{grid-column:1}.value-copy{max-width:46rem}.value-room{height:auto;aspect-ratio:16/10}
  .technology-card{grid-template-rows:24rem auto}
  .company-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:2rem;align-items:start}.yan-image{height:auto;aspect-ratio:3/4}.company-copy h2{font-size:clamp(2.5rem,4.7vw,3rem)}
  .production-strip figure{height:26rem}
  .library-grid{grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:18rem}.library-grid .image-button{grid-column:span 4}.library-grid .library-wide,.library-grid .library-feature{grid-column:span 8}
  .inquiry-stage{grid-template-columns:1fr;gap:3rem}.inquiry-photo{height:36rem}
}

@media(min-width:761px) and (max-width:900px){
  .technology-grid{margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter) 1rem;display:flex;gap:.6rem;overflow-x:auto;scroll-snap-type:x mandatory}
  .technology-card,.technology-card.tech-wide{grid-column:auto;flex:0 0 72vw;grid-template-rows:24rem auto;scroll-snap-align:center}
}

@media(max-width:760px){
  .chapter{padding:4rem 1.25rem}
  .story-head{margin-bottom:2rem}
  .story-head h2{font-size:clamp(2.45rem,10.5vw,3.15rem);line-height:1.04}
  .story-head>p:not(.eyebrow){font-size:1rem}
  .early-trust{grid-template-columns:1fr;gap:1rem;margin:0 0 1.5rem;padding:1.25rem 0}.early-trust strong{font-size:1.62rem}.early-trust p{font-size:1rem}
  .hero-v20{min-height:100svh}
  .hero-v20 .hero-copy{width:auto;min-height:100svh;margin:0 20px;padding:6rem 0 2rem}
  .hero-v20 .eyebrow{margin-bottom:.65rem}
  .hero-v20 h1{max-width:14ch;margin-bottom:1rem;font-size:clamp(2.65rem,10.8vw,3.25rem);line-height:1.02}
  .hero-v20 .hero-lead{font-size:1rem;line-height:1.6}
  .hero-button{margin-top:1.15rem}
  .hero-v20::after{background:linear-gradient(0deg,rgba(11,19,15,.96) 0%,rgba(11,19,15,.74) 46%,rgba(11,19,15,.13) 74%,rgba(11,19,15,.4) 100%)}
  .hero-frame:nth-child(1){object-position:55% center}.hero-frame:nth-child(2){object-position:50% center}.hero-frame:nth-child(3){object-position:50% center}.hero-frame:nth-child(4){object-position:64% center}
  .inspiration-runway{margin:0 -20px;padding:0 20px 1rem;display:flex;gap:.55rem;overflow-x:auto;scroll-snap-type:x mandatory}.inspiration-runway .image-button,.inspiration-runway .runway-large,.inspiration-runway .runway-wide{flex:0 0 86vw;height:65svh;min-height:31rem;scroll-snap-align:center}
  .inspiration-story .chapter-shell{display:flex;flex-direction:column}.inspiration-story .story-head{order:0}.inspiration-story .inspiration-runway{order:1}.inspiration-story .early-trust{order:2;margin:1.4rem 0 0}
  .scope-copy h2{font-size:clamp(2.65rem,11vw,3.5rem)}.scope-room{width:calc(100% + 40px);height:auto;aspect-ratio:1/1;margin:0 -20px}.scope-room img{object-position:40% 50%}
  .route-cards{margin:0 -20px;padding:0 20px 1rem;display:flex;gap:.6rem;overflow-x:auto;scroll-snap-type:x mandatory}.route-card{flex:0 0 86vw;min-height:68svh;scroll-snap-align:center}
  .value-layout{display:block}.value-copy h2{font-size:clamp(2.65rem,11vw,3.5rem)}.value-room{height:auto;aspect-ratio:4/3;margin:2rem -20px 0}.value-room img{object-position:56% 50%}
  .section-actions{display:grid;justify-items:start}
  .technology-film{height:auto;aspect-ratio:16/9;margin:0 -20px .6rem;width:calc(100% + 40px)}.technology-film video{object-position:50% center}.technology-film figcaption{right:.7rem;bottom:.7rem;left:.7rem;font-size:1.2rem}
  .technology-grid{margin:0 -20px;padding:0 20px 1rem;display:flex;gap:.55rem;overflow-x:auto;scroll-snap-type:x mandatory}.technology-card,.technology-card.tech-wide{flex:0 0 84vw;grid-template-rows:min(52svh,29rem) auto;scroll-snap-align:center}.technology-card:nth-child(1) img{object-position:55% 52%}
  .company-layout{grid-template-columns:1fr;gap:2.5rem}.yan-image{height:auto;aspect-ratio:4/5}.company-copy h2{font-size:clamp(2.65rem,11vw,3.5rem)}
  .kitchen-review{margin:2rem 0;padding-left:1rem}.kitchen-review blockquote{font-size:1.8rem}.kitchen-review figcaption{font-size:.88rem}
  .trust-rail{grid-template-columns:1fr}.trust-rail>*{min-height:4.8rem;border-left:0;border-top:1px solid var(--line);justify-content:flex-start;text-align:left}.trust-rail>*:first-child{border-top:0}
  .production-strip{margin:1rem -20px 0;padding:0 20px 1rem;display:flex;gap:.55rem;overflow-x:auto;scroll-snap-type:x mandatory}.production-strip figure{flex:0 0 84vw;height:52svh;min-height:24rem;scroll-snap-align:center}
  .library-grid{margin:0 -20px;padding:0 20px 1rem;display:flex;gap:.55rem;overflow-x:auto;scroll-snap-type:x mandatory}.library-grid .image-button,.library-grid .library-wide,.library-grid .library-tall,.library-grid .library-feature{flex:0 0 86vw;height:66svh;min-height:31rem;scroll-snap-align:center}.library-grid .image-button>span{font-size:.92rem}
  .inquiry-copy h2{font-size:clamp(2.8rem,12vw,3.7rem)}.inquiry-photo{height:30rem}
  .footer-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.25rem}.site-footer .footer-top{align-items:start}
  .inspiration-runway,.technology-grid,.production-strip,.library-grid{scrollbar-width:thin;scrollbar-color:var(--stone) transparent;scroll-padding-inline:20px;overscroll-behavior-x:contain}
}

@media(prefers-reduced-motion:reduce){
  .hero-frame{transition:none;transform:none}
  .inspiration-runway,.technology-grid,.production-strip,.library-grid{scroll-behavior:auto}
}

/* V20.8 — the room and the words share the opening view at every width. */
.chapter{padding-top:clamp(4.5rem,6.5vw,6.5rem);padding-bottom:clamp(4.5rem,6.5vw,6.5rem)}
.inspiration-heading .eyebrow,.technology-heading .eyebrow,.scene-heading .eyebrow{margin-bottom:1.1rem}
.inspiration-heading h2,.technology-heading h2,.scene-heading h2{margin:0 0 1.25rem;max-width:19ch;font-size:clamp(2.75rem,4.55vw,4.65rem);line-height:1.04;text-wrap:pretty}
.inspiration-copy p,.technology-copy p,.scene-body p{max-width:42rem;margin:0 0 1.25rem;color:var(--ink-soft);font-size:clamp(1.02rem,1.22vw,1.13rem);line-height:1.65}
.inspiration-copy .text-link,.scene-body .text-link{margin-top:.25rem}
.inspiration-story .story-head{margin:0;padding:0;max-width:none}
.inspiration-copy{max-width:37rem}
.technology-heading h2{max-width:19ch}
.technology-intro{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-areas:"heading film" "copy film";gap:0 clamp(2rem,4vw,4rem);margin-bottom:clamp(2rem,4vw,3.5rem);align-items:center}
.technology-heading{grid-area:heading;align-self:end}
.technology-copy{grid-area:copy;align-self:start;max-width:37rem}
.technology-copy p{color:rgba(255,253,248,.84)}
.technology-copy .section-actions{margin-top:.75rem;gap:.25rem 1.5rem}
.technology-intro>.technology-film{grid-area:film;align-self:stretch;min-height:29rem;height:100%;aspect-ratio:auto;margin:0}
.technology-intro>.technology-film video{object-position:54% center}
.scope-scene{grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);gap:clamp(2rem,4.5vw,5rem)}
.scope-copy .scene-heading h2,.value-copy .scene-heading h2{max-width:16ch}
.scope-room{height:clamp(29rem,43vw,40rem)}
.scope-room img{object-position:54% center}
.scope-copy .scene-body .button{margin-top:.5rem}
.value-layout{grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);gap:clamp(2rem,4.5vw,5rem)}
.value-copy{grid-column:auto;padding-top:0}
.value-room{grid-column:auto;aspect-ratio:5/4}
.value-copy .scene-body p{color:var(--ink)}
.company-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(2rem,5vw,5rem);align-items:center}
.yan-image{height:auto;aspect-ratio:4/5;max-height:39rem}
.company-copy h2{max-width:18ch;font-size:clamp(2.75rem,4.25vw,4.5rem)}
.company-copy>p:not(.eyebrow){max-width:38rem}
.company-copy>.company-record-label{margin:1.3rem 0 0;font-size:.83rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.company-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin:.75rem 0 1.25rem;padding:1.4rem 0 0;border-top:1px solid var(--line)}
.company-record>*{display:grid;align-content:start;gap:.6rem;min-width:0}
.company-record strong{font-family:var(--serif);font-size:clamp(2.7rem,3.9vw,4rem);font-weight:400;line-height:1;letter-spacing:-.025em;color:var(--oxblood)}
.company-record span{max-width:22ch;color:var(--ink-soft);font-size:.91rem;line-height:1.5}
.company-reviews{margin-top:clamp(1.5rem,2.5vw,2.25rem);padding-top:0;border-top:0}
.reviews-heading{margin-bottom:1.15rem}
.reviews-heading h3{max-width:none;margin:0;font-size:clamp(1.65rem,2.4vw,2.15rem);line-height:1.15}

.review-cards{display:grid;grid-template-columns:minmax(10rem,.32fr) minmax(0,1fr);gap:clamp(1.5rem,3vw,3rem);align-items:start}
.review-rating{display:grid;align-content:start;justify-items:start;gap:.3rem}
.review-rating strong{font-family:var(--serif);font-size:clamp(2.8rem,4vw,3.75rem);font-weight:400;line-height:1;color:var(--green-deep)}
.review-rating>span{font-size:1rem;font-weight:600}
.review-rating strong span{margin-left:.2rem;font-family:var(--sans);font-size:1rem;font-weight:400;letter-spacing:0;color:var(--ink-soft)}
.review-rating>p{margin:0;color:var(--ink-soft);font-size:.9rem;line-height:1.5}
.review-rating small{color:var(--ink-soft);font-size:.86rem;line-height:1.5}
.review-rating a{min-height:44px;display:inline-flex;align-items:center;margin-top:.25rem;font-size:.875rem;text-decoration:none}
.company-reviews .review-card{max-width:none;margin:0;padding:0;border:0;text-align:left}
.company-reviews .review-card blockquote{max-width:40ch;margin:0 0 .75rem;font-size:clamp(1.5rem,2.15vw,2.15rem);line-height:1.25}
.company-reviews .review-card figcaption{color:var(--ink-soft);font-size:.9rem;line-height:1.6;letter-spacing:0;text-transform:none}
.workmanship-proof{margin-top:clamp(2.5rem,4vw,4rem)}
.workmanship-proof>h3{max-width:30ch;margin:0 0 1.5rem;font-size:clamp(1.9rem,2.8vw,2.7rem);line-height:1.1}
.workmanship-proof .production-strip{margin-top:0}
.production-strip figure{height:clamp(23rem,30vw,30rem)}
.inquiry-stage{grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);gap:clamp(2rem,4.5vw,4rem)}
.inquiry-copy h2{max-width:16ch;font-size:clamp(2.75rem,4.65vw,4.8rem)}
.inquiry-photo{height:clamp(28rem,42vw,39rem)}
.site-footer .footer-top{align-items:flex-start}
.site-footer .footer-top>div:first-child{max-width:28rem}
.footer-links{gap:clamp(1.5rem,4vw,3rem)}
.footer-links nav{align-content:start;gap:.15rem}

@media(min-width:761px){
  .inspiration-story .chapter-shell{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto;grid-auto-rows:clamp(15rem,20vw,21rem);grid-auto-flow:dense;gap:.6rem}
  .inspiration-story .story-head{display:block;grid-column:1/span 5;grid-row:1;align-self:center;padding:1rem 0 1.5rem}
  .inspiration-heading h2{font-size:clamp(2.55rem,4.2vw,4.3rem)}
  .inspiration-story .inspiration-runway{display:contents}
  .inspiration-story .inspiration-runway>.image-button:first-child{grid-column:7/-1;grid-row:1;min-height:clamp(28rem,42vw,37rem)}
}

@media(min-width:761px) and (max-width:1000px){
  .chapter{padding-top:4rem;padding-bottom:4rem}
  .inspiration-story .inspiration-runway>.image-button:not(:first-child){grid-column:span 6;grid-row:auto}
  .inspiration-story .story-head{grid-column:1/span 6;padding-right:1.5rem}
  .inspiration-heading h2{font-size:clamp(2.45rem,4.6vw,2.9rem)}
  .inspiration-copy p{font-size:1rem}
  .scope-scene,.value-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.75rem}
  .scope-copy .scene-heading h2,.value-copy .scene-heading h2{font-size:clamp(2.45rem,4.7vw,3rem)}
  .scope-room{height:30rem;aspect-ratio:auto}
  .value-layout{display:grid}.value-room{height:27rem;aspect-ratio:auto}
  .company-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:2rem}
  .company-copy h2{font-size:clamp(2.35rem,4.4vw,2.8rem)}
  .company-record strong{font-size:3rem}
  .inquiry-stage{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.75rem}
  .inquiry-copy h2{font-size:clamp(2.45rem,4.5vw,3rem)}
  .inquiry-photo{height:29rem}
}

@media(max-width:900px){
  .technology-intro{grid-template-columns:1fr;grid-template-areas:"heading" "film" "copy";gap:0;margin-bottom:2rem}
  .technology-heading h2{max-width:21ch;font-size:clamp(2.5rem,5.5vw,3.4rem)}
  .technology-intro>.technology-film{width:100%;min-height:0;height:auto;aspect-ratio:16/9;margin:.25rem 0 1.5rem}
  .technology-copy{max-width:44rem}
  .technology-copy .section-actions{margin-top:.25rem}
  .review-cards{grid-template-columns:11rem minmax(0,1fr);gap:1.5rem}
}

@media(max-width:760px){
  .chapter{padding:3.5rem 1.25rem}
  .inspiration-heading h2,.technology-heading h2,.scene-heading h2{font-size:clamp(2.35rem,10.2vw,3rem);line-height:1.05;margin-bottom:1.15rem}
  .inspiration-copy p,.technology-copy p,.scene-body p{font-size:1rem;line-height:1.65}
  .inspiration-story .chapter-shell{display:flex;flex-direction:column}
  .inspiration-story .story-head{display:contents}
  .inspiration-heading{order:0}
  .inspiration-story .inspiration-runway{order:1;margin-top:.2rem}
  .inspiration-copy{order:2;margin-top:1.35rem}
  .inspiration-runway .image-button,.inspiration-runway .runway-large,.inspiration-runway .runway-wide{height:clamp(22rem,50svh,28rem);min-height:0}
  .technology-intro{margin-bottom:1.8rem}
  .technology-intro>.technology-film{width:calc(100% + 40px);height:auto;aspect-ratio:16/10;margin:.15rem -20px 1.4rem}
  .technology-copy .section-actions{display:flex;align-items:start;gap:.3rem 1.3rem}
  .technology-card,.technology-card.tech-wide{grid-template-rows:min(48svh,27rem) auto}
  .scope-scene,.value-layout{display:grid;grid-template-columns:1fr;gap:0}
  .scope-copy,.value-copy{display:contents}
  .scope-scene .scene-heading,.value-layout .scene-heading{grid-row:1}
  .scope-room,.value-room{grid-row:2;grid-column:1;width:calc(100% + 40px);height:auto;aspect-ratio:4/3;margin:.25rem -20px 1.5rem}
  .scope-room img{object-position:54% center}
  .scope-scene .scene-body,.value-layout .scene-body{grid-row:3}
  .scope-copy .scene-heading h2,.value-copy .scene-heading h2{font-size:clamp(2.35rem,10.2vw,3rem);max-width:18ch}
  .scene-body .button{margin-top:.25rem}
  .company-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .company-copy{display:contents}
  .company-copy>.eyebrow,.company-copy>h2{order:0}
  .company-copy>.eyebrow{margin-bottom:1.1rem}
  .company-copy>h2{font-size:clamp(2.35rem,10.2vw,3rem);margin-bottom:1.6rem;max-width:18ch}
  .company-person{order:1;margin-bottom:1.5rem}
  .yan-image{height:auto;aspect-ratio:4/5}
  .company-copy>p:not(.eyebrow){order:2;font-size:1rem;margin-bottom:0}
  .company-copy>.company-record-label{order:3;margin:1.3rem 0 0;font-size:.83rem}
  .company-record{order:3;margin:.7rem 0 .8rem;padding-top:1.2rem;gap:1.25rem}
  .company-record strong{font-size:3rem}.company-record span{font-size:.87rem}
  .company-copy>.text-link,.company-copy>.section-actions{order:4;align-self:flex-start;margin-top:0}
  .company-reviews{margin-top:1.5rem;padding-top:0}
  .reviews-heading{margin-bottom:1rem}
  .reviews-heading h3{font-size:1.75rem}
  .company-reviews .review-card figcaption{font-size:.875rem}
  .workmanship-proof{margin-top:2.5rem}.workmanship-proof>h3{font-size:2rem;margin-bottom:1.25rem}
  .production-strip figure{height:46svh;min-height:22rem}
  .inquiry-stage{grid-template-columns:1fr;gap:1.8rem}
  .inquiry-copy h2{font-size:clamp(2.35rem,10.2vw,3rem);line-height:1.05;max-width:18ch;margin-bottom:1rem}
  .inquiry-copy p:not(.eyebrow){font-size:1rem;line-height:1.65}
  .inquiry-copy .button{margin-top:.5rem}
  .inquiry-photo{height:auto;aspect-ratio:3/2}
  .site-footer{padding-top:2.75rem;padding-bottom:1.5rem}
  .site-footer .footer-top{gap:2rem;padding-bottom:1.6rem}
  .footer-links{gap:1.5rem 1.25rem}
  .footer-links nav{gap:.05rem}
}

/* V20.8.1: compact reviews; each link keeps only its existing single rule. */
@media(max-width:560px){
  .review-cards{grid-template-columns:1fr;gap:1rem}
  .review-rating{grid-template-columns:auto 1fr;column-gap:1rem;align-items:center}
  .review-rating strong{grid-column:1;grid-row:1/span 2;font-size:3rem}
  .review-rating>.review-platform{grid-column:2;grid-row:1}
  .review-rating>p{grid-column:2;grid-row:2}
  .review-rating>a{grid-column:1/-1;grid-row:3}
}

/* V20.9 — one room argument, literal materials, and compact company proof. */
.room-investment{background:var(--paper)}
.room-composition{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);gap:0 clamp(2rem,5vw,5rem);align-items:center}
.room-heading{grid-column:2;grid-row:1;align-self:end}
.room-heading h2{max-width:17ch;margin:0 0 1.4rem;font-size:clamp(2.6rem,4.4vw,4.5rem);line-height:1.06;letter-spacing:-.035em;text-wrap:pretty}
.room-main{grid-column:1;grid-row:1/span 2;margin:0;min-width:0;height:clamp(32rem,44vw,42rem)}
.room-main .image-button{width:100%;height:100%}
.room-main img{object-position:50% center}
.room-judgement{grid-column:2;grid-row:2;align-self:start}
.room-judgement>p{max-width:38rem;margin:0;color:var(--ink-soft);font-size:1.06rem;line-height:1.7}
.room-actions{display:flex;flex-wrap:wrap;align-items:start;gap:.75rem 1.5rem;margin-top:1.6rem}

.technology-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem 1rem;align-items:start}
.technology-grid .technology-card,.technology-grid .technology-card.tech-wide{grid-column:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(17rem,24vw,23rem) auto;align-self:start}
.technology-grid .technology-card figcaption{min-height:0;padding:1.25rem .35rem .5rem;background:none}
.technology-grid .technology-card figcaption strong{font-size:clamp(1.45rem,2vw,1.9rem);line-height:1.18;max-width:24ch}
.technology-grid .technology-card figcaption span{max-width:34ch;font-size:.96rem;line-height:1.6;color:rgba(255,253,248,.84)}
.technology-grid .material-finishes .image-button img{position:absolute;width:260%;max-width:none;height:auto;left:0;top:50%;transform:translateY(-56%);object-fit:contain}
.technology-grid .material-surfaces .image-button img{object-position:52% 65%;transform:scale(1.17)}
.technology-grid .material-handles .image-button img{position:absolute;width:245%;max-width:none;height:auto;left:-2%;top:50%;transform:translateY(-54%);object-fit:contain}
.company-proof{margin-top:2rem}
.company-proof>.company-record-label{margin:0 0 .9rem;color:var(--ink-soft);font-size:.82rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.company-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem;padding:1.3rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.company-metrics>div{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.company-metrics strong{font-family:var(--serif);font-weight:400;font-size:clamp(2.4rem,4.4vw,4rem);line-height:1;color:var(--green-deep);letter-spacing:-.03em}
.company-metrics strong span{font-size:.5em;letter-spacing:0}
.company-metrics>div>span{font-size:.9rem;line-height:1.4;color:var(--ink-soft)}
.company-reviews{margin-top:2rem}
.reviews-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.1rem}
.review-controls{display:flex;align-items:center;gap:.5rem}
.review-controls[hidden]{display:none}
.review-controls>span{margin-right:.5rem;color:var(--ink-soft);font-size:.85rem;font-variant-numeric:tabular-nums}
.review-controls button{width:44px;height:44px;padding:0;display:grid;place-items:center;border:1px solid var(--green-deep);background:transparent;color:var(--green-deep);font-size:1.3rem;cursor:pointer;transition:background .2s var(--ease),color .2s var(--ease)}
.review-controls button:hover:not(:disabled){background:var(--green-deep);color:var(--chalk)}
.review-controls button:disabled{opacity:.3;cursor:default}
.review-carousel{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2rem)/3);gap:1rem;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--stone) transparent;padding-bottom:.5rem}
.company-reviews .review-card{display:flex;flex-direction:column;justify-content:space-between;gap:1.5rem;padding:1.5rem;min-height:14rem;background:var(--paper);scroll-snap-align:start;margin:0;border:0}
.company-reviews .review-card blockquote{font-size:clamp(1.4rem,2.05vw,1.85rem);line-height:1.25;margin:0;max-width:30ch}
.company-reviews .review-card figcaption{display:flex;flex-direction:column;gap:.2rem;font-size:.875rem;line-height:1.5}
.company-reviews .review-card figcaption strong{font-family:var(--sans);font-weight:600;color:var(--ink);font-size:inherit}
.workmanship-intro{display:flex;flex-wrap:wrap;align-items:baseline;gap:1rem 3rem;margin-bottom:1.5rem}
.workmanship-intro h3{flex:1 1 22rem;max-width:22ch;margin:0;font-size:clamp(2rem,3.3vw,3.3rem);line-height:1.1}
.workmanship-intro p{flex:1 1 25rem;max-width:39rem;margin:0;color:var(--ink-soft);font-size:1.02rem;line-height:1.65}


@media(min-width:761px) and (max-width:1000px){
  .technology-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .technology-grid .technology-card,.technology-grid .technology-card.tech-wide{grid-template-rows:21rem auto}
  .room-composition{gap:0 1.75rem}
  .room-heading h2{font-size:2.8rem}
  .room-main{height:35rem}
  .review-carousel{grid-auto-columns:calc((100% - 1rem)/2)}
}
@media(max-width:760px){
  .room-investment{padding-top:0}
  .room-composition{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .room-main{order:0;flex:none;width:calc(100% + 40px);height:clamp(17rem,68vw,29rem);aspect-ratio:auto;margin:0 -20px 1.7rem}
  .room-main .image-button{height:100%}
  .room-heading{order:1;align-self:stretch;min-width:0;width:100%}
  .room-heading h2{max-width:20ch;font-size:clamp(2.3rem,7.1vw,3rem);margin-bottom:1rem}
  .room-judgement{order:2}
  .room-judgement>p{font-size:1rem;line-height:1.65}
  .room-actions{margin-top:1.25rem;gap:.6rem 1.2rem}
  .technology-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:88%;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;align-items:start;padding-bottom:.7rem;scrollbar-width:thin;scrollbar-color:var(--leaf) transparent}
  .technology-grid .technology-card,.technology-grid .technology-card.tech-wide{grid-column:auto;grid-row:auto;grid-template-rows:clamp(16rem,50vw,23rem) auto;scroll-snap-align:start}
  .technology-grid .technology-card figcaption{padding:1.1rem 0 .5rem}
  .technology-grid .technology-card figcaption strong{font-size:1.6rem;max-width:24ch}
  .technology-grid .technology-card figcaption span{font-size:1rem}
  .company-copy>.text-link{margin-top:1rem}
  .company-proof{margin-top:1.7rem}
  .company-metrics{gap:1rem;padding:1.1rem 0}
  .company-metrics strong{font-size:2.6rem}
  .company-metrics>div>span{font-size:.875rem}
  .company-reviews{margin-top:1.7rem}
  .reviews-heading h3{font-size:1.8rem}
  .review-carousel{grid-auto-columns:86%;gap:.75rem}
  .company-reviews .review-card{padding:1.25rem;min-height:13rem}
  .company-reviews .review-card blockquote{font-size:1.65rem}
  .workmanship-intro{gap:.8rem}
  .workmanship-intro h3{font-size:2rem;max-width:25ch;flex-basis:100%}
  .workmanship-intro p{font-size:1rem;flex-basis:100%}
  
  
}
@media(max-width:480px){
  .company-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1rem}
  .company-metrics strong{font-size:2.8rem}
  
}
