/* Supplied 402px mobile design; desktop rules remain in style.css. */
picture{display:contents}.mobile-menu-icon{display:none}
@media(max-width:767px){
 .hero{width:100%;min-width:0;height:clamp(760px,100svh,874px);min-height:0;aspect-ratio:auto;max-height:none}
 header{padding:24px 20px;flex-wrap:nowrap;gap:12px;align-items:center}
 .brand{min-width:0}.header-logo{width:clamp(180px,55vw,220px)!important;height:50px!important}.menu-toggle{flex-shrink:0}
 .menu-toggle{display:block;padding:0;background:transparent;line-height:0;border:0;margin-left:auto}
 .menu-label{display:none}.mobile-menu-icon{display:inline-block}
 .header-actions{display:none}nav{top:100px;left:20px;right:20px;padding:24px;gap:20px}
 .hero-dots{display:flex;bottom:105px}
 .hero-photo{object-position:center;object-fit:cover}
 .hero-copy,.hero-copy.wide{top:auto;bottom:160px;left:20px;right:20px;width:auto;min-width:0}
 .hero-copy h1{font-size:clamp(34px,9.45vw,44px);line-height:1.08;letter-spacing:-.025em;text-shadow:none}
 .hero-copy p{font-size:16px;line-height:1.5;font-weight:600;margin-top:20px;text-shadow:none;max-width:360px}
 .hero-actions{flex-direction:column;align-items:flex-start;gap:16px;margin-top:28px}
 .hero-actions .button{font-size:14px;min-height:44px;padding:12px 22px}
 .section{padding:40px 20px}.section-title{padding:0 20px}
 .tag{font-size:12px;padding:8px 18px;letter-spacing:.25em;min-height:32px}
 h2{font-size:30px;line-height:1.2;margin-top:20px}
 .cream-curve,.standards-curve{display:none}
 .inside-grid{grid-template-columns:minmax(0,1fr);gap:24px;margin-top:30px}
 .inside-card{display:block;border-radius:28px}
 .inside-photo{aspect-ratio:362/250;min-height:0;height:auto}
 .inside-copy{padding:24px 26px 30px}.inside-copy h3{font-size:24px;line-height:1.3}
 .inside-copy p{font-size:16px;line-height:1.65;margin-top:12px;font-weight:600}
 .icon-row{left:7%;right:7%;bottom:10%;gap:4px}.icon-row .svg{height:24px!important;max-width:35px}
 .icon-row span:not(.svg){font-size:10px}.icon-row>div{gap:6px}
 .selection{padding-bottom:40px}.section-title>p{font-size:16px;line-height:1.5;margin-top:12px}
 .selection-track{display:flex;flex-direction:column;width:calc(100% - 40px);max-width:none;overflow:visible;padding:28px 0 0;margin:0 20px;gap:24px;scroll-snap-type:none;cursor:auto}
 .selection-card{flex:none;width:100%;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);border-radius:28px;padding:28px;gap:24px;scroll-margin-top:20px}
 .selection-copy{padding:0}.selection-copy>h3{font-size:26px;line-height:1.3}.selection-copy>p{font-size:16px;line-height:1.6;margin-top:12px;min-height:0}
 .pills{gap:8px;margin-top:20px}.pills>span{font-size:12px;padding:7px 10px}
 .feature-grid{grid-template-columns:1fr;gap:22px;margin:28px 0}.feature{gap:16px}
 .feature>.svg{width:44px!important;height:44px!important;margin-top:4px}
 .feature h4{font-size:20px;line-height:1.4}.feature p{font-size:16px;line-height:1.5;margin-top:5px}
 .selection-copy>.button{width:auto;max-width:100%;align-self:flex-start;font-size:13px;line-height:1.4;padding:12px 14px;margin-top:0}
 .selection-photos{grid-template-columns:1fr;gap:20px}
 .selection-photos figure{aspect-ratio:285/280;min-height:0;border-radius:20px}
 .selection-photos figcaption{padding:16px 20px;min-height:0;border-radius:20px}
 .selection-photos h4{font-size:20px;line-height:1.25}.selection-photos p{font-size:14px;line-height:1.4;margin-top:6px}
 .selection-arrow,.selection-dots{display:none!important}
 .standards-grid{grid-template-columns:minmax(0,1fr);gap:20px;margin-top:28px}
 .standards-grid article{width:100%;min-width:0;aspect-ratio:auto;min-height:220px;border-radius:28px}
 .standards-grid article>div{left:26px;right:24px;bottom:24px}
 .standards-grid h3{font-size:24px;line-height:1.3}.standards-grid p{font-size:14px;line-height:1.45;margin-top:8px}
 .terrace{padding:40px 20px}.terrace-photo{object-position:center;object-fit:cover}
 .terrace-intro{font-size:16px;line-height:1.6;max-width:none;margin-top:16px}
 .terrace-grid{grid-template-columns:1fr;gap:24px;margin-top:30px}
 .terrace-grid article,.terrace-grid article:last-child{grid-column:auto;min-height:220px;padding:28px;border-radius:24px}
 .terrace-grid article>.svg{height:48px!important;max-width:61px;margin:8px 0 12px}
 .terrace-grid h3{font-size:24px;line-height:1.4}.terrace-grid p{font-size:16px;line-height:1.5;margin-top:8px;max-width:270px}
 footer{padding:40px 20px;display:flex;flex-direction:column;gap:30px;font-size:16px}
 .footer-brand>a>.svg{width:200px!important;height:78px!important}.footer-brand>p{margin-top:20px;max-width:340px;line-height:1.6}
 .footer-column h3{font-size:14px;margin-bottom:14px}.footer-column a{font-size:16px;margin-bottom:12px}.footer-column p{margin-bottom:16px}
 .footer-bottom{display:flex;align-items:flex-start;flex-direction:column;gap:22px;font-size:14px;line-height:1.6}
 .footer-bottom .socials{margin:0;gap:16px}.socials .svg{width:44px!important;height:44px!important}
 .footer-bottom>span{padding:0}.footer-bottom>div:last-child:not(.socials){white-space:normal}
 dialog{max-width:calc(100vw - 32px)}
}

