/* Mobile story, 10.10.2026. The desktop artwork and animation modules are
   retained. Only the mobile composition and its surrounding containers change. */
.mobile-start, .mobile-fullscreen, .mobile-story-stage, .mobile-story-top, .mobile-chapters,
.mobile-gallery-controls, .object-thumbnail { display: none; }
.mobile-disclosure { min-width: 0; }
.mobile-disclosure > summary { display: none; }
.object-gallery-shell { min-width: 0; }
.objects .object-row { position: relative; }
.object-open { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; border-radius: inherit; z-index: 2; }
.object-open-label { display: none; }
.object-detail-dialog .service-detail-intro,
.object-detail-dialog .service-detail-tags,
.object-detail-dialog .service-detail-index,
.object-detail-dialog .service-project-copy > h3 { display: none; }
.object-detail-dialog .service-project { padding-top: 0; border-bottom: 0; }
.staff-entry { flex-shrink: 0; font-weight: 500; background: transparent; }
.staff-footer { border: 0; background: none; padding: 8px 0; color: #bdd2e2; font-size: .75rem; min-height: 44px; }

/* A bounded grid prevents the label's intrinsic width from pushing the atom
   beyond its button. The orbit itself is unchanged and fits inside its slot. */
.service-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  padding-inline: 12px 8px;
}
.service-more > span:first-child { min-width: 0; }
.service-more-atom { overflow: hidden; contain: paint; }

