/* Phone layout only. Desktop and tablet are untouched; no content is hidden. */
@media (max-width: 760px) {
  :root { --margin: 20px; }
  html { scroll-padding-top: 72px; }
  body, .home-refined { font-size: 16px; line-height: 1.6; }

  /* Header: slimmer, so more of the small screen is content */
  .bar { height: 60px; gap: 12px; }
  .brand svg { width: 32px; height: 32px; }
  .brand span { font-size: 12px; }
  .tabs { position: static; }
  .tabs ul { gap: 22px; }
  .tabs a { padding-block: 13px; font-size: 14px; }

  /* Hero: the name and the action come first, the painting closes the screen */
  .hero { display: flex; flex-direction: column; }
  .hero__text { order: 1; padding-block: 28px 32px; }
  .hero__art { order: 2; }
  .hero__eyebrow { margin-bottom: 14px; }
  .hero h1 .serif { font-size: clamp(50px, 15vw, 64px); }
  .hero h1 .nation { margin-block: 10px 14px; font-size: clamp(30px, 9vw, 40px); }
  .tagline { font-size: 20px; }
  .hero__description { margin-top: 10px; font-size: 16px; }
  .hero__status { margin-block: 14px 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__cta .btn { justify-content: center; padding-block: 15px; }
  .hero__cta .link { align-self: center; }

  /* Key facts as a tidy two-column list */
  .facts ul, .home-refined .facts ul { display: block; }
  .facts li, .home-refined .facts li, .facts li:nth-child(-n+3), .facts li:nth-child(-n+2) {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 0; border: 0; border-top: 1px solid var(--stone);
  }
  .facts li:first-child, .home-refined .facts li:first-child { border-top: 0; }
  .facts b { margin: 0; flex: none; font-size: 11px; }
  .facts span { font-size: 19px; text-align: right; }

  /* Sections and headings */
  .sec, .home-refined .sec, #explore { padding-block: 56px; }
  .section { padding-block: 52px; }
  .section--tight { padding-top: 0; }
  .h2, .home-refined .h2, .h2--xl, .h2--xxl, .home-refined .h2--xl, .home-refined .h2--xxl { font-size: 34px; line-height: 1.14; max-width: none; }
  .label { font-size: 11px; }
  .epi { margin-top: 18px; padding-left: 16px; }
  .epi p, #explore .explore-head .epi p { font-size: 21px; line-height: 1.3; }
  .epi cite { font-size: 13px; }
  .sec__grid--head, #why .sec__grid--head { gap: 18px; }
  .sec__side .lead, .sec__lead { font-size: 16px; }
  .more { margin-top: 24px; }

  /* Long text: one comfortable size */
  .prose p, .home-refined .sec__body .prose p:first-child, .sec__body .prose p:first-child { font-size: 16px; line-height: 1.65; }
  .prose p + p { margin-top: .9em; }
  .about-split, .home-refined .about-split, .person-home { gap: 32px; }
  .about-split .sec__body, .home-refined .about-split .sec__body { padding-top: 20px; }
  .about-split__art, .home-refined .about-split__art { max-width: none; }
  .heritage-quote p { font-size: 21px; line-height: 1.35; }

  /* Pathway: the line stops at the last stage */
  .path::before { display: none; }
  .path { gap: 26px; }
  .path li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 24px; bottom: -28px; width: 1px; background: var(--slate); }
  .path .when { font-size: 18px; }
  .path .name { margin-block: 2px 6px; font-size: 25px; }
  .path p { max-width: none; }
  .path-wrap { margin-top: 32px; }
  .mini { gap: 14px 32px; }

  /* Seven areas: swipe the names, and the painting stays in view */
  #explore .explore-head { gap: 18px; margin-bottom: 24px; }
  #explore .explore-intro { margin-top: 14px; }
  #explore .atlas { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .atlas__stage { min-width: 0; }
  .atlas__side { order: 1; margin-inline: calc(var(--margin) * -1); min-width: 0; }
  .atlas__stage { order: 2; }
  .atlas__list {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--margin);
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .atlas__list::-webkit-scrollbar { display: none; }
  .atlas__list li { flex: none; scroll-snap-align: center; }
  #explore .atlas__list a, .atlas__list a {
    display: block; padding: 9px 15px; border: 1px solid var(--stone); border-radius: 999px; background: var(--chalk);
  }
  .atlas__list li:last-child a { border-bottom: 1px solid var(--stone); }
  .atlas__list .num { display: none; }
  #explore .atlas__list .name, .atlas__list .name { font: 500 14px/1.3 var(--sans); white-space: nowrap; }
  #explore .atlas__list a[aria-current], .atlas__list a[aria-current] { border-color: var(--vermilion); background: var(--vermilion); color: #fff; }
  .atlas__art { margin-inline: calc(var(--margin) * -1); }
  #explore .atlas__q { margin-top: 18px; font-size: 27px; line-height: 1.2; text-wrap: balance; }
  #explore .atlas__fig { margin-top: 8px; }
  #explore .explore-actions { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 26px; padding-top: 22px; }

  /* Achievements: photo runs edge to edge */
  #record .sec__grid { gap: 28px; }
  .arch-photo { max-width: none; margin-inline: calc(var(--margin) * -1); }
  .arch-photo figcaption { padding-inline: var(--margin); }
  .sec__intro { margin-top: 16px; }
  .portrait { max-width: 260px; }
  .person-home__role { margin-block: 8px 14px; }

  /* Symbol */
  .symbol, .symbol--short { gap: 26px; }
  .symbol__mark, .symbol--short .symbol__mark { max-width: 150px; justify-self: start; }
  .symbol__close { font-size: 27px; }

  /* Questions */
  .asks > li { padding-block: 13px; font-size: 23px; }
  .faq summary, .home-refined .faq summary { padding-block: 15px; font-size: 21px; }

  /* Final call */
  .cta__inner { gap: 20px; }
  .cta__copy { margin-bottom: 44px; padding-left: 18px; }
  .cta__copy h2 { font-size: 32px; }
  .cta__copy .btn { display: flex; justify-content: center; padding-block: 15px; }

  /* Inner pages: the painting returns as an arch under the title */
  .page-head { display: flex; flex-direction: column; min-height: 0; padding-block: 32px 0; }
  .page-head .wrap { order: 1; }
  .page-head h1 { font-size: 42px; line-height: 1.06; }
  .head3d { display: block; order: 2; position: relative; top: auto; right: auto; width: auto; aspect-ratio: 16 / 10; margin: 26px var(--margin) 0; transform: none !important; }
  .head3d__ring { display: none; }
  .head3d__disc { left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; border-radius: 50% 50% 0 0 / 72% 72% 0 0; }
  .head3d__disc img { object-position: 50% 30%; }
  .head3d__disc--photo img { object-position: 50% 78%; }

  /* Lists and tables */
  .split { row-gap: 24px; }
  .spec > div { padding-block: 12px; }
  .spec dt { font-size: 12px; }
  .schedule > li { padding-block: 14px; }
  .tag { margin-top: 2px; }
  .item h3 { font-size: 23px; }
  .reason { padding-block: 20px; }
  .reason h3 { font-size: 24px; }
  .topic--full { padding-block: 20px; gap: 6px 8px; }
  .topic__thumb { aspect-ratio: 16 / 9; }
  .stats ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats li, .stats li:first-child { padding: 18px 8px 18px 0; border: 0; }
  .stats b { font-size: 44px; }
  .stats span { display: block; font-size: 12px; line-height: 1.35; }
  .year { gap: 20px; padding-block: 36px; }
  .year__num { font-size: 52px; }
  .year__sub { margin-block: 6px 16px; }
  .person { gap: 24px; }
  .notice { padding: 22px 18px; }
  .notice .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .notice .btn { justify-content: center; }
  .next a { padding-block: 34px; }
  .next strong { font-size: 30px; }
  .next svg { width: 26px; height: 15px; }

  /* Footer */
  .site-footer { padding-block: 40px 22px; }
  .foot { gap: 26px 20px; }
  .foot > :last-child { grid-column: 1 / -1; }
  .foot__bottom { margin-top: 28px; }
}