/* Keep image ratios from enlarging the page at intermediate widths. */
.hero{width:100%;min-width:0}
.standards-grid article{width:100%;min-width:0}
@media(min-width:768px) and (max-width:1050px){
 .standards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .inside-card{grid-template-columns:minmax(0,45fr) minmax(0,55fr)}
 .inside-copy,.selection-copy,.feature>div{min-width:0}
 .selection-card{min-width:0;grid-template-columns:minmax(0,1fr)}
 .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .selection-photos{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Exported artwork must not expand the viewport while orientation is changing. */
html,body{width:100%;max-width:100%;overflow-x:clip}
main,footer{width:100%;min-width:0}
.svg{overflow:clip}

/* Short landscape screens need a compact composition, not the tall portrait stack. */
@media(max-width:1050px) and (max-height:600px) and (orientation:landscape){
 .hero{height:auto;min-height:480px;aspect-ratio:auto;max-height:none}
 header{padding:20px 28px;gap:16px;flex-wrap:nowrap}
 .header-logo{width:200px!important;height:46px!important}
 .brand{min-width:0}.menu-toggle{flex-shrink:0}
 .header-actions{display:none}
 nav{position:fixed;top:80px;left:28px;right:28px;max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior:contain;padding:18px 24px;gap:16px;font-size:16px;z-index:10}
 .hero-copy,.hero-copy.wide{top:135px;bottom:auto;left:28px;right:28px;width:auto;max-width:650px}
 .hero-copy h1,.hero-copy.wide h1{font-size:36px;line-height:1.1}
 .hero-copy p,.hero-copy.wide p{font-size:16px;line-height:1.5;max-width:590px;margin-top:16px}
 .hero-actions{flex-direction:row;gap:14px;margin-top:22px}
 .hero-actions .button{font-size:14px;padding:10px 20px;min-height:42px}
 .hero-photo{object-position:center}
 .hero-dots{bottom:18px}
 .section{padding:36px 28px}.section-title{padding:0 28px}
 h2{font-size:30px;margin-top:18px}
 .inside-grid{gap:20px;margin-top:26px}
 .inside-card{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);border-radius:24px}
 .inside-photo{height:100%;min-height:280px;aspect-ratio:auto}
 .inside-copy{padding:24px}.inside-copy h3{font-size:23px}.inside-copy p{font-size:16px;line-height:1.55}
 .icon-row{left:6%;right:6%}.icon-row span:not(.svg){font-size:9px}
 .selection-track{padding-top:26px}
 .selection-card{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);padding:24px;gap:24px}
 .selection-copy>h3{font-size:25px}.selection-copy>p{font-size:16px;line-height:1.5;margin-top:10px}
 .pills{gap:8px;margin-top:18px}.pills>span{font-size:11px;padding:6px 9px}
 .feature-grid{grid-template-columns:minmax(0,1fr);gap:16px;margin:22px 0}
 .feature{gap:12px}.feature>.svg{width:40px!important;height:40px!important}
 .feature h4{font-size:19px}.feature p{font-size:14px;line-height:1.45}
 .selection-copy>.button{font-size:13px;padding:12px}
 .selection-photos{grid-template-columns:minmax(0,1fr);gap:18px}
 .selection-photos figure{aspect-ratio:auto;min-height:260px;border-radius:18px}
 .selection-photos figcaption{padding:16px;min-height:0}.selection-photos h4{font-size:19px}.selection-photos p{font-size:14px}
 .standards-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:26px}
 .standards-grid article{aspect-ratio:auto;min-height:230px}
 .standards-grid article>div{left:20px;right:20px;bottom:20px}
 .standards-grid h3{font-size:22px}.standards-grid p{font-size:14px;line-height:1.45}
 .terrace-intro{font-size:17px;max-width:650px}
 .terrace-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .terrace-grid article,.terrace-grid article:last-child{grid-column:auto;min-height:210px;padding:24px}
 .terrace-grid h3{font-size:22px}.terrace-grid p{font-size:16px}
 footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:36px 28px;gap:28px;font-size:16px}
 .footer-brand,.footer-bottom{grid-column:1/-1}.footer-column:last-of-type{grid-column:auto}
 .footer-brand>p{max-width:560px}.footer-bottom{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:20px}
}

