/* Maßanfertigung: photographic composition using the approved shared tokens. */
.custom-page .compact-hero-photo picture{display:block;width:100%;height:100%}
.custom-page .compact-hero-photo img{object-position:center}
.custom-page .section-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,6vw,104px);align-items:end}
.custom-page .section-heading>p{max-width:440px;justify-self:end;line-height:1.85}
.custom-opening{display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(48px,7vw,112px);align-items:start}
.custom-opening h2,.custom-personal h2{margin:28px 0 36px}
.custom-copy{min-width:0}
.custom-copy>p:not(.eyebrow){font-size:15px;line-height:1.85;margin:0 0 24px;max-width:62ch}
.custom-copy>.custom-lead{font-size:clamp(19px,1.7vw,24px)!important;line-height:1.65!important;color:var(--text)}
.custom-copy>.text-link{margin-top:12px;gap:24px}
.custom-copy>h3{font-size:clamp(32px,3vw,48px);margin:24px 0 32px;line-height:1.2}
.custom-photo{position:relative;isolation:isolate;margin:0;overflow:hidden;border-radius:var(--radius-image);box-shadow:var(--shadow-card);min-width:0;aspect-ratio:1;align-self:stretch;background:var(--surface)}
.custom-photo-motion{position:absolute;inset:0}
.custom-photo img{width:100%;height:100%;object-fit:cover;display:block}
.custom-photo::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:var(--image-tint)}
.custom-photo:has(figcaption)::after{background:linear-gradient(180deg,rgba(0,0,0,.07),rgba(0,0,0,.13) 60%,rgba(0,0,0,.62))}
.custom-photo figcaption{position:absolute;z-index:2;inset:auto 28px 24px;color:var(--text);font-size:11px;line-height:1.6;text-shadow:0 2px 12px #000}
.custom-provenance{position:relative;isolation:isolate;min-height:650px;display:flex;align-items:center;padding-block:100px;overflow:hidden}
.custom-provenance>.custom-photo{position:absolute;inset:0;z-index:-2;aspect-ratio:auto;border-radius:0;box-shadow:none}
.custom-provenance>.custom-photo::after{background:linear-gradient(90deg,rgba(0,0,0,.83),rgba(0,0,0,.44) 65%,rgba(0,0,0,.32)),linear-gradient(0deg,rgba(0,0,0,.5),transparent)}
.custom-provenance-content{display:grid;grid-template-columns:1.3fr .7fr;align-items:end;gap:clamp(48px,8vw,120px)}
.custom-provenance h2{font-size:clamp(44px,5.2vw,80px);margin:28px 0 36px}
.custom-provenance h2 span{color:#d4c590}
.custom-provenance-content>div>p:not(.eyebrow){max-width:52ch;color:#deded7;font-size:15px;line-height:1.85}
.custom-provenance .text-link{margin-top:32px}
.custom-pefc{display:flex;align-items:center;gap:32px;padding-bottom:8px}
.custom-pefc img{flex:0 0 80px;width:80px;height:120px;object-fit:contain}
.custom-pefc h3{font-size:25px;line-height:1.35;margin-bottom:16px}
.custom-pefc p,.custom-pefc a{font-size:11px;line-height:1.8;color:#deded7}
.custom-pefc a{display:inline-block;margin-top:16px}
.custom-further-links{display:flex;flex-wrap:wrap;gap:20px 40px;margin-top:32px}
.custom-further-links .text-link{gap:24px}
.custom-page .custom-families{grid-template-columns:repeat(2,minmax(0,1fr))}
.custom-family-notes{display:grid;grid-template-columns:1fr 1fr;gap:var(--grid-space);margin-top:40px}
.custom-family-notes .custom-copy>h3{font-size:25px;margin:0 0 20px}
.custom-family-notes .custom-copy>p{font-size:14px;max-width:62ch}
.custom-family-notes .text-link{font-size:12px;max-width:100%}
.custom-secondary-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px 56px;margin-top:56px;padding:32px;background:var(--surface);border-radius:var(--radius-image);box-shadow:var(--shadow-card)}
.custom-secondary-offer h3{font-size:26px;margin:20px 0 16px;line-height:1.3}
.custom-secondary-offer p:not(.eyebrow){font-size:14px;line-height:1.85;max-width:68ch;margin:0}
.custom-secondary-offer .text-link{font-size:12px;gap:24px}
.custom-history{display:flex;gap:32px 56px;margin:40px 0 0;flex-wrap:wrap}
.custom-history dt{font-size:clamp(23px,2.4vw,34px);line-height:1.3;color:var(--text)}
.custom-history dd{margin:10px 0 0;font-size:11px;color:#deded7;line-height:1.7}
.custom-contours{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,6vw,96px);align-items:center;margin-block:var(--section-space)}
.custom-extension-photo{aspect-ratio:1980/1321;width:100%;min-height:0}
.custom-extension-photo img{object-fit:contain}
.custom-extension-photo::after{background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.07) 65%,rgba(0,0,0,.42))!important}
.custom-extension-bottom{display:flex;justify-content:space-between;align-items:start;gap:32px 64px;margin-top:32px}
.custom-extension-bottom p{font-size:14px;line-height:1.85;max-width:62ch;margin:0}
.custom-extension-bottom .text-link{font-size:12px;gap:24px;flex-shrink:0}
.custom-families~.finish-note,.custom-woods>.finish-note{margin-top:28px;max-width:95ch}
.custom-page .wood-card h3{font-size:28px;min-height:0;margin:0 0 12px}
.custom-page .wood-card .table-path-description{max-width:27ch}
.wood-fallback{margin-top:40px}.wood-ready .wood-fallback{display:none}
.custom-design-progress{height:1px;background:var(--line);margin-bottom:var(--heading-space);overflow:hidden}
.custom-design-progress span{display:block;width:100%;height:100%;background:var(--light-gold);transform-origin:left}
.custom-editorial{display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:clamp(48px,6vw,96px)}
.custom-editorial+.custom-editorial,.custom-design>.finish-note+.custom-editorial{margin-top:var(--section-space)}
.custom-editorial.is-reversed{grid-template-columns:.88fr 1.12fr}
.custom-editorial.is-reversed>.custom-photo{order:2}
.custom-editorial .custom-photo{width:100%;min-height:520px;aspect-ratio:1;align-self:center}
.custom-specs{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:32px 0}
.custom-specs dt{color:var(--light-gold);font-size:10px;letter-spacing:.06em;margin-bottom:10px}
.custom-specs dd{margin:0;font-size:12px;line-height:1.8;color:var(--text)}
.custom-finishes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--grid-space);margin-top:var(--heading-space)}
.custom-finish{position:relative;isolation:isolate;border-radius:var(--radius-image);overflow:hidden;aspect-ratio:1;box-shadow:var(--shadow-card)}
.custom-finish>.custom-photo{position:absolute;inset:0;aspect-ratio:auto;z-index:-1;box-shadow:none}
.custom-finish>.custom-photo::after{background:var(--card-gradient)}
.custom-finish>div{position:absolute;inset:auto 28px 28px;z-index:2}
.custom-finish h4{font-size:25px;font-weight:400;letter-spacing:-.03em;line-height:1.3;margin:0 0 14px}
.custom-finish p{font-size:12px;line-height:1.75;min-height:5.25em;color:var(--text);max-width:32ch}
.custom-design>.finish-note{margin-top:24px}
.custom-personal{display:grid;grid-template-columns:1fr 1fr;gap:clamp(48px,6vw,96px);align-items:start}
.custom-personal>.custom-photo{aspect-ratio:4/5;position:sticky;top:110px;align-self:start}
.custom-personal>.custom-photo img{object-position:52% center}
.custom-order-steps{list-style:none;margin:32px 0;padding:0}
.custom-order-steps li{display:flex;gap:24px;padding:24px 0;border-top:1px solid var(--line)}
.custom-order-steps li>span{color:var(--light-gold);font-size:11px;padding-top:5px}
.custom-order-steps h3{font-size:21px;margin:0 0 12px}
.custom-order-steps p{font-size:13px;line-height:1.85;margin:0}
.custom-request-panel{padding:clamp(28px,4vw,56px);background:var(--surface);border-radius:var(--radius-image);box-shadow:var(--shadow-card);align-self:start;min-width:0}
.custom-request-panel h3{font-size:clamp(28px,2.6vw,40px);margin:24px 0 28px}
.custom-request-panel>p:not(.eyebrow){font-size:14px;line-height:1.85}
.custom-request-panel .button{width:100%;margin:32px 0 20px;justify-content:space-between;gap:20px}
.custom-request-panel .text-link{gap:24px;max-width:100%;font-size:13px}
.custom-request-panel .custom-contact-note{font-size:12px!important;margin-top:28px}
/* Native modal keeps keyboard focus inside, Escape closes; JS is optional. */
.custom-page .wood-dialog{position:fixed;inset:16px 16px 16px auto;margin:0;width:min(660px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:none;max-width:none;padding:0;border:1px solid var(--line);background:var(--bg);color:var(--text);box-shadow:var(--shadow-deep);overflow:auto;overscroll-behavior:contain}
.wood-dialog::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(6px)}
.wood-dialog-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:rgba(22,22,22,.96);border-bottom:1px solid var(--line)}
.wood-dialog-top .eyebrow{font-size:9px;line-height:1.8;margin:0}
.wood-dialog-top form{margin:0}
.wood-close{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--text);cursor:pointer}
.wood-dialog-photo{position:relative;isolation:isolate;aspect-ratio:16/9;overflow:hidden}
.wood-dialog-photo img{display:block;width:100%;height:100%;object-fit:cover}
.wood-dialog-photo::after{content:'';position:absolute;inset:0;background:var(--card-gradient);z-index:1}
.wood-dialog-photo>div{position:absolute;inset:auto 32px 24px;z-index:2}
.wood-dialog-photo p{font-size:11px;letter-spacing:.04em;color:var(--light-gold);margin:0 0 10px}
.wood-dialog-photo h2{font-size:clamp(34px,4vw,52px);margin:0}
.wood-dialog-copy{padding:32px}
.wood-dialog-copy p{font-size:14px;line-height:1.9;margin:0 0 24px}
.wood-dialog-copy .wood-lead{font-size:19px;color:var(--text)}
.wood-dialog-copy h3{font-size:22px;margin:32px 0 16px}
.wood-dialog-copy .wood-note{font-size:12px;color:var(--muted)}
.wood-dialog-copy .text-link{max-width:100%;gap:20px;font-size:12px}
.wood-dialog-copy .button{display:flex;width:100%;margin-top:32px;justify-content:space-between;gap:20px;font-size:12px}
@media(max-width:1100px){
 .custom-secondary-offer{grid-template-columns:1fr;justify-items:start}
 .custom-provenance-content{grid-template-columns:1fr;gap:48px}
 .custom-pefc{max-width:440px}
 .custom-editorial,.custom-editorial.is-reversed{gap:40px;grid-template-columns:1fr 1fr}
 .custom-editorial .custom-photo{min-height:460px}
 .custom-personal>.custom-photo{position:relative;top:auto}
 .custom-finish>div{inset:auto 22px 22px}.custom-finish p{font-size:11px;min-height:7em}
}
@media(max-width:760px){
 .custom-page .custom-families,.custom-family-notes,.custom-contours{grid-template-columns:1fr}
 .custom-family-notes{gap:40px;margin-top:32px}
 .custom-family-notes .custom-copy>h3{font-size:25px}
 .custom-secondary-offer{padding:24px;gap:24px;margin-top:40px}
 .custom-secondary-offer h3{font-size:24px}
 .custom-history{gap:24px 32px;margin-top:32px}
 .custom-history dt{font-size:25px}
 .custom-contours{gap:12px}
 .custom-extension-bottom{flex-direction:column;gap:24px;margin-top:24px}
 .custom-extension-photo figcaption{font-size:9px;inset:auto 16px 12px;line-height:1.5;max-width:32ch}
 .custom-page .section-heading{grid-template-columns:1fr;gap:0}
 .custom-page .section-heading>p{max-width:none;justify-self:start}
 .custom-opening,.custom-personal,.custom-editorial,.custom-editorial.is-reversed{grid-template-columns:1fr;gap:40px}
 .custom-opening h2{margin-bottom:0}.custom-copy>p:not(.eyebrow){font-size:14px}
 .custom-copy>h3{font-size:34px;margin:24px 0 28px}
 .custom-photo figcaption{inset:auto 20px 20px;font-size:10px}
 .custom-provenance{min-height:760px;padding-block:80px}
 .custom-provenance h2{font-size:46px;margin-bottom:28px}
 .custom-provenance-content{gap:48px}
 .custom-provenance-content>div>p:not(.eyebrow){font-size:14px}
 .custom-pefc{gap:24px}.custom-pefc h3{font-size:23px}.custom-pefc img{width:70px;height:105px;flex-basis:70px}
 .custom-further-links{flex-direction:column;align-items:flex-start;gap:20px}
 .custom-editorial .custom-photo{min-height:0;aspect-ratio:1}
 .custom-editorial.is-reversed>.custom-photo{order:0}
 .custom-finishes{grid-template-columns:1fr;gap:24px}
 .custom-finish{aspect-ratio:1}.custom-finish>div{inset:auto 24px 24px}.custom-finish h4{font-size:28px}.custom-finish p{font-size:13px;max-width:30ch;min-height:0}
 .custom-personal>.custom-photo{aspect-ratio:1}
 .custom-page .wood-dialog{inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px)}
 .wood-dialog-top{padding:12px 20px}.wood-dialog-photo>div{inset:auto 24px 20px}.wood-dialog-copy{padding:24px}.wood-dialog-copy .button{padding-inline:20px}
 .custom-page .compact-hero .hero-secondary{font-size:12px;gap:16px}
}
@media(prefers-reduced-motion:reduce){.custom-photo-motion,.custom-photo img,.wood-dialog{transform:none!important}}