.nav__lang { display: none; }

/* ---- Phone style: editorial, painting-led ---- */
@media (max-width: 760px) {
  /* Header: VPO wordmark, menu only; language moves into the menu */
  .bar { height: 64px; }
  .bar > .lang { display: none; }
  .bar .brand svg { display: none; }
  .bar .brand { gap: 10px; }
  .bar .brand::before { content: "VPO"; font: 500 32px/1 var(--serif); letter-spacing: .01em; }
  .bar .brand span { padding-left: 10px; border-left: 1px solid var(--stone); font: 500 8.5px/1.45 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
  .bar .brand b { font-weight: 500; color: inherit; letter-spacing: inherit; }
  .menu-btn { margin-left: auto; }
  .nav__lang { display: flex; margin: 14px 0 0; }
  .nav .nav__lang a { display: inline-block; padding: 8px 4px; border: 0; font-size: 14px; }
  .tabs { top: auto; }

  /* Hero: the painting sweeps down from the top right, the title sits in its curve */
  .hero { overflow: hidden; }
  .hero__art { order: 1; position: relative; width: 100%; height: 96vw; z-index: 0; }
  .hero__art picture { display: contents; }
  .hero__art > picture > img {
    position: absolute; inset: 5vw 0 0; width: 100%; height: calc(100% - 5vw); object-fit: cover; object-position: 100% 50%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M45 0C28 7 18.700 22 18.700 39.300C30 50 39 60 49 72C59 83 78 90 100 93V0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M45 0C28 7 18.700 22 18.700 39.300C30 50 39 60 49 72C59 83 78 90 100 93V0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
  .hero__ring { display: none; }
  /* A thin stone crescent follows the painting's upper curve */
  .hero__art::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: url(img/ring.webp) no-repeat 8vw -6vw / 96vw 96vw;
    -webkit-mask-image: linear-gradient(#000 30%, transparent 56%); mask-image: linear-gradient(#000 30%, transparent 56%);
  }
  /* The figures at far left dissolve into the page behind the title */
  .hero__art::after {
    content: ""; position: absolute; left: -6%; top: 40%; width: 66%; height: 46%; z-index: 1; pointer-events: none;
    background: radial-gradient(closest-side, #F7F9F9 45%, transparent 100%);
  }
  .hero__text { order: 2; position: relative; z-index: 2; margin-top: -40vw; padding-block: 0 26px; }
  .hero__eyebrow { display: none; }
  .hero h1 .serif { font-size: clamp(44px, 13vw, 56px); line-height: .96; }
  .hero h1 .nation { margin-block: 12px 10px; font-size: clamp(27px, 8vw, 34px); letter-spacing: .24em; }
  .tagline { font-size: 19px; }
  .hero .tick { margin-block: 14px; }
  .hero__description { margin-top: 0; font-size: 15px; line-height: 1.55; }
  .hero__status { margin-block: 10px 18px; font-size: 12px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .hero__cta .btn { padding: 12px 16px; font-size: 12px; letter-spacing: .08em; }
  .hero__cta .link { align-self: center; font-size: 12px; }

  /* Section heads: upright serif, a long hairline after the label */
  .label { gap: 16px; letter-spacing: .16em; }
  .label::after { flex: 1; max-width: 200px; opacity: .55; }
  .h2, .home-refined .h2, .h2--xl, .h2--xxl, .home-refined .h2--xl, .home-refined .h2--xxl { margin-top: 10px; font-style: normal; font-size: 31px; line-height: 1.16; }
  .sec, .home-refined .sec, #explore { padding-block: 44px; }
  .prose p, .home-refined .sec__body .prose p:first-child, .sec__body .prose p:first-child { font-size: 15px; line-height: 1.6; }

  /* About: a faint drawn arch behind the opening of the section */
  #about { position: relative; overflow: hidden; }
  #about::before {
    content: ""; position: absolute; top: 14px; right: 8px; width: 172px; height: 127px; opacity: .85; pointer-events: none;
    background: no-repeat center / contain url(img/engraving-arch.webp);
  }
  #about .label { margin-bottom: 76px; }
  #about .label::after { max-width: 36px; }
  #about .wrap { position: relative; }

  /* Why join: roman numeral, hairline, text */
  #why .gains { margin-top: 18px; gap: 0; border-top: 0; }
  #why .gains li { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0; row-gap: 0; padding-block: 12px; border-top: 0; border-bottom: 1px solid var(--stone); }
  #why .gains li:last-child { grid-column: auto; border-bottom: 0; }
  #why .gains .num { grid-column: 1; grid-row: 1 / 3; padding-top: 0; font: 400 28px/1.1 var(--serif); color: var(--vermilion); }
  #why .gains h3 { grid-column: 2; grid-row: 1; margin: 0; padding-left: 14px; border-left: 1px solid var(--stone); font: 500 20px/1.2 var(--serif); }
  #why .gains p { grid-column: 2; grid-row: 2; padding: 3px 0 0 14px; border-left: 1px solid var(--stone); font-size: 13.5px; line-height: 1.5; }
  #why .sec__grid--head { gap: 14px; }

  /* Closing call: centred on a soft stone curve */
  .cta { position: relative; overflow: hidden; border: 0; border-radius: 50% 50% 0 0 / 34px 34px 0 0; background: var(--ivory); text-align: center; }
  .cta__inner { display: block; position: relative; padding-block: 44px 48px; }
  .cta__art { display: none; }
  .cta__copy { position: relative; margin: 0; padding: 0; border: 0; }
  .cta__copy h2 { margin-bottom: 8px; font: italic 400 27px/1.2 var(--serif); color: var(--vermilion); text-wrap: balance; }
  .cta__copy p { max-width: none; margin-bottom: 18px; font-size: 14px; }
  .cta__copy .btn { display: inline-flex; padding: 13px 26px; }
  .next + .cta { margin-top: 0; }
}
