/* Compact page rhythm and a machine-led opening sequence. */
.fullscreen-chapter .mobile-hero-title { display: none !important; }
.home-sections { display: contents; }
.section { padding-block: 64px; }
.section-heading { margin-bottom: 28px; gap: 30px; }
.section-heading h2 { font-size: clamp(29px, 2.8vw, 40px); }
.breadcrumbs { padding-top: 18px; }
.page-intro { padding-top: 25px; padding-bottom: 27px; }
.page-intro h1 { font-size: clamp(38px, 3.6vw, 54px); max-width: 1120px; line-height: 1.12; margin-bottom: 15px; }
.page-intro .section-label { margin-bottom: 12px; }
.intro-text { font-size: 15px; line-height: 1.65; max-width: 850px; }
.catalog-controls { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
.catalog-controls > .search-field { max-width: 100%; min-height: 48px; }
.catalog-controls .search-field input { padding-block: 10px; }
.filter-pills { margin-top: 0; gap: 8px; }
.filter-pills button { padding: 8px 14px; }
.results-line { margin-top: 0; padding-bottom: 10px; }
.catalog-section,.resource-center,.articles-section { padding-bottom: 65px; }
.product-grid { gap: 22px; }
.product-card-copy { padding: 20px; }
.product-card h3 { font-size: 24px; margin-block: 9px 12px; }
.product-hero { padding-block: 27px 36px; gap: 42px; }
.product-hero h1 { font-size: clamp(35px, 3.6vw, 54px); margin-block: 12px 18px; }
.product-hero-copy > p { font-size: 15px; }
.product-hero-visual { height: 365px; }
.hero-specs { margin-top: 22px; padding-top: 18px; }
.hero-specs strong { font-size: 17px; }
.product-nav a { padding-block: 15px 12px; }
.product-section { padding-block: 46px; }
.presentation-layout { gap: 48px; }
.product-section .section-heading { margin-bottom: 26px; }
.advantages-grid { gap: 24px 30px; }
.advantage-mark { margin-bottom: 16px; }
.advantages-grid h3 { margin-bottom: 12px; }
.machine-gallery { margin-top: 42px; }
.gallery-main { height: 385px; }
.resource-controls { padding: 20px; }
.resource-selects { gap: 16px; margin-top: 14px; }
.resource-selects select { margin-top: 5px; padding-block: 9px; }
.result-count { margin-top: 18px; }
.resource-section { margin-top: 30px; }
.document-row { padding-block: 19px; }
.process-story { padding-block: 60px; }
.process-layout { gap: 65px; }
.process-step { padding-bottom: 35px; gap: 23px; }
.process-step h3 { font-size: 23px; margin-bottom: 12px; }
.process-materials { margin-top: 24px; max-width: 430px; }
.resources-promo { padding-block: 60px; gap: 65px; }
.resources-promo-art { min-height: 330px; }
.project-cta { padding-block: 48px; }
.project-cta h2 { font-size: clamp(29px, 3vw, 40px); }
.about-story { gap: 45px; padding-bottom: 55px; }
.partner-section { padding-block: 50px; }
.contact-layout { padding-bottom: 60px; }
.service-row { padding-block: 30px; }
.home-featured { padding-top: 0; }
.family-visual { height: 215px; }
.family-copy { padding-block: 20px; }
.family-copy h3 { font-size: 24px; margin-bottom: 12px; }
.family-link { padding-top: 10px; }
.expertise-strip > .wrap { padding-block: 18px; }
.carousel-controls { display: none; }
[data-carousel-track]:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }

