/* Requested first-screen copy offset; the illustration stays in place. */
.hero .hero-content{transform:translateY(clamp(28px,5svh,56px))}

/* Portrait phones: readable vertical flow, with the reconstruction branch intact. */
@media(max-width:760px) and (orientation:portrait){
  html #orchestration{padding-top:112px;padding-bottom:40px;min-height:100svh}
  html #orchestration .combo-heading{margin-bottom:22px}
  html #orchestration .combo-heading h2{font-size:26px;line-height:1.45}
  html #orchestration .combo-heading p{font-size:13px;line-height:1.8}
  html #orchestration .combo-demo-controls{margin-top:14px}
  html #orchestration .combo-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:12px;overflow:visible}
  html #orchestration .combo-catalog-item{min-width:0;gap:6px;padding:8px 3px}
  html #orchestration .combo-catalog-item svg{width:17px;height:17px}
  html #orchestration .combo-catalog-item strong{font-size:11px;line-height:1.5}
  html #orchestration .combo-catalog-item span{display:none}
  html #orchestration .combo-graph-area{padding:18px 12px 54px;align-items:flex-start}
  html #orchestration .combo-viewport{overflow:hidden}
  html #orchestration .combo-surface{margin:0 auto}
  html #orchestration .combo-stage{width:360px;height:670px}
  html #orchestration .combo-connections{width:360px;height:670px}
  html #orchestration .combo-node{height:90px;padding:10px;cursor:default;touch-action:pan-y}
  html #orchestration .combo-node-title{gap:6px;padding-right:0;min-height:20px}
  html #orchestration .combo-node-title h3{font-size:15px;line-height:1.3}
  html #orchestration .combo-node-title>svg{width:18px;height:18px}
  html #orchestration .combo-model{font-size:10px;line-height:1.6;margin-top:3px}
  html #orchestration .combo-node-output{font-size:9px;line-height:1.6;padding-top:5px;margin-top:5px}
  html #orchestration .combo-node-output.formats{font-size:9px}
  html #orchestration .combo-grip{display:none}
  html #orchestration .combo-branch-caption{display:none}
  html #orchestration .combo-build-status{left:18px;right:18px;bottom:17px;font-size:11px}
}

/* Phone-only presentation. Landscape keeps the approved layout. */
@media(max-width:760px) and (orientation:portrait){
  html{scroll-snap-type:none;scroll-padding-top:142px}
  main>section,main>.closing-screen{scroll-snap-align:none;scroll-snap-stop:normal}
  html main>.section:not(#pipeline),html #pipeline,html #orchestration{height:auto;min-height:0;padding-top:148px!important;padding-bottom:40px!important;justify-content:flex-start}
  html .section-heading{margin-bottom:22px}
  html main>.section .heading-row h2{font-size:clamp(24px,7vw,30px);line-height:1.35}
  html .site-header{gap:12px;padding:10px 14px}
  html .site-header .brand{min-width:0;flex:1;gap:10px}
  html .site-header .brand>span{font-size:9px;line-height:1.5;max-width:82px}
  html .site-header .language-switch{flex-shrink:0;margin-left:0;font-size:10px}
  html .site-header .language-switch button{min-width:25px;min-height:40px;padding:0 3px;font-size:10px}
  html .menu-toggle{min-width:40px;min-height:44px;padding:6px}
  html .tfair-theme-picker{top:90px;right:4%}
  html .tfair-theme-trigger{min-height:36px}
  html .hero .hero-content{padding:190px 6% 80px;transform:none}
  html .hero h1{font-size:clamp(28px,8vw,38px);line-height:1.3}
  html .hero-content>p{font-size:13px;line-height:1.85;margin-top:24px}
  html .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px;max-width:420px}
  html .hero-actions>a{justify-content:center;min-height:48px;padding:12px 8px;font-size:12px;gap:8px}
  html .hero-actions>.primary{grid-column:1/-1}
  html #pipeline .pipeline-body{grid-template-rows:auto auto auto}
  html #pipeline .stage-detail{padding:22px 18px}
  html #pipeline .stage-navigation{height:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;padding:15px 12px;overflow:visible}
  html #pipeline .stage-navigation:before{display:none}
  html #pipeline .stage-navigation button{min-width:0;min-height:94px;padding:10px 4px;gap:6px;font-size:12px;border:1px solid var(--line);border-radius:5px}
  html #pipeline .stage-navigation button:before{width:12px;height:12px;box-shadow:none!important;flex-shrink:0}
  html #pipeline .stage-navigation button.active{background:var(--theme-tint)}
  html #pipeline .stage-navigation .module-tools{max-width:100%;font-size:8px;padding:2px 3px;white-space:normal;line-height:1.5;text-align:center}
  html #orchestration .combo-library{gap:8px 3px}
  html #orchestration .combo-catalog-item{min-height:44px}
  html #delivery .deployment-grid{gap:24px}
  html #delivery .workcell.delivery-gallery{height:auto!important;aspect-ratio:1;min-height:0}
  html #delivery .delivery-flow:before{opacity:.12}
  html #delivery .delivery-flow .flow-step{opacity:1}
  html #delivery .visual-caption{min-height:56px;padding:10px 13px;flex-wrap:nowrap;gap:8px}
  html #delivery .delivery-scene-title{flex:1;font-size:10px;letter-spacing:0}
  html #delivery .delivery-pagination{flex:none}
  html #delivery .delivery-pagination button{width:26px;height:34px}
  html #delivery .delivery-pagination button:after{top:14px;left:10px}
  html #delivery .deployment-step{padding:17px 0}
  html #delivery .deployment-step h3{font-size:18px}
  html #delivery .deployment-step p{font-size:13px;line-height:1.8}
  html #capture .capture-tabs{margin-bottom:18px}
  html #capture .capture-tabs button{min-height:70px;padding:12px 10px;font-size:17px}
  html #capture .capture-tabs button span{font-size:11px;line-height:1.5;margin-top:4px}
  html #capture .capture-display{gap:22px;padding-bottom:24px}
  html #capture .capture-art{height:240px;min-height:0}
  html #capture .capture-art:has(.espace-showcase){height:280px}
  html #capture .espace-mobile img{height:176px}
  html #capture .capture-copy{padding:0}
  html #capture .capture-copy h3{font-size:28px;line-height:1.3;margin:12px 0 16px}
  html #capture .capture-copy>p{font-size:14px;line-height:1.8;margin:0 0 20px}
  html #capture .capture-copy .text-link{margin-top:0;min-height:44px}
  html #capture .capture-sdk{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px;align-items:start;text-align:left;margin-top:0;padding-top:24px}
  html #capture .capture-sdk .sdk-icon{font-size:26px;line-height:1.1}
  html #capture .capture-sdk h3{font-size:19px;margin-bottom:8px}
  html #capture .capture-sdk p{font-size:12px;line-height:1.7}
  html #capture .capture-sdk button{grid-column:2;justify-self:start;min-height:44px;padding:10px 15px;margin:0}
  html .engagement .engagement-grid{gap:28px}
  html .engagement .partners{margin-top:36px}
  html .closing-screen{min-height:100svh;height:auto}
  html .closing-screen>.contact.section{padding-top:150px;padding-bottom:48px;min-height:0}
}
