/* Mobile chapters use their own layout and touch controls. */
.mobile-studio-only { display:none }

@media (max-width:1000px) {
  .world-page { --mobile-world-gutter:clamp(18px,5vw,45px); --mobile-world-tabs-height:57px }
  .world-page .mobile-studio-only { display:block }
  .world-page .world-heading-desktop,
  .world-page .world-desktop-details,
  .world-page .world-journey .world-stage,
  .world-page .world-journey .world-scene:not(.world-intro),
  .world-page .world-journey .world-chapters,
  .world-page .world-journey .world-progress,
  .world-page .world-intro :is(.designer-signature,.world-description,.world-actions,.intro-footer,.linear-world-image) { display:none }

  .world-page .world-journey { padding-top:var(--mobile-header-height,72px); background:#101b17 }
  .world-page .world-intro {
    display:block;
    padding:clamp(136px,39vw,278px) var(--mobile-world-gutter) 29px;
    background-color:#101b17;
    background-image:linear-gradient(180deg,#101b1720 0,#101b1726 70px,#101b179c 148px,#101b17 285px),url('/assets/home/dune-768.webp');
    background-position:center,center top;
    background-size:100% 100%,100% auto;
    background-repeat:no-repeat;
    color:#fff8ed;
  }
  .world-page .world-intro .world-copy { width:100%; max-width:760px; margin-inline:auto }
  .world-page .world-intro h1 {
    font-size:clamp(37px,10vw,90px); font-weight:520; line-height:.99; letter-spacing:-.052em;
    margin:0 0 14px; text-wrap:initial;
  }
  .world-page .world-intro h1 em { color:#f4f2e9; font-size:1.12em; letter-spacing:-.015em }
  .world-page .mobile-studio-lead .mobile-world-button { background:#f4f2e9; color:#151a13; }
  .mobile-studio-lead > p { max-width:40ch; color:#f1f1e5; font-size:clamp(.94rem,2vw,1.12rem); line-height:1.55; margin:0 }
  .mobile-studio-lead-actions,.mobile-world-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px 15px; margin-top:17px }
  .mobile-studio-offers { display:flex; flex-wrap:wrap; gap:4px 17px; margin-top:11px; }
  .mobile-studio-offers a { display:inline-flex; align-items:center; min-height:44px; color:#f6f3e8; border-top:1px solid #7e9479; font-size:13px; }
  .mobile-world-button,.mobile-world-text-link {
    display:inline-flex; align-items:center; justify-content:space-between; gap:12px;
    width:fit-content; max-width:100%; min-height:46px; font-size:.85rem; font-weight:650; line-height:1.3;
  }
  .mobile-world-button { border-radius:999px; padding:10px 16px; background:var(--mobile-world-accent,#dbf69c); color:#151a13; }
  .mobile-world-button span,.mobile-world-text-link span { flex-shrink:0; font-size:1.12em; line-height:1 }
  .mobile-world-text-link { border-bottom:1px solid currentColor }

  .mobile-studio { position:relative; color:#fff8ed; background:#101b17 }
  .mobile-world-tabs {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0;
    position:sticky; top:var(--mobile-header-height,72px); z-index:35;
    min-height:var(--mobile-world-tabs-height); padding:6px var(--mobile-world-gutter);
    background:#111d19; color:#f6f4e8; border-bottom:1px solid #ffffff31;
  }
  .mobile-world-tabs a {
    display:flex; justify-content:center; align-items:center; gap:6px; min-height:44px; padding:6px 2px;
    border:1px solid #64736c; border-radius:8px; line-height:1.2; text-align:center; color:inherit;
  }
  .mobile-world-tabs a[aria-current] { background:#dbf69c; color:#101b17; border-color:#dbf69c }
  .mobile-studio[data-current-chapter="univers-design"] .mobile-world-tabs { background:#29161b }
  .mobile-studio[data-current-chapter="univers-design"] .mobile-world-tabs a[aria-current] { background:#ffdfb0; border-color:#ffdfb0 }
  .mobile-studio[data-current-chapter="univers-web"] .mobile-world-tabs { background:#111c32 }
  .mobile-studio[data-current-chapter="univers-web"] .mobile-world-tabs a[aria-current] { background:#d9eaff; border-color:#d9eaff }
  .mobile-studio[data-current-chapter="univers-photo"] .mobile-world-tabs { background:#251929 }
  .mobile-studio[data-current-chapter="univers-photo"] .mobile-world-tabs a[aria-current] { background:#f6d4ec; border-color:#f6d4ec }
  .mobile-world-tabs a span { font-size:.6rem; font-variant-numeric:tabular-nums }
  .mobile-world-tabs a b { font-size:clamp(.71rem,2.6vw,.93rem); font-weight:650 }

  .mobile-world,.mobile-world-end { scroll-margin-top:var(--mobile-world-tabs-height); position:relative; isolation:isolate }
  .mobile-world {
    background:radial-gradient(ellipse 125% 55% at 86% 7%,var(--mobile-world-glow),transparent 77%),var(--mobile-world-base);
    padding:clamp(34px,8vw,84px) var(--mobile-world-gutter) 32px; color:#fff8ed;
    border-top:1px solid var(--mobile-world-border);
  }
  .mobile-world::before { content:''; position:absolute; z-index:-1; inset:0 0 auto; height:55%; background:var(--mobile-world-atmosphere) center 44% / cover no-repeat; opacity:.16; mask-image:linear-gradient(black 0%,transparent 100%); pointer-events:none }
  .mobile-world-design { --mobile-world-base:#29161b; --mobile-world-glow:#702f37; --mobile-world-accent:#ffdfb0; --mobile-world-muted:#f2d9d1; --mobile-world-border:#9f6c61; --mobile-world-atmosphere:url('/assets/home/braise-384.webp') }
  .mobile-world-web { --mobile-world-base:#111c32; --mobile-world-glow:#284b7e; --mobile-world-accent:#d9eaff; --mobile-world-muted:#d2e0f5; --mobile-world-border:#657da2; --mobile-world-atmosphere:url('/assets/home/dune-384.webp') }
  .mobile-world-photo { --mobile-world-base:#251929; --mobile-world-glow:#644355; --mobile-world-accent:#f6d4ec; --mobile-world-muted:#efdeea; --mobile-world-border:#93738d; --mobile-world-atmosphere:url('/assets/home/lueur-384.webp') }
  .mobile-world-design:has([data-active-slide="1"]) { --mobile-world-glow:#663d2c }
  .mobile-world-web:has([data-active-slide="1"]) { --mobile-world-glow:#283c65 }
  .mobile-world-photo:has([data-active-slide="1"]) { --mobile-world-glow:#72503f }
  .mobile-world-content { max-width:760px; margin:0 auto }
  .mobile-world-kicker { display:flex; align-items:center; gap:10px; margin:0 0 13px; color:var(--mobile-world-accent,#304529); font-size:.71rem; font-weight:650; letter-spacing:.105em; line-height:1.4; text-transform:uppercase }
  .mobile-world-kicker span:first-child { display:inline-flex; align-items:center; min-height:25px; padding:2px 8px; border:1px solid var(--mobile-world-border); border-radius:999px; font-size:.65rem; letter-spacing:.015em; font-variant-numeric:tabular-nums }
  .mobile-world h2,.mobile-world-end h2 { margin:0; max-width:13ch; font:515 clamp(39px,9.4vw,75px)/.99 'DM Sans',sans-serif; letter-spacing:-.062em; text-wrap:balance }
  .mobile-world-description { margin:13px 0 0; max-width:49ch; color:var(--mobile-world-muted); font-size:clamp(.94rem,2vw,1.12rem); line-height:1.55 }

  .mobile-world-gallery { margin:22px 0 0; max-width:660px }
  .mobile-world-view {
    aspect-ratio:1.48; overflow:hidden; position:relative; isolation:isolate; touch-action:pan-y pinch-zoom;
    border:1px solid var(--mobile-world-border); border-radius:10px 10px 0 0;
    background:var(--mobile-world-base); user-select:none;
  }
  .mobile-world-slide { position:absolute; inset:0 }
  .mobile-world-slide img { width:100%; height:100%; object-fit:cover; display:block; pointer-events:none }
  .mobile-world-web [data-mobile-slide]:nth-child(2) img { object-position:50% 45% }
  .mobile-world-controls {
    display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:center; gap:4px;
    min-height:49px; text-align:center; color:var(--mobile-world-accent); border:1px solid var(--mobile-world-border);
    border-top:0; border-radius:0 0 10px 10px; background:#110d1964;
  }
  .mobile-world-controls button {
    display:grid; place-items:center; border:0; padding:0; width:48px; height:48px;
    background:transparent; color:inherit; font-size:1.3rem; cursor:pointer;
  }
  .mobile-world-controls button:hover { background:#ffffff15 }
  .mobile-world-controls [data-mobile-slide-label] { grid-column:2; font-size:.82rem; font-weight:650; line-height:1.25; padding:5px 2px }
  .mobile-world-controls [data-mobile-next] { grid-column:3 }
  .mobile-world-gallery figcaption { display:flex; align-items:flex-start; justify-content:space-between; gap:9px; margin-top:7px; color:var(--mobile-world-muted); font-size:.69rem; line-height:1.45 }
  .mobile-world-swipe-hint { display:none; flex-shrink:0; color:var(--mobile-world-accent) }
  .mobile-world-gallery[data-mobile-ready] .mobile-world-swipe-hint { display:inline }
  .mobile-world-actions { margin-top:18px }
  .mobile-world-forward { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:49px; border-top:1px solid var(--mobile-world-border); color:var(--mobile-world-accent); margin-top:25px; font-size:.8rem; font-weight:600 }
  .mobile-world-forward b { font-size:1.13rem }

  .mobile-world-end { padding:clamp(44px,10vw,95px) var(--mobile-world-gutter); background:#dff3ae; color:#132016; --mobile-world-accent:#19271a }
  .mobile-world-end h2 { max-width:16ch }
  .mobile-world-end h2 em { font:400 1.06em/1 'Instrument Serif',Georgia,serif; letter-spacing:-.03em }
  .mobile-world-end .mobile-world-content>p:not(.mobile-world-kicker) { max-width:45ch; margin:16px 0 0; font-size:.97rem; line-height:1.6 }
  .mobile-world-end .mobile-world-button { color:#f3f9e3 }
  .mobile-world-other { display:flex; flex-wrap:wrap; gap:5px 16px; margin-top:21px }
  .mobile-world-other a { display:flex; align-items:center; gap:6px; min-height:44px; border-top:1px solid #778e69; font-size:.77rem }
  .world-page .mobile-studio :is(a,button):focus-visible,.world-page .mobile-studio-lead a:focus-visible { outline:2px solid #fff4c2; outline-offset:2px }
  .world-page .mobile-world-end a:focus-visible { outline-color:#20331e }

  @media (min-width:681px) {
    .world-page .world-intro { background-size:100% 100%,100% auto; background-image:linear-gradient(180deg,#101b171a 0,#101b1730 145px,#101b17 475px),url('/assets/home/dune-768.webp') }
    .mobile-world-tabs { padding-inline:max(var(--mobile-world-gutter),calc((100% - 760px) / 2)) }
  }
  @media (max-height:500px) and (orientation:landscape) {
    .world-page .world-intro { padding-top:28px; background-size:100% 100%,60% auto; background-position:center,right center; background-image:linear-gradient(90deg,#101b17 24%,#101b17db 46%,#101b1729 100%),url('/assets/home/dune-768.webp') }
    .world-page .world-intro h1 { font-size:clamp(43px,7.1vw,63px) }
  }
  @media (prefers-reduced-motion:no-preference) {
    .mobile-world-gallery [data-mobile-slide]:not([hidden]) { animation:mobile-world-art-in .32s ease-out both }
    .mobile-world-gallery[data-dragging="true"] [data-mobile-slide]:not([hidden]) { animation:none; transform:translateX(clamp(-24px,var(--mobile-gallery-drag,0px),24px)) scale(1.065) }
    @keyframes mobile-world-art-in { from {opacity:.78; transform:scale(1.025)} to {opacity:1;transform:scale(1)} }
  }
}
 
@media (max-width:1000px) {
  .mobile-world-tabs { grid-template-columns:1fr 1fr 1.5fr .85fr }
  .mobile-world-tabs a b { font-size:clamp(.65rem,2.6vw,.93rem) }
  .mobile-studio[data-current-chapter="univers-communication"] .mobile-world-tabs { background:#302029 }
  .mobile-studio[data-current-chapter="univers-communication"] .mobile-world-tabs a[aria-current] { background:#ffdcab; border-color:#ffdcab }
  .mobile-world-communication {
    --mobile-world-base:#302029;
    --mobile-world-glow:#754837;
    --mobile-world-accent:#ffdcab;
    --mobile-world-muted:#f0ddd1;
    --mobile-world-border:#a57764;
    --mobile-world-atmosphere:url('/assets/communication/braise-post.webp');
  }
  .mobile-world-communication:has([data-active-slide="1"]) { --mobile-world-glow:#685342 }
  .mobile-world-communication h2 { max-width:none; font-size:clamp(34px,8.4vw,72px) }
  .mobile-world-communication .mobile-world-kicker span:first-child { white-space:nowrap }
  .mobile-world-communication .mobile-world-view {
    aspect-ratio:1.19;
    background:radial-gradient(ellipse at 66% 6%,#754638,var(--mobile-world-base) 74%);
  }
  .mobile-world-communication:has([data-active-slide="1"]) .mobile-world-view {
    background:radial-gradient(ellipse at 66% 6%,#7b634d,var(--mobile-world-base) 74%);
  }
  .mobile-world-communication .home-campaign-pair { height:100%; padding:clamp(9px,3vw,22px); }
  .mobile-world-communication .home-campaign-visual img { width:100%; height:auto; max-height:clamp(165px,58vw,440px); object-fit:contain; border:0; box-shadow:none; filter:drop-shadow(0 8px 11px #170d12bb) }
  .mobile-world-communication .home-campaign-visual span { margin-top:4px }
}
@media (max-width:500px) {
  .mobile-world-tabs a span { display:none }
}