@media(max-width:760px) {
  .home-sections { display: flex; flex-direction: column; }
  .home-sections > .wrap { width: 100%; }
  .home-families { order: 0; }
  .home-featured { order: 1; }
  .home-sections > .process-story { order: 2; }




}
@media(min-width:1100px) {
  .catalog-controls { grid-template-columns: minmax(300px,1fr) auto; gap: 14px 22px; align-items: center; }
  .catalog-controls .filter-pills { justify-content: flex-end; }
  .catalog-controls .results-line { grid-column: 1 / -1; }
  .resource-controls { display: grid; grid-template-columns: .85fr 1.5fr; align-items: end; gap: 20px; }
  .resource-selects { margin: 0; }
}
@media(max-width:760px) {
  .section { padding-block: 38px; }
  .section-heading { gap: 13px; margin-bottom: 22px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading p { font-size: 12px; }
  .breadcrumbs { padding-top: 15px; font-size: 9px; }
  .page-intro { padding-top: 21px; padding-bottom: 22px; }
  .page-intro h1 { font-size: 33px; margin-bottom: 13px; }
  .intro-text { font-size: 13px; line-height: 1.7; }
  .catalog-controls { gap: 12px; margin-bottom: 17px; }
  .filter-pills { gap: 7px; margin-top: 0; }
  .filter-pills button { padding: 8px 10px; }
  .results-line { margin-top: 0; padding-bottom: 9px; }
  .catalog-section,.resource-center,.articles-section { padding-bottom: 40px; }
  .product-card-copy { padding: 17px 15px; }
  .product-card h3 { font-size: 22px; }
  .product-hero { padding-block: 23px 28px; gap: 24px; }
  .product-hero h1 { font-size: 35px; margin-block: 10px 16px; }
  .product-hero-copy > p { font-size: 14px; }
  .product-hero-visual { height: 280px; }
  .hero-specs { margin-top: 19px; padding-top: 15px; }
  .hero-specs span { font-size: 10px; }
  .hero-specs strong { font-size: 16px; }
  .product-nav a { padding-block: 13px 10px; }
  .product-section { padding-block: 33px; }
  .presentation-layout { gap: 10px; }
  .presentation-layout h2 { font-size: 29px; }
  .product-section .section-heading { margin-bottom: 21px; }
  .advantages-grid { gap: 22px; }
  .advantages-grid h3 { font-size: 20px; }
  .machine-gallery { margin-top: 30px; }
  .gallery-main { height: 280px; }
  .resource-controls { padding: 16px; }
  .resource-selects { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
  .resource-selects > label:first-child { grid-column: 1 / -1; }
  .resource-selects select { font-size: 11px; padding: 9px; }
  .resource-section { margin-top: 27px; }
  .document-row { padding-block: 17px; }
  .process-story { padding-block: 38px; }
  .process-layout { gap: 28px; }
  .process-sticky h2 { font-size: 29px; }
  .process-sticky p:not(.section-label) { font-size: 13px; }
  .process-materials { margin-top: 20px; }
  .process-step { padding-bottom: 25px; gap: 16px; grid-template-columns: 32px 1fr; }
  .process-step h3 { font-size: 21px; margin-bottom: 9px; }
  .process-step p { font-size: 12px; margin-bottom: 12px; }
  .step-marker { height: 32px; width: 32px; font-size: 10px; }
  .process-steps:before { left: 16px; }
  .resources-promo { padding-block: 38px; gap: 26px; }
  .resources-promo-art { min-height: 275px; }
  .resources-promo h2 { font-size: 29px; }
  .project-cta { padding-block: 35px; }
  .project-cta > .wrap { gap: 22px; }
  .project-cta h2 { font-size: 29px; }
  .about-story { gap: 26px; padding-bottom: 38px; }
  .about-story h2,.partner-section h2 { font-size: 29px; }
  .partner-section { padding-block: 38px; }
  .contact-layout { gap: 26px; padding-bottom: 40px; }
  .service-row { padding-block: 25px; }
  .expertise-strip > .wrap { padding-block: 16px; gap: 11px 15px; font-size: 9px; }

  /* Two real touch carousels. Native horizontal scrolling remains available. */
  .home-featured { padding-top: 4px; }
  [data-carousel-track] { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84vw; gap: 15px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 0; margin-right: -22px; padding: 3px 22px 8px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  [data-carousel-track]::-webkit-scrollbar { display: none; }
  [data-carousel-track] > a { scroll-snap-align: start; min-width: 0; }
  [data-carousel-track] .family-card { display: flex; flex-direction: column; gap: 0; padding-bottom: 0; }
  [data-carousel-track] .family-visual { height: 205px; flex-shrink: 0; }
  [data-carousel-track] .family-copy { padding: 17px 0 18px; }
  [data-carousel-track] .family-copy h3 { font-size: 24px; max-width: 100%; margin-bottom: 9px; }
  [data-carousel-track] .family-copy p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.65; margin-bottom: 10px; }
  [data-carousel-track] .family-link { font-size: 11px; padding-top: 4px; }
  [data-carousel-track] .product-card { display: flex; flex-direction: column; }
  [data-carousel-track] .product-card-image { aspect-ratio: 1.6; height: auto; min-height: 0; flex-shrink: 0; }
  [data-carousel-track] .product-card-image > img { padding: 12px; }
  [data-carousel-track] .product-card-copy { padding: 18px; }
  [data-carousel-track] .product-card h3 { font-size: 24px; margin-block: 8px 11px; }
  [data-carousel-track] .product-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
  [data-carousel-track] .product-card-link { left: auto; right: 12px; bottom: 12px; }
  .carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
  .carousel-hint { font-size: 10px; color: var(--muted); }
  .carousel-navigation { display: flex; align-items: center; gap: 12px; }
  .carousel-navigation button { display: grid; place-items: center; height: 40px; width: 40px; border: 1px solid #bdc8db; border-radius: 50%; background: #fff; color: var(--blue); }
  .carousel-navigation button:hover:not(:disabled) { background: var(--wash); }
  .carousel-navigation button:disabled { opacity: .35; cursor: default; }
  [data-carousel-count] { font-size: 10px; color: var(--blue); min-width: 28px; text-align: center; }

  
}
@media(max-width:760px) and (max-height:700px) {
  .chapter-second > .button { min-height: 39px; font-size: 9px; }
}
@media(max-width:360px) {
  .page-intro h1 { font-size: 30px; }
  .carousel-hint { max-width: 110px; }
  [data-carousel-track] { grid-auto-columns: 84vw; }
}
@media(max-width:760px) and (prefers-reduced-motion:reduce) {
  [data-carousel-track] { scroll-behavior: auto; }
}

/* The original desktop homepage is retained; compact rhythm is for inner pages. */
@media(min-width:761px) {
  body.home .section { padding-block: 96px; }
  body.home .section-heading { margin-bottom: 40px; gap: 50px; }
  body.home .section-heading h2 { font-size: clamp(30px,3.2vw,46px); }
  body.home .family-visual { height: 250px; }
  body.home .family-copy { padding: 26px 0; }
  body.home .family-copy h3 { font-size: 25px; margin-bottom: 16px; }
  body.home .family-link { padding-top: 15px; }
  body.home .expertise-strip > .wrap { padding-block: 25px; }
  body.home .process-story { padding-block: 100px; }
  body.home .process-layout { gap: 100px; }
  body.home .process-step { padding-bottom: 60px; gap: 28px; }
  body.home .process-step:last-child { padding-bottom: 0; }
  body.home .process-step h3 { font-size: 25px; margin-bottom: 16px; }
  body.home .process-materials { margin-top: 30px; max-width: 480px; }
  body.home .resources-promo { padding-block: 70px 110px; gap: 100px; }
  body.home .resources-promo-art { min-height: 380px; }
  body.home .project-cta { padding-block: 72px; }
  body.home .project-cta h2 { font-size: clamp(30px,3.2vw,46px); }
  body.home .product-grid { gap: 28px; }
  body.home .product-card-copy { padding: 24px; }
  body.home .product-card h3 { font-size: 25px; margin-block: 10px 15px; }
}
@media(min-width:951px) and (max-width:1199px) {
  body.home .family-visual { height: 210px; }
  body.home .process-layout,body.home .resources-promo { gap: 65px; }
  body.home .product-card-copy { padding: 20px; }
  body.home .product-card h3 { font-size: 22px; }
}
@media(min-width:761px) and (max-width:950px) {
  body.home .section,body.home .process-story { padding-block: 75px; }
  body.home .section-heading { gap: 35px; }
  body.home .family-visual { height: 190px; }
  body.home .family-copy h3 { font-size: 23px; }
  body.home .process-layout,body.home .resources-promo { gap: 50px; }
  body.home .process-step { gap: 20px; }
  body.home .process-step h3 { font-size: 23px; }
  body.home .resources-promo { padding-bottom: 85px; }
  body.home .resources-promo-art { min-height: 330px; }
  body.home .product-grid { gap: 20px; }
  body.home .product-card-copy { padding: 18px; }
  body.home .product-card h3 { font-size: 21px; }
}

/* Mobile opening: a complete machine above, IDS blue and readable copy below.
   This is the single mobile hero definition; desktop is owned by site.css. */
@media(max-width:760px) {
  .fullscreen-hero {
    --scene-height: max(490px,calc(100svh - var(--header-height)));
    --mobile-film-height: clamp(205px,40svh,315px);
    height: calc(var(--scene-height) + 28svh);
    background: var(--blue);
    color: #fff;
  }
  .fullscreen-scene { height: var(--scene-height); min-height: 0; background: var(--blue); }
  .fullscreen-film {
    inset: 0 0 auto;
    height: var(--mobile-film-height);
    overflow: hidden;
    background: #c7c5c5;
    mask-image: none;
    -webkit-mask-image: none;
    border-bottom: 3px solid var(--wine);
  }
  .fullscreen-film > img,.fullscreen-film > video {
    object-fit: contain;
    object-position: center;
    transform: none;
    background: #c7c5c5;
  }
  .fullscreen-shade { display: none; }
  .fullscreen-content {
    position: absolute;
    top: var(--mobile-film-height);
    left: 0;
    right: 0;
    height: calc(100% - var(--mobile-film-height));
    overflow: hidden;
  }
  .fullscreen-chapter { inset: 0; justify-content: center; padding: 25px 22px 56px; }
  .fullscreen-chapter .desktop-hero-title { display: none !important; }
  .fullscreen-chapter .mobile-hero-title { display: block !important; }
  .fullscreen-partner { color: #e4eafa; font-size: 9px; gap: 8px; margin-bottom: 16px; }
  .fullscreen-partner > span { height: 7px; width: 7px; background: #e992b4; }
  .fullscreen-chapter h1 { color: #fff; font-size: 38px; line-height: 1.04; max-width: 390px; margin-bottom: 20px; }
  .fullscreen-chapter h1 > span:after { content: none; }
  .fullscreen-chapter h1 .hero-title-secondary { font-size: 26px; line-height: 1.12; color: #d9e2ff; margin-top: 12px; max-width: 390px; }
  .fullscreen-intro { display: block; color: #e0e6f7; font-size: 12px; line-height: 1.65; margin-bottom: 22px; max-width: 360px; }
  .fullscreen-actions { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 18px; }
  .fullscreen-actions .button,.chapter-second > .button { background: #fff; color: var(--blue); border-color: #fff; min-height: 45px; font-size: 10px; padding: 12px 14px; gap: 12px; }
  .fullscreen-actions .button:hover,.chapter-second > .button:hover { background: #e9eefa; }
  .fullscreen-text-link { color: #fff; font-size: 10px; gap: 8px; }
  .fullscreen-chapter h2 { font-size: 34px; line-height: 1.07; color: #fff; max-width: 390px; margin-bottom: 17px; }
  .chapter-second .fullscreen-partner { font-size: 9px; margin-bottom: 14px; }
  .fullscreen-families { min-width: 0; width: 290px; max-width: 100%; margin-bottom: 20px; }
  .fullscreen-families a { color: #fff; border-color: #ffffff45; font-size: 11px; padding-block: 8px; }
  .fullscreen-families a:hover { color: #e9c0d3; }
  .fullscreen-bottom { position: static; }
  .fullscreen-scroll { position: absolute; left: 22px; bottom: 19px; margin: 0; color: #e0e6f7; font-size: 9px; gap: 10px; max-width: none; }
  .fullscreen-scroll-line { height: 22px; background: #ffffff50; }
  .fullscreen-scroll-line:after { background: #fff; }
  .fullscreen-film-label { position: absolute; top: calc(var(--mobile-film-height) - 23px); left: 18px; right: 18px; bottom: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #24324b; text-shadow: none; font-size: 8px; line-height: 1.3; }
  .fullscreen-film-label > small { font-size: 7px; opacity: 1; }
  .fullscreen-progress { height: 2px; background: #ffffff25; }
  .fullscreen-progress i { background: #e992b4; }
  .hero-reduced { height: auto; }
  .hero-reduced .fullscreen-scene { height: var(--scene-height); }
  .admin-bar .fullscreen-hero { --scene-height: max(490px,calc(100svh - var(--header-height) - 46px)); }
  .admin-bar .fullscreen-scene { height: var(--scene-height); }
}
@media(max-width:760px) and (max-height:700px) {
  .fullscreen-chapter { padding: 16px 22px 43px; }
  .fullscreen-partner { margin-bottom: 10px; font-size: 8px; }
  .fullscreen-chapter h1 { font-size: 31px; margin-bottom: 17px; }
  .fullscreen-chapter h1 .hero-title-secondary { font-size: 22px; margin-top: 8px; }
  .fullscreen-intro { display: none; }
  .fullscreen-actions { gap: 13px; }
  .fullscreen-actions .button,.chapter-second > .button { min-height: 41px; font-size: 9px; padding: 10px 12px; gap: 9px; }
  .fullscreen-text-link { font-size: 9px; gap: 6px; }
  .fullscreen-chapter h2 { font-size: 28px; margin-bottom: 10px; }
  .chapter-second .fullscreen-partner { font-size: 8px; margin-bottom: 9px; }
  .fullscreen-families { width: 270px; margin-bottom: 13px; }
  .fullscreen-families a { font-size: 10px; padding-block: 5px; }
  .fullscreen-scroll { bottom: 15px; font-size: 8px; }
  .fullscreen-scroll-line { height: 18px; }
}
@media(max-width:760px) and (prefers-reduced-motion:reduce) {
  .fullscreen-hero { height: auto; }
  .fullscreen-scene { height: var(--scene-height); }
}

/* The film already contains its camera movement. Keep its framing unchanged. */
.fullscreen-film { background: #fff; }
.fullscreen-film > img,
.fullscreen-film > video { background: #fff; transform: none; }

/* The mobile headline is readable immediately, including after rotation. */
@media(max-width:760px) {
  .fullscreen-chapter h1 > .mobile-hero-title {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
