﻿/* Tablet landscape: preserve the illustrated composition, allow content to grow. */
@media (max-width: 1180px), (max-width: 1600px) and (pointer: coarse) {
  html { scroll-snap-type: none; }
  .landing { min-width: 0; height: auto; min-height: 100svh; }
  .header, #start > .header { height: 100px; padding-inline: 5%; }
  .brand { width: 200px; }
  #start .content { padding: 28px 0 35px 5%; max-width: 51%; }
  #start h1 { font-size: 54px; }
  .intro br { display: none; }
  .intro { max-width: 420px; }
  .about-content { margin-left: 53%; padding: 30px 5% 35px 0; }
  .about h2 { font-size: 42px; }
  .about-summary, .event-facts dd { font-size: 15px; line-height: 1.8; }
  .event-facts > div { padding-block: 12px; }
  .activities-content { padding: 28px 5% 35px; }
  .activities-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .activities-heading h2 { font-size: 44px; }
  .activities-heading > p { font-size: 16px; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity, .activity:first-child, .activity:last-child { padding: 25px; }
  .activity:nth-child(2) { border-right: 0; }
  .activity:nth-child(n+3) { border-top: 1px solid #6c826a40; }
  .activity-description, .activity-tip { font-size: 15px; }
  .activities-rule { align-items: flex-start; }
  .activities-rule p { font-size: 15px; }
  .ranking-layout { padding: 30px 5%; }
  .ranking-copy { width: 48%; }
  .ranking-copy h2 { font-size: 51px; }
  .ranking-description, .ranking-optional { font-size: 15px; }
  .ranking-instructions { margin-inline: 5%; gap: 25px; }
  .ranking-instructions p { font-size: 14px; }
  .contact-layout { padding: 30px 5% 40px; gap: 6%; }
  .contact-heading h2 { font-size: 56px; }
  .contact-entry > a { font-size: 27px; }
  .contact-office { grid-template-columns: 1fr; }
  .participants-content { padding: 25px 5%; }
  .participants-grid { grid-template-rows: none; flex: none; }
  .participant-photo { aspect-ratio: 2 / 1; }
  .screen-foot { min-height: 95px; padding: 20px 5%; }
  .screen-foot > .scroll-link { max-width: 60%; }
  .site-credit { position: static; font-size: 12px; text-align: center; }
  .contact-screen > .screen-foot { flex-direction: column; gap: 20px; }
}

/* Portrait tablets and phones: text and illustration each have their own space. */
@media (max-width: 900px), (max-width: 1180px) and (orientation: portrait) {
  .landing { min-height: 0; overflow: visible; }
  .header, #start > .header { height: auto; min-height: 100px; padding: 23px 6%; order: 0; }
  .about > .header { flex-direction: row; }
  .about > .header .brand-group { align-items: flex-start; text-align: left; }
  .brand-group { max-width: 76%; gap: 8px; }
  .brand { width: 200px; max-width: 100%; }
  .brand-subtitle { font-size: 12px; letter-spacing: 0; line-height: 1.5; }
  .contact { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
  .edition-sign { font-size: 16px; }
  #start, .about, .ranking-intro { background: #f1f6e9; }
  #start > .landscape, .about > .landscape, .ranking-intro > .landscape {
    position: relative; inset: auto; order: 2; z-index: auto;
    display: block; width: 100%; height: auto; aspect-ratio: 1.55;
    object-fit: cover; margin: 0; object-position: 85% center;
  }
  .about > .landscape { object-position: left center; }
  .ranking-intro > .landscape { object-position: right center; }
  #start > .shade, .about > .shade, .ranking-intro > .shade { display: none; }
  #start .content, .about-content {
    order: 1; margin: 0; padding: 28px 7% 35px;
    max-width: none; width: 100%; flex: none;
  }
  #start h1 { font-size: clamp(48px, 7.7vw, 70px); }
  #start .intro { font-size: 16px; line-height: 1.8; margin: 23px 0; max-width: 520px; }
  .announcement { max-width: 520px; padding-top: 22px; }
  .announcement .date { font-size: 24px; }
  .announcement p:last-child { font-size: 15px; }
  .countdown { margin: 18px 0 23px; }
  .countdown .countdown-caption { font-size: 14px; margin-bottom: 12px; }
  .countdown-units { max-width: 410px; }
  .countdown-units span { font-size: 36px; padding-block: 13px; }
  .countdown-units small { font-size: 13px; }
  .countdown-units > b { padding-top: 17px; }
  .about h2 { font-size: clamp(39px, 6.4vw, 58px); }
  .eyebrow { font-size: 12px; margin-bottom: 21px; }
  .about-summary, .event-facts, .edition-note { max-width: none; }
  .about-summary { margin: 23px 0; font-size: 16px; }
  .event-facts dt { font-size: 16px; }
  .event-facts dd { font-size: 15px; }
  .edition-note { font-size: 13px; margin-top: 20px; }
  .screen-foot { order: 4; padding: 24px 7%; min-height: 98px; }
  .screen-foot > .scroll-link { max-width: 100%; min-height: 48px; font-size: 14px; }
  #start > .screen-foot { flex-direction: column-reverse; gap: 28px; }
  .screen-foot .home-rewers { position: static; width: 130px; margin: 0; }
  .activities-content { padding: 28px 7%; }
  .activities-heading h2 { font-size: clamp(37px, 6vw, 52px); }
  .activities-heading > p { line-height: 1.8; }
  .activities-heading > p br { display: none; }
  .activities-rule { flex-direction: column; gap: 10px; }
  .ranking-layout { order: 1; padding: 28px 7% 35px; flex: none; }
  .ranking-copy { width: 100%; max-width: none; }
  .ranking-copy h2 { font-size: clamp(44px, 7vw, 66px); }
  .ranking-lead { font-size: 22px; margin: 24px 0 20px; }
  .ranking-description, .ranking-optional { max-width: none; font-size: 16px; line-height: 1.85; }
  .ranking-instructions { order: 3; margin: 0; padding: 30px 7%; border-radius: 0; gap: 22px; backdrop-filter: none; }
  .ranking-instructions h3 { font-size: 16px; line-height: 1.5; }
  .ranking-instructions p { font-size: 14px; line-height: 1.8; }
  .participants-content { padding: 28px 7%; }
  .participants-heading { flex-direction: column; gap: 15px; align-items: flex-start; }
  .participants-heading h2 { font-size: 39px; }
  .participants-heading p { font-size: 14px; }
  .participants-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .participant-photo:last-child { grid-column: 1 / -1; max-width: calc(50% - 6px); }
  .contact-layout { grid-template-columns: 1fr; padding: 28px 7% 40px; gap: 45px; }
  .contact-heading h2 { font-size: clamp(48px, 7vw, 66px); }
  .contact-heading > p:last-child { font-size: 16px; line-height: 1.8; }
  .rebuild-notice { max-width: none; margin-top: 28px; padding: 22px; }
  .rebuild-notice h3 { font-size: 22px; }
  .rebuild-notice p { font-size: 16px; }
  .rebuild-notice p:last-child { font-size: 14px; }
  .contact-details { min-width: 0; }
  .rewers-logo { width: 190px; }
  .contact-entry > a { font-size: clamp(25px, 4.5vw, 36px); overflow-wrap: anywhere; }
  .contact-details h3 { font-size: 14px; }
  .contact-office { grid-template-columns: 1fr 1fr; }
  .contact-office p, .contact-office address { font-size: 16px; }
  .contact-screen > .screen-foot { border-top: 1px solid #6c826a33; }
  .photo-dialog { max-width: 96vw; padding: 58px 10px 12px; }
  .photo-dialog > img { max-width: 89vw; max-height: 75svh; }
  .photo-close { min-height: 44px; top: 6px; font-size: 14px; }
}

@media (max-width: 540px) {
  .header, #start > .header { padding-block: 20px; min-height: 94px; gap: 14px; }
  .brand { width: 174px; }
  .edition-sign { font-size: 14px; }
  .brand-subtitle { max-width: 190px; }
  #start h1 { font-size: clamp(43px, 11vw, 58px); }
  #start .content, .about-content, .ranking-layout { padding-top: 20px; }
  .announcement .date { font-size: 22px; }
  .countdown-units { gap: 5px; }
  .countdown-units > div { min-width: 0; }
  .countdown-units span { font-size: clamp(25px, 7.5vw, 35px); padding: 11px 3px; }
  .countdown-units > b { font-size: 18px; padding-top: 13px; }
  #start > .landscape, .about > .landscape, .ranking-intro > .landscape { aspect-ratio: 1.22; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity, .activity:first-child, .activity:last-child { padding: 26px 0; border-right: 0; }
  .activity + .activity { border-top: 1px solid #6c826a40; }
  .activity h3 { font-size: 29px; margin: 0 0 16px; }
  .distance { font-size: 64px; }
  .minimum { font-size: 14px; margin: 8px 0 18px; }
  .activity-description { font-size: 16px; }
  .activity-tip { font-size: 15px; }
  .iron-distances { min-height: 0; margin-bottom: 20px; }
  .iron-distances p { font-size: 16px; }
  .ranking-instructions { grid-template-columns: 1fr; }
  .ranking-instructions > div + div { padding-top: 20px; border-top: 1px solid #cbd9c3; }
  .ranking-instructions p { max-width: none; font-size: 15px; }
  .participants-heading h2 { font-size: 36px; }
  .participants-grid { gap: 8px; }
  .participant-photo { aspect-ratio: 1.5; }
  .participant-photo:last-child { max-width: calc(50% - 4px); }
  .participant-photo img { object-fit: contain; }
  .contact-office { grid-template-columns: 1fr; gap: 25px; }
  .rebuild-notice { padding: 19px; }
  .site-credit { font-size: 13px; }
}
/* Landscape tablets need a narrower copy area and room for the bottom control. */
@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape), (min-width: 901px) and (max-width: 1600px) and (orientation: landscape) and (pointer: coarse) {
  #start { min-height: 100svh; height: auto; }
  #start > .header { height: 92px; }
  #start .content { width: 43%; max-width: none; padding: 18px 0 20px 5%; }
  #start h1 { font-size: clamp(42px, 4.1vw, 58px); }
  #start .intro { font-size: 15px; line-height: 1.7; margin: 18px 0; }
  #start .announcement { width: 100%; }
  #start .announcement .date { font-size: 22px; }
  #start .countdown-units { gap: 5px; }
  #start .countdown-units > div { min-width: 0; }
  #start .countdown-units span { font-size: 29px; }
  #start .announcement > p:last-child { font-size: 14px; }
  #start .shade { background: linear-gradient(90deg,#f6faeff5,#f6faefd9 24%,#f6faef66 42%,transparent 57%),linear-gradient(0deg,#f6faefb3,transparent 15%); }
  #start .screen-foot { min-height: 82px; flex-shrink: 0; }
}
/* All landscape tablet sections grow with their contents instead of clipping them. */
@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape), (min-width: 901px) and (max-width: 1600px) and (orientation: landscape) and (pointer: coarse) {
  .landing, .landing.about, .landing.activities, .landing.ranking-intro, .landing.participants-screen, .landing.contact-screen {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }
  .landing > .header { height: auto; min-height: 96px; padding-block: 20px; flex-shrink: 0; }
  .landing > .content, .landing > .activities-content, .landing > .ranking-layout,
  .landing > .ranking-instructions, .landing > .participants-content,
  .landing > .contact-layout, .landing > .screen-foot { flex-shrink: 0; }
  .landing > .screen-foot { min-height: 90px; padding-block: 20px; }
  .landing .screen-foot > .scroll-link { max-width: 80%; }
  .about-content { margin-left: 57%; padding: 25px 5% 35px 0; }
  .about h2 { font-size: clamp(36px, 3.4vw, 48px); }
  .about-summary { font-size: 15px; line-height: 1.75; margin-block: 20px; }
  .event-facts dt { font-size: 15px; }
  .event-facts dd { font-size: 14px; line-height: 1.75; }
  .edition-note { font-size: 13px; line-height: 1.7; }
  .activities-content { flex: none; margin-block: auto; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activities-heading h2 { font-size: 42px; }
  .activity h3 { font-size: 28px; }
  .activities-rule { flex-wrap: wrap; gap: 10px 25px; }
  .ranking-layout { flex: none; padding: 25px 5% 35px; margin-block: auto; }
  .ranking-copy { width: 44%; }
  .ranking-copy h2 { font-size: clamp(39px, 3.7vw, 54px); }
  .ranking-lead { font-size: 20px; line-height: 1.6; }
  .ranking-description, .ranking-optional { font-size: 14px; line-height: 1.8; }
  .ranking-instructions { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 23px; }
  .ranking-instructions h3 { line-height: 1.5; }
  .ranking-instructions p { font-size: 14px; line-height: 1.75; }
  .participants-content { flex: none; margin-block: auto; padding-block: 25px; }
  .participants-grid { flex: none; grid-template-rows: none; }
  .participant-photo { aspect-ratio: 2 / 1; }
  .contact-layout { flex: none; margin-block: auto; padding-block: 25px 40px; align-items: start; }
  .contact-heading h2 { font-size: clamp(43px, 4vw, 58px); }
  .contact-entry > a { font-size: clamp(24px, 2.5vw, 36px); overflow-wrap: anywhere; }
  .contact-screen .site-credit { position: static; }
  .contact-screen > .screen-foot { flex-direction: column; gap: 18px; }
}
/* Landscape tablets retain the screen-to-screen navigation. */
@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape), (min-width: 901px) and (max-width: 1600px) and (orientation: landscape) and (pointer: coarse) {
  html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
  .landing { scroll-snap-align: start; scroll-snap-stop: always; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* Full-screen landscape layout, including tablet previews without touch emulation. */
@media (min-width: 901px) and (max-width: 1600px) and (orientation: landscape) {
  html { scroll-snap-type: y mandatory; }
  .landing, .landing.about, .landing.activities, .landing.ranking-intro, .landing.participants-screen, .landing.contact-screen { height: 100svh; min-height: 0; min-width: 0; overflow: hidden; }
  .landing > .header, #start > .header { height: 80px; min-height: 80px; padding-block: 14px; flex-shrink: 0; }
  .brand { width: 200px; }
  .brand-group { gap: 6px; }
  .brand-subtitle { font-size: 11px; }
  .edition-sign { font-size: 16px; }
  .landing > .screen-foot { height: 70px; min-height: 70px; padding-block: 11px; flex-shrink: 0; }
  .scroll-link { min-height: 44px; padding: 11px 20px; font-size: 13px; }
  .about-content { margin-left: 55%; padding: 8px 5% 8px 0; flex: 1; justify-content: center; }
  .about .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .about h2 { font-size: 34px; line-height: 1.08; }
  .about-summary { font-size: 13px; line-height: 1.6; margin: 15px 0; }
  .event-facts > div { padding: 8px 0; }
  .event-facts dt { font-size: 13px; margin-bottom: 4px; }
  .event-facts dd { font-size: 12px; line-height: 1.6; }
  .edition-note { font-size: 11px; line-height: 1.6; margin-top: 10px; }
  #start .content { flex: 1; width: 44%; max-width: none; padding: 8px 0 8px 5%; }
  #start h1 { font-size: 46px; }
  #start .intro { font-size: 13px; line-height: 1.65; margin: 14px 0; }
  #start .intro br { display: none; }
  #start .announcement { padding-top: 12px; }
  #start .announcement .date { font-size: 20px; }
  #start .announcement > p:last-child { font-size: 12px; }
  #start .countdown { margin: 10px 0 12px; }
  #start .countdown-units span { font-size: 27px; padding-block: 8px; }
  #start .countdown-units > div { min-width: 0; }
  .activities-content { flex: 1; min-height: 0; padding: 10px 5%; margin: 0; }
  .activities-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .activities-heading h2 { font-size: 36px; }
  .activities-heading .eyebrow { margin-bottom: 10px; }
  .activities-heading > p { font-size: 13px; line-height: 1.6; }
  .activity-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .activity, .activity:first-child, .activity:last-child { padding: 18px; border-top: 0; border-right: 1px solid #6c826a40; }
  .activity:first-child { padding-left: 0; }
  .activity:last-child { padding-right: 0; border-right: 0; }
  .activity:nth-child(2) { border-right: 1px solid #6c826a40; }
  .activity h3 { font-size: 24px; margin: 0 0 16px; }
  .distance { font-size: 55px; }
  .minimum { margin: 8px 0 17px; font-size: 11px; }
  .activity-description { font-size: 13px; line-height: 1.7; }
  .activity-tip { font-size: 12px; line-height: 1.65; }
  .iron-distances { min-height: 80px; margin-bottom: 18px; }
  .activities-rule { gap: 15px; margin-top: 17px; }
  .activities-rule strong { font-size: 15px; }
  .activities-rule p { font-size: 12px; line-height: 1.7; }
  .ranking-layout { flex: 1; min-height: 0; margin: 0; padding: 10px 5%; }
  .ranking-copy { width: 44%; }
  .ranking-copy h2 { font-size: 45px; }
  .ranking-lead { font-size: 18px; line-height: 1.5; margin: 16px 0; }
  .ranking-description { font-size: 13px; line-height: 1.7; }
  .ranking-optional { font-size: 12px; line-height: 1.65; margin-top: 15px; }
  .ranking-instructions { padding: 15px 20px; gap: 25px; flex-shrink: 0; }
  .ranking-instructions h3 { font-size: 14px; }
  .ranking-instructions p { font-size: 12px; line-height: 1.6; }
  .participants-content { flex: 1; min-height: 0; margin: 0; padding: 10px 5%; }
  .participants-heading { margin-bottom: 16px; }
  .participants-heading h2 { font-size: 34px; }
  .participants-grid { flex: 1; min-height: 0; grid-template-rows: repeat(3,minmax(0,1fr)); }
  .participant-photo { aspect-ratio: auto; }
  .contact-layout { flex: 1; min-height: 0; margin: 0; padding: 12px 7%; align-items: center; }
  .contact-heading h2 { font-size: 46px; }
  .contact-heading > p:last-child { font-size: 13px; }
  .rebuild-notice { margin-top: 20px; padding: 16px; }
  .rebuild-notice h3 { font-size: 19px; }
  .rebuild-notice p { font-size: 13px; }
  .rebuild-notice p:last-child { font-size: 12px; }
  .contact-entry { padding: 16px 0 20px; }
  .contact-entry > a { font-size: 27px; }
  .contact-office { grid-template-columns: 1fr 1fr; padding-top: 20px; }
  .contact-office p, .contact-office address { font-size: 13px; }
  .rewers-logo { width: 175px; }
  .contact-screen > .screen-foot { flex-direction: row; }
  .contact-screen .site-credit { position: absolute; font-size: 11px; }
}
/* Portrait tablets use one integrated illustrated screen, not stacked panels. */
@media (min-width: 600px) and (max-width: 1180px) and (orientation: portrait) {
  html { scroll-snap-type: y mandatory; }
  .landing, .landing.about, .landing.activities, .landing.ranking-intro, .landing.participants-screen, .landing.contact-screen { height: 100svh; min-height: 0; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
  .header, #start > .header { min-height: 0; height: 100px; padding: 22px 7%; flex-shrink: 0; }
  #start > .landscape, .about > .landscape, .ranking-intro > .landscape { position: absolute; inset: auto 0 0; order: initial; z-index: -3; width: 100%; height: 49%; aspect-ratio: auto; object-fit: cover; object-position: center 80%; }
  #start > .landscape { inset: 0; height: 100%; object-position: center; }
  #start > .shade { display: none; }
  .about > .shade, .ranking-intro > .shade { display: block; z-index: -2; background: linear-gradient(180deg,#f1f6e9 0%,#f1f6e9 52%,#f1f6e9d9 65%,transparent 81%); }
  #start .content { padding: 15px 7% 0; flex: 1; justify-content: flex-start; }
  #start h1 { font-size: clamp(43px, 6.4vw, 61px); line-height: 1.05; }
  #start .intro { font-size: 15px; margin: 20px 0; max-width: 550px; }
  #start .announcement { max-width: 480px; padding-top: 18px; }
  #start .announcement .date { font-size: 22px; }
  #start .announcement > p:last-child { font-size: 14px; }
  #start .countdown { margin: 12px 0 16px; }
  #start .countdown-units span { font-size: 32px; padding-block: 10px; }
  .screen-foot, #start > .screen-foot { height: 82px; min-height: 82px; padding: 16px 7%; flex-direction: row; flex-shrink: 0; z-index: 1; background: linear-gradient(0deg,#f1f6e9d9,transparent); }
  .screen-foot .home-rewers { position: absolute; left: 5%; bottom: 23px; width: 105px; }
  .screen-foot > .scroll-link { max-width: 65%; font-size: 13px; }
  .about-content { margin: 0; padding: 15px 7% 0; flex: 1; justify-content: flex-start; }
  .about h2 { font-size: 39px; }
  .about-summary { font-size: 14px; line-height: 1.7; margin: 17px 0; }
  .event-facts > div { padding-block: 9px; }
  .event-facts dt { font-size: 14px; }
  .event-facts dd { font-size: 13px; line-height: 1.6; }
  .edition-note { font-size: 12px; margin-top: 12px; }
  .activities-content { padding: 15px 7%; flex: 1; min-height: 0; }
  .activities-heading { gap: 16px; margin-bottom: 20px; }
  .activities-heading h2 { font-size: 38px; }
  .activities-heading > p { font-size: 14px; }
  .activity, .activity:first-child, .activity:last-child { padding: 20px; }
  .activity h3 { font-size: 26px; }
  .distance { font-size: 54px; }
  .activity-description, .activity-tip { font-size: 13px; line-height: 1.7; }
  .minimum { margin-bottom: 15px; }
  .iron-distances { min-height: 78px; margin-bottom: 15px; }
  .activities-rule { margin-top: 18px; }
  .activities-rule p { font-size: 13px; }
  .ranking-layout { flex: 1; padding: 15px 7%; align-items: flex-start; }
  .ranking-copy h2 { font-size: 47px; }
  .ranking-lead { font-size: 20px; margin: 20px 0 15px; }
  .ranking-description, .ranking-optional { font-size: 14px; line-height: 1.7; }
  .ranking-instructions { margin: 0 5%; padding: 18px; gap: 15px; background: #f6faefe8; }
  .ranking-instructions h3 { font-size: 14px; }
  .ranking-instructions p { font-size: 12px; line-height: 1.7; }
  .participants-content { flex: 1; min-height: 0; padding: 15px 7%; }
  .participants-heading h2 { font-size: 35px; }
  .participants-grid { flex: 1; min-height: 0; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(5,minmax(0,1fr)); }
  .participant-photo { aspect-ratio: auto; }
  .contact-layout { flex: 1; min-height: 0; padding: 15px 7%; gap: 26px; }
  .contact-heading h2 { font-size: 46px; }
  .contact-heading > p:last-child { font-size: 14px; }
  .rebuild-notice { margin-top: 20px; padding: 18px; }
  .rebuild-notice h3 { font-size: 20px; }
  .rebuild-notice p { font-size: 14px; }
  .contact-entry { padding: 12px 0 16px; }
  .contact-entry > a { font-size: 27px; }
  .contact-office { padding-top: 18px; }
  .contact-office p, .contact-office address { font-size: 14px; }
  .contact-details .rewers-logo { width: 140px; }
  .contact-screen > .screen-foot { height: 100px; min-height: 100px; gap: 12px; }
}
.hero-art>img{display:block;width:100%;height:100%;object-fit:inherit;object-position:inherit}
/* Let headings wrap naturally on tablets and phones. Spaces around breaks are in HTML. */
@media (max-width: 1180px), (max-width: 1600px) and (pointer: coarse) {
  h1 br, h2 br { display: none; }
  h1, h2 { text-wrap: balance; }
}
/* Phones: continuous illustrated welcome, then comfortable reading sections. */
@media (max-width: 599px) {
  html { scroll-snap-type: none; scroll-padding-top: 15px; }
  .landing { min-width: 0; height: auto; min-height: 0; overflow: hidden; }
  .header, #start > .header { height: auto; min-height: 90px; padding: 20px 6%; gap: 18px; }
  .brand { width: 175px; }
  .brand-group { max-width: 73%; }
  .contact { font-size: 13px; min-height: 44px; }
  .brand-subtitle { font-size: 12px; line-height: 1.5; }
  .edition-sign { font-size: 14px; }
  #start { background: #edf6f6; }
  #start > .landscape { position: absolute; inset: auto 0 0; z-index: -3; width: 100%; height: 590px; aspect-ratio: auto; object-fit: cover; object-position: center bottom; }
  #start > .shade { display: block; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg,#edf6f6 0%,#edf6f6 35%,#edf6f6e6 47%,#edf6f600 65%); }
  #start .content { flex: none; padding: 18px 7% 350px; width: 100%; max-width: none; }
  #start h1 { font-size: clamp(38px, 10.3vw, 53px); line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
  #start .intro { font-size: 15px; line-height: 1.75; margin: 21px 0; }
  #start .intro br { display: none; }
  #start .announcement { padding-top: 19px; max-width: none; }
  #start .announcement .date { font-size: 20px; line-height: 1.5; }
  #start .announcement > p:last-child { font-size: 14px; line-height: 1.8; }
  #start .countdown { margin: 15px 0 20px; }
  #start .countdown-units { gap: 5px; max-width: none; }
  #start .countdown-units > div { min-width: 0; }
  #start .countdown-units span { font-size: clamp(27px, 7.6vw, 36px); padding: 11px 3px; background: #fbfcf8bf; }
  #start .countdown-units small { font-size: 12px; }
  #start .countdown-units > b { padding-top: 13px; font-size: 18px; }
  #start > .screen-foot { flex-direction: column; gap: 22px; padding: 20px 7% 25px; background: linear-gradient(0deg,#f1f6e9fa,#f1f6e9c9,transparent); }
  .screen-foot .home-rewers { position: static; width: 110px; }
  .screen-foot > .scroll-link { max-width: 100%; min-height: 48px; font-size: 14px; width: fit-content; }
  .about-content { margin: 0; padding: 22px 7% 32px; max-width: none; }
  .about h2 { font-size: 37px; line-height: 1.14; }
  .about-summary { font-size: 16px; line-height: 1.8; margin: 23px 0; }
  .event-facts dt { font-size: 16px; }
  .event-facts dd { font-size: 15px; line-height: 1.8; }
  .event-facts > div { padding-block: 16px; }
  .edition-note { font-size: 13px; line-height: 1.8; }
  .about > .landscape, .ranking-intro > .landscape { height: auto; aspect-ratio: 1.3; object-fit: cover; }
  .activities-content { padding: 22px 7%; }
  .activities-heading h2 { font-size: 37px; }
  .activities-heading > p { font-size: 16px; line-height: 1.8; }
  .activities-rule strong { white-space: normal; }
  .activities-rule p { font-size: 15px; line-height: 1.8; }
  .ranking-layout { padding: 22px 7% 32px; }
  .ranking-copy { width: 100%; }
  .ranking-copy h2 { font-size: 42px; line-height: 1.12; }
  .ranking-lead { font-size: 20px; line-height: 1.6; }
  .ranking-lead br { display: none; }
  .ranking-description, .ranking-optional { font-size: 16px; line-height: 1.8; }
  .ranking-instructions { margin: 0; padding: 28px 7%; grid-template-columns: 1fr; }
  .participants-heading h2 { font-size: 35px; }
  .participants-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; gap: 8px; }
  .participant-photo { aspect-ratio: 2 / 1; }
  .participant-photo img { object-fit: contain; }
  .contact-layout { padding: 22px 7% 35px; }
  .contact-heading h2 { font-size: 43px; }
  .contact-heading > p:last-child { font-size: 16px; }
  .rebuild-notice h3 { font-size: 20px; }
  .rebuild-notice p { font-size: 15px; }
  .contact-entry > a { font-size: clamp(24px,6.8vw,31px); }
  .contact-details .rewers-logo { width: 170px; }
  .contact-office { grid-template-columns: 1fr; }
  .site-credit { position: static; font-size: 13px; }
  .contact-screen > .screen-foot { flex-direction: column; gap: 20px; }
}
/* Keep the mascots directly under the mobile copy instead of below a blank sky. */
@media (max-width: 599px) {
  #start .content { padding-bottom: 240px; }
  #start > .landscape { height: 320px; bottom: 100px; object-position: 90% center; }
  #start > .shade { background: linear-gradient(180deg,#edf6f6 0%,#edf6f6 49%,#edf6f6e6 57%,transparent 72%); }
  #start > .screen-foot { min-height: 100px; padding: 14px 7% 20px; gap: 15px; background: #edf3e7; }
  #start .screen-foot .home-rewers { width: 90px; }
}
/* Compact phone welcome: keep illustration and text from overlapping. */
@media (max-width: 599px) {
  #start > .header { min-height: 80px; padding-block: 16px; }
  #start .content { padding: 10px 7% 18px; }
  #start h1 { font-size: clamp(33px,9.1vw,44px); line-height: 1.08; text-wrap: pretty; }
  #start h1 em { display: inline-block; white-space: nowrap; }
  #start .intro { font-size: 14px; line-height: 1.7; margin: 17px 0; }
  #start .announcement { padding-top: 15px; }
  #start .announcement .date { font-size: 18px; }
  #start .countdown { margin: 12px 0 15px; }
  #start .countdown-units span { font-size: 28px; padding-block: 9px; }
  #start .countdown-units small { font-size: 11px; margin-top: 5px; }
  #start .announcement > p:last-child { font-size: 13px; line-height: 1.7; }
  #start > .landscape { position: relative; inset: auto; z-index: auto; order: 2; height: 220px; width: 100%; aspect-ratio: auto; object-position: 90% center; mask-image: linear-gradient(180deg,transparent,#000 15%); }
  #start > .shade { display: none; }
  #start > .screen-foot { order: 3; min-height: 0; padding: 15px 7% 20px; gap: 13px; }
  #start .scroll-link { min-height: 44px; padding: 11px 18px; font-size: 13px; }
  #start .screen-foot .home-rewers { width: 85px; }
}
@media(max-width:599px){.screen-foot>.scroll-link{display:none}.screen-foot{min-height:0;padding:0}#start>.screen-foot{padding:15px 7% 20px}.contact-screen>.screen-foot{padding:20px 7%}.landing:not(#start):not(.contact-screen)>.screen-foot{display:none}}
/* Phone hero ends with the illustration; Rewers sits on the image. */
@media (max-width:599px){
  #start{min-height:100svh;display:flex;flex-direction:column}
  #start .content{flex:1;padding-bottom:12px}
  #start>.landscape{flex-shrink:0;height:250px;margin-top:auto;mask-image:linear-gradient(180deg,transparent,#000 12%)}
  #start>.screen-foot{position:absolute;left:0;right:0;bottom:0;z-index:2;min-height:0;height:65px;padding:14px 7%;background:linear-gradient(0deg,#f1f6e9bf,transparent)}
  #start .screen-foot .home-rewers{position:static;width:95px;margin:0}
}
@media(max-width:599px){
  #start>.landscape{height:250px;object-position:90% center;mask-image:linear-gradient(180deg,transparent,#000 5%)}
}

/* Let the mobile illustration blend behind the final lines of copy. */
@media(max-width:599px){
  #start .content{position:relative;z-index:1;padding-bottom:38px}
  #start>.landscape{height:330px;margin-top:-80px;object-position:90% center;mask-image:linear-gradient(180deg,transparent 0%,#000 30%)}
  #start .announcement>p:last-child{position:relative;z-index:1;text-shadow:0 1px 10px #edf6f6,0 0 5px #edf6f6}
}
@media(max-width:599px){
  #start .content{padding-bottom:35px}
  #start>.landscape{height:430px;margin-top:-180px;object-position:90% bottom;mask-image:linear-gradient(180deg,transparent 0%,#000 30%)}
}
/* Phone-native illustration fills the entire welcome screen. */
@media(max-width:599px){
  #start{min-height:100svh;background:#e6f4f8}
  #start>.landscape{position:absolute;inset:0;z-index:-3;width:100%;height:100%;margin:0;aspect-ratio:auto;object-fit:cover;object-position:center bottom;mask-image:none}
  #start>.shade{display:block;position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#f0f8fa80,transparent 80%);pointer-events:none}
  #start .content{flex:1;padding-bottom:280px}
  #start>.screen-foot{position:absolute;bottom:0;left:0;right:0;height:60px;min-height:0;padding:14px 7%;background:linear-gradient(0deg,#f1f6e999,transparent)}
  #start .contact{text-shadow:0 0 8px #fff,0 0 4px #fff}
}
.section-art>img{display:block;width:100%;height:100%;object-fit:inherit;object-position:inherit}
@media(max-width:599px){
  .about,.ranking-intro{min-height:100svh;background:#edf6f4}
  .about>.landscape,.ranking-intro>.landscape{position:absolute;inset:0;z-index:-3;width:100%;height:100%;margin:0;aspect-ratio:auto;object-fit:cover;object-position:center bottom;mask-image:none}
  .about>.shade,.ranking-intro>.shade{display:block;position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#edf6f4b3,#edf6f480 55%,transparent 78%);pointer-events:none}
  .about-content{position:relative;z-index:1;padding-bottom:320px}
  .about .eyebrow,.ranking-copy .eyebrow{font-size:11px;letter-spacing:.08em}
  .about h2{font-size:35px}
  .ranking-intro{padding-bottom:320px}
  .ranking-layout{padding-bottom:15px}
  .ranking-instructions{position:relative;z-index:1;background:#f4faf4a6;margin:0 7%;padding:22px;border-radius:6px;gap:18px}
  .ranking-instructions>div+div{padding-top:17px}
  .activities{background:#edf5ee}
  .activities .activities-wash{background:#f1f7efed}
  .activity-grid{border-top:0}
  .activity,.activity:first-child,.activity:last-child{padding:23px 0}
  .activity h3{font-size:27px}
  .activities-rule{padding:20px 0;border-top:1px solid #6c826a40;margin-top:5px}
  .participants-screen{background:#edf5ee}
  .participants-grid{grid-template-columns:1fr;gap:14px}
  .participant-photo,.participant-photo:last-child{aspect-ratio:2/1;max-width:none;grid-column:auto}
  .participants-content{padding-bottom:30px}
  .contact-screen{background:#edf6f4}
  .contact-screen .landscape{opacity:.15}
  .contact-wash{background:linear-gradient(180deg,#edf6f4dc,#edf6f4f0)}
  .contact-entry>a{font-size:clamp(24px,6.8vw,31px)}
  .rebuild-notice{background:#fbfdf9ba}
  .contact-screen>.screen-foot{background:#edf5ee}
}
@media(max-width:599px){
  .about{background:#cbeefa}
  .about>.landscape{mask-image:linear-gradient(180deg,transparent 0%,#000 25%)}
  .about>.shade{display:none}
}
/* Reserve the character area independently of how many lines the copy takes. */
@media(max-width:599px){
  .about>.landscape{inset:auto 0 0;width:100%;height:auto;aspect-ratio:850/1846;object-fit:contain;object-position:center bottom;mask-image:linear-gradient(180deg,transparent,#000 25%)}
  .about-content{padding-bottom:calc(82vw + 40px)}
}
/* Compact mobile rules: discipline and requirement share the same row. */
@media(max-width:599px){
  .activity-grid{display:flex;flex-direction:column;border-block:0}
  .activity,.activity:first-child,.activity:last-child{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:18px;row-gap:6px;padding:23px 0;border-right:0;border-top:1px solid #6c826a40}
  .activity h3{grid-column:1;grid-row:1;margin:0;align-self:center;font-size:26px;line-height:1.2}
  .activity .distance{grid-column:2;grid-row:1 / 3;align-self:center;font-size:48px;line-height:1;margin:0;white-space:nowrap}
  .activity .distance span{font-size:22px}
  .activity .minimum{grid-column:1;grid-row:2;font-size:13px;line-height:1.5;margin:0;color:#526751}
  .activity:not(.activity-iron) .activity-description{display:none}
  .activity .activity-tip{grid-column:1 / -1;font-size:14px;line-height:1.75;margin:10px 0 0}
  .activity-iron h3{grid-column:1 / -1;margin-bottom:12px}
  .activity-iron .iron-distances{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:0;margin:0 0 10px}
  .iron-distances p{font-size:12px;line-height:1.6;margin:0}
  .iron-distances strong{display:block;min-width:0;font-size:30px;line-height:1.2;margin-bottom:4px}
  .activity-iron .activity-description{grid-column:1 / -1;font-size:14px;line-height:1.75;margin:0}
  .activity-iron .activity-tip{margin-top:3px}
}
@media(max-width:599px){
  .activity .minimum{display:none}
  .activity .distance{grid-row:1;font-size:43px}
  .activity .distance::before{content:'min. ';font-size:14px;letter-spacing:0;color:var(--ink);vertical-align:baseline}
  .activity .activity-tip{margin-top:7px}
  .activity-iron h3{color:var(--ink);margin-bottom:8px}
  .activity-iron .iron-distances{display:flex;flex-direction:column;gap:5px;margin-bottom:8px}
  .iron-distances p{font-size:14px;line-height:1.6}
  .iron-distances strong{display:inline-block;min-width:25px;font-size:20px;margin:0 3px 0 0;line-height:1.4}
}
@media(max-width:599px){
  .activity-iron h3{grid-column:1;grid-row:1;align-self:start;margin:0}
  .activity-iron .iron-distances{grid-column:2;grid-row:1;align-items:flex-end;text-align:right;margin:0 0 8px}
}
@media(max-width:599px){
  .activity-iron .iron-distances{align-items:flex-start;text-align:left;justify-self:end}
  .iron-distances strong{min-width:27px;font-variant-numeric:tabular-nums}
  .iron-distances .iron-km{color:var(--orange)}
}
@media(max-width:599px){
  .ranking-intro{background:#cbeefa;padding-bottom:calc(82vw + 40px)}
  .ranking-intro>.landscape{inset:auto 0 0;width:100%;height:auto;aspect-ratio:850/1846;object-fit:contain;object-position:center bottom;mask-image:linear-gradient(180deg,transparent,#000 25%)}
  .ranking-intro>.shade{display:none}
  .ranking-instructions{background:#eff9fd9c}
}
@media(max-width:599px){
  .contact-heading>h2{display:none}
  .contact-heading .rebuild-notice{margin-top:0;padding:15px 17px}
  .contact-heading .rebuild-notice h3{font-size:16px;line-height:1.5;margin-bottom:8px}
  .contact-heading .rebuild-notice p{font-size:13px;line-height:1.7}
  .contact-heading .rebuild-notice p:last-child{font-size:12px}
}
.contact-bottom{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:12px 7% 18px;flex-shrink:0}.contact-bottom .rewers-logo{width:165px;margin:0}.contact-bottom .back-top{display:inline-flex}.contact-screen>.screen-foot{height:48px;min-height:48px;padding:10px 7%;border-top:1px solid #6c826a33}.contact-screen .site-credit{position:static;margin-left:auto;font-size:12px}
@media(max-width:599px){.contact-bottom{padding:20px 7% 24px;gap:20px}.contact-bottom .rewers-logo{width:125px}.contact-bottom .back-top{font-size:13px;padding:11px 16px;min-height:44px}.contact-screen>.screen-foot{height:auto;min-height:0;padding:17px 7%}.contact-screen .site-credit{margin:0;font-size:12px}}
@media(max-width:599px){#start>.header>.brand-group{transform:translateY(12px)}}
