/* =========================================================
   MOBILE (≤ 76.7rem)
   Same trick as desktop: 1rem = 10 design px, but the design
   width is now 390, so every "px" below = CSS px on a 390 phone
   and scales proportionally on other phones.
   NOTE: the breakpoint is written in upper-case PX so build.py
   (which converts lower-case px → rem) leaves it alone.
   ========================================================= */
@media (max-width: 767PX) {

  html { font-size: calc(100vw / 39); overflow-x: clip; }

  /* ---------- Section panel: slim dot strip on phones ---------- */
  .sidenav {
    left: 0.6rem; right: auto; top: 50%; width: auto; height: auto;   /* centred strip, clear of the sticky nav */
    transform: translate(-1.2rem, -50%);
    padding: 0.6rem 0.5rem;
    border-radius: 99.9rem;
    background: rgba(18, 64, 110, 0.72);
    -webkit-backdrop-filter: blur(0.8rem); backdrop-filter: blur(0.8rem);
    box-shadow: 0 1rem 2rem -1.2rem rgba(3, 25, 45, 0.6);
  }
  .sidenav.is-visible { transform: translate(0, -50%); }
  .sidenav__tab { display: none; }              /* the dot strip is the control on phones */
  .sidenav__inner { display: block; height: auto; padding: 0; }
  .sidenav__list { gap: 0; }
  .sidenav__link {
    position: relative; display: block;
    width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%;
    font-size: 0; letter-spacing: 0;                 /* labels hidden, dots only */
    -webkit-tap-highlight-color: transparent;
  }
  .sidenav__link::before {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.4rem;
    border-radius: 50%; background: rgba(255, 255, 255, 0.55);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  }
  .sidenav__link:active::before { transform: scale(1.4); background: var(--white); }
  .sidenav__link:hover { background: none; }
  .sidenav__link.is-current { background: none; }
  .sidenav__link.is-current::before {
    width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.4rem;
    background: var(--accent-gold); transform: scale(1.6);
    box-shadow: 0 0 0 0.4rem rgba(255, 196, 107, 0.22);
  }
  .sidenav__logo { display: none; }

  /* ---------- Header ---------- */
  .topbar { height: auto; padding: 0.8rem 1.6rem; }
  .topbar__text { font-size: 1.1rem; line-height: 1.4; white-space: normal; }
  .nav { height: 5.6rem; padding: 0 1.6rem; }
  .nav__inner { width: 100%; justify-content: space-between; gap: 0.8rem; }
  .nav__shield { width: 3rem; height: 3.5rem; padding: 0.2rem; }
  .nav__wordmark { width: 13.8rem; height: 1.23rem; }
  .nav__menu { display: none; }
  .btn-icon--nav { padding: 0.4rem 1.4rem 0.4rem 0.4rem; gap: 0.7rem; }
  .btn-icon--nav .btn-icon__circle { width: 2.8rem; height: 2.8rem; }
  .btn-icon--nav .btn-icon__circle img { width: 1.1rem; height: 1.1rem; }
  .btn-icon--nav .btn-icon__label { font-size: 1.3rem; }
  .site-header { top: -3.4rem; }

  /* ---------- Hero ---------- */
  .hero { height: auto; padding: 3.6rem 2rem 33rem; }
  .hero__bg, .hero__video {
    left: 0; top: 0; width: 100%; height: 100%;
    transform: none; object-position: 74% 100%;
  }
  .hero__shade { left: 0; top: 0; width: 100%; height: 72%;
    background: linear-gradient(180deg, rgba(10, 88, 170, 0.78) 0%, rgba(10, 88, 170, 0.5) 55%, rgba(10, 88, 170, 0) 100%); }
  .hero__shade img { display: none; }
  .hero__content { position: relative; left: 0; top: 0; width: 100%; gap: 2.2rem; }
  .hero__copy { gap: 1.6rem; }
  .hero__pill { padding: 0.7rem 1.4rem 0.7rem 1.2rem; font-size: 1.1rem; }
  .hero__title { font-size: 3.8rem; line-height: 1.12; letter-spacing: -0.14rem; white-space: normal; }
  .hero__title-accent { letter-spacing: -0.08rem; }
  .hero__text { font-size: 1.6rem; }
  .hero__lead, .hero__sub { width: auto; white-space: normal; }
  .hero__sub { font-size: 1.5rem; }
  .hero__facts { max-width: none; gap: 0.8rem; }
  .hero__fact { padding: 0.7rem 1.4rem 0.7rem 1.2rem; gap: 0.8rem; }
  .hero__fact-label { font-size: 1rem; letter-spacing: 0.1rem; }
  .hero__fact-label::after { height: 1.2rem; margin-left: 0.8rem; }
  .hero__fact-value { font-size: 1.4rem; }
  .hero .btn-icon { gap: 1rem; padding: 0.6rem 2.2rem 0.6rem 0.6rem; }
  .hero .btn-icon__circle { width: 3.8rem; height: 3.8rem; }
  .hero .btn-icon__circle img { width: 1.5rem; height: 1.5rem; }
  .hero .btn-icon__label, .hero .btn-ghost { font-size: 1.6rem; }
  .hero .btn-ghost { padding: 0.6rem 2rem; }

  /* ---------- Marquee ---------- */
  .marquee__item { padding: 0.7rem 1.8rem; font-size: 1.4rem; }
  .marquee__icon { width: 2.4rem; height: 2.4rem; }

  /* ---------- Stats ---------- */
  .stats { height: auto; padding: 2.8rem 1.6rem 5.6rem; }
  .stats__inner { width: 100%; height: auto; padding: 0; }
  .stats__grid { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 0; }
  .stat, .stat--wide-icon { padding: 1.8rem 0.6rem; }
  .stat--last { justify-self: stretch; }
  .stat + .stat::before {                     /* short horizontal divider between stacked stats */
    left: 50%; top: 0; width: 6.4rem; height: 0.1rem; margin-left: -3.2rem;
  }
  .stat__icon { display: none; }
  .stat__value { height: auto; padding-top: 0; font-size: 2.8rem; line-height: 1.1; }
  .stat__label { width: auto; font-size: 1.2rem; line-height: 1.4; white-space: normal; }
  .stat__label br { display: none; }
  .stats__robot { display: none; }

  /* ---------- Why ConQuest (platform) ---------- */
  .platform {
    --wave-k: 0.2521; --wave-left: 0; --wave-top: -7.34; --ball-r: 20;
    height: auto; padding: 6.4rem 2rem 5.6rem;
  }
  .platform__wave { width: 39rem; }
  .platform__wave--1 { left: 0; top: -0.734rem; height: auto; }
  .platform__wave--2 { left: 0.037rem; top: -0.395rem; height: auto; }
  .wave-ball { width: 8rem; height: 8rem; }
  .platform__row { flex-direction: column; align-items: stretch; height: auto; gap: 3.6rem; }
  .platform__copy { width: 100%; height: auto; }
  .platform__lead { font-size: 2.2rem; }
  .platform__text { width: auto; font-size: 1.6rem; }
  .platform__text p + p { margin-top: 1.8rem; }
  .platform__actions { flex-wrap: wrap; }
  .btn-solid { padding: 1.5rem 2.2rem; font-size: 1.5rem; }
  .btn-outline { padding: 1.25rem 1.9rem; font-size: 1.5rem; border-width: 0.25rem; }
  .platform__stage { width: 100%; height: 20.4rem; }
  .platform__image { width: 100%; height: 100%; }
  .platform__play { width: 6.8rem; height: 6.8rem; margin: -3.4rem 0 0 -3.4rem; }
  .platform__play svg { width: 2.6rem; height: 2.6rem; }
  .platform__caption { font-size: 1.4rem; letter-spacing: -0.04rem; }
  .platform__row .ball3d { left: auto; right: -2.2rem; top: auto; bottom: 1.6rem; width: 10.4rem; height: 10.4rem; }

  /* ---------- Reasons carousel ---------- */
  .reasons { padding: 1.6rem 0 6.4rem; }
  .reasons__inner { padding: 4rem 0 3.2rem; gap: 2.2rem; }
  .reasons__head { margin-bottom: 3rem; padding: 0 2rem; }
  .reasons__title { font-size: 3rem; line-height: 1.15; white-space: normal; text-wrap: balance; }
  .reasons__sub { font-size: 1.5rem; white-space: normal; }
  .reasons__track { gap: 1.2rem; }
  .reason-card { width: 30rem; height: auto; border-radius: 1.4rem; }
  .reason-card__media { padding: 1rem; }
  .reason-card__body { padding: 0.8rem 1.8rem 2rem; gap: 0.6rem; }
  .reason-card__title { height: auto; margin-bottom: 0.2rem; font-size: 2rem; white-space: normal; }
  .reason-card__text { font-size: 1.3rem; line-height: 1.9rem; }
  .reasons .ball3d { left: 26.2rem; top: -4.4rem; width: 11rem; height: 11rem; }

  /* ---------- Agenda ---------- */
  .agenda { padding: 4.8rem 0 15rem; }
  .agenda__wave { width: 39rem; height: auto; }
  .agenda__wave--1 { top: -2.2rem; }
  .agenda__wave--2 { top: -1.7rem; }
  .agenda__sand { width: 100%; height: 24rem; }
  .agenda__head { width: 100%; padding: 0 2rem; gap: 1.2rem; }
  .agenda__eyebrow { font-size: 1.6rem; }
  .agenda__title { font-size: 2.8rem; line-height: 1.15; white-space: normal; text-wrap: balance; }
  .agenda__intro { width: auto; font-size: 1.4rem; line-height: 2.1rem; }
  .agenda__body { width: 100%; padding: 2.2rem 1.6rem; gap: 1.6rem; }
  /* days become an accordion: tabs hidden, every day stacked and expandable */
  .agenda__tabs { display: none; }
  .agenda__panels {
    height: auto; margin-right: 0; overflow: visible;
    display: flex; flex-direction: column; gap: 1rem;
    -webkit-mask-image: none; mask-image: none;
  }
  .agenda__acc {
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    width: 100%; padding: 1.4rem 1.6rem 1.4rem 1.8rem;
    border: 0.1rem solid var(--sand-500); border-radius: 1.6rem;
    background: var(--white); color: var(--sand-900); text-align: left; cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  }
  .agenda__acc.is-open { background: var(--sand-900); border-color: var(--sand-900); color: #f3f6f9; }
  .agenda__acc-text { display: flex; flex-direction: column; gap: 0.3rem; }
  .agenda__acc-text b { font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
  .agenda__acc-text small { font-weight: 700; font-size: 1rem; letter-spacing: 0.12rem; text-transform: uppercase; opacity: 0.7; }
  .agenda__acc-icon {
    position: relative; flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%;
    background: var(--sand-100);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s;
  }
  .agenda__acc-icon::before, .agenda__acc-icon::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 1.2rem; height: 0.2rem; margin: -0.1rem 0 0 -0.6rem;
    border-radius: 0.2rem; background: var(--sand-900);
  }
  .agenda__acc-icon::after { transform: rotate(90deg); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
  .agenda__acc.is-open .agenda__acc-icon { background: rgba(255, 255, 255, 0.16); }
  .agenda__acc.is-open .agenda__acc-icon::before, .agenda__acc.is-open .agenda__acc-icon::after { background: #f3f6f9; }
  .agenda__acc.is-open .agenda__acc-icon::after { transform: rotate(0deg); }        /* + becomes − */

  .agenda__panel, .agenda__panel[hidden] {
    display: grid; grid-template-rows: 0fr; gap: 0;
    transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .agenda__panel.is-open { grid-template-rows: 1fr; }
  .agenda__panel.is-entering { animation: none; }
  .agenda__panel-inner { min-height: 0; overflow: hidden; gap: 1.2rem; }
  .agenda__panel.is-open .agenda__panel-inner { padding: 0.4rem 0 0.8rem; }
  .agenda__daylabel { display: none; }
  .agenda__panel-inner > *, .agenda__day > *, .agenda__summary > *, .agenda__row > * { flex: none; }
  .agenda__summary { flex-direction: column; gap: 1.2rem; }
  .agenda__row { flex-direction: column; gap: 0.8rem; }
  .ag-tag { width: auto; padding: 1.2rem 1.8rem; font-size: 1.4rem; }
  .ag-session, .ag-card--summary, .ag-dual { padding: 1.6rem; }
  .ag-dual__cols span:first-child { display: none; }
  .ag-dual__row { flex-wrap: wrap; gap: 0.6rem 0.8rem; }
  .ag-dual__time { width: 100%; }
  .ag-chip { padding: 1rem 1.2rem; font-size: 1.25rem; }
  .agenda .ball3d { left: auto; right: 1.2rem; bottom: 1.8rem; width: 13rem; height: 13rem; }

  /* ---------- Speakers ---------- */
  .speakers { padding: 5.6rem 0; }
  .speakers__inner { width: 100%; padding: 0 2rem; gap: 2.4rem; }
  .speakers__title { width: auto; font-size: 3.6rem; line-height: 1.15; }
  .speakers__sub { width: auto; font-size: 1.5rem; }
  .speakers__sub br { display: none; }
  .speakers__grid { flex-direction: column; width: 100%; gap: 1.6rem; }
  .speaker { padding: 0; }
  .speaker__flipper, .speaker__card { height: 42rem; }
  .speaker__card { gap: 2.4rem; padding: 1.2rem 1.2rem 2.4rem; }
  .speaker__photo { width: 32.6rem; height: 21.8rem; }
  .speaker__name { font-size: 3rem; }
  .speaker__flip-hint { right: 1.4rem; bottom: 1.4rem; }
  .speaker__back { padding: 2.8rem 2.4rem; gap: 1.4rem; }
  .speaker__session { font-size: 2.4rem; }
  .speaker__desc { font-size: 1.5rem; }
  .speakers__more p { font-size: 1.4rem; white-space: normal; }
  .shades { --w: 8.4rem; --h: 3.93rem; }

  /* ---------- Passes ---------- */
  .passes { padding: 5.6rem 0 4.8rem; }
  .passes__inner { width: 100%; padding: 0 2rem; gap: 3.2rem; }
  .passes__row { flex-direction: column; align-items: stretch; gap: 2.8rem; }
  .passes__copy { position: static; width: 100%; }
  .passes__title { font-size: 2.8rem; line-height: 1.15; }
  .passes__sub { padding-top: 1.2rem; font-size: 1.6rem; }
  .pass { top: calc(1.6rem + var(--i) * 1.4rem); padding: 2rem; }
  .pass--featured .pass__kicker { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .pass--featured .pass__amount { font-size: 5.2rem; line-height: 5.4rem; }
  .pass--featured .pass__cur { font-size: 2.4rem; }
  .pass__desc { font-size: 1.35rem; }
  .shades--passes { --w: 9.6rem; --h: 4.49rem; left: 26.8rem; top: -0.6rem; }
  .hotel { flex-wrap: wrap; gap: 1.4rem 1.6rem; padding: 1.8rem; }
  .hotel__icon { width: 5.6rem; height: 5.6rem; }
  .hotel__icon img { left: 0.8rem; top: 0.8rem; width: 4rem; height: 4rem; }
  .hotel__text { flex: 1 1 20rem; }
  .hotel__kicker { margin-bottom: 0.4rem; font-size: 1.2rem; }
  .hotel__name { font-size: 1.7rem; line-height: 1.2; }
  .hotel__btn { width: 100%; text-align: center; }

  /* ---------- Venue bento ---------- */
  .venue { padding: 5.6rem 0 4rem; }
  .venue__grid { width: 100%; padding: 0 1.6rem; gap: 1.2rem; }
  .venue__row { flex-direction: column; gap: 1.2rem; }
  .venue__row:nth-child(2) { display: grid; grid-template-columns: 1fr 1fr; }
  .tile--copy, .tile--hero, .tile--stat, .tile--photo, .tile--pano, .venue__details { width: auto; }
  .tile--copy { padding: 2.4rem; }
  .venue__title { font-size: 2.8rem; line-height: 1.15; }
  .venue__text { font-size: 1.5rem; line-height: 1.55; }
  .tile--hero { padding: 1rem; }
  .tile--stat { padding: 1.8rem; }
  .venue__stat { font-size: 5.4rem; line-height: 4.8rem; }
  .tile--photo .tile__media { height: 11.2rem; }
  .tile--pano .tile__media { height: 11.8rem; }
  .tile--pano figcaption { font-size: 1.2rem; }
  .tile--onsite { flex: none; }
  .tile--onsite li { font-size: 1.35rem; }

  /* ---------- Sponsors ---------- */
  .sponsors { height: auto; padding: 5.6rem 2rem 25rem; }
  .sponsors__robot { top: auto; bottom: 0; height: 23.2rem; }
  .sponsors__robot--left  { width: 15.67rem; }
  .sponsors__robot--right { right: -8.6rem; bottom: -2.2rem; width: 29.2rem; height: auto; }
  .sponsors__inner { width: 100%; gap: 2.6rem; }
  .sponsors__eyebrow { font-size: 1.4rem; }
  .sponsors__title { font-size: 3.4rem; line-height: 1.1; }
  .sponsors__list { width: 100%; height: 9.6rem; gap: 1.2rem; }
  .sponsor__logo--sf { width: 8.6rem; height: 5.95rem; }
  .sponsor__logo--rs { width: 12.8rem; height: 3.3rem; }
  .sponsors__more { padding: 0.9rem 2.2rem; font-size: 1.5rem; border-width: 0.25rem; }

  /* ---------- Convince your boss ---------- */
  .boss {
    height: auto; display: flex; flex-direction: column;
    background: linear-gradient(180deg, #1f7fd6 0%, #58aef0 60%, #8fcaf5 100%);
  }
  .boss__pic { order: 2; display: block; margin-top: 0.8rem; }
  .boss__bg {                                   /* mobile crop: sign + mascot only (boss-mobile.jpg) */
    position: relative; display: block; width: 100%; height: auto; aspect-ratio: 675 / 550; object-fit: cover;
    -webkit-mask-image: linear-gradient(transparent 0, #000 6rem); mask-image: linear-gradient(transparent 0, #000 6rem);
  }
  .boss__wash { display: none; }              /* the section paints its own sky; no blue cast over the mascot */
  .boss__copy { position: relative; left: 0; right: 0; top: 0; order: 1; padding: 4.4rem 2rem 0; }
  .boss__title-small { font-size: 2.2rem; }
  .boss__title-big { font-size: 3.4rem; letter-spacing: -0.14rem; white-space: normal; }
  .boss__text { width: auto; padding-top: 0.4rem; font-size: 1.6rem; letter-spacing: -0.03rem; }

  /* ---------- Final CTA ---------- */
  .final { height: auto; padding: 5.6rem 2rem; }
  .final__inner { width: 100%; gap: 1.8rem; }
  .final__title { font-size: 3.2rem; line-height: 1.1; }
  .final__text { width: auto; font-size: 1.5rem; }
  .final__meta { flex-direction: column; gap: 0.8rem; font-size: 1.1rem; letter-spacing: 0.13rem; white-space: normal; }
  .final__meta i { display: none; }
  .final__meta span {
    display: inline-flex; align-items: center; gap: 0.8rem;
    padding: 0.8rem 1.4rem; border: 0.1rem solid rgba(255, 217, 172, 0.28); border-radius: 99.9rem;
    background: rgba(255, 217, 172, 0.06); white-space: nowrap;
  }
  .final__meta span::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand-orange); }

  /* ---------- Footer ---------- */
  .footer { height: auto; }
  .footer__scene { object-fit: cover; }
  .footer__row {
    position: relative; left: 0; top: 0; width: 100%;
    flex-direction: column-reverse; gap: 1.8rem; padding: 3.2rem 2rem 3.6rem;
  }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 1.2rem 2rem; }
  .footer__nav a, .footer__copy { font-size: 1.3rem; }
  .footer__copy img { width: 3rem; height: 2.24rem; }
}
