/* ==========================================================================
   arnaudsussmann.com · Phone edition (Oct 2026)
   Loaded after styles.css. Every rule is scoped to phone widths
   (max-width: 600px) or to a phone held sideways, so iPad and desktop
   render exactly as before.
   ========================================================================== */

/* Menu pieces are inert everywhere except on phones. */
.m-toggle, .m-menu { display: none; }

/* Header + full-screen menu: phones in portrait, and phones held sideways.
   iPads never match: their shortest side is 744px or more. */
@media (max-width: 600px), (max-height: 500px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  /* ---------- Header: brand + one quiet Menu control ---------- */
  .bar { flex-wrap: nowrap; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 14px 0 var(--pad); }
  .bar-solid { padding: 10px 12px 10px var(--pad); min-height: 64px; }
  .bar .nav { display: none; }
  .mark svg { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }

  .m-toggle, .m-close {
    appearance: none; -webkit-appearance: none;
    display: inline-flex; align-items: center; gap: 12px;
    margin: 0 0 0 auto; padding: 0 10px; min-height: 44px; min-width: 44px;
    background: none; border: 0; border-radius: 0; color: var(--ink); cursor: pointer;
    font: 400 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  }
  .m-toggle:focus-visible, .m-close:focus-visible { outline: 1px solid var(--amber); outline-offset: -2px; }
  .m-toggle-label { opacity: 0.82; }
  .m-toggle-lines { position: relative; display: block; width: 24px; height: 9px; }
  .m-toggle-lines i { position: absolute; right: 0; height: 1px; background: currentColor; }
  .m-toggle-lines i:first-child { top: 0; width: 24px; }
  .m-toggle-lines i:last-child { bottom: 0; width: 15px; background: var(--amber); }
  .bar:not(.bar-solid) .m-toggle { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

  /* ---------- Full-screen menu ---------- */
  html.m-open, html.m-open body { overflow: hidden; }
  .m-menu {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 1000;
    padding: max(12px, env(safe-area-inset-top)) 12px max(22px, env(safe-area-inset-bottom)) var(--pad);
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(201, 160, 106, 0.13), rgba(201, 160, 106, 0) 60%),
      radial-gradient(90% 50% at 0% 100%, rgba(120, 70, 30, 0.16), rgba(120, 70, 30, 0) 70%),
      #0f0d0b;
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transition: opacity 0.35s ease;
  }
  .m-menu[hidden] { display: none; }
  .m-menu.is-on { opacity: 1; }
  .m-menu.is-leaving { opacity: 0; transition-duration: 0.2s; }
  .m-menu-head { display: flex; align-items: center; min-height: 52px; }
  .m-menu-head .brand { flex: 0 1 auto; }
  .m-close-x { position: relative; display: block; width: 20px; height: 20px; }
  .m-close-x i { position: absolute; left: -1px; right: -1px; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
  .m-close-x i:last-child { transform: rotate(-45deg); background: var(--amber); }

  .m-menu-nav { flex: 1 0 auto; display: flex; align-items: center; padding: 28px 10px 28px 0; }
  .m-menu-nav ol { list-style: none; margin: 0; padding: 0; width: 100%; counter-reset: none; }
  .m-menu-nav li {
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(0.06s + var(--i, 0) * 0.04s);
  }
  .m-menu-nav li.m-home { --i: 0; }
  .m-menu.is-on .m-menu-nav li { opacity: 1; transform: none; }
  .m-menu-nav a {
    display: flex; align-items: baseline; gap: 18px;
    padding: 9px 0; text-decoration: none; color: var(--ink);
    border-bottom: 1px solid rgba(243, 235, 225, 0.07);
  }
  .m-menu-nav li:last-child a { border-bottom: 0; }
  .m-num { flex: 0 0 18px; font: 400 10.5px/1 var(--sans); letter-spacing: 0.12em; color: var(--amber); opacity: 0.75; transform: translateY(-3px); }
  .m-word {
    font-family: var(--display); font-weight: 400; font-style: normal; font-synthesis: none;
    font-variation-settings: "opsz" 60, "wght" 400;
    font-size: clamp(27px, 7.6vw, 34px); line-height: 1.08; letter-spacing: -0.022em;
  }
  .m-menu-nav a[aria-current="page"] .m-word { font-style: italic; color: var(--amber); }
  .m-menu-nav a:active .m-word { color: var(--amber); }
  .m-menu-foot { display: flex; justify-content: flex-start; padding: 18px 0 0; border-top: 1px solid rgba(201, 160, 106, 0.3); margin-right: 10px; }
  .m-menu-foot .social { gap: 6px; margin-left: -10px; }
  .m-menu-foot .social a { width: 44px; height: 44px; opacity: 0.7; }

}

@media (max-width: 600px) {
  :root { --pad: 22px; }
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: rgba(201, 160, 106, 0.12); }

  /* ---------- Home hero: name set low, like a title card ---------- */
  .hero { min-height: 100svh; }
  .hero-photo { height: 88%; object-position: 41% 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0,0,0,.55) 88%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0,0,0,.55) 88%, transparent 100%); }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(15, 13, 11, 0.55) 0%, rgba(15, 13, 11, 0) 14%, rgba(15, 13, 11, 0) 46%, rgba(15, 13, 11, 0.35) 64%, rgba(15, 13, 11, 0.82) 82%, var(--bg) 100%);
  }
  .hero-copy { top: auto; right: auto; left: var(--pad); bottom: max(46px, calc(env(safe-area-inset-bottom) + 34px)); width: auto; }
  .hero-copy h1 { font-size: clamp(50px, 14.6vw, 64px); line-height: 0.88; letter-spacing: -0.035em; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
  .hero-copy .bd { margin-top: 26px; transform: scale(1.3); }
  /* No hover on a phone: when the door swings open by itself, the caption takes the notes' place. */
  .bd-cap { font-size: 10.5px; letter-spacing: 0.24em; }
  .bd.is-open .bd-cap { opacity: 0.9; transform: none; }
  .bd.is-open .bd-notes { opacity: 0; }
  .bd-notes { width: clamp(110px, 34vw, 150px); }
  .bd-notes span { font-size: var(--s); }

  /* ---------- Home sections ---------- */
  .home-featured-eyebrow, .home-next-all, .home-featured-action a { font-size: 11.5px; }
  .home-featured-action a { display: inline-block; padding-top: 12px; }
  .home-next-all { padding-top: 12px; padding-bottom: 12px; }
  .home-next-title { font-size: 30px; }
  .home-next-item a { padding: 20px 18px 18px; gap: 16px; }
  .home-next-item .home-next-date { flex-basis: 64px; padding-right: 14px; }
  .home-next-day { font-size: 42px; }
  .home-next-mon, .home-next-pres { font-size: 11px; }
  .home-next-ttl { font-size: 21px; }
  .home-next-venue { font-size: 14.5px; }
  .home-next-prog { font-size: 13.5px; }
  .invite { padding-top: 56px; }
  .invite-intro { font-size: 26px; max-width: 13em; margin-bottom: 32px; }
  .invite-grid { gap: 12px; }
  .tile a { min-height: max(var(--h, 280px), 300px); border-radius: 2px; }
  .tile-title { font-size: 34px; }
  .tile-body { padding: 0 22px 24px; }
  .tile-teaser { font-size: 15.5px; }

  /* ---------- Inner-page title heroes: taller, full-bleed, cinematic ---------- */
  body.title-i.title-i-seamless {
    --seamless-fit: calc(100svh - 64px - 40px);
    --seamless-stage: min(var(--seamless-fit), 124vw, 560px);
  }
  body.title-i.title-i-seamless main.page { padding-top: 0; }
  body.title-i.title-i-seamless .page-photo {
    width: 100%; margin-bottom: 30px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0%, #000 5%, #000 50%, rgba(0,0,0,.72) 68%, rgba(0,0,0,.3) 84%, transparent 100%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0%, #000 5%, #000 50%, rgba(0,0,0,.72) 68%, rgba(0,0,0,.3) 84%, transparent 100%);
  }
  body.title-i.title-i-seamless .page-head { padding: 0 var(--pad) 26px !important; }
  body.title-i .page-head h1,
  body.title-i.title-i-seamless .page-head h1 { font-size: clamp(50px, 14.4vw, 62px); line-height: 0.92; text-shadow: 0 2px 30px rgba(15, 13, 11, 0.7); }
  body.title-i .page-head::after { width: 40px; margin-top: 16px; }

  /* ---------- Type: nothing smaller than 11px, labels breathe ---------- */
  .page-head .eyebrow, .kicker, .bio-glance-k, .bio-label, .bio-pull cite,
  .group-title, .teach-role, p.post, .mgmt-eyebrow, .follow-label,
  .edition-composer, .pnum { font-size: 11px !important; letter-spacing: 0.18em; }
  .prose p { font-size: 17.5px; line-height: 1.7; }
  .lead { font-size: 21px !important; line-height: 1.45 !important; }
  .bw-cap { font-size: 13px; }

  /* ---------- Concerts: date reads across the top of each card ---------- */
  .cal-toolbar {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad));
    padding: 2px var(--pad) 6px; scroll-padding: 0 var(--pad);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--pad), #000 calc(100% - 28px), transparent 100%);
  }
  .cal-toolbar::-webkit-scrollbar { display: none; }
  .cal-chip { flex: none; min-height: 40px; padding: 0 18px; font-size: 11.5px; }
  .cal-month-title { font-size: 12.5px; margin-top: 8px; }
  .cal-list .cal-item { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding: 20px 20px 16px; margin-top: 12px; }
  .cal-list .cal-date { flex-direction: row; align-items: center; gap: 16px; text-align: left; align-self: auto; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(201, 160, 106, 0.26); }
  .cal-list .cal-day { font-size: 46px; min-width: 1.1em; }
  .cal-list .cal-meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 11px; letter-spacing: 0.16em; }
  .cal-list .cal-meta > * + *::before { content: "·"; margin-right: 10px; color: var(--quiet); opacity: 0.7; }
  .cal-list .cal-time { text-align: left; }
  .cal-list .cal-presenter { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 8px; }
  .cal-list .cal-title { font-size: 24px; line-height: 1.2; }
  .cal-list .cal-venue { font-size: 15.5px; margin-top: 10px; }
  .cal-list .cal-program, .cal-list .cal-with { font-size: 14.5px; line-height: 1.5; }
  .cal-link { margin-top: 6px; }
  .cal-link a { display: inline-block; padding: 12px 0 8px; font-size: 11.5px; border-bottom: 0; color: var(--soft);
    background: linear-gradient(rgba(201, 160, 106, 0.55), rgba(201, 160, 106, 0.55)) left calc(100% - 4px) / 100% 1px no-repeat; }
  .cal-link a::after { content: " \2192"; color: var(--amber); }

  /* ---------- Biography · backstage wall as square prints ---------- */
  .bw-wall { gap: 30px 16px; align-items: start; padding-top: 14px; }
  .bw-wall .bw-img { aspect-ratio: 1 / 1 !important; }
  .bw-wall .bw-open { padding: 5px 5px 6px; }
  .bw-wall .bw-cap { font-size: 13px; line-height: 1.28; padding: 7px 2px 2px; }
  .bw-wall .bw-play { width: 40px; height: 40px; }
  .bw-wall .bw-print:nth-child(odd) { transform: rotate(-1.6deg); }
  .bw-wall .bw-print:nth-child(even) { transform: rotate(1.4deg) translateY(14px); }
  .bw-wall .bw-print:nth-child(4n+1) { transform: rotate(1.2deg); }
  .bw-wall .bw-print:nth-child(4n+2) { transform: rotate(-1.5deg) translateY(14px); }
  .bio-sec .bio-label, .bio-sec .bio-glance-k { font-size: 11px; }

  /* ---------- Recordings: cover + title side by side, listen links full width ---------- */
  .disc-row:not(.disc-row--no-cover) { grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; row-gap: 0; }
  .disc-row:not(.disc-row--no-cover) .disc-body { display: contents; }
  .disc-row:not(.disc-row--no-cover) .disc-cover { grid-column: 1; grid-row: 1 / span 4; width: 104px; height: 104px; }
  .disc-row:not(.disc-row--no-cover) .disc-body > :not(.stream-links) { grid-column: 2; margin-bottom: 6px; }
  .disc-row:not(.disc-row--no-cover) .disc-body > .stream-links { grid-column: 1 / -1; }
  .disc-row--no-cover { padding-left: 0; }
  .discs > .disc { padding: 28px 0; }
  .disc-body .year { font-size: 12.5px; }
  .disc-body .piece-title { font-size: 21px; line-height: 1.22; }
  .stream-links { gap: 8px; margin-top: 18px !important; }
  .stream-links a {
    min-height: 38px; padding: 0 13px; gap: 8px; font-size: 11px; color: var(--soft);
    border: 1px solid rgba(243, 235, 225, 0.12); border-radius: 999px; background: rgba(255, 240, 220, 0.025);
  }
  .stream-links a:active { border-color: var(--amber); }
  .stream-links .stream-icon { width: 15px; height: 15px; }

  /* ---------- Contact ---------- */
  .write-submit { width: 100%; min-height: 50px; font-size: 12px; }
  .write-opt { font-size: 11px; }
  input, textarea, select { font-size: 16px !important; } /* no iOS zoom on focus */

  /* ---------- The Violin ---------- */
  .page--violin .vpair-glow { inset: 8% -4% 4%; }
  main.page--violin, .page--violin .vpair-section { overflow-x: clip; }
  .page--violin .vtour-pin { width: 34px; height: 34px; }
  .page--violin .vtour-flip-btn { min-height: 40px; padding-left: 18px; padding-right: 18px; font-size: 11.5px; }

  /* ---------- Footer ---------- */
  .site-foot { padding: 34px var(--pad) max(40px, calc(env(safe-area-inset-bottom) + 28px)); }
  .social { gap: 10px; }
  .social a { width: 44px; height: 44px; }
  .social svg { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-menu, .m-menu-nav li { transition: none; }
}

/* A phone held sideways: keep the wide layout, but give the menu two columns
   so it fits the short screen, and stop the violin page from sliding sideways. */
@media (max-height: 500px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .bar-solid { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .m-menu { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .m-menu-nav { padding: 14px 10px 14px 0; }
  .m-menu-nav ol { columns: 2; column-gap: 40px; }
  .m-menu-nav li { break-inside: avoid; }
  .m-menu-nav li:last-child a { border-bottom: 1px solid rgba(243, 235, 225, 0.07); }
  .m-word { font-size: 26px; }
  .m-menu-foot { padding-top: 10px; }
  main.page--violin { overflow-x: clip; }
}
