/* Centered navigation, collection scenes and one factory destination. */
.site-header__inner { position: relative; gap: clamp(10px, 1.6vw, 26px); }
.main-navigation { flex: 1 1 auto; justify-content: space-between; gap: 14px; }
.main-navigation > ul { margin-inline: auto; justify-content: center; gap: clamp(10px, 1.5vw, 24px); }
.main-navigation li > a { text-align: center; font-size: var(--type-label); font-weight: 600; }
.main-navigation .header-enquiry { font-size: var(--type-label); font-weight: 650; border-left: 0; border-inline-start: 1px solid var(--line); padding-inline: 15px 0; gap: 10px; }
.menu-toggle__label { font-size: var(--type-label); font-weight: 600; }
.language-switcher { position: relative; flex: none; z-index: 2; }
.language-switcher summary {
  display: flex; align-items: center; gap: 7px; min-height: 42px;
  padding: 6px 10px; border: 1px solid var(--line); cursor: pointer;
  list-style: none; font-size: var(--type-label); font-weight: 600; white-space: nowrap;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.language-switcher[open] summary { background: var(--paper); }
.language-switcher > ul {
  position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0;
  min-width: 150px; padding: 5px; margin: 0; list-style: none;
  border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 20px #25291d14;
}
.language-switcher li a { display: block; padding: 8px 12px; font-size: var(--type-label); white-space: nowrap; }
.language-switcher li a:hover, .language-switcher li a[aria-current] { background: var(--paper); }
.language-switcher li a[aria-current] { font-weight: 700; }
.language-switcher :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.home-hero { align-items: center; }
.home-hero__image.hero-carousel { width: 100%; background: var(--paper); overflow: hidden; }
.hero-stage { position: relative; width: 100%; aspect-ratio: 4/3; background: #e9e5d9; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; }
.hero-slide > a { display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-slide img,.hero-slide svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-carousel figcaption { position: relative; padding: 18px 22px 22px; min-height: 110px; }
.hero-carousel figcaption > a { padding-inline-end: 125px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 15px; color: var(--ink); line-height: 1.4; max-width: none; }
.hero-controls { position: absolute; inset-inline-end: 18px; bottom: 20px; display: flex; align-items: center; gap: 7px; }
.hero-controls > button { width: 29px; height: 29px; border: 1px solid #b6bda9; border-radius: 50%; background: transparent; font-size: 17px; padding: 0; }
.hero-controls > button:hover { background: #e1e5d5; }
.hero-pagination { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #d4d6ca; padding: 13px 17px 17px; gap: 8px 12px; }
.hero-pagination > button { background: transparent; border: 0; border-bottom: 1px solid transparent; padding: 8px 0; min-height: 35px; display: flex; align-items: baseline; gap: 8px; text-align: start; font-size: 10px; line-height: 1.4; color: var(--muted); }
.hero-pagination > button[aria-pressed=true] { border-color: #626f4b; color: var(--ink); font-weight: 600; }
.hero-pagination > button:hover { color: var(--ink); }
.hero-slide.is-entering { animation: collection-scene-in .65s ease both; }
@keyframes collection-scene-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.factory-video-link { display: block; width: fit-content; font-size: var(--type-label); font-weight: 600; margin-top: 18px; text-decoration: underline; text-underline-offset: 5px; color: #f4f5ed; }
.factory-meetings-preview { margin-top: 35px; padding-top: 30px; border-top: 1px solid #697260; display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.factory-meetings-preview .eyebrow { margin-bottom: 13px; }
.factory-meetings-preview h2 { font-size: 29px; }
.factory-meetings-preview > div > p:not(.eyebrow) { font-size: var(--type-body); max-width: 550px; color: #d0d5c9; }
.factory-meetings-preview > div:last-child { align-self: end; text-align: end; }
.factory-meetings-preview .exhibition-note { margin-bottom: 0; }
.factory-meetings-preview .story-card { text-align: start; }
.factory-meetings-preview .story-card > a > img { max-height: 230px; }
.factory-meetings-preview .story-card > p,.factory-meetings-preview .story-card .eyebrow { color: #d0d5c9; }
.factory-feature__foot { padding-top: 18px; margin-top: 22px; }
.factory-section-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 25px; }
.factory-section-links > a { font-size: var(--type-label); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; padding-block: 8px; }
.warehouse-tour { scroll-margin-top: 110px; padding-block: 50px; }
.warehouse-tour .section-heading { margin-bottom: 25px; }
.warehouse-video-frame { background: #e8e7df; }
.warehouse-video-frame video { width: 100%; max-height: 560px; }
.client-references { padding-block: 65px; }
.client-references .section-heading h2 { font-size: 40px; }
.client-references .section-heading > p { max-width: 390px; font-size: 14px; }
.client-logo-grid { list-style: none; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 18px; align-items: center; }
.client-logo-grid > li { display: flex; align-items: center; justify-content: center; height: 100px; background: #fff; padding: 12px; border: 1px solid #e2e3d9; }
.client-logo-grid svg,.client-logo-grid img { width: 100%; height: 65px; object-fit: contain; }
.client-reference-logo { display: block; width: 100%; min-width: 0; }
.client-reference-name { text-align: center; font-size: clamp(12px, 1.15vw, 16px); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .client-marquee [data-client-marquee-copy] { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .client-marquee__viewport {
    overflow: hidden;
    border-block: 1px solid var(--line);
    direction: ltr;
  }
  .client-marquee__track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: client-scroll-left 70s linear infinite;
  }
  .client-marquee .client-logo-grid {
    --client-gap: 18px;
    flex: 1 0 auto;
    display: flex;
    gap: var(--client-gap);
    border: 0;
    padding: 12px var(--client-gap) 12px 0;
  }
  .client-marquee .client-logo-grid > li { flex: 1 0 clamp(106px, 12vw, 160px); }
}

@media (max-width: 650px) and (prefers-reduced-motion: no-preference) {
  .client-marquee .client-logo-grid { --client-gap: 12px; }
  .client-marquee .client-logo-grid > li { flex: 0 0 auto; padding-inline: 0; }
  .client-marquee .client-reference-logo { width: auto; }
  .client-marquee .client-reference-logo > :is(svg, img) {
    display: block;
    width: auto;
    max-width: 96px;
    height: 50px;
  }
  .client-marquee .client-reference-name { max-width: 96px; }
}

@keyframes client-scroll-left { to { transform: translateX(-50%); } }
.testing-documentation { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 95px; border-top: 1px solid var(--line); }
.testing-documentation h2 { font-size: 45px; line-height: 1.12; margin-bottom: 25px; }
.testing-documentation > div > p:not(.eyebrow) { color: var(--muted); max-width: 475px; font-size: var(--type-body); }
.testing-documentation .documentation-scope { font-size: var(--type-caption); line-height: 1.65; }
.report-preview { background: var(--paper); padding: 35px; text-align: center; }
.report-preview__image { max-width: 220px; margin: auto; overflow: hidden; box-shadow: 0 7px 25px #29331f12; background: white; }
.report-preview__image > img,.report-preview__image > svg { display: block; width: 100%; height: auto; filter: blur(2.5px); user-select: none; pointer-events: none; }
.report-preview figcaption { margin-top: 25px; }
.report-preview figcaption > span { font-size: 10px; letter-spacing: .1em; color: var(--ink); }
.report-preview figcaption > p { font-size: 12px; margin-top: 10px; }
.factory-meetings { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; gap: 95px; align-items: start; }
.factory-meetings h2 { font-size: 43px; margin-bottom: 25px; }
.factory-meetings p:not(.eyebrow) { font-size: var(--type-body); color: var(--muted); max-width: 480px; }
.factory-meetings > div:last-child { align-self: center; }
.factory-meetings .exhibition-note { padding: 20px 24px; border-left: 2px solid #8d9776; background: var(--paper); }
.stories-section .story-columns { grid-template-columns: 1fr; }
.stories-section .story-slot { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0 50px; align-items: start; }
.stories-section .story-slot__art { grid-row: span 4; align-self: center; margin: 0; }
.stories-section .story-slot h3 { max-width: 450px; }
.stories-section .story-slot > p:not(.story-slot__status) { max-width: 500px; }
.stories-section .story-slot .section-link { justify-self: start; }
.stories-section .story-card { max-width: 1000px; }
.detail-photo-dialog__image [data-display-crop] { max-width: 100%; }
@media (max-width:1150px) and (min-width:1001px) {
  .site-branding:not(.brand--supplied) .brand-logo-image--header {
    max-width: min(200px, calc(100vw - 880px));
  }
  .main-navigation > ul { gap: 12px; }
  .main-navigation li > a, .main-navigation .header-enquiry { font-size: .875rem; }
}
@media (max-width:1000px) {
  .site-header__inner { column-gap: 10px; }
  .menu-toggle { margin-inline-start: auto; }
  .main-navigation { order: 1; flex: 1 1 100%; }
  .main-navigation > ul { position: static; left: auto; transform: none; width: 100%; align-items: center; }
  .main-navigation li { text-align: center; }
  .main-navigation li > a { font-size: var(--type-body); }
  .main-navigation .header-enquiry { text-align: center; justify-content: center; align-self: center; margin-inline: auto; border-inline-start: 0; padding-inline: 0; }
  .testing-documentation,.factory-meetings { gap: 40px; }
  .client-logo-grid { gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .hero-carousel figcaption > a { font-size: 13px; }
}
@media (max-width:650px) {
  .home-hero__image.hero-carousel { margin-top: 0; }
  .hero-stage { aspect-ratio: 4/3; }
  .hero-carousel figcaption { padding: 16px 17px 18px; min-height: 113px; }
  .hero-carousel figcaption > a { padding-inline-end: 105px; font-size: 13px; min-height: 38px; }
  .hero-controls { inset-inline-end: 13px; bottom: 20px; gap: 4px; }
  .hero-controls > button { width: 26px; height: 26px; }
  .hero-pagination { padding: 10px 15px 15px; gap: 4px 10px; }
  .hero-pagination > button { font-size: 10px; gap: 5px; }
  .factory-meetings-preview { grid-template-columns: 1fr; gap: 10px; padding-top: 25px; }
  .factory-meetings-preview > div:last-child { text-align: start; }
  .factory-meetings-preview h2 { font-size: 28px; }
  .factory-section-links { gap: 7px 18px; }
  .warehouse-tour { padding-block: 36px; }
  .client-references { padding-block: 45px; }
  .client-references .section-heading h2 { font-size: 34px; }
  .client-logo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .client-logo-grid > li { height: 75px; padding: 9px; }
  .client-logo-grid img,.client-logo-grid svg { height: 50px; }
  .testing-documentation,.factory-meetings { grid-template-columns: 1fr; gap: 30px; }
  .testing-documentation h2,.factory-meetings h2 { font-size: 35px; }
  .report-preview { padding: 25px; }
  .report-preview__image { max-width: 180px; }
  .stories-section .story-slot { display: block; }
  .stories-section .story-slot__art { height: 140px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion:reduce) { .hero-slide.is-entering { animation: none; } }

@media (max-width: 430px) {
  .language-switcher summary { gap: 5px; padding-inline: 7px; }
  .site-header__inner .menu-toggle { gap: 7px; }
}
@media (max-width: 380px) {
  .site-header__inner { column-gap: 6px; }
  .site-header__inner .menu-toggle { min-width: 44px; min-height: 44px; justify-content: center; }
  .menu-toggle__label { display: none; }
  .language-switcher summary { min-inline-size: 44px; justify-content: center; }
  .language-switcher summary > span { display: none; }
}

/* Give each paragraph its natural reading order and keep the layout left to right. */
:root[lang="ar"] {
  text-align: left;
}

:root[lang="ar"] :where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, th, td, label, summary, button, a, span):not([dir]) {
  unicode-bidi: plaintext;
}

/* The transcript title already uses a bidi isolate inside its disclosure. */
:root[lang="ar"] .factory-film-transcript summary { unicode-bidi: normal; }
