/* The MAX prologue is confined to this block; the hero keeps the luxury treatment. */
.max-opening{height:calc(100svh - 125px);min-height:540px;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#f5f1e6;background:radial-gradient(ellipse at 50% 40%,#29433366,transparent 65%),#0b1712}
.max-opening:after{content:'';position:absolute;inset:28px;border:1px solid #c5a66a30;z-index:-1;pointer-events:none}.opening-label,.opening-bottom{font-family:Arial,sans-serif;letter-spacing:.3em;font-size:.75rem;color:#b5a079}.opening-label{margin-bottom:32px}.opening-bottom{margin-top:30px}.max-opening h1{font-family:var(--serif);font-size:clamp(2.6rem,6.3vw,6rem);line-height:1.6;font-weight:400;text-align:center;letter-spacing:.07em;perspective:800px}.phrase{display:block;overflow:clip;padding:3px 18px}.phrase em{font-style:normal;color:#e1c796}.max-char{display:inline-block;transform-origin:50% 100%}.concept-first .max-char{animation:revisedChar 1.1s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--char-index)*.055s + var(--line-delay,.1s))}.phrase:nth-child(2){--line-delay:1.3s}.opening-orbit{position:absolute;inset:-25%;z-index:-1;transform:rotate(-25deg);pointer-events:none}.opening-orbit i{display:block;position:absolute;width:70%;height:70%;left:15%;top:15%;border:1px solid #bfa16b2b;border-radius:50%;animation:revisedOrbit 26s linear infinite}.opening-orbit i:nth-child(2){transform:rotateX(60deg);animation-duration:31s;border-color:#bfa16b19}.opening-orbit i:nth-child(3){animation-direction:reverse;animation-duration:38s;transform:rotateY(60deg);width:95%;height:95%;top:2.5%;left:2.5%}.max-scroll{margin-top:35px;display:flex;align-items:center;gap:20px;font-family:Arial,sans-serif;font-size:.625rem;letter-spacing:.2em;color:#d0bd96;position:relative;z-index:2}.max-scroll i{height:1px;width:60px;background:#d0bd96;animation:revisedPulse 2.8s ease-in-out infinite;transform-origin:left}#opening-dust{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}
/* P2 alone takes the MAX product reveal and pointer tilt. */
:is(#p2,#p3) .model-photo,:is(#p2,#p3) .model-copy{transition:opacity 1s,transform 1.2s cubic-bezier(.16,1,.3,1),clip-path 1.3s cubic-bezier(.16,1,.3,1)}.motion-enabled :is(#p2,#p3) .model-photo:not(.is-visible){opacity:0;transform:perspective(1000px) translateY(50px) rotateY(-14deg) scale(.92);clip-path:inset(0 20% 0 0)}.motion-enabled :is(#p2,#p3) .model-copy:not(.is-visible){opacity:0;transform:perspective(900px) translateY(65px) rotateX(8deg)}:is(#p2,#p3) .photo-window{transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s;transform:perspective(900px) rotateY(var(--card-x,0deg)) rotateX(var(--card-y,0deg))}:is(#p2,#p3) .model-photo:hover .photo-window{box-shadow:16px 22px 0 #c8b17840}
.catalog-inset .catalog-zoom{display:flex;align-items:center;gap:14px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:zoom-in}.catalog-zoom img{width:46%;height:auto;object-fit:contain}.catalog-zoom small{font-size:.75rem;white-space:nowrap;color:#665334}.catalog-zoom:hover small{text-decoration:underline}.catalog-zoom:focus-visible,.color-options button:focus-visible{outline:3px solid #a88b55;outline-offset:5px}.colors.color-options{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.color-options button{display:flex;align-items:center;gap:10px;border:1px solid #bfb8a7;padding:13px 14px;background:#fff;color:#28322d;font:inherit;font-size:.95rem;cursor:pointer;transition:border-color .2s,box-shadow .2s;min-height:54px}.color-options button>i{display:block;width:28px;height:28px;border-radius:0;flex-shrink:0}.color-options button>span{display:block}.color-options button[aria-pressed="true"]{border-color:#94733c;box-shadow:inset 0 0 0 1px #94733c}.color-options button:hover{border-color:#94733c}.color-status{font-size:.75rem!important;color:#6b665b;min-height:2.8em;margin-top:12px!important}.photo-dialog{width:min(1100px,94vw);max-height:92svh;border:1px solid #b39b71;padding:54px 20px 20px;background:#f7f5ef;color:#293029;box-shadow:0 24px 100px #0006}.photo-dialog::backdrop{background:#07140ee0;backdrop-filter:blur(6px)}.photo-dialog img{width:100%;height:min(70svh,780px);object-fit:contain}.photo-dialog p{text-align:center;font-size:.85rem;padding-top:12px}.dialog-close{position:absolute;right:15px;top:12px;border:1px solid #b2a890;background:#fff;padding:8px 14px;font:inherit;cursor:pointer}.dialog-open{overflow:hidden}.version-links{flex-wrap:wrap}.hero .hero-title{white-space:normal}.model-photo>.photo-window>img{object-fit:cover}
@keyframes revisedChar{from{opacity:0;transform:translateY(110%) rotateX(85deg) rotateZ(5deg);filter:blur(9px)}to{opacity:1;transform:none;filter:blur(0)}}@keyframes revisedOrbit{to{rotate:360deg}}@keyframes revisedPulse{0%,100%{transform:scaleX(.3);opacity:.3}50%{transform:scaleX(1);opacity:1}}
@media(max-width:760px){.max-opening{height:calc(100svh - 120px);min-height:480px}.max-opening:after{inset:15px}.max-opening h1{font-size:clamp(2rem,7.8vw,3.6rem);line-height:1.85;letter-spacing:.02em}.opening-label{font-size:.65rem;letter-spacing:.2em;margin-bottom:25px}.opening-bottom{font-size:.625rem;letter-spacing:.18em}.opening-orbit{inset:0 -60%}.color-options button{padding:10px;font-size:.85rem;gap:7px}.colors.color-options{gap:8px}.color-options button>i{width:25px;height:25px}.catalog-inset .catalog-zoom{flex-wrap:wrap;gap:10px}.catalog-zoom small{width:100%;text-align:right}.motion-enabled :is(#p2,#p3) .model-photo:not(.is-visible){transform:perspective(900px) rotateY(-7deg) translateY(25px);clip-path:inset(0 8% 0 0)}}
@media(prefers-reduced-motion:reduce){.max-opening *{animation:none!important}.max-char{opacity:1!important;transform:none!important;filter:none!important}#opening-dust{display:none}:is(#p2,#p3) .photo-window{transform:none!important}:is(#p2,#p3) .model-photo,:is(#p2,#p3) .model-copy{transform:none!important;opacity:1!important;clip-path:none!important}}

/* v1.1: scoped choices from the instruction workbook. */
.header{background:#101d18ed;color:#f0efe5;border-bottom:1px solid #bfa16b40}.header .porter-brand{filter:invert(1);mix-blend-mode:screen}.header .nav-contact{border-color:#b49a66}
.motion-enabled .section-top.reveal-target{transition:opacity 1s,transform 1s;clip-path:none}.motion-enabled .section-top.reveal-target:not(.is-visible){opacity:0;transform:translateY(30px)}
#p3 .photo-window{background:#f2eee7}#p3 .photo-window img{aspect-ratio:3/2;object-fit:contain;width:100%;object-position:center;transform:none!important}
.atmosphere img{transform:translateY(var(--photo-shift,-40px)) scale(1.08);transition:transform 13s cubic-bezier(.16,1,.3,1)}.atmosphere.zoom-entered img{transform:translateY(var(--photo-shift,-40px)) scale(1)}
@media(prefers-reduced-motion:reduce){.atmosphere img{transform:none!important;transition:none!important}}

/* Mobile: keep the product photograph and its three color controls together. */
@media(max-width:760px){
 :is(#p2,#p3).model{display:flex;flex-direction:column;gap:0}
 :is(#p2,#p3)>.model-head{order:0;width:100%;margin:0 0 18px;display:flex;align-items:center;gap:18px}
 :is(#p2,#p3)>.model-head .model-num{font-size:3.5rem;line-height:1.1}
 :is(#p2,#p3)>.model-photo{order:1;width:100%;margin:0}
 :is(#p2,#p3)>.model-copy{order:2;width:100%;margin-top:28px}
 :is(#p2,#p3)>.catalog-inset{order:3;width:100%;margin-top:28px}
 :is(#p2,#p3) .photo-window{box-shadow:none;transform:none}
 :is(#p2,#p3) .photo-window img{width:100%;height:auto;aspect-ratio:4/3;max-height:46svh;object-fit:contain;transform:none!important;background:#f3f0e9}
 :is(#p2,#p3) .colors.color-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px;width:100%}
 :is(#p2,#p3) .color-options button{min-width:0;min-height:58px;padding:7px 3px;display:flex;flex-direction:column;justify-content:center;gap:5px;font-size:.75rem;line-height:1.3;letter-spacing:0}
 :is(#p2,#p3) .color-options button>i{width:19px;height:19px}
 :is(#p2,#p3) .color-options button>span{white-space:nowrap}
 :is(#p2,#p3) .color-status{min-height:0;margin:8px 0 0!important;font-size:.6875rem!important;line-height:1.5}
 :is(#p2,#p3) .model-photo>figcaption{margin-top:7px;font-size:.625rem;line-height:1.6;letter-spacing:0}
 :is(#p2,#p3)>.catalog-inset .catalog-zoom{flex-wrap:nowrap;gap:12px}
 :is(#p2,#p3)>.catalog-inset .catalog-zoom img{width:32%;height:auto}
 :is(#p2,#p3)>.catalog-inset .catalog-zoom small{width:auto;white-space:nowrap;font-size:.6875rem;margin-left:auto}
}

/* v1.2: remove the duplicate color overview; retain imagery and the existing mat content. */
.custom-layout.mat-only{grid-template-columns:1fr;max-width:760px;margin-inline:auto}.mat-only .mat-copy{padding-inline:0;border-left:0}

/* Supplied mat photographs: show each complete 4:3 image, including its logo. */
.hotel-grid.adjusted-mats{grid-template-columns:repeat(2,minmax(0,1fr))}.hotel-grid.adjusted-mats img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:4/3;object-fit:contain}.hotel-grid.adjusted-mats figure:hover img{transform:none}
@media(max-width:760px){.hotel-grid.adjusted-mats{grid-template-columns:1fr}}

/* v1.22 supplied detail images: retain the full photograph and height annotation. */
#features .supplied-details img{width:100%;height:auto;max-height:none;aspect-ratio:1450/1085;object-fit:contain;transform:none!important}
.mobile-break{display:none}.custom-options-list{padding-left:1.25em;margin:24px 0;line-height:2.1}
@media(max-width:760px){#features .supplied-details article{display:block}#features .supplied-details article>div{padding:18px 0 0}.mobile-break{display:inline}}

/* Same desktop frame as the preceding image; visible, gentle pan on both layouts. */
.atmosphere.mannaka-photo figcaption{max-width:calc(100% - 40px)}
.atmosphere.mannaka-photo img{display:block;width:calc(100% + 80px);height:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 70%;transform:translateX(0);transition:none;will-change:transform}
.atmosphere.mannaka-photo.pan-entered img{animation:mannaka-pan-left 22s linear forwards}
@keyframes mannaka-pan-left{from{transform:translateX(0)}to{transform:translateX(-80px)}}
@media(max-width:760px){.atmosphere.mannaka-photo .atmosphere-image{height:auto;aspect-ratio:3/2}.atmosphere.mannaka-photo img{height:100%;object-position:50% 70%}}
@media(prefers-reduced-motion:reduce){.atmosphere.mannaka-photo img{animation:none!important;transform:none!important;will-change:auto}}

/* Optional comparison stays collapsed until the visitor chooses to view it. */
.option-photo-details{margin:8px 0 12px;max-width:600px;list-style:none}
.option-photo-details summary{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;padding:7px 0;color:#796442;font-size:.875rem;line-height:1.7;cursor:pointer;border-bottom:1px solid #b7a27e;list-style:none}
.option-photo-details summary::-webkit-details-marker{display:none}
.option-photo-details summary:before{content:'＋';font-size:1rem}
.option-photo-details[open] summary:before{content:'−'}
.option-photo-details .when-open{display:none}.option-photo-details[open] .when-open{display:inline}.option-photo-details[open] .when-closed{display:none}
.option-photo-details summary:focus-visible{outline:2px solid #aa8043;outline-offset:4px}
.option-photo-details figure{margin:16px 0 0;background:#f7f4ef}
.option-photo-details img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;transform:none!important}

/* Preserve the supplied caster comparison proportions. */
.caster-comparison img{aspect-ratio:auto}

/* Responsive brake-operation video, matching the supplied 16:9 player. */
.video-card{min-width:0;align-self:start}.video-card h3{font-size:1rem;font-weight:500;margin:0 0 14px}.video-embed{position:relative;width:100%;aspect-ratio:16/9;background:#f0f0ec;overflow:hidden}.video-embed iframe{display:block;width:100%;height:100%;border:0}

/* CUSTOM OPTIONS: quiet editorial hierarchy, with original mat examples first. */
#custom.custom-editorial{max-width:1000px;padding-block:88px}
#custom .custom-heading{max-width:780px;margin:0 0 42px}
#custom .custom-heading .eyebrow{margin-bottom:14px}
#custom .custom-heading h2{font-size:clamp(1.65rem,2.5vw,2.2rem);line-height:1.65;letter-spacing:.035em}
#custom .custom-heading>p:last-child{font-size:.9375rem;color:var(--muted);margin-top:16px;line-height:1.95}
#custom .custom-mat-main{display:grid;grid-template-columns:210px minmax(0,1fr);gap:42px;align-items:start}
#custom .custom-mat-copy h3{font-family:var(--serif);font-size:1.25rem;letter-spacing:.1em;line-height:1.6;margin:0 0 16px}
#custom .custom-mat-copy p{font-size:.9375rem;line-height:2;color:var(--muted)}
#custom .custom-mat-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#custom .custom-mat-photos img{display:block;width:100%;height:auto;object-fit:contain;transform:none}
#custom .custom-mat-photos figcaption{font-size:.75rem;line-height:1.75;color:var(--muted);margin-top:10px}
#custom .custom-permission{margin-top:16px;font-size:.6875rem!important;line-height:1.8}
#custom .custom-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;margin-top:44px;padding-top:30px;border-top:1px solid var(--line)}
#custom .custom-secondary article{min-width:0}
#custom .custom-option-zoom{display:block;width:100%;max-width:220px;margin:0 0 18px;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
#custom .custom-option-zoom img{display:block;width:100%;height:138px;object-fit:contain;transition:opacity .2s}
#custom .custom-option-zoom span{display:block;margin-top:8px;font-size:.6875rem;color:#796442;line-height:1.5}
#custom .custom-secondary h3{font-size:.9375rem;line-height:1.7;margin:0 0 8px;font-weight:500}
#custom .custom-secondary article p{font-size:.8125rem;line-height:1.9;color:var(--muted)}
#custom .custom-other{margin-top:30px;font-size:.8125rem;line-height:1.9;color:var(--muted)}
#custom .custom-image-dialog{width:min(980px,94vw);max-height:92svh;padding:54px 20px 18px;border:1px solid #b7a784;background:#f7f5ef;color:var(--ink);overflow:auto}
#custom .custom-image-dialog::backdrop{background:#102018cf}
#custom .custom-image-dialog>img{display:block;width:100%;height:min(68svh,700px);object-fit:contain}
#custom .custom-image-dialog>p{font-size:.8125rem;line-height:1.7;text-align:center;margin-top:12px}
#custom .custom-dialog-close{position:absolute;top:12px;right:16px;padding:6px 12px;border:1px solid #b7a784;background:transparent;font:inherit;font-size:.8125rem;cursor:pointer;color:inherit}
#custom button:focus-visible{outline:2px solid #aa8043;outline-offset:5px}
@media(hover:hover){#custom .custom-option-zoom:hover img{opacity:.83}}
@media(max-width:760px){
 #custom.custom-editorial{padding-block:56px}
 #custom .custom-heading{margin-bottom:30px}
 #custom .custom-mat-main{grid-template-columns:1fr;gap:24px}
 #custom .custom-mat-copy{max-width:34em}
 #custom .custom-mat-copy h3{font-size:1.125rem;margin-bottom:10px}
 #custom .custom-mat-photos{grid-template-columns:1fr;gap:24px}
 #custom .custom-secondary{grid-template-columns:1fr;gap:28px;margin-top:32px;padding-top:26px}
 #custom .custom-secondary article{display:grid;grid-template-columns:104px minmax(0,1fr);gap:18px;align-items:center}
 #custom .custom-option-zoom{margin:0;max-width:none}
 #custom .custom-option-zoom img{height:82px}
 #custom .custom-secondary h3{font-size:.875rem}
 #custom .custom-secondary article p{font-size:.8125rem}
 #custom .custom-other{margin-top:26px}
 #custom .custom-image-dialog{padding:54px 12px 16px}
 #custom .custom-image-dialog>img{height:auto;max-height:65svh}
}
@media(prefers-reduced-motion:reduce){#custom .custom-option-zoom img{transition:none}}

#custom .custom-heading h2 span{display:inline-block}
html:has(#custom .custom-image-dialog[open]){overflow:hidden}
