/* Phone layout (760px and narrower). Loaded last on every page, so it wins over the desktop rules.
   Desktop is unchanged. */
@media (max-width: 760px) {
  html, body { overflow-x: clip; }

  /* Nav: wordmark left; menu button and Join Waitlist right. HQ, Stories and Contact open from the menu. */
  .site-header { display: flex; align-items: center; gap: 6px; margin: 8px 8px 0; padding: 6px 6px 6px 14px; min-height: 54px; }
  .site-header .brand { position: relative; left: auto; top: auto; transform: none; width: 132px; flex: 0 0 auto; }
  .site-header nav { margin-left: auto; display: flex; align-items: center; gap: 4px; position: static; }
  .site-header nav a:not(.pill) { display: none; }
  .site-header nav .pill { height: 38px; min-height: 38px; padding-inline: 14px; }
  .site-header nav .pill-label { font-size: 10.5px; letter-spacing: .12em; }
  .site-header .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
  .site-header .menu-toggle span { display: block; width: 18px; height: 1.2px; background: #5E5040; transition: transform 200ms ease; }
  .site-header.menu-open .menu-toggle span:first-child { transform: translateY(3.1px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-3.1px) rotate(-45deg); }
  .site-header.menu-open { flex-wrap: wrap; border-radius: 26px; }
  .site-header .menu-panel { display: none; }
  .site-header.menu-open .menu-panel { display: flex; flex-direction: column; flex-basis: 100%; order: 3; padding: 4px 8px 8px; border-top: 1px solid rgb(120 100 80 / 12%); margin-top: 4px; }
  .site-header .menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 6px; text-transform: uppercase; letter-spacing: .14em; font: 400 12px/1.2 Geist, sans-serif; color: #5E5040; text-decoration: none; }
  .site-header .menu-panel a + a { border-top: 1px solid rgb(120 100 80 / 8%); }
}
@media (min-width: 761px) { .site-header .menu-toggle, .site-header .menu-panel { display: none !important; } }

/* Home hero: headline in the upper third, the device fills the space below (no empty band on top). */
@media (max-width: 760px) {
  .hero { min-height: 0; height: auto; }
  .hero main { justify-content: flex-start; padding-top: clamp(56px, 10svh, 96px); }
  .hero .film-stage { height: 46vw; }
  .hero main > p { text-wrap: balance; padding-inline: 20px; }
}

/* Footer (every page): brand block full width, Company and Legal side by side, base lines stacked. */
@media (max-width: 760px) {
  .lv-footer { padding: 48px 22px 32px; }
  .lv-footer .grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .lv-footer .grid > div:first-child { grid-column: 1 / -1; }
  .lv-footer .about, .lv-footer .contact { margin-left: 0; }
  .lv-footer .about { max-width: none; }
  .lv-footer .social { flex-wrap: wrap; gap: 10px; justify-content: flex-start; padding-top: 22px; }
  .lv-footer nav .social { align-self: flex-start; }
  .lv-footer .base { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lv-footer .ships { gap: 8px 10px; }
}

/* Home ANTIK section: the copy sits full width above the model, not squeezed beside it. */
@media (max-width: 760px) {
  #antik-section.interactive .story { left: 7%; width: 86%; max-width: 86%; top: 11svh; transform: none; }
  #antik-section .story p { font-size: 15px; }
}

/* HQ: 96 studio photos at 6 across on phones (4 across made the grid about three screens long). */
@media (max-width: 700px) { .office-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; } }
@media (max-width: 760px) { .hq-studio .text-col { margin-top: 18px; } }

/* Stories: the time sits above its paragraph, so the text uses the full width. */
@media (max-width: 760px) {
  .entry { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .story-body { padding-inline: 22px; }
}

/* Contact: one column. Heading, Name, Email, Subject, Message, then Send. */
@media (max-width: 760px) {
  .contact-stage { grid-template-columns: 1fr; grid-template-rows: none; gap: 26px; padding: 112px 22px 48px; }
  .contact-stage > *, .contact-fields > * { grid-column: 1 !important; grid-row: auto !important; }
  .contact-fields { display: contents; }
  .contact-stage h1 { order: 1; margin-top: 0; }
  .contact-fields label:nth-of-type(1) { order: 2; }
  .contact-fields label:nth-of-type(2) { order: 3; }
  .contact-fields label:nth-of-type(3) { order: 4; }
  .contact-stage .message { order: 5; margin-top: 0 !important; }
  .contact-page textarea { min-height: 120px; }
  .contact-stage .send { order: 6; margin-top: 0; }
  .contact-stage .send-note { order: 7; margin-top: -14px; }
  .contact-stage .sketch { width: 46vw; }
  .contact-details { grid-template-columns: 1fr; gap: 30px; padding: 40px 22px 48px; }
}

/* Waitlist: the form fits the screen (long consent lines wrap), and the gallery keeps its
   portrait shape (0.74 : 1, as on desktop) at full phone width, so the photos are not cropped. */
@media (max-width: 760px) {
  .reserve-layout { grid-template-columns: minmax(0, 1fr); }
  .reserve-layout > *, #signup fieldset { min-width: 0; }
  #signup label.consent, #signup label.referred { white-space: normal; }
  .device-portrait { margin: 0 -22px; width: auto; height: auto !important; aspect-ratio: 37 / 50; }
}
@media (max-width: 760px) { #signup { grid-template-columns: minmax(0, 1fr); } #signup > * { min-width: 0; } }
@media (max-width: 760px) {
  .checkout #signup label.consent .field-name, #signup .field-name { white-space: normal; min-width: 0; }
  #signup .field-name .lv { white-space: nowrap; }
  .finish-options label { padding-inline: 12px; gap: 8px; letter-spacing: .08em; font-size: 11px; white-space: nowrap; }
}
/* Waitlist: a little more white space between the gallery dots and the ANTIK logo (phones only) */
@media (max-width: 760px) { #reserve-title { margin-top: 14px; } }
/* Phone nav wordmark: about 33% larger (132px to 176px) and moved slightly right */
@media (max-width: 760px) {
  .site-header .brand { width: min(176px, calc(100vw - 205px)); margin-left: 6px; }   /* full 176px from about 381px wide */
  .site-header .menu-toggle { width: 34px; }
  .site-header nav { gap: 2px; }
}

/* Waitlist In Preview: a sixth card on phones only, completing the 2 x 3 grid. Same card shape,
   a fine warm champagne edge (the Stellaris Steel tone), and a thin plus a little above centre. */
.preview-boxes li.preview-more { display: none; }
@media (max-width: 760px) {
  .preview-boxes li.preview-more { display: block; background: #fff; box-shadow: inset 0 0 0 1px rgb(184 167 137 / 60%); }
  .preview-more .preview-copy { padding-bottom: 18px; }
  .preview-more .more-plus { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%);
    fill: none; stroke: #b8a789; stroke-width: 1.7; stroke-linecap: round; }
}
/* Footer social icons: one row across the full width, centred (phones only) */
@media (max-width: 760px) {
  .lv-footer nav[aria-label="Legal"] { display: contents; }
  .lv-footer .social { grid-column: 1 / -1; flex-wrap: nowrap; justify-content: center; align-self: auto; margin-top: 0; padding-top: 4px; }
  .lv-footer nav .social { align-self: auto; }
}
/* Home hero (phones): headline, subtitle and Join Waitlist sit 60px higher; the device stays in place
   (the 60px moves below the button), so the button has more white space around it. */
@media (max-width: 760px) {
  .hero main { padding-top: calc(clamp(56px, 10svh, 96px) - 60px); }
  .hero .film-stage { margin-top: 60px; }
}
/* Home ANTIK heading (phones): closer to the film above and a little further from the left edge */
@media (max-width: 760px) { #antik-section h2 { padding-top: 14px; padding-left: 26px; } }
/* HQ join band: "+ Selective Remote" on its own line (phones only) */
.m-break { white-space: nowrap; }
@media (max-width: 760px) { .m-break { display: block; } }
/* Stories "Light of life": the star moves to the right edge of the label row, above the paragraph,
   so it no longer sits behind the text (phones only) */
@media (max-width: 760px) {
  .entry .label-col { flex-direction: row; justify-content: space-between; align-items: flex-end; width: auto; align-self: auto; }
  .entry .label-star { position: static; transform: none; width: 30px; margin: 0 2px 2px 0; }
}
/* Home page nav (phones only): no Join Waitlist pill (the hero has its own); the menu sits far right */
@media (max-width: 760px) {
  body:has(.hero) .site-header nav .pill { display: none; }
  body:has(.hero) .site-header { padding-right: 10px; }
}
