/* Phone reading order and type. Desktop composition stays in editorial.css. */
/* Jump links should reach the requested section without a long page traversal. */
html { scroll-behavior: auto; }
.mobile-copy,
.reading-nav {
  display: none;
}

@media (max-width: 700px) {
  :root {
    --mobile-cta-space: calc(80px + env(safe-area-inset-bottom));
  }

  html {
    scroll-padding-top: 20px;
    scroll-padding-bottom: var(--mobile-cta-space);
  }

  a, button, summary {
    scroll-margin-block: 20px var(--mobile-cta-space);
  }

  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }

  .preview-bar {
    font-size: 9px;
    letter-spacing: 0;
    padding-inline: 8px;
  }

  .site-header {
    height: 66px;
  }

  .brand-name {
    font-size: 34px;
  }

  .main-nav {
    top: 61px;
  }

  .hero-editorial {
    padding-top: 14px;
  }

  .hero-editorial .hero-eyebrow {
    font-size: 8px;
    line-height: 1.6;
    letter-spacing: .06em;
  }

  .hero-editorial h1 {
    font-size: clamp(32px, 9.2vw, 38px);
    line-height: 1.42;
    letter-spacing: 0;
    margin-top: 14px;
    padding-left: 0;
  }

  .hero-editorial h1 span:first-child {
    display: block;
  }

  .hero-editorial h1 span:nth-child(n + 2) {
    display: inline;
    font-size: .78em;
    white-space: normal;
  }

  .hero-editorial .hero-lead {
    margin-top: 14px;
    padding-left: 0;
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0;
  }

  .hero-media-column {
    padding-top: 21px;
  }

  .hero-film {
    display: flex;
    flex-direction: column;
    padding: 12px;
  }

  .hero-film .film-topline {
    order: 1;
    font-size: 8px;
    padding: 0;
  }

  .hero-film figcaption {
    order: 2;
    padding: 10px 0 14px;
  }

  .hero-film figcaption h2 {
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0;
  }

  .hero-film figcaption p {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-film .video-frame,
  .hero-film .media-pending {
    order: 3;
  }

  .hero-film.has-portrait .video-frame.is-portrait {
    height: 320px;
    height: min(40svh, 320px);
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 9 / 16;
  }

  .hero-film .video-facts {
    order: 4;
  }

  .instagram-facade .instagram-video-link {
    left: 6px;
    right: 6px;
    bottom: 8px;
    gap: 5px;
    min-height: 46px;
    padding: 8px 5px;
    font-size: 10px;
  }

  .instagram-facade .instagram-video-link .icon {
    width: 15px;
    height: 15px;
  }

  /* The following sections already explain the same points in full. */
  .hero-media-column .viewing-guide,
  .hero-editorial .hero-body,
  .hero-editorial .hero-copy > .text-link,
  .hero-editorial .hero-bottom {
    display: none;
  }

  .hero-editorial .hero-copy > .cta-group {
    margin-top: 22px;
    align-items: stretch;
    gap: 8px;
  }

  .reading-nav {
    order: 9;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 25px;
  }

  .reading-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #c7cbbb;
    background: #f4f5ee;
    color: var(--green);
    padding: 7px 4px;
    font-size: clamp(11px, 3vw, 12px);
    line-height: 1.5;
    white-space: nowrap;
  }

  .reading-nav svg {
    display: none;
  }

  .section {
    padding-block: 58px;
  }

  .section-heading .eyebrow {
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 27px;
    line-height: 1.65;
    letter-spacing: .02em;
  }

  .section-intro {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.9;
  }

  .section-intro br {
    display: none;
  }

  .section-intro .mobile-copy br {
    display: initial;
  }

  .principle p,
  .comparison-item dd,
  .another-choice p,
  .case-intro,
  .flow-list p,
  .faq-answer,
  .menu-row p,
  .final-text {
    font-size: 16px;
    line-height: 1.85;
  }

  .comparison-item > p,
  .concern-list p {
    font-size: 14px;
    line-height: 1.9;
  }

  .concern-list h3,
  .flow-list h3,
  .faq-item summary {
    font-size: 15px;
    line-height: 1.8;
  }

  .comparison-item dt,
  .case-fields > div {
    font-size: 12px;
  }

  .store-info > div {
    font-size: 13px;
    line-height: 1.9;
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .menu-row.menu-confirmed { gap: 9px 12px; }
  .menu-confirmed h3 { font-size: 17px; letter-spacing: 0; line-height: 1.7; }
  .menu-confirmed strong { font-size: 18px; line-height: 1.7; }
  .menu-confirmed .menu-duration { font-size: 15px; }
  .menu-confirmed .menu-description { font-size: 12px; }
  .menu-inclusion { font-size: 13px; }
  .menu-consultation { padding: 20px 18px; }
  .menu-consultation h3 { font-size: 19px; }
  .menu-consultation>p { font-size: 15px; }
  .menu-consultation .button { width: 100%; gap: 10px; padding-inline: 14px; font-size: 12px; }

  .unconfirmed span {
    font-size: 9px;
  }

  .manifesto {
    text-align: left;
    padding-block: 42px;
    margin-top: 43px;
  }

  .manifesto h2 {
    font-size: 24px;
    line-height: 1.7;
    letter-spacing: .015em;
    margin-top: 15px;
  }

  .manifesto .wrap > p:last-child {
    font-size: 15px;
    line-height: 1.9;
    margin-top: 17px;
  }

  .final-cta h2 {
    font-size: clamp(28px, 7.5vw, 31px);
    line-height: 1.65;
    letter-spacing: .02em;
  }

  .editorial-note,
  .philosophy .editorial-note,
  .flow .editorial-note,
  .menus .editorial-note,
  .comparison .editorial-note,
  .faq .editorial-note,
  .salon .editorial-note {
    font-size: 11px;
    line-height: 1.85;
  }

  .mobile-cta {
    padding: 8px 18px calc(8px + env(safe-area-inset-bottom));
  }

  .mobile-cta .button {
    min-height: 48px;
    padding: 11px 16px;
    font-size: 13px;
  }

  .mobile-cta .cta-note {
    display: none;
  }

  .mobile-cta.is-yielded {
    visibility: hidden;
    pointer-events: none;
  }

  .site-footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .hero-editorial .hero-eyebrow {
    font-size: 7px;
  }

  .hero-film figcaption h2 {
    font-size: 16px;
  }

  .mobile-cta .button {
    font-size: 12px;
  }
}

