/* iPhone 14 / 14 Pro / 14 Pro Max correction layer */
@media (max-width: 767px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { font-size: 15px; line-height: 1.6; }
  main, section, article, div, form, footer { min-width: 0; }
  img { width: 100%; height: auto; }

  .header { height: 68px; padding: 0 16px; }
  .brand { font-size: 12px; column-gap: 7px; line-height: 1.1; }
  .brand b { font-size: 23px; }
  .brand small { font-size: 6px; letter-spacing: .2em; }
  .menu { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 11px; font-size: 10px; }
  .header nav { top: 68px; max-height: calc(100svh - 68px); overflow-y: auto; padding: 18px 20px 24px; gap: 6px; }
  .header nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 2px; border-bottom: 1px solid #29251f; }
  .header nav .shop { justify-content: center; margin-top: 8px; padding: 12px; }

  h1, h2, h3, p, blockquote { overflow-wrap: anywhere; }
  h1 { font-size: clamp(2.35rem, 11vw, 3rem); line-height: 1.02; letter-spacing: -.035em; margin: 12px 0 20px; }
  h2 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.04; }
  h3 { line-height: 1.18; }
  .eyebrow { font-size: 9px; line-height: 1.45; letter-spacing: .18em; }
  .copy { width: 100%; max-width: none; padding: 0; margin: 0; }
  .copy > p:not(.eyebrow), .pagehero > div > p:last-child { font-size: 14px; line-height: 1.65; max-width: 34rem; }

  .button, button, input, select, textarea { min-height: 48px; }
  .button { width: 100%; padding: 12px 16px; text-align: center; }
  .buttons { width: 100%; flex-direction: column; gap: 10px; margin-top: 27px; }
  .link { display: inline-flex; align-items: center; min-height: 48px; }

  .hero { min-height: 680px; padding: 112px 20px 48px; align-items: flex-end; }
  .hero-bg { inset: 68px 0 0; width: 100%; height: calc(100% - 68px); object-position: 58% center; }
  .hero:after { background: linear-gradient(0deg,#070707 5%,rgba(7,7,7,.97) 35%,rgba(7,7,7,.55) 65%,rgba(7,7,7,.18) 100%),linear-gradient(90deg,rgba(7,7,7,.78),rgba(7,7,7,.08)); }
  .hero .copy { padding-top: 170px; }

  .section { padding: 64px 20px; }
  .founding-region { min-height: 0; padding: 72px 20px; }
  .founding-region > p:not(.eyebrow) { font-size: 15px; }
  .manifesto { padding-inline: 20px; }
  .stats { width: 100%; justify-content: space-between; gap: 10px; }
  .stats strong { font-size: 27px; }
  .stats small { font-size: 7px; letter-spacing: .08em; }

  .split, .collection-hero, .form-layout, .school-hero, .progress-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .rabbit-img { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .rabbit-img img { height: 100%; object-fit: cover; object-position: center; }
  .collection-hero .rabbit-img { aspect-ratio: 16 / 9; }
  .split blockquote { margin: 22px 0; padding-left: 16px; font-size: 1.55rem; }

  .head { display: block; margin-bottom: 28px; }
  .head .link { margin-top: 8px; }
  .cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .card { flex: 0 0 84vw; max-width: 360px; min-width: 0; scroll-snap-align: start; padding: 18px; }
  .card .photo { height: auto; aspect-ratio: 4 / 5; }
  .products, .roster, .steps, .values, .contact, .live-menu, .challenge-grid, .video-grid, .sponsor-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .productpic { width: 100%; }
  .roster-card { min-height: 0; padding: 16px; }
  .roster-pic { height: auto; aspect-ratio: 4 / 5; }

  .festival { min-height: 560px; padding: 72px 20px; background-position: 62% center; }
  .pagehero { min-height: 610px; padding: 118px 20px 52px; justify-content: flex-end; }
  .pagehero-bg { object-position: 61% center; }
  .pagehero:after { background: linear-gradient(0deg,rgba(7,7,7,.98) 4%,rgba(7,7,7,.9) 38%,rgba(7,7,7,.35) 74%,rgba(7,7,7,.18)),linear-gradient(90deg,rgba(7,7,7,.72),transparent); }
  .pagehero h1 { max-width: 100%; }

  .collection-hero { min-height: 0; padding: 100px 20px 60px; }
  .collection-hero h1 { font-size: clamp(3.2rem, 16vw, 4.4rem); }
  .collection-hero blockquote { font-size: 1.55rem; line-height: 1.35; }

  .live-menu a, .challenge-grid article, .sponsor-grid article, .steps article, .values article, .contact a { min-height: 0; padding: 25px 22px; }
  .live-menu h3, .challenge-grid h3, .sponsor-grid h3, .steps h3, .values h3, .contact h3 { margin-top: 36px; font-size: 1.4rem; }
  .battle-card { width: 100%; max-width: 330px; justify-self: start; padding: 30px; }
  .battle-card strong { font-size: 2.4rem; }
  .champ-prizes { justify-content: flex-start; }
  .champ-prizes span { width: 100%; text-align: left; }

  .filterbar, .school-tabs { top: 68px; gap: 8px; padding: 14px 20px; }
  .filterbar span, .school-tabs a { min-height: 44px; display: inline-flex; align-items: center; }
  .video-placeholder > span { width: 62px; height: 62px; font-size: 25px; }
  .submit-band { display: block; }
  .submit-band .button { margin-top: 18px; }

  .submission-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 18px; }
  .submission-form label, .submission-form button, .submission-form > small { grid-column: 1 / -1; }
  .submission-form input, .submission-form select, .submission-form textarea { font-size: 16px; }

  .school-hero { min-height: 690px; padding: 112px 20px 52px; align-content: end; }
  .schoolhero-bg { object-position: 62% center; }
  .school-hero:after { background: linear-gradient(0deg,rgba(7,7,7,.98) 5%,rgba(7,7,7,.9) 42%,rgba(7,7,7,.28) 78%),linear-gradient(90deg,rgba(7,7,7,.65),transparent); }
  .school-hero aside { width: 100%; max-width: none; aspect-ratio: auto; min-height: 150px; }
  .school-hero aside strong { font-size: 3.5rem; }
  .progress-panel { gap: 42px; }
  .sponsor-wall > div { grid-template-columns: minmax(0,1fr); }

  footer { display: grid; grid-template-columns: minmax(0,1fr); gap: 30px; padding: 42px 20px; }
  footer .links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  footer .links a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid #25221d; }
  footer .right { text-align: left; }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .header { padding-inline: 28px; }
  h1 { font-size: clamp(3.6rem, 7vw, 6rem); }
  .hero { min-height: 760px; padding-inline: 5vw; }
  .pagehero { min-height: 620px; }
}

/* FINAL MOBILE PRODUCTION OVERRIDES — natural-width layouts, no scaled-page rendering */
@media (max-width: 767px) {
  body { min-width: 320px; }

  .hero,
  .pagehero,
  .home-school {
    display: block !important;
    min-height: 0 !important;
    padding: 68px 0 0 !important;
    overflow: hidden;
  }

  .hero-bg,
  .pagehero-bg,
  .home-school > img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
    object-position: center !important;
    z-index: 0 !important;
    background: #070707;
  }

  .hero::after,
  .pagehero::after,
  .home-school::after { display: none !important; }

  .hero .copy,
  .pagehero > div,
  .home-school .home-overlay {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 34px 20px 52px !important;
    margin: 0 !important;
    background: linear-gradient(180deg,#090909,#070707);
  }

  .hero .copy { padding-top: 34px !important; }
  .pagehero { justify-content: initial !important; }
  .pagehero > div { align-self: auto !important; }
  .home-overlay { padding-top: 34px !important; }

  .visual-feature,
  .selection-board {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important;
  }

  .visual-feature > img,
  .selection-board > img,
  .full-roster,
  .rabbit-img img,
  .collection-hero .rabbit-img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .selection-board > img { order: 1 !important; }
  .selection-board-copy { order: 2 !important; }

  .collection-hero {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    padding: 94px 20px 56px !important;
  }
  .collection-hero .rabbit-img {
    aspect-ratio: auto !important;
    height: auto !important;
  }

  .section { width: 100%; }
  .cards { width: 100%; }
  footer { width: 100%; }
}
