/* Compact portrait tour. Desktop keeps the original full-height spatial layout. */
:root{
  --phone-header:56px;
  --phone-scene:clamp(182px,32svh,280px);
  --phone-ground:#191e18;
  --phone-panel:#222a20;
  --phone-gold:#f0db9c;
}
.studio-bar{height:var(--phone-header);gap:6px;padding-inline:12px}
.studio-logo{min-width:max-content}
.studio-logo b{font-size:26px}
.studio-nav{gap:2px;font-size:clamp(11px,3.3vw,14px);white-space:nowrap}
.studio-nav a{min-width:0;padding-inline:5px}
.studio-nav a[aria-current]::after{inset-inline:5px;height:2px}
#help-open{width:44px;height:44px;border-color:transparent}
#help-open:hover,#help-open:focus-visible{border-color:#dfd5ad}
.office-enhanced .office-world{top:var(--phone-header);background:var(--phone-ground)}
.scene-surface,.office-pins{height:var(--phone-scene)}
.office-world::after{
  inset:calc(var(--phone-scene) - 34px) 0 auto;height:35px;z-index:2;
  background:linear-gradient(180deg,transparent,var(--phone-ground));
}
.look-dial{top:11px;left:12px}
.look-dial button{width:44px;height:44px}
.station{
  min-height:100svh;align-items:start;
  padding:calc(var(--phone-header) + var(--phone-scene) - 12px) 16px 24px;
  background-position:center var(--phone-header);background-size:auto var(--phone-scene);
}
.station+.station{margin-top:20svh}
.office-enhanced .station::before,.office-enhanced .station:is(.room-station,.final-station)::before{
  inset:calc(var(--phone-header) + var(--phone-scene) - 28px) 0 0;
  background:linear-gradient(180deg,transparent,var(--phone-ground) 29px);
  mask-image:none;
}
.station-copy,.entrance .station-copy{
  width:min(100%,520px);justify-self:center;padding:18px 16px 16px;
  color:#fffaf0;background:var(--phone-panel);border:1px solid #daca9d48;border-radius:12px;
}
.station .room-sign{margin-bottom:9px;color:var(--phone-gold)}
.station h1,.station h2,.final-station h2{
  font-size:clamp(30px,9.3vw,47px);line-height:1.08;letter-spacing:-.038em;
}
.station h1 em,.station h2 em{display:inline;line-height:1.15}
.station .purpose,.final-station .purpose{font-size:16px;line-height:1.56;margin-top:8px;text-shadow:none}
.entrance-actions{flex-wrap:wrap;gap:7px 15px;margin-top:14px}
.entrance-actions a,.project-exits .next-room{min-height:44px}
.station .travel-hint{font-size:13px}
.project-gallery-open{width:100%;min-height:48px;justify-content:center;gap:9px;border-radius:6px;margin-top:13px}
.project-gallery-open+.project-list,.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:11px;border:0}
.project-list a{
  min-width:0;min-height:104px;display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:4px;
  padding:6px 7px 8px;background:#2c3529;border:1px solid #dfd1a343;border-radius:7px;
}
.project-list a::before{
  content:"";display:block;width:100%;aspect-ratio:2.15;min-height:42px;margin-bottom:3px;
  background:#e9e5d7 var(--project-thumb) center/contain no-repeat;border-radius:4px;
}
.project-list a::after{content:none}
.project-list a[data-project=myshift]{--project-thumb:url("assets/projects/mobile/myshift.webp")}
.project-list a[data-project=gearguard]{--project-thumb:url("assets/projects/mobile/gearguard.webp")}
.project-list a[data-project=bookeasy]{--project-thumb:url("assets/projects/mobile/bookeasy.webp")}
.project-list a[data-project=etz-umlo]{--project-thumb:url("assets/projects/mobile/etz-umlo.webp")}
.project-list a[data-project=shuon]{--project-thumb:url("assets/projects/mobile/shuon.webp")}
.project-list strong{align-self:start;font-size:clamp(15px,4.5vw,20px);line-height:1.18;letter-spacing:-.025em;color:#fffaf0}
.project-list a span{font-size:13px;color:#eae2ce;line-height:1.23}
.project-exits{gap:8px;flex-wrap:wrap}
.project-exits .next-room{font-size:13px}
.project-gallery-scroll,.project-about{
  overscroll-behavior:contain;
  padding-bottom:max(24px,env(safe-area-inset-bottom));
}
.project-gallery-bar,.project-mast{padding-top:max(11px,env(safe-area-inset-top))}
.project-gallery-bar button,#project-close,.project-case-picker button,#project-case-open{min-height:44px}
.project-case-screen{padding:8px}
@media(max-width:350px){
  .studio-bar{padding-inline:7px;gap:3px}
  .studio-logo b{font-size:23px}
  .studio-nav a{padding-inline:4px}
  #help-open{width:40px}
  .station{padding-inline:10px}
  .station-copy,.entrance .station-copy{padding-inline:12px}
}
/* Avoid platform-specific arrow glyphs in compact labels. */
.project-gallery-open span{display:none}
.project-wall-open span{font-size:0}
.project-wall-open span::after{content:"ללוח הגדול";font-size:12px}

/* Let the phone use its whole width rather than shrinking the desktop. */
:root{--phone-header:98px;--phone-scene:clamp(140px,25svh,230px)}
.studio-bar{display:grid;grid-template-columns:minmax(0,1fr) 46px;grid-template-rows:49px 49px;gap:0;padding-inline:12px}
.studio-logo{grid-column:1;grid-row:1;margin:0;justify-self:start}
.studio-logo b{font-size:30px}
#help-open{grid-column:2;grid-row:1;justify-self:end;width:44px;height:44px;font-size:20px}
.studio-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;font-size:15px}
.studio-nav a{padding-inline:2px;min-height:46px}
.station{padding-inline:10px}
.station-copy,.entrance .station-copy{padding:18px 13px 16px}
.station .room-sign{font-size:14px}
.station h1,.station h2,.final-station h2{font-size:clamp(35px,10.3vw,52px)}
.station .purpose,.final-station .purpose{font-size:18px;line-height:1.5}
.solid-link,.text-link,.next-room,.project-exits .next-room{font-size:16px}
.entrance-actions .solid-link,.project-gallery-open{min-height:50px}
.exhibit-list button{min-height:54px}
.exhibit-list b,.exhibit-list span{font-size:16px}
.project-gallery-open{font-size:17px}
.project-gallery-open+.project-list,.project-list{grid-template-columns:minmax(0,1fr);gap:12px}
.project-list a{padding:8px 10px 11px;gap:5px}
.project-list a::before{aspect-ratio:2.05}
.project-list strong{font-size:23px}
.project-list a span{font-size:16px}
.project-exits .next-room{min-height:48px}
.project-gallery-card-copy p,.project-gallery-action{font-size:15px}
.project-case .project-case-kicker,.project-case-picker button{font-size:15px}
#project-case-intro{font-size:18px}
#studio-contact{margin-top:14px;padding:12px;gap:10px}
#studio-contact .contact-fields{grid-template-columns:minmax(0,1fr);gap:10px}
#studio-contact label:not(.field-trap){font-size:16px}
#studio-contact input:not([type=hidden]):not([tabindex]){height:48px}
#studio-contact .solid-link{width:100%;min-height:50px;font-size:17px}
#studio-contact .contact-note{font-size:13px}

/* A portrait walk through the same office, with room copy floating in front. */
:root{
  --phone-header:92px;
  --phone-scene:calc(100svh - var(--phone-header));
  --phone-copy-top:clamp(calc(var(--phone-header) + 138px), 52svh, 490px);
}
.studio-bar{grid-template-rows:46px 46px;background:#191e18ed}
.office-enhanced .office-world{bottom:0}
.scene-surface,.office-pins{height:var(--phone-scene)}
.scene-surface{overflow:hidden}
.office-world::after{
  inset:auto 0 0;height:29%;
  background:linear-gradient(180deg,transparent,#11160f94);
}
.station{padding-top:var(--phone-copy-top);padding-bottom:38px;background-size:auto var(--phone-scene)}
.station+.station{margin-top:35svh}
.office-enhanced .station::before,.office-enhanced .station:is(.room-station,.final-station)::before{
  inset:calc(var(--phone-copy-top) - 70px) 0 0;
  background:linear-gradient(180deg,transparent 0,#11170f52 96px,#11170f5c 100%);
}
.station-copy,.entrance .station-copy{
  padding:20px 15px 17px;
  background:linear-gradient(155deg,#171f17e8,#1b2418cd);
  border-color:#e3d3a86e;
  box-shadow:0 7px 24px #080d08a0,inset 0 1px #fff1bc12;
}
.station .room-sign{letter-spacing:.015em}
.station .purpose,.final-station .purpose{color:#fff9ed}
.project-list a{background:#273325eb}
#studio-contact{background:#1c261ade}
.walk-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;pointer-events:none}
.poster-walking .office-poster img{transform:translateX(var(--walk-away-x,0%)) scale(var(--walk-away,1));transform-origin:center}
.poster-walking .walk-poster{opacity:var(--walk-blend,0);transform:translateX(var(--walk-arrive-x,0%)) scale(var(--walk-arrive,1));transform-origin:center}
@media(prefers-reduced-motion:reduce){
  .walk-poster{display:none}
  .poster-walking .office-poster img{transform:none}
}
.office-world[data-room=projects][data-mode=still] .office-poster img{object-position:28% 50%}
.entrance-actions .solid-link span{display:none}
