/* TLAP MOBILE POLISH V2 — Scoped enhancements, keep core functionality */
/* Stable portrait image; the image is copied from a verified local image file. */
.cinematic-image { background-image:url('../tlp-about-portrait.jpg') !important; background-position:center 35% !important; filter:saturate(.84) contrast(1.08) brightness(.72) !important; }
/* Replace long sticky 3-screen storytelling with a readable about section. */
.cinematic-about {height:auto !important; min-height:0 !important; background:#090909 !important;}
.cinematic-stage {position:relative !important; top:auto !important; min-height:0 !important; overflow:hidden;}
.cinematic-content {min-height:0 !important; grid-template-columns:minmax(0,1fr) !important; gap:0 !important; padding-top:clamp(85px,8vw,118px) !important; padding-bottom:clamp(70px,8vw,108px) !important;}
.cinematic-kicker {display:none !important;}
.cinematic-copy {width:min(100%,800px);max-width:800px !important;margin-inline:auto !important;}
.cinematic-copy h2 {font-family:Heebo,sans-serif !important; margin-bottom:28px !important; line-height:1.13 !important;}
.cinematic-copy h2 span {font-size:clamp(36px,5vw,62px) !important;}
.cinematic-copy h2 strong {font-size:clamp(23px,3vw,38px) !important;}
.cinematic-shade {background:linear-gradient(90deg,rgba(4,4,4,.91),rgba(4,4,4,.79) 55%,rgba(4,4,4,.56)),linear-gradient(0deg,rgba(4,4,4,.8),transparent 60%) !important;}
.cinematic-copy .story-block,.cinematic-copy .story-signature {opacity:1 !important;transform:none !important;will-change:auto !important;}
.cinematic-copy .story-block {--story-opacity:1;--story-x:0px;--story-y:0px; margin-top:15px !important; max-width:100% !important;}
.cinematic-copy .story-block p {opacity:1 !important;color:#ece8df !important;line-height:1.9 !important;text-shadow:0 1px 5px rgba(0,0,0,.7);}
.cinematic-copy .story-signature {margin-top:28px !important;}
.cinematic-progress {display:none !important;}
/* Fix images in the results showcase when a parent layout constrains widths. */
#results.tlp-showcase .tlp-photo-pair {width:100%;}
#results.tlp-showcase .tlp-photo img {max-width:none;width:100%;height:100%;object-fit:cover;}
#results.tlp-showcase .tlp-result-card {max-width:100%;}
/* Mobile-first sizing and an actual scrollable questionnaire body. */
@media(max-width:760px) {
  html,body {max-width:100%;overflow-x:clip;}
  .container {width:calc(100% - 30px) !important;max-width:100%;}
  .section {padding:65px 0;}
  .site-header {padding:10px 15px !important;gap:8px !important;min-height:66px;}
  .brand-main {font-size:clamp(12px,3.3vw,16px) !important;letter-spacing:0;}
  .brand-sub {font-size:9px !important;letter-spacing:.09em !important;}
  .header-actions {gap:7px !important;}
  .header-cta {font-size:11px !important;padding:8px 9px !important;max-width:132px;text-align:center;}
  .hero {min-height:100svh;}
  .hero-content {padding-top:115px !important;padding-bottom:70px !important;}
  .hero h1 {max-width:100%;}
  .hero h1 span {font-size:clamp(33px,10vw,53px) !important;}
  .hero h1 strong {font-size:clamp(46px,13vw,69px) !important;}
  .hero-copy {font-size:15px !important;line-height:1.7 !important;}
  .hero-proof {font-size:12px !important;}
  .section-heading h2 {font-size:clamp(26px,7vw,38px) !important;}
  .section-heading > p:last-child {font-size:15px !important;}
  .method-grid,.fit-grid {grid-template-columns:minmax(0,1fr) !important;}
  .method-card {min-height:0 !important;padding:23px !important;}
  .method-card h3 {margin-top:22px !important;font-size:21px !important;}
  .timeline-item {grid-template-columns:48px minmax(0,1fr) !important;gap:14px !important;}
  .timeline-number {width:46px !important;height:46px !important;font-size:12px !important;}
  .timeline-item:not(:last-child)::after {right:22px !important;top:47px !important;}
  .timeline-item h3 {font-size:19px !important;}
  .cinematic-content {padding-top:80px !important;padding-bottom:65px !important;}
  .cinematic-image {background-position:center center !important;}
  .cinematic-shade {background:rgba(4,4,4,.82) !important;}
  .cinematic-copy h2 span {font-size:clamp(33px,9vw,45px) !important;}
  .cinematic-copy h2 strong {font-size:clamp(24px,6vw,31px) !important;}
  .cinematic-copy .story-block {margin-top:9px !important;padding:13px 0 13px 42px !important;}
  .cinematic-copy .story-block::before {left:30px !important;}
  .cinematic-copy .story-index {left:0 !important;top:14px !important;font-size:11px !important;}
  .cinematic-copy .story-block p {font-size:15px !important;line-height:1.85 !important;}
  #results.tlp-showcase {padding:64px 0 70px !important;}
  #results.tlp-showcase h2 {font-size:clamp(27px,7vw,39px) !important;}
  #results.tlp-showcase .tlp-photo {aspect-ratio:4/5 !important;}
  #results.tlp-showcase .tlp-card-copy {min-height:0 !important;padding:16px !important;}
  #results.tlp-showcase .tlp-competition-item img {height:340px !important;}
  /* Four fixed viewport rows: header, progress, scrollable questionnaire, buttons. */
  .application-modal {padding:0 !important;inset:0 !important;align-items:stretch;}
  .application-dialog {width:100% !important;max-width:none !important;height:100svh !important;height:100dvh !important;max-height:100dvh !important;border-radius:0 !important;border:0 !important;display:flex !important;flex-direction:column !important;overflow:hidden !important;}
  .application-header {flex:0 0 auto !important;padding:11px 15px !important;gap:10px !important;}
  .application-header h2 {font-size:23px !important;}
  .application-header p:last-child {display:none !important;}
  .application-exit,.application-close {min-width:42px;min-height:42px;flex:0 0 42px;}
  .application-progress {flex:0 0 auto !important;padding:9px 15px 10px !important;}
  .step-dots {gap:4px !important;}
  .native-questionnaire {flex:1 1 auto !important;min-height:0 !important;display:flex !important;flex-direction:column !important;overflow:hidden !important;}
  .questionnaire-body {flex:1 1 auto !important;min-height:0 !important;height:auto !important;overflow-y:auto !important;overflow-x:hidden !important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:17px 15px 28px !important;}
  .form-step.active {display:block !important;}
  .step-heading {gap:10px !important;margin-bottom:16px !important;}
  .step-heading > span {width:38px !important;height:38px !important;flex-basis:38px !important;}
  .step-heading h3 {font-size:22px !important;}
  .step-heading p {font-size:13px !important;}
  .field-grid.two {grid-template-columns:minmax(0,1fr) !important;gap:8px !important;}
  .field,.choice-field {min-width:0 !important;margin-bottom:13px !important;}
  .field input,.field select,.field textarea {font-size:16px !important;min-width:0;max-width:100%;padding:12px !important;}
  .choice-field {padding:12px !important;}
  .choice-field label {margin-inline-end:12px !important;margin-left:0 !important;}
  .questionnaire-actions {flex:0 0 auto !important;position:relative !important;z-index:4 !important;padding:10px 15px calc(10px + env(safe-area-inset-bottom, 0px)) !important;gap:10px !important;}
  .questionnaire-actions .button {min-height:44px !important;font-size:14px !important;padding:9px 10px !important;}
  .terms-modal {padding:0 !important;}
  .terms-dialog {max-height:100dvh !important;height:min(100dvh,900px) !important;border-radius:0 !important;}
  .terms-content {overflow-y:auto !important;-webkit-overflow-scrolling:touch;}
}
@media(max-width:370px) {
  .brand-main {font-size:12px !important;}
  .header-cta {max-width:105px;font-size:10px !important;}
  .hero h1 strong {font-size:43px !important;}
  #results.tlp-showcase .tlp-photo-label {font-size:8px !important;}
}
@media(prefers-reduced-motion:reduce) {
  .cinematic-copy .story-block,.cinematic-copy .story-signature {transition:none !important;}
}
