/* =========================================================
   responsive.css - Mobile-first overrides
   Bellrock-inspired - collapses cleanly, no overflow
   ========================================================= */

@media (max-width: 1024px) {
  .feature { grid-template-columns: 1fr; gap: var(--s-6); }
  .feature__media { aspect-ratio: 16/10; max-height: 480px; }

  .experience { grid-template-columns: 1fr; gap: var(--s-6); }
  .experience__media { aspect-ratio: 4/3; }

  .invest { grid-template-columns: 1fr; gap: var(--s-7); }
  .invest__card { position: static; }

  .figures {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "anchor"
      "specs";
    gap: var(--s-5);
  }
  .figures__hero { border-bottom: 1px solid var(--rule); padding-bottom: var(--s-5); }
  .figures__anchor { padding-bottom: var(--s-4); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }

  .diagonal__content { flex-direction: column; align-items: flex-start; gap: var(--s-5); }

  /* ---------- Nav collapses to a hamburger + slide-in drawer ---------- */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px;
    background: none;
    border: 0;
    cursor: pointer;
    order: 3;
  }
  .nav__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  }
  .nav.is-drawer-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-drawer-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-drawer-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(14, 14, 14, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
    z-index: 150;
  }
  .nav.is-drawer-open .nav__backdrop { opacity: 1; visibility: visible; }

  .nav__panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(84vw, 330px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-5);
    background: var(--night);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    z-index: 200;
    box-shadow: -16px 0 40px rgba(14, 14, 14, 0.3);
  }
  .nav.is-drawer-open .nav__panel { transform: none; }

  /* Drawer header - brand + close, shown only in the mobile drawer
     (the drawer covers the bar, so it carries its own close control) */
  .nav__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--rule-night);
  }
  .nav__drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--night-text);
  }
  .nav__drawer-brand .nav__mark { width: 24px; height: 24px; color: var(--gold-bright); }
  .nav__drawer-brand .nav__wordmark-name { color: var(--night-text); font-size: 16px; }
  .nav__drawer-close {
    background: none;
    border: 0;
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 24px;
    line-height: 1;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .nav__menu { width: 100%; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__item { width: 100%; }
  .nav__link,
  .nav__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 13px 0;
    color: var(--night-text);
    border-bottom: 1px solid var(--rule-night);
    font-size: 12px;
  }
  .nav__link:hover,
  .nav__trigger:hover { color: var(--gold-bright); }
  .nav__caret { border-color: var(--night-mute); }
  .nav__item.is-open > .nav__trigger .nav__caret { border-color: var(--gold-bright); }

  /* submenus become accordions */
  .nav__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur) var(--ease);
  }
  .nav__item.is-open > .nav__sub { max-height: 420px; }
  .nav__sub-label {
    color: var(--gold-bright);
    border-bottom-color: var(--rule-night);
    padding-left: 0;
  }
  .nav__sub a,
  .nav__sub button {
    color: var(--night-mute);
    padding: 10px 0 10px var(--s-4);
    border-left: 0;
    font-size: 13px;
  }
  .nav__sub a:hover,
  .nav__sub button:hover { background: transparent; color: var(--night-text); }

  .nav__cta {
    margin-top: var(--s-5);
    width: 100%;
    text-align: center;
    background: var(--grad-accent);
    color: #fff !important;
    border-color: transparent;
  }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .section { padding-block: var(--s-8); }

  .hero { min-height: 86vh; padding-block: var(--s-7) var(--s-7); }

  /* Concierge bar collapses to its call to action */
  .concierge__facts { display: none; }
  .concierge__cta { flex: 1; padding: var(--s-3); border-radius: var(--radius-sm); }
  .hero__body { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__title { font-size: clamp(40px, 12vw, 72px); }
  .hero__title .script { font-size: clamp(32px, 9vw, 56px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* nav inner stays a single row (brand + hamburger); the menu
     lives in the fixed drawer handled in the 1024 block */
  .nav__inner { gap: var(--s-3); }

  .section-head { margin-bottom: var(--s-6); }
  .section-head__title { max-width: 100%; }

  .feature__body h2 { font-size: clamp(26px, 7.5vw, 38px); }

  .figures__hero-num { font-size: clamp(80px, 22vw, 160px); }

  .ticket { --stub-w: 96px; }
  .ticket__stub { padding: var(--s-3) var(--s-2); gap: 5px; }
  .ticket__type { font-size: 9px; }
  .ticket__barcode { width: 44px; height: 14px; }
  .ticket__body { grid-template-columns: 1fr; padding: var(--s-3) var(--s-4); }
  .ticket__cta { grid-column: 1; grid-row: auto; margin-top: var(--s-2); }

  /* Creed stacks: each label sits directly above its statement */
  .creed__grid {
    grid-template-columns: 1fr;
    row-gap: var(--s-2);
  }
  .creed__grid > * { grid-column: 1 !important; grid-row: auto !important; }
  .creed__rule { display: none; }
  .creed__label { padding-top: var(--s-5); }
  .creed__statement { max-width: none; }

  .board { padding: var(--s-4) var(--s-4) var(--s-3); }
  .board__row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date status" "label label";
  }
  .board__date { grid-area: date; }
  .board__label { grid-area: label; }
  .board__status { grid-area: status; justify-self: end; }

  /* Story photo: on narrow screens the content stacks over the
     photo, so darken top and bottom to keep text and buttons
     off the bright parts of the render. */
  .story-photo::after {
    background: linear-gradient(180deg, rgba(22,16,16,0.55) 0%, rgba(22,16,16,0.35) 45%, rgba(22,16,16,0.72) 100%);
  }

  /* Route strip goes vertical - rail down the left, stops stacked */
  .route__stops { flex-direction: column; gap: var(--s-4); }
  .route__stops::before {
    left: 5px;
    right: auto;
    top: 6px;
    bottom: 6px;
    width: 1px;
    height: auto;
  }
  .route__stops li { padding-top: 0; padding-left: var(--s-5); }
  .route__stops li:nth-child(2),
  .route__stops li:nth-child(3),
  .route__stops li:last-child { text-align: left; }
  .route__stops li::before,
  .route__stops li:nth-child(2)::before,
  .route__stops li:nth-child(3)::before,
  .route__stops li:last-child::before {
    left: 0;
    right: auto;
    top: 3px;
    transform: none;
  }
  .route__term::before { top: 2px; }

  .diagonal__ghost { font-size: clamp(64px, 18vw, 90px); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__meta { flex-direction: column; align-items: flex-start; gap: var(--s-2); }

  dialog { width: calc(100vw - 24px); }
  .dialog__head, .dialog__body { padding-inline: var(--s-4); }
  .dialog__title { font-size: 22px; }
  .dialog__standfirst { font-size: 16px; }

  .diagonal__title { font-size: clamp(24px, 7vw, 38px); }
}

@media print {
  body { background: white; color: black; }
  .nav, .footer, .hero__media, .hero__actions, .concierge, .skip-link, .back-to-top,
  .diagonal__ghost, .story-photo, .ticket-list, .dialog, .feature__media { display: none; }
  .hero { min-height: auto; padding: 24pt 0; background: white; color: black; clip-path: none; }
  .hero__title, .hero__lede { color: black; }
  .diagonal { background: white; color: black; clip-path: none; }
  .diagonal::before, .diagonal::after { display: none; }
  .diagonal__title, .diagonal__title .script { color: black; background: none; -webkit-text-fill-color: black; }
  .board { background: white; color: black; border: 1px solid black; }
  .board__head, .board__date, .board__label, .board__status { color: black; }
  .board__row { border-bottom-color: #999; }
  .board__status--next { background: white; color: black; border: 1px solid black; }
  dialog { display: block; position: static; max-width: 100%; max-height: none; box-shadow: none; border: 1px solid black; page-break-inside: avoid; }
  a { text-decoration: underline; color: black; }
}
