/* responsive.css — loaded after main.css */

/* ==========================================================================
   Phones and tablets (320px to 1099px). Every rule sits inside a max-width
   query, so desktops (1100px and wider) are untouched.
   ========================================================================== */

/* ---------- narrow windows with a classic scrollbar: no sideways scroll at 320px ---------- */
@media (max-width: 359px) {
  body { min-width: 0; }
}

/* ---------- hero (phones): headline, screens and both buttons on the first screen ---------- */
@media (max-width: 699px) {
  /* the wall gives up some height on short phones (375 x 667) so both buttons stay in view */
  .wall { height: clamp(250px, calc(100svh - 392px), min(124vw, 560px)); }

  /* proof points: spacing instead of dots, so no wrapped line starts with a stray separator */
  .hero__proof { gap: 6px 16px; }
  .hero__proof li + li::before { content: none; }

  /* the pause button gets its own breathing room and a full-size tap target */
  .wall-pause { min-height: 44px; margin-top: 14px; padding-inline: 14px; }
}
@media (max-width: 699px) and (max-height: 600px) {
  /* very short phones (320 x 568): the eyebrow gives its room to the screens and buttons */
  .eyebrow-pill { display: none; }
  .wall { height: 236px; }
}

/* ---------- hero scene pills: 44px tap targets, same look (transparent top and bottom border) ---------- */
@media (max-width: 1099px) {
  .scenes__pills .scenes__pill {
    height: 44px;
    border-style: solid;
    border-color: transparent;
    background-clip: padding-box;
  }
  .scenes__pills .scenes__pill:hover,
  .scenes__pills .scenes__pill[aria-pressed="true"] { background-clip: padding-box; }
}
@media (max-width: 699px) {
  .scenes__pills { padding-block: 1px; }
  .scenes__pills .scenes__pill { border-width: 4px 0; border-radius: 18px / 22px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .scenes__pills { padding-block: 2px; }
  .scenes__pills .scenes__pill { border-width: 3px 0; border-radius: 19px / 22px; }
  /* the pause button never wraps onto two lines */
  .scenes .wall-pause { flex: none; white-space: nowrap; }
}

/* ---------- hero scene row (small tablets): label, pills and pause fit between the gutters ---------- */
@media (min-width: 700px) and (max-width: 899px) {
  .scenes__label { display: none; }
  .scenes .wall-pause { justify-content: center; width: 44px; height: 44px; padding: 0; }
  .scenes .wall-pause__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- tap targets: 44px for the controls people use with a thumb ---------- */
@media (max-width: 1099px) {
  .reelbtn { width: 44px; height: 44px; }
  .reelseg { height: 44px; }
  .dtile__go { height: 44px; min-width: 44px; }
  /* text links: a taller hit area without moving anything */
  .dtile__link { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .aboard__go { padding-block: 9px; margin-block: -9px; }
  .site-footer__nav a { display: inline-block; padding-block: 8px; margin-block: -8px; }
}

/* ---------- contact card and footer logo on the narrowest phones ---------- */
@media (max-width: 359px) {
  /* the email address fits on one line instead of breaking before its last letter */
  .ccard__row, .ccard__directions { padding-inline: 18px; }
  /* the footer logo keeps the same gutter on both sides */
  .brand--footer { width: 100%; max-width: 300px; height: auto; }
  .brand--footer .logo { width: 100%; height: auto; }
}

/* ---------- footer (800px to 1099px): the contact column never squeezes the email address ---------- */
@media (min-width: 800px) and (max-width: 1099px) {
  .site-footer__grid {
    grid-template-columns: minmax(min-content, 1.4fr) minmax(min-content, .8fr) minmax(min-content, 1fr);
    column-gap: 28px;
  }
}

/* ---------- hero scene row (tablets): the pause button matches the pill bar's height ---------- */
@media (min-width: 900px) and (max-width: 1099px) {
  .scenes .wall-pause { min-height: 44px; }
}

/* ---------- footnotes (phones): the second note starts its own line, without a stray indent ---------- */
@media (max-width: 599px) {
  .footnote__gap { display: block; margin-left: 0; }
}

/* ---------- header menu button: a 44px hit area without changing how it looks ---------- */
@media (max-width: 1099px) {
  .menu-toggle { position: relative; }
  .menu-toggle::after { content: ""; position: absolute; inset: -4px -2px; }
}

/* ---------- mobile menu on short screens (320 x 568): links, button, email and address all fit ---------- */
@media (max-width: 1099px) and (max-height: 600px) {
  .mobile-menu { padding-top: calc(var(--header-h) + 12px); gap: 20px; }
  .mobile-menu__nav a { padding-block: 10px; }
}

/* Round 3 */
/* ==========================================================================
   Phones only (699px and narrower). Desktop and tablet are untouched.
   ========================================================================== */

/* ---------- hero: the scene selector becomes a glass rail that fades at the edges ----------
   The rounded bar was wider than the phone, so its left end showed and its right end was cut
   through "Pharmacy". It now runs edge to edge, its ends dissolve into the gutters, and the
   first pill starts on the same 18px edge as the buttons beneath it. */
@media (max-width: 699px) {
  .hero .scenes__pills {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    border-radius: 0;
    border-inline-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
}

/* ---------- Our work: the caption rule and the controls sit on the text edge ----------
   The hairline above the caption only ran as far as the caption's words, so its length
   changed with every chapter; it now spans the column. The chapter bar and buttons sat 2px
   outside the 18px text edge on both sides. */
@media (max-width: 699px) {
  #work .reelstage__cap { display: flex; }
  #work .reelstage__controls { padding-inline: 6px; }
}

/* ---------- Why choose us: every small card uses the same header ----------
   The cards with a picture set their icon beside the title, the plain cards stacked it above,
   so the column alternated between two layouts. All cards now put the 44px disc beside the
   title, with the same 20px step to the text; the stack is about 400px shorter. */
@media (max-width: 699px) {
  .why2 .why2__item .why2__plain {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
  }
  .why2 .why2__item .why2__plain .why2__ico { width: 44px; height: 44px; margin: 0; }
  .why2 .why2__item .why2__plain .why2__ico .icon { width: 22px; height: 22px; }
  .why2 .why2__item .why2__plain .why2__text { grid-column: 1 / -1; margin-top: 10px; }
}

/* ---------- Design & development: no line starts with a dash ----------
   "— and everything around them." opened the second line; balanced lines break before
   "screens" instead. */
@media (max-width: 699px) {
  .design .section-head .section-intro { text-wrap: balance; }
}

/* ---------- Displays: the "Menu updated" note clears the outline number ----------
   The note sat level with "01", 13px from its last digit, so the number, the badge and the
   note crowded into one corner. It now drops just below the number. */
@media (max-width: 699px) {
  #displays .dtile .dnote { top: calc(var(--numt) + var(--numfs) + 10px); }
}

/* ---------- Contact: the interest chips fill each row ----------
   On a phone the chips wrapped to a ragged right edge, and at 360px the first three sat one
   to a row. Each row now stretches to both edges of the form, so the chips read as one block
   in line with the fields above; the narrowest phones get 2px less padding so two fit a row. */
@media (max-width: 699px) {
  #contact .chipset .chip { flex: 1 1 auto; }
  #contact .chipset .chip span { width: 100%; padding-inline: 12px; }
}
@media (max-width: 389px) {
  #contact .chipset { column-gap: 6px; }
  #contact .chipset .chip span { padding-inline: 10px; gap: 7px; }
}

/* ---------- touch: a press you can feel, without the grey tap box ----------
   Phones drew a square grey flash over rounded controls. Controls that answer a press
   themselves drop that flash, and the ones that had no press state now dip slightly. */
@media (max-width: 699px) {
  :is(.btn, .chip, .scenes__pill, .reelbtn, .dtile__go, .wall-pause, .menu-toggle) { -webkit-tap-highlight-color: transparent; }
  :is(.btn--ghost, .scenes__pill, .reelbtn, .dtile__go, .wall-pause, .menu-toggle):active { scale: .97; }
}