@media (max-width: 800px), (max-width: 1100px) and (max-height: 600px) and (pointer: coarse) {
  html { scroll-padding-top: calc(48px + env(safe-area-inset-top, 0px)); }
  body { -webkit-text-size-adjust: 100%; }
  body.mobile-intro, body.mobile-exploring { background: #04172b; }
  body.mobile-intro { overflow: hidden; }
  body:is(.mobile-intro, .mobile-exploring) > .header,
  body:is(.mobile-intro, .mobile-exploring) > .mobile-nav { display: none; }
  body.mobile-intro main > :not(.hero), body.mobile-intro > footer,
  body.mobile-exploring .hero { display: none; }

  /* The entrance contains the original film and the one original logo. */
  .hero {
    height: 100svh; height: 100dvh; min-height: 0;
    align-items: flex-start; background: #04172b;
  }
  .hero .hero-image {
    inset: 0; height: 100%; background: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-video, .hero-video-poster { object-position: 55% center; filter: none; }
  .hero-image::after { background: none; }
  .hero .hero-shade {
    background: linear-gradient(180deg, #03162cd6, #03162c00 28%, #03162c00 68%, #03162cbd);
  }
  .hero .hero-copy {
    display: block; min-height: 0; width: 100%; margin: 0;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 0;
  }
  .hero .hero-copy > :not(.hero-brand-heading),
  .hero .blueprint, .hero .aurora, .hero .scroll-hint { display: none; }
  .hero .hero-copy .hero-brand-heading {
    width: min(76vw, 340px); max-width: 100%; margin: 0;
  }
  .hero .mobile-start {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; z-index: 4;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    min-height: 46px; padding: 11px 17px; border: 1px solid #a5c5dd91;
    border-radius: 5px; background: #04182bb3;
    color: #eff8ff; font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .mobile-start:active { background: #15415f; }
  .hero:fullscreen { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; }
  .hero::backdrop { background: #04172b; }
  .hero .mobile-fullscreen:not([hidden]) {
    display: inline-flex; align-items: center; gap: 7px;
    position: absolute; z-index: 4;
    left: max(20px, env(safe-area-inset-left, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    min-height: 44px; padding: 9px 12px;
    border: 1px solid #a5c5dd59; border-radius: 5px;
    background: #04182b80; color: #eff8ff; font-size: .75rem;
  }
  .mobile-fullscreen svg { width: 16px; height: 16px; }
  .mobile-fullscreen:focus-visible { outline: 2px solid #8bddff; outline-offset: 3px; }

  /* Fixed scenery changes by chapter; page content scrolls normally above it. */
  body.mobile-exploring .mobile-story-stage { display: block; }
  .mobile-story-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .mobile-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .65s ease, visibility 0s linear .65s; }
  .mobile-scene.is-current { opacity: 1; visibility: visible; transition-delay: 0s; }
  .mobile-scene-photo {
    width: 100%; height: calc(100% + 48px); max-width: none; object-fit: cover;
    opacity: .48; transform: translateY(calc(-24px + var(--scene-shift, 0px)));
  }
  .mobile-scene[data-scene="objects"] .mobile-scene-photo { object-position: 38% center; opacity: .7; }
  .mobile-scene-drawing {
    position: absolute; right: -12%; bottom: 5%; width: 112%; max-width: none;
    opacity: .24; mix-blend-mode: screen;
    clip-path: inset(0 var(--diagram-reveal, 45%) 0 0);
  }
  .mobile-scene-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #03182bf0, #03182b5e 34%, #04172b70 66%, #04172bf2),
      linear-gradient(90deg, #04172b8c, #04172b40);
  }
  .mobile-story-stage > .aurora-hero {
    inset: 34% 0 auto; width: 100%; height: auto; aspect-ratio: 1400 / 760;
    max-height: 440px;
  }
  body.mobile-exploring main, body.mobile-exploring > footer { position: relative; z-index: 1; }
  body.mobile-exploring main { padding-top: calc(44px + env(safe-area-inset-top, 0px)); }
  body.mobile-exploring > footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* Only the individual controls have a glass surface. The space between them
     is completely clear and lets the reader touch/scroll the content beneath. */
  .mobile-story-top, .mobile-chapters { position: fixed; z-index: 30; pointer-events: none; }
  body.mobile-exploring .mobile-story-top {
    display: flex; align-items: center; justify-content: space-between;
    top: calc(6px + env(safe-area-inset-top, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    min-height: 0; padding: 0; gap: 12px;
    background: none; border: 0; box-shadow: none;
  }
  .mobile-story-top > *, .mobile-chapters a {
    pointer-events: auto; color: #e1f0fb;
    border: 1px solid #a0c9e538; background: #06213959;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 0 2px 10px #00132626, inset 0 1px #c1e8ff12;
    text-shadow: 0 1px 5px #001021;
  }
  .mobile-chapter-label, .mobile-return {
    display: inline-flex; align-items: center; gap: 5px;
    min-height: 34px; padding: 6px 11px; border-radius: 20px;
    font-size: 11px; line-height: 1.2; white-space: nowrap;
  }
  .mobile-chapter-label { font-weight: 600; letter-spacing: .025em; }
  .mobile-return { font-weight: 500; }
  .mobile-return > span { color: #81d6ff; font-size: 15px; line-height: 1; }
  body.mobile-exploring .mobile-chapters {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(410px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    left: 50%; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    gap: 6px; padding: 0; margin: 0;
    border: 0; background: none; box-shadow: none;
  }
  .mobile-chapters a {
    display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center;
    min-width: 0; min-height: 44px; padding: 5px 2px; border-radius: 12px;
    font-size: 10px; line-height: 1.1; white-space: nowrap;
    transition: color .2s, background .2s, border-color .2s;
  }
  .mobile-chapters a svg { width: 15px; height: 15px; flex: 0 0 auto; color: #a2d1eb; }
  .mobile-chapters a[aria-current] { background: #17638966; border-color: #7cdaffb3; color: #fff; box-shadow: inset 0 -1px #7cdaff; }
  .mobile-chapters a[aria-current] svg { color: #92e0ff; }
  .mobile-chapters a:active, .mobile-story-top > :active { background: #17638991; }
  .mobile-story-top > :focus-visible, .mobile-chapters a:focus-visible { outline: 2px solid #8bddff; outline-offset: 2px; }

  body.mobile-exploring .wrap { width: calc(100% - 32px); max-width: 720px; }
  body.mobile-exploring .section {
    padding: 34px 0 48px; border-top: 1px solid #7fa9c32a;
    background: linear-gradient(120deg, #061d328f, #061d323b); overflow: hidden;
  }
  body.mobile-exploring .section + .section { margin-top: 40px; }
  body.mobile-exploring .section::before, body.mobile-exploring .section::after,
  body.mobile-exploring .section > .blueprint,
  body.mobile-exploring .section > .aurora { display: none; }
  body.mobile-exploring .section h2 {
    font-size: clamp(1.4rem, 5.4vw, 2.05rem); line-height: 1.15; letter-spacing: -.035em; text-wrap: balance;
  }
  body.mobile-exploring .eyebrow { font-size: .625rem; letter-spacing: .13em; margin-bottom: 13px; }
  body.mobile-exploring .red-rule { width: 48px; height: 3px; margin-block: 16px; }
  body.mobile-exploring .section-heading { margin-bottom: 24px; gap: 18px; }
  body.mobile-exploring .side-note { display: none; }
  body.mobile-exploring .section-lead { font-size: .9375rem; line-height: 1.6; }
  .services h2 .mobile-only { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .service-card { min-width: 0; border-color: #88afc568; border-radius: 10px; box-shadow: 0 10px 25px #0002; }
  .service-card, .service-card:hover { transform: none; }
  .service-card .service-art { height: auto; aspect-ratio: 2.32; }
  .service-art svg { position: absolute; left: 11px; bottom: 9px; margin: 0; width: 27px; height: 27px; }
  .service-card .service-meta { padding: 14px 11px 12px; background: #071e32d6; }
  .service-card .service-meta h3 { font-size: clamp(.8rem, 3.6vw, 1.0625rem); line-height: 1.25; margin-bottom: 8px; overflow-wrap: anywhere; }
  .service-card .service-meta p { font-size: .8125rem; line-height: 1.5; }
  .service-card .service-more { width: 100%; margin-top: 15px; min-height: 44px; padding: 4px 6px; gap: 3px; font-size: .75rem; }
  .service-card .service-more-atom { width: 30px; height: 29px; flex-basis: 30px; }

  /* Editorial cards keep every original paragraph accessible without making
     the first pass a long text-only feed. */
  .team-values .section-lead { max-width: 32ch; margin: 22px 0; }
  .team-values-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; }
  .mobile-disclosure {
    background: #0a253bda; border: 1px solid #7fa7c24d; border-radius: 9px;
  }
  .mobile-disclosure > summary {
    display: flex; flex-direction: column; list-style: none; position: relative;
    min-height: 48px; padding: 16px 13px; cursor: pointer;
  }
  .mobile-disclosure > summary::-webkit-details-marker { display: none; }
  .mobile-disclosure > summary:focus-visible { outline: 2px solid #7bdcff; outline-offset: 3px; }
  .disclosure-title { font-size: .875rem; line-height: 1.35; font-weight: 700; color: #edf7fe; }
  .disclosure-preview { font-size: .75rem; line-height: 1.5; color: #afc7d9; margin-top: 9px; }
  .disclosure-action { font-size: .6875rem; letter-spacing: .025em; color: #86d7ff; margin-top: 15px; }
  .disclosure-action::after { content: ' +'; }
  .mobile-disclosure[open] .disclosure-action { font-size: 0; }
  .mobile-disclosure[open] .disclosure-action::after { content: 'Свернуть −'; font-size: .6875rem; }
  .team-values-copy .mobile-disclosure p { padding: 0 13px 16px; font-size: .8125rem; line-height: 1.65; }

  /* The same six venue photographs become a swipeable, clearly labelled rail.
     Medeo leads; no photograph or original desktop collage is altered. */
  body.mobile-exploring .objects { padding-bottom: 28px; }
  body.mobile-exploring .venue-collage { display: none; }
  .object-layout { display: block; }
  .object-statement { padding: 0 0 6px; margin-bottom: 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; }
  .object-statement p { font-size: .8125rem; line-height: 1.5; margin: 0; }
  .object-statement .location { grid-column: 1 / -1; font-size: .6875rem; margin: 0; }
  .objects .object-list {
    display: flex; gap: 12px; width: 100%; padding: 0 0 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .objects .object-list::-webkit-scrollbar { display: none; }
  .objects .object-row {
    position: relative; flex: 0 0 78%; min-width: 0; height: 200px;
    height: clamp(180px, 34svh, 220px);
    padding: 16px; gap: 10px; overflow: hidden; isolation: isolate;
    border: 1px solid #8aafc663; border-radius: 11px; scroll-snap-align: start;
    align-items: flex-end; background: #102e44; padding-bottom: 48px;
  }
  .object-row[data-venue-index="4"] { order: -1; }
  .objects .object-thumbnail { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .objects .object-row::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, #031426ed); }
  .objects .object-row h3 { font-size: 1.05rem; line-height: 1.2; text-shadow: 0 2px 12px #0009; }
  .objects .object-row .object-number { position: absolute; top: 14px; left: 14px; font-size: .7rem; background: #04172bbd; padding: 4px 8px; border-radius: 4px; }
  .object-open-label { display: block; position: absolute; bottom: 14px; left: 16px; font-size: .6875rem; line-height: 1.2; color: #c1eaff; }
  .mobile-gallery-controls { display: flex; width: 100%; gap: 16px; align-items: center; justify-content: center; margin: 8px auto 0; }
  .mobile-gallery-controls button { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #7099b64f; border-radius: 50%; background: #0a2a42ad; font-size: 1.35rem; }
  .mobile-gallery-controls button:disabled { opacity: .3; cursor: default; }
  .mobile-gallery-counter { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-size: .6875rem; letter-spacing: .13em; color: #bdd4e4; }

  .partnership-intro { display: block; margin-bottom: 24px; }
  .partnership-intro .section-lead { margin-top: 12px; font-size: .8125rem; }
  .swiss-feature { grid-template-columns: minmax(0, 1fr); background: #092439e6; }
  .swiss-identity { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 15px; padding: 20px 16px; align-items: center; }
  .swiss-identity .partner-label { grid-column: 1 / -1; margin: 0 0 3px; font-size: .625rem; }
  .swiss-identity .swiss-logo { width: 100%; padding: 15px 9px; min-height: 66px; }
  .swiss-identity .swiss-specialty { font-size: .8125rem; margin: 0; }
  .swiss-identity .partner-site { grid-column: 1 / -1; font-size: .75rem; margin: 0; }
  .swiss-details { padding: 16px; }
  .swiss-disclosure { margin-bottom: 18px; background: #16395175; }
  .swiss-disclosure .swiss-description { padding: 0 14px; font-size: .8125rem; line-height: 1.6; }
  .swiss-capabilities { margin: 18px 14px; grid-template-columns: 1fr; }
  .swiss-capabilities h4 { font-size: .8125rem; }
  .swiss-capabilities p, .swiss-cooperation { font-size: .8125rem; }
  .sport-tags { gap: 6px; }
  .sport-tags span { font-size: .625rem; padding: 5px 8px; }
  .vendor-section { margin-top: 28px; }
  .vendor-heading { display: block; margin-bottom: 16px; }
  .vendor-heading h3 { font-size: 1rem; }
  .vendor-heading p { font-size: .75rem; margin-top: 8px; }
  .vendor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .vendor-grid .vendor-logo { width: 100%; min-width: 0; height: 66px; padding: 12px 9px; flex-basis: auto; }

  .contact-layout { grid-template-columns: 1fr; gap: 22px; }
  .contact h2 br { display: none; }
  #contact-links { margin-top: 20px; }
  #contact-links a { font-size: .9375rem; min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
  #contact-links .contact-address, #contact-links .contact-legal { font-size: .75rem; line-height: 1.5; }
  .project-form { padding: 6px 16px 18px; background: transparent; border: 0; box-shadow: none; }
  .project-form input, .project-form select, .project-form textarea { font-size: 16px; }
  .project-form label { font-size: .75rem; }
  .project-form .button { font-size: .875rem; }
  .footer-content { gap: 14px; flex-wrap: wrap; font-size: .6875rem; }
  .footer-content p { font-size: .625rem; letter-spacing: .08em; }

  @media (min-width: 580px) {
    body.mobile-exploring .wrap { width: calc(100% - 56px); }
    .service-grid { gap: 18px; }
    .service-card .service-meta { padding: 18px; }
    .service-card .service-meta h3 { font-size: 1.1rem; }
    .service-card .service-more { width: auto; min-width: 145px; }
    .team-values .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0 28px; }
    .team-values .eyebrow { grid-column: 1 / -1; }
    .team-values h2, .team-values .red-rule, .team-values .section-lead { grid-column: 1; }
    .team-values-copy { grid-column: 2; grid-row: 2 / 5; }
    .objects .object-row { flex-basis: 48%; }
    .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; }
    .vendor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  @media (max-width: 350px) {
    .service-card .service-meta { padding-inline: 9px; }
    .service-card .service-more { font-size: .6875rem; padding-inline: 4px; }
    .service-card .service-more-atom { width: 26px; height: 26px; }
    .object-statement { grid-template-columns: 1fr; }
  }
  @media (orientation: landscape) {
    /* Reserve room for the chapter controls above, arrows below and the
       floating navigation even while Chrome's address bar is visible. */
    .objects .object-row {
      flex-basis: 46%; height: 140px;
      height: clamp(96px, calc(100svh - 132px), 176px);
      padding: 12px 13px 30px;
    }
    .objects .object-row h3 { font-size: .9375rem; line-height: 1.15; }
    .objects .object-row .object-number { top: 8px; left: 12px; font-size: .625rem; padding: 3px 6px; }
    .object-open-label { bottom: 10px; left: 13px; font-size: .625rem; }
    .object-statement { margin-bottom: 10px; }
    .mobile-gallery-controls { margin-top: 4px; }
  }
  @media (max-height: 500px) and (orientation: landscape) {
    html { scroll-padding-top: calc(42px + env(safe-area-inset-top, 0px)); }
    body.mobile-exploring main { padding-top: calc(38px + env(safe-area-inset-top, 0px)); }
    .hero .hero-copy { padding-top: 8px; }
    .hero .hero-copy .hero-brand-heading { width: 260px; }
    .hero .mobile-start, .hero .mobile-fullscreen:not([hidden]) { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
    .mobile-story-stage > .aurora-hero { inset-block-start: 10%; }
    body.mobile-exploring .mobile-story-top { top: calc(4px + env(safe-area-inset-top, 0px)); }
    .mobile-chapter-label, .mobile-return { min-height: 30px; padding-block: 4px; font-size: 10px; }
    body.mobile-exploring .mobile-chapters { width: min(470px, calc(100% - 40px)); bottom: calc(5px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
    .mobile-chapters a { min-height: 34px; flex-direction: row; gap: 5px; border-radius: 18px; font-size: 11px; }
    .mobile-chapters a svg { width: 13px; height: 13px; }
    /* Keep the object's photographs visible even with the browser chrome open. */
    .object-detail-dialog .service-detail-head { padding: 10px 62px 10px 18px; }
    .object-detail-dialog .service-detail-head .dialog-title { font-size: 1.15rem; }
    .object-detail-dialog .dialog-close { top: 5px; width: 34px; height: 34px; min-height: 34px; }
    .object-detail-dialog .service-detail-scroll { padding: 14px 18px; }
    .object-detail-dialog .service-detail-foot { padding: 6px 18px; }
    .object-detail-dialog .service-detail-foot .button { min-height: 34px; padding: 7px 14px; font-size: .75rem; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-scene { transition: none; }
  .mobile-scene-photo { transform: translateY(-24px); }
  .mobile-scene-drawing { clip-path: none; }
}
