/* Tablet + mobile polish for the public TBO site */

/* Default login label */
.public-site .portal-login-short{display:none}
.public-site .portal-login-full{display:inline}

/* ---------- Tablet (≤1100) ---------- */
@media (max-width:1100px){
  body.public-site .web-nav{
    padding-left:4%!important;
    padding-right:4%!important;
    gap:14px;
  }
  body.public-site .web-logo{
    width:110px!important;
  }
  body.public-site .web-logo img{
    height:60px!important;
  }
  .public-site .web-links{
    gap:16px;
    font-size:9px;
  }
  .tbo-brand-story{
    padding:36px 5% 56px;
  }
  .tbo-principles{
    gap:16px;
  }
  .tbo-principles article{
    padding:28px 22px 34px;
  }
  .tbo-soft-icons{
    gap:8px;
    margin:2px 0 24px;
    max-width:100%;
  }
  .tbo-soft-icons span{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
  .public-site .web-section{
    padding-left:5%;
    padding-right:5%;
  }
  .cinema-gallery-card{
    flex-basis:46vw;
  }
}

/* ---------- Compact tablet / large phone (≤900) ---------- */
@media (max-width:900px){
  .public-site .web-service-grid{
    grid-template-columns:1fr!important;
    gap:18px;
  }
  .public-site .web-service{
    display:grid!important;
    grid-template-columns:1.05fr .95fr;
    align-items:stretch;
    gap:0;
  }
  .public-site .web-service>div{
    padding:24px 22px!important;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .public-site .web-service>img{
    height:100%!important;
    min-height:260px;
    margin:0!important;
    border-radius:0 24px 24px 0;
  }
  .public-site .web-service:nth-child(even){
    direction:rtl;
  }
  .public-site .web-service:nth-child(even)>*{
    direction:ltr;
  }
  .public-site .web-service:nth-child(even)>img{
    border-radius:24px 0 0 24px;
  }
  .tbo-booking-actions{
    grid-template-columns:1fr!important;
    gap:12px!important;
    max-width:520px;
    margin-left:auto;
    margin-right:auto;
  }
  .tbo-principles{
    grid-template-columns:1fr!important;
    max-width:560px;
  }
  .tbo-booking-actions{
    max-width:520px;
  }
  .original-film-grid{
    grid-template-columns:1fr!important;
    gap:22px;
  }
  .original-film-card:nth-child(2){
    margin-top:0!important;
  }
  .web-process{
    grid-template-columns:1fr 1fr!important;
  }
  .web-faq{
    grid-template-columns:1fr!important;
    gap:18px!important;
  }
  .public-site .web-founder{
    grid-template-columns:1fr!important;
    gap:28px!important;
    padding:42px 6%!important;
  }
  .web-founder-image{
    max-width:420px;
    margin:0 auto;
  }
  .web-founder-image img{
    height:420px!important;
  }
}

/* ---------- Phone / small tablet (≤780) ---------- */
@media (max-width:780px){
  body.public-site .web-nav{
    min-height:72px!important;
    height:72px!important;
    padding:8px 4%!important;
    gap:10px;
    align-items:center;
  }
  body.public-site .web-logo{
    width:86px!important;
  }
  body.public-site .web-logo img{
    height:42px!important;
  }
  .public-site .web-actions{
    gap:8px;
    margin-left:auto;
  }
  .public-site .web-actions .consult-nav{
    display:none!important;
  }
  .public-site .web-mobile-menu{
    display:grid!important;
    place-items:center;
    width:42px;
    height:42px;
    padding:0!important;
    border-radius:12px!important;
    border:1px solid #eadff0!important;
    background:#fff!important;
  }
  .public-site .portal-menu>button{
    display:inline-flex;
    align-items:center;
    gap:6px;
    max-width:150px;
    padding:10px 12px!important;
    font-size:10px!important;
    line-height:1.2;
    border-radius:999px!important;
    white-space:nowrap;
    overflow:hidden;
  }
  .public-site .portal-login-full{display:none}
  .public-site .portal-login-short{display:inline}
  .mobile-public-links{
    top:72px!important;
    border-bottom:1px solid #eadff0;
    background:#fffcfe!important;
    padding:18px 5%!important;
    z-index:50;
  }
  .mobile-public-links a{
    font-size:14px!important;
    padding:10px 0;
    border-bottom:1px solid #f0e8f4;
  }
  .mobile-public-links a:last-child{border-bottom:0}

  /* Hero film fills width cleanly */
  .cinema-video-hero{
    aspect-ratio:16/10!important;
    width:100%;
  }
  .cinema-video-hero .cinema-bottom{
    bottom:12px!important;
    left:4%!important;
    right:4%!important;
  }
  .cinema-video-hero .hero-film-controls button{
    padding:9px!important;
  }

  /* Brand story */
  .tbo-brand-story{
    padding:22px 5% 40px!important;
  }
  .tbo-statement-art{
    margin:0!important;
  }
  .tbo-booking-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    justify-content:center!important;
    gap:12px!important;
    margin:18px auto 28px!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
  }
  .tbo-booking-actions a{
    display:inline-flex!important;
    width:100%!important;
    max-width:100%!important;
    padding:16px 18px!important;
    font-size:12px!important;
    border-radius:999px!important;
    transform:none!important;
    min-height:54px!important;
    justify-content:center!important;
    align-items:center!important;
    gap:10px!important;
    line-height:1.2!important;
  }
  .tbo-booking-actions svg,
  .tbo-booking-actions .glyph-icon{
    width:15px!important;
    height:15px!important;
    display:block!important;
    flex-shrink:0!important;
  }
  .tbo-principles{
    gap:12px!important;
    width:100%;
  }
  .tbo-principles article{
    padding:26px 20px 30px!important;
    border-radius:24px!important;
    width:100%;
    box-sizing:border-box;
    transform:none!important;
  }
  .tbo-principles h2{
    font-size:28px!important;
    margin:8px 0 14px!important;
  }

  /* Soft icon ribbon — stay one horizontal row */
  .tbo-soft-icons{
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start;
    gap:8px;
    margin:4px 0 18px;
    max-width:100%;
  }
  .tbo-soft-icons span{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:50%;
  }
  .tbo-soft-icons svg{width:16px;height:16px}

  /* Services stack */
  .public-site .web-service,
  .public-site .web-service:nth-child(even){
    direction:ltr!important;
    grid-template-columns:1fr!important;
  }
  .public-site .web-service>img,
  .public-site .web-service:nth-child(even)>img{
    min-height:220px;
    height:240px!important;
    border-radius:0 0 24px 24px!important;
    order: -1;
  }
  .public-site .web-service>div{
    padding:22px 18px 26px!important;
  }
  .public-site .web-service h3{
    font-size:26px!important;
  }

  /* Experience / studio */
  .web-experience{
    padding:48px 5%!important;
  }
  .web-experience-inner{
    gap:28px!important;
  }
  .web-studio-window{
    transform:none!important;
  }
  .web-window-image{
    height:240px!important;
  }

  /* Gallery */
  .cinema-gallery{
    padding:48px 0 40px!important;
  }
  .cinema-gallery>.web-section-heading{
    padding:0 5%!important;
  }
  .cinema-gallery-track{
    padding:0 5% 18px!important;
    scroll-padding-left:5%;
    gap:16px;
  }
  .cinema-gallery-card{
    flex-basis:82vw!important;
  }
  .cinema-gallery-card:nth-child(even){
    padding-top:0!important;
  }
  .cinema-gallery-card>div{
    height:360px!important;
    border-radius:20px;
  }

  /* Founder */
  .public-site .web-founder{
    margin:28px 3% 0!important;
    padding:32px 6%!important;
    border-radius:28px!important;
  }
  .web-founder-image{
    border-radius:120px 120px 20px 20px;
  }
  .web-founder-image img{
    height:380px!important;
  }
  .web-signature{
    font-size:40px!important;
  }

  /* Process / FAQ / CTA */
  .web-process{
    grid-template-columns:1fr!important;
    gap:14px!important;
    margin-top:24px!important;
  }
  .web-process article{
    padding:18px 16px 20px!important;
  }
  .public-site .web-cta{
    margin:36px 3% 0!important;
    padding:56px 6%!important;
    border-radius:28px!important;
  }
  .cinema-cta{
    min-height:420px!important;
    padding:70px 6%!important;
  }

  /* Films */
  .original-films{
    padding:48px 5%!important;
  }
  .original-film-card>div{
    height:240px!important;
  }

  /* Footer */
  .web-footer{
    padding:36px 5% 22px!important;
  }
  .web-footer-top{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:28px 18px!important;
  }
  .web-footer-logo{
    grid-column:1 / -1;
  }
  .public-site .web-footer-logo img{
    width:120px!important;
    height:82px!important;
  }
  .web-footer-bottom{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:8px!important;
  }

  /* Inquiry */
  .inquiry-nav{
    height:72px!important;
    padding:0 4%!important;
  }
  .inquiry-nav img{
    width:86px!important;
    height:42px!important;
  }
  .inquiry-intro{
    grid-template-columns:1fr!important;
    padding:36px 5% 40px!important;
    gap:24px!important;
  }
  .inquiry-body{
    grid-template-columns:1fr!important;
  }
  .native-grid{
    grid-template-columns:1fr!important;
  }
}

/* ---------- Small phones (≤480) ---------- */
@media (max-width:480px){
  body.public-site .web-nav{
    padding:6px 3.5%!important;
  }
  body.public-site .web-logo{
    width:74px!important;
  }
  body.public-site .web-logo img{
    height:42px!important;
  }
  .public-site .portal-menu>button{
    max-width:118px;
    padding:9px 10px!important;
    font-size:9px!important;
  }
  .cinema-video-hero{
    aspect-ratio:4/3!important;
  }
  .tbo-soft-icons span{
    width:36px;
    height:36px;
    flex-basis:36px;
  }
  .public-site .web-service>img{
    height:210px!important;
    min-height:210px;
  }
  .web-founder-image img{
    height:320px!important;
  }
  .cinema-gallery-card>div{
    height:300px!important;
  }
  .web-footer-top{
    grid-template-columns:1fr!important;
  }
  .public-site .web-button:not(.light),
  .public-site .web-actions .primary{
    width:100%;
    justify-content:center;
  }
}