/* Short phones need a smaller opening, while preserving the complete portrait. */
@media (max-width: 700px) and (max-height: 740px) {
  .site-header { height: 58px; }
  .main-nav { top: 54px; }
  .hero-editorial { padding-top: 8px; }
  .hero-editorial .hero-eyebrow { display: none; }
  .hero-editorial h1 { font-size: 32px; line-height: 1.3; margin-top: 8px; }
  .hero-editorial .hero-lead { font-size: 14px; line-height: 1.8; margin-top: 10px; }
  .hero-media-column { padding-top: 14px; }
  .hero-film { padding: 10px; }
  .hero-film .film-topline { font-size: 7px; }
  .hero-film figcaption { padding-block: 8px 10px; }
  .hero-film figcaption h2 { font-size: 16px; line-height: 1.5; }
  .hero-film figcaption p { font-size: 12px; line-height: 1.7; }
  .hero-film.has-portrait .video-frame.is-portrait {
    height: 260px;
    height: min(38svh, 260px);
  }
}

/* On very short screens, show the explanation beside the thumbnail. */
@media (max-width: 700px) and (max-height: 620px) {
  .hero-film.has-portrait {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
  }
  .hero-film.has-portrait .film-topline { grid-column: 1 / -1; }
  .hero-film.has-portrait .video-frame.is-portrait {
    order: 2;
    grid-column: 1;
    grid-row: 2;
    width: clamp(110px, 35vw, 140px);
    height: auto;
    margin: 0;
  }
  .hero-film.has-portrait figcaption {
    order: 3;
    grid-column: 2;
    grid-row: 2;
    padding: 0;
  }
  .hero-film.has-portrait figcaption h2 { font-size: 16px; line-height: 1.7; }
  .hero-film.has-portrait figcaption p { margin-top: 10px; }
  .hero-film.has-portrait .video-facts { grid-column: 1 / -1; }
  .instagram-facade .instagram-video-link { gap: 4px; min-height: 44px; }
  .instagram-facade .instagram-video-link .icon:last-child { display: none; }
}
