/* Compact layouts share reserved scene areas instead of device-specific pixel offsets. */
.hero-visual-slot{display:none}
@media(max-width:1100px){
  :root{--gutter:clamp(20px,5.5vw,40px);--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--dock-clearance:calc(88px + var(--safe-bottom))}
  html{scroll-padding-top:20px}
  body{background:#050608}
  .masthead{padding:calc(16px + var(--safe-top)) max(var(--gutter),env(safe-area-inset-right,0px)) 0 max(var(--gutter),env(safe-area-inset-left,0px));gap:16px}
  .brand{font-size:24px;letter-spacing:-1.3px}.mast-location{display:none}
  .top-contact{min-height:44px;display:inline-flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap;padding:8px 0}.top-contact span{margin:0}
  .upright-hero.chapter.garden{height:230svh;min-height:calc(var(--hero-stage-height,100svh) + 100svh)}
  .upright-hero .stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(140px,1fr) auto;gap:8px;height:auto;min-height:100svh;padding:calc(80px + var(--safe-top)) var(--gutter) var(--dock-clearance)}
  .upright-hero .garden-copy{position:relative;grid-row:1;top:auto;left:auto;width:100%;max-width:620px;transform:none!important;align-self:start;opacity:1!important}
  .upright-hero .garden-copy .eyebrow{font-size:12px;line-height:1.5;letter-spacing:1px;max-width:none;margin:0 0 14px}
  .upright-hero h1{font-size:clamp(3.5rem,18vw,6.75rem);line-height:.86;margin:0 0 20px;letter-spacing:-.055em}
  .upright-hero h1 em{margin-left:6vw;letter-spacing:-.055em}
  .upright-hero .hero-sub{font-size:1rem;line-height:1.55;margin:0;max-width:none}
  .hero-visual-slot{display:block;position:relative;grid-row:2;width:100%;min-height:140px;pointer-events:none}
  .upright-hero .scene-bottom{position:relative;grid-row:3;left:auto;right:auto;bottom:auto;min-height:44px;justify-content:flex-start}
  .upright-hero .scene-bottom>span{display:none}
  .upright-hero .scroll-invite{position:relative;left:auto;transform:none;flex-direction:row;gap:12px;min-height:44px;font-size:12px;letter-spacing:1px;padding:8px 0}
  .upright-hero .scroll-invite span{font-size:20px}
  .upright-hero .chapter-caption{display:none}
  .upright-hero .garden-image{background-position:62% center}
  .hero-core-canvas{contain:strict}
  .chapter.red.tech-chapter{height:auto;min-height:0}
  .tech-chapter .stage{position:relative;height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);padding:64px var(--gutter) 56px;gap:0}
  .tech-chapter .red-copy,.tech-chapter .red-second{position:relative;top:auto;left:auto;width:100%;max-width:680px;opacity:1!important;transform:none!important;pointer-events:auto}
  .tech-chapter .red-copy{grid-row:1}
  .tech-chapter h2,.system h2{font-size:clamp(2.5rem,10.6vw,4.5rem);line-height:1.04;margin:0 0 20px;letter-spacing:-.045em}
  .tech-chapter h2 em{white-space:normal;overflow-wrap:anywhere}
  .tech-chapter .eyebrow,.system .eyebrow,.offers .eyebrow,.contact .eyebrow{font-size:12px;line-height:1.6;letter-spacing:1px;margin-bottom:16px}
  .tech-chapter .chapter-description,.tech-chapter .red-second>p:last-child,.system .chapter-description{font-size:1rem;line-height:1.65;max-width:560px;margin:0}
  .neural-network{position:relative;grid-row:2;left:auto;right:auto;top:auto;width:100%;height:clamp(190px,43svh,380px);margin:16px 0 28px;opacity:1}
  .tech-chapter .network-label{position:relative;grid-row:3;top:auto;right:auto;font-size:12px;line-height:1.5;letter-spacing:.6px;margin:0 0 24px;overflow-wrap:anywhere}
  .tech-chapter .red-second{grid-row:4;margin:0 0 28px}
  .tech-chapter .red-second h2{font-size:clamp(2.25rem,9.5vw,4rem)}
  .workflow-demo{position:relative;grid-row:5;bottom:auto;left:auto;right:auto;width:100%;min-width:0;backdrop-filter:none;background:#101114}
  .workflow-caption{flex-wrap:wrap;gap:6px 16px;padding:16px;font-size:12px;line-height:1.5}.workflow-caption>span{font-size:12px}
  .workflow-demo ol{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workflow-demo li{padding:18px 14px;min-width:0;border-bottom:1px solid #ffffff15}.workflow-demo li:nth-child(2n){border-right:0}.workflow-demo li:nth-last-child(-n+2){border-bottom:0}
  .workflow-demo li>span{font-size:12px;line-height:1.5;margin-bottom:10px}.workflow-demo strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.workflow-demo small{font-size:13px;line-height:1.5;display:block}
  .tech-chapter .chapter-caption{position:relative;grid-row:6;left:auto;bottom:auto;margin-top:24px;font-size:12px;line-height:1.5}
  .chapter.system{height:auto;min-height:0}
  .system .stage{position:relative;height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);padding:56px var(--gutter) 64px}
  .system .system-copy{display:contents}
  .system-copy>.eyebrow{grid-row:1}.system-copy>h2{grid-row:2}.system-copy>.chapter-description{grid-row:3}
  .system .sculpture{position:relative;grid-row:4;top:auto;right:auto;left:auto;width:100%;height:clamp(260px,70vw,430px);min-width:0;margin:12px 0;opacity:1;touch-action:pan-y}
  .system .core-caption{position:relative;grid-row:4;top:auto;right:auto;justify-self:end;align-self:start;text-align:right;font-size:12px;margin-top:24px;max-width:65%;pointer-events:none;z-index:2}
  .system .core-caption span{font-size:12px;line-height:1.5;letter-spacing:.4px}
  .system .edit-scene{position:relative;grid-row:5;top:auto;bottom:auto;right:auto;justify-self:end;max-width:100%;min-height:48px;padding:12px 16px;font-size:14px;backdrop-filter:none}
  .system .rotate-hint{display:none!important}
  .system .services{grid-row:6;width:100%;max-width:none;margin:28px 0 0}
  .system .service{font-size:1rem;line-height:1.4;min-height:56px;max-width:none;padding:16px 4px;gap:14px}
  .system .service>span:first-child{font-size:12px}.system .service>span:last-child{font-size:18px}
  .system-copy .service-description{grid-row:7;max-width:none;width:100%;font-size:14px;line-height:1.6;min-height:3.2em;margin:18px 0 0}
  .system .chapter-caption{position:relative;grid-row:8;left:auto;bottom:auto;display:block;margin-top:30px;font-size:12px;line-height:1.5}
  .offers{padding:56px var(--gutter)}.offers .section-top>span{display:none}
  .offers h2{font-size:clamp(2.5rem,10.5vw,4.5rem);line-height:1.05;letter-spacing:-.05em;margin:24px 0 32px}
  .offers .offer-list{grid-template-columns:minmax(0,1fr);gap:18px}
  .offers .offer-list details{min-width:0;transform:none!important}
  .offers summary{padding:24px;gap:18px;grid-template-columns:minmax(0,1fr) 28px}
  .offers .offer-name{font-size:28px;line-height:1.15;letter-spacing:-.7px}.offers .offer-name small{font-size:14px;line-height:1.6;max-width:none;min-height:0;margin-top:12px}
  .offers .price{font-size:24px;line-height:1.25}.offers .price small{font-size:14px;line-height:1.5}
  .offers .offer-body{padding:0 24px 28px;font-size:1rem;line-height:1.65;gap:20px}.offers .offer-body p{max-width:none}.offers .offer-body .fine{font-size:14px}
  .offers .text-link{font-size:1rem;line-height:1.5;min-height:44px;display:inline-flex;align-items:center;padding:8px 0}
  .offers .pricing-note{font-size:13px;line-height:1.7;margin:24px 0 0}
  .offers .process{margin-top:56px;padding-top:28px}.process ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;margin-top:28px}.offers .process li{font-size:22px;line-height:1.25;overflow-wrap:anywhere}.offers .process li small{font-size:14px;line-height:1.6;max-width:none}.process li span{font-size:12px}
  .contact{min-height:0;padding:64px var(--gutter) 0}.contact h2{font-size:clamp(2.75rem,12vw,5rem);line-height:1.06;margin:28px 0}.contact>p:not(.eyebrow){font-size:1rem;line-height:1.65}
  .contact .contact-cta{font-size:14px;line-height:1.5;min-height:52px;max-width:100%;padding:16px 20px;gap:20px;text-align:left}
  .contact .contact-details{flex-direction:column;align-items:center;gap:8px;font-size:14px;line-height:1.6}.contact-details a{min-height:44px;max-width:100%;overflow-wrap:anywhere;display:flex;align-items:center;padding:6px 0}
  .contact footer{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;margin-top:44px;padding:24px 0 calc(var(--dock-clearance) + 20px);font-size:12px;line-height:1.6}
  footer>span:nth-child(2){order:0;width:auto}footer div{flex-wrap:wrap;gap:4px 20px}footer a{display:inline-flex;align-items:center;min-height:44px}
  .dock{width:calc(100% - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));max-width:430px;bottom:calc(12px + var(--safe-bottom));padding:6px;gap:8px;box-shadow:0 8px 30px #0005}
  .dock-progress{display:none}.dock-brand{width:44px;height:44px;flex:0 0 44px;font-size:34px}.dock .menu-toggle{width:48px;height:48px;flex:0 0 48px}.dock-cta{flex:1;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;font-size:14px;padding:12px;gap:12px}.dock-cta span{margin:0}
  .menu-dialog{width:min(620px,calc(100% - 24px));max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);padding:20px 24px 24px;overflow-y:auto;overscroll-behavior:contain}
  .dialog-close{position:sticky;float:right;top:0;right:auto;width:44px;height:44px;margin:0 -8px 8px 8px;z-index:3;background:#f5f5f7;font-size:28px}
  .menu-dialog>.eyebrow{padding-top:14px;font-size:12px}.menu-dialog nav{clear:both;margin:24px 0}.menu-dialog nav a{min-height:56px;font-size:clamp(1.5rem,6vw,2rem);line-height:1.2;padding:16px 0;gap:16px;overflow-wrap:anywhere}.menu-dialog nav small{font-size:12px}.menu-dialog>span{font-size:14px;line-height:1.5}
  html:has(#menu-dialog[open]){overflow:hidden}
  .editor{inset:auto 12px calc(var(--dock-clearance) - 2px);width:auto;max-width:520px;max-height:min(65dvh,calc(100dvh - var(--safe-top) - var(--dock-clearance) - 16px));margin:0 auto;padding:20px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .editor .dialog-close{background:#17181c}.editor .eyebrow{font-size:12px;padding-top:12px;margin-bottom:14px}.editor h2{clear:both;font-size:32px;line-height:1.02;margin-bottom:24px}
  .editor label{font-size:1rem;line-height:1.4;min-height:44px;margin:12px 0;gap:12px;flex-wrap:wrap}
  .editor input[type=range]{width:min(55%,240px);height:44px;min-width:130px}.editor input[type=color]{width:52px;height:44px}.editor select{font-size:1rem;min-height:44px;max-width:60%;padding:8px}.editor .check input{width:24px;height:24px;flex:none}.editor .fine{font-size:13px;line-height:1.6}.editor-actions button{font-size:14px;min-height:48px;padding:14px}
  .scroll-reveal{transform:none;transition:opacity .5s}.offers details.scroll-reveal{transition:opacity .5s}
}
@media(min-width:700px) and (max-width:1100px){
  .offers .offer-list{grid-template-columns:repeat(2,minmax(0,1fr))}.offers .offer-list details:last-child{grid-column:1/-1}.offers .offer-list details:last-child .offer-body{max-width:760px}
  .workflow-demo ol{grid-template-columns:repeat(4,minmax(0,1fr))}.workflow-demo li{border-bottom:0}.workflow-demo li:nth-child(2){border-right:1px solid #ffffff15}
}
@media(max-width:1100px) and (orientation:landscape){
  .upright-hero .stage{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr auto;column-gap:24px;padding-top:calc(76px + var(--safe-top))}
  .upright-hero .garden-copy{grid-column:1;grid-row:1;align-self:center}.hero-visual-slot{grid-column:2;grid-row:1/3;min-height:180px}.upright-hero .scene-bottom{grid-column:1;grid-row:2}.upright-hero h1{font-size:clamp(2.75rem,8vw,5.5rem)}
  .upright-hero h1 em{margin-left:3vw}.upright-hero .hero-sub{font-size:1rem}.upright-hero .garden-copy .eyebrow{font-size:12px}
}
@media(max-width:1100px) and (max-height:500px){
  .upright-hero .stage{padding-top:64px;grid-template-rows:1fr auto}.upright-hero .garden-copy .eyebrow{display:none}.upright-hero h1{font-size:clamp(2.5rem,8vw,4.25rem);margin-bottom:12px}.hero-visual-slot{min-height:140px}.upright-hero .hero-sub{font-size:14px;line-height:1.45}.upright-hero .scene-bottom{min-height:40px}.dock{bottom:calc(8px + var(--safe-bottom))}.menu-dialog nav{margin:12px 0}.menu-dialog nav a{padding:10px 0;min-height:48px}.editor{max-height:calc(100dvh - var(--dock-clearance) - 12px)}
}
@media(max-width:359px){
  .brand{font-size:21px}.top-contact{font-size:13px}.masthead{gap:10px}.workflow-demo ol,.process ol{grid-template-columns:minmax(0,1fr)}.workflow-demo li{border-right:0;border-bottom:1px solid #ffffff15!important}.workflow-demo li:last-child{border-bottom:0!important}.offers summary{padding:20px}.offers .offer-body{padding:0 20px 24px}.editor select{max-width:100%}
}
@media(max-width:1100px) and (prefers-reduced-motion:reduce){
  .upright-hero.chapter.garden{height:auto!important;min-height:0}.upright-hero .stage{position:relative}.hero-visual-slot{min-height:250px}.tech-chapter .red-copy,.tech-chapter .red-second{opacity:1!important;transform:none!important}.tech-chapter .stage{min-height:0}.system .stage{min-height:0}.system .services{margin-top:28px}.scroll-reveal{opacity:1}
}
@media(max-width:1100px){
  .system .sculpture{touch-action:pan-y pinch-zoom}
  .system .rotate-hint{display:block!important;position:relative;grid-row:5;top:auto;right:auto;bottom:auto;justify-self:start;align-self:center;max-width:100%;margin:0 0 12px;font-size:12px;line-height:1.5;letter-spacing:0;text-transform:none}
  .system .rotate-hint[hidden]{display:none!important}
  .system .edit-scene{grid-row:6}.system .services{grid-row:7}.system-copy .service-description{grid-row:8}.system .chapter-caption{grid-row:9}
}
@media(max-width:1100px){
  :root{--page-left:max(var(--gutter),calc(env(safe-area-inset-left,0px) + 12px));--page-right:max(var(--gutter),calc(env(safe-area-inset-right,0px) + 12px))}
  .upright-hero .stage,.tech-chapter .stage,.system .stage,.offers,.contact,.masthead{padding-left:var(--page-left);padding-right:var(--page-right)}
}
@media(max-width:1100px) and (max-height:700px) and (orientation:portrait){
  .upright-hero .stage{padding-top:calc(72px + var(--safe-top));grid-template-rows:auto minmax(180px,1fr);gap:12px}
  .upright-hero .garden-copy .eyebrow,.upright-hero .scene-bottom{display:none}
  .hero-visual-slot{min-height:180px}
}

@media(max-width:1100px){
  .tech-chapter .red-copy{width:100%;top:auto;max-width:680px}
  .tech-chapter .red-copy h2{font-size:clamp(2.5rem,10.6vw,4.5rem);line-height:1.04;letter-spacing:-.045em}
  .tech-chapter .chapter-description{max-width:560px}
  .tech-chapter .workflow-demo{grid-row:4}
  .tech-chapter .chapter-caption{grid-row:5}
  .workflow-demo ol{grid-template-columns:minmax(0,1fr)}
  .workflow-demo li{padding:22px;border-right:0;border-bottom:1px solid #ffffff15!important}
  .workflow-demo li:last-child{border-bottom:0!important}
  .workflow-demo strong{font-size:1rem}.workflow-demo small{font-size:14px;max-width:none}
}
@media(min-width:700px) and (max-width:1100px){
  .workflow-demo ol{grid-template-columns:repeat(3,minmax(0,1fr))}
  .workflow-demo li{padding:20px 16px;border-bottom:0!important;border-right:1px solid #ffffff15}
  .workflow-demo li:nth-child(2){border-right:1px solid #ffffff15}.workflow-demo li:last-child{border-right:0}
}