/* One clipping surface for each card; captions stay inside the photo's edge. */
.inside-card,.selection-photos figure,.standards-grid article{isolation:isolate}
.inside-photo>img,.inside-photo>picture>img{display:block;position:absolute;inset:0}
.selection-photos figure>img,.selection-photos figure>picture>img,
.standards-grid article>img,.standards-grid article>picture>img{display:block;inset:0}
.selection-photos figcaption{border-bottom-left-radius:0;border-bottom-right-radius:0}
@media(max-width:767px) and (orientation:portrait){
 /* The exported photos have 40px corners at 362px wide. Match that curve. */
 .inside-card{--photo-corner:calc((100vw - 40px) * 40 / 362);border-radius:var(--photo-corner);background:transparent}
 .inside-photo{overflow:hidden;border-radius:var(--photo-corner) var(--photo-corner) 0 0;background:linear-gradient(to bottom,transparent 50%,var(--green) 50%)}
 .inside-copy{background:var(--green)}
 /* Preserve the supplied 40px standards corners and 25px selection corners. */
 .standards-grid article{border-radius:calc((100vw - 40px) * 40 / 362)}
 .selection-photos figure{border-radius:calc((100vw - 96px) * 25 / 285)}
 .selection-photos figcaption{border-top-left-radius:inherit;border-top-right-radius:inherit}
}

.hero{touch-action:pan-y pinch-zoom}
