:root {
  --paper: #fff8ec;
  --cream: #f8eedc;
  --ink: #15110d;
  --muted: #74685c;
  --line: #ded2c0;
  --coral: #f26b55;
  --coral-dark: #bc4434;
  --teal: #24756b;
  --yellow: #f5c84b;
  --white: #fffdf8;
  --shadow: 0 20px 50px rgba(55, 37, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    linear-gradient(rgba(80, 58, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 58, 30, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sheet-value {
  white-space: pre-line;
}

.intro-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(90, 70, 42, 0.18);
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(10px);
}

.intro-header .brand {
  grid-column: 2;
  justify-self: center;
}

.intro-header img {
  width: 122px;
  display: block;
}

.intro-header nav {
  grid-column: 3;
  justify-self: end;
}

.intro-header nav a,
.complete-dialog a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  background: var(--white);
  text-decoration: none;
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.oneday-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: clamp(18px, 4vw, 34px) 0 0;
  border: 1px solid rgba(36, 117, 107, 0.22);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(36, 117, 107, 0.13), transparent 44%),
    linear-gradient(315deg, rgba(245, 200, 75, 0.22), transparent 40%),
    #f5fffb;
  box-shadow: 0 12px 30px rgba(55, 37, 22, 0.08);
}

.oneday-promo[hidden] {
  display: none;
}

.oneday-promo .eyebrow {
  margin-bottom: 7px;
}

.oneday-promo h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.16;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.oneday-promo p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
  word-break: keep-all;
}

.oneday-promo a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b79623;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
}

.hero {
  min-height: min(680px, calc(100svh - 86px));
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px) 0 clamp(26px, 4vw, 54px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 840px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero h1 span,
.hero-copy > p:not(.eyebrow) span {
  display: block;
}

.hero-copy {
  min-width: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.1vw, 1.42rem);
  line-height: 1.65;
  font-weight: 650;
}

.hero-visual {
  margin: 0;
  position: relative;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: clamp(92px, 12vw, 148px);
  height: clamp(28px, 3.2vw, 40px);
  background:
    linear-gradient(90deg, rgba(247, 222, 130, 0.5), rgba(236, 194, 67, 0.76)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.18) 0 2px,
      rgba(255, 255, 255, 0.02) 2px 9px
    );
  box-shadow:
    0 7px 16px rgba(92, 66, 30, 0.16),
    inset 0 0 10px rgba(255, 255, 255, 0.22);
  opacity: 0.9;
  clip-path: polygon(4% 7%, 96% 0, 100% 80%, 91% 100%, 3% 91%, 0 22%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-visual::before {
  top: -14px;
  left: -18px;
  transform: rotate(-18deg);
}

.hero-visual::after {
  right: -20px;
  bottom: -13px;
  transform: rotate(-17deg);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 5;
  object-fit: cover;
  display: block;
  border: 10px solid var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.intro-band,
.notice-strip,
.apply-section,
.roster-panel {
  margin: 0 0 34px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 30px rgba(55, 37, 22, 0.08);
}

.intro-band {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
  align-items: start;
}

.intro-band h2,
.info-block h2,
.notice-strip h2,
.section-heading h2,
.students-hero h1,
.roster-head h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.intro-band p,
.notice-strip li,
.check-list li,
.notice-list li,
.payment-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 650;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 34px 0;
  align-items: stretch;
}

.photo-gallery-section {
  margin: 0 0 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.photo-gallery-section[hidden] {
  display: none;
}

.photo-gallery-section .section-heading {
  margin-bottom: 20px;
}

.photo-gallery {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.photo-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.photo-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-gallery figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.gallery-nav {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.gallery-nav:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(21, 17, 13, 0.22);
  cursor: pointer;
}

.gallery-dot[aria-current="true"] {
  background: var(--teal);
}

.info-block {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--white);
}

.check-list,
.notice-list,
.notice-strip ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.recommend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.1vw, 28px);
  overflow: hidden;
}

@media (min-width: 861px) {
  .recommend-card {
    justify-content: center;
    gap: clamp(16px, 1.75vw, 22px);
  }

  .recommend-card .eyebrow,
  .recommend-card h2 {
    margin-bottom: 0;
  }

  .recommend-card .lesson-summary {
    margin-top: clamp(2px, 0.5vw, 8px);
  }
}

.recommend-card .eyebrow,
.recommend-card h2,
.recommend-card ul,
.recommend-card .lesson-summary {
  position: relative;
  z-index: 1;
}

.music-doodle {
  position: absolute;
  top: 18px;
  right: 24px;
  color: var(--coral);
  font-size: clamp(3.5rem, 7vw, 5.6rem);
  font-weight: 950;
  line-height: 1;
  opacity: 0.18;
  transform: rotate(-12deg);
  pointer-events: none;
}

.music-doodle::after {
  content: "♫";
  position: absolute;
  top: 42px;
  right: 44px;
  color: var(--teal);
  font-size: 0.56em;
}

.lesson-summary {
  align-self: stretch;
  display: grid;
  align-content: start;
  border: 1px solid rgba(21, 17, 13, 0.1);
  background: rgba(255, 248, 236, 0.68);
  padding: clamp(20px, 2.5vw, 28px);
}

.lesson-summary h3 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.payment-card dl,
.compact-list,
.complete-dialog dl,
.summary-payment {
  display: grid;
  gap: 16px;
  margin: 0 0 20px;
}

.payment-card dl div,
.compact-list div,
.complete-dialog dl div,
.summary-payment > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
}

.poster-card,
.recommend-card {
  min-height: 100%;
}

.poster-card {
  padding: 0;
  overflow: hidden;
}

.poster-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.poster-open-button {
  padding: 0;
  cursor: zoom-in;
}

.poster-open-button:focus-visible {
  outline: 4px solid rgba(242, 107, 85, 0.35);
  outline-offset: 4px;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.compact-list dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compact-list dd {
  min-width: 0;
}

.compact-list dt span {
  width: 1.35em;
  text-align: center;
}

#lessonPeriodText,
#lessonPlaceText,
.summary-note {
  white-space: pre-line;
}

#lessonPlaceText {
  word-break: keep-all;
}

.map-place {
  display: grid;
  gap: 9px;
  justify-items: start;
}

.map-app-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.map-app-links[hidden],
.map-app-link[hidden] {
  display: none;
}

.map-app-link {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: transform 0.16s ease;
}

.map-app-link:hover {
  transform: translateY(-1px);
}

.map-app-link img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(55, 37, 22, 0.12);
  object-fit: contain;
}

.age-note {
  margin: 16px 0 0;
  color: var(--coral-dark);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.55;
  white-space: pre-line;
}

.fee-summary {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.fee-summary span {
  color: var(--teal);
  font-weight: 900;
}

.fee-summary strong {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.25;
}

.payment-lines {
  margin-top: 20px;
  border-top: 1px solid rgba(21, 17, 13, 0.12);
  padding-top: 20px;
}

dt {
  color: var(--teal);
  font-weight: 900;
}

dd {
  margin: 0;
  font-weight: 850;
}

.copy-button,
.roster-head button,
.students-title-row button {
  min-height: 32px;
  margin-left: 10px;
  border: 1px solid #b79623;
  border-radius: 9px;
  padding: 0 10px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
}

.students-title-row button {
  margin-left: 0;
}

.notice-strip {
  border-style: dashed;
}

.intro-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 400px);
  gap: 28px;
  align-items: start;
}

.apply-section {
  scroll-margin-top: 96px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field-grid label,
.radio-field {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.field-grid .wide {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.field-grid .is-hidden {
  display: none;
}

#referrerField {
  grid-column: 2;
  margin-top: -2px;
}

label > span,
.radio-field legend {
  font-weight: 900;
  font-size: 1.02rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(242, 107, 85, 0.18);
}

.radio-field {
  border: 0;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr 1fr;
}

.radio-field legend,
.radio-field .field-error {
  grid-column: 1 / -1;
}

.radio-field legend {
  margin-bottom: 5px;
}

.radio-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--white);
  font-weight: 850;
}

.radio-field input {
  width: 18px;
  height: 18px;
}

.form-summary {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.summary-fee,
.summary-line {
  display: grid;
  gap: 6px;
}

.form-summary span {
  color: var(--teal);
  font-weight: 900;
}

.summary-fee strong,
.summary-line strong {
  font-size: 1.35rem;
}

.summary-line strong {
  font-size: 1.06rem;
}

.summary-payment {
  margin: 4px 0 2px;
  border-top: 1px dashed rgba(21, 17, 13, 0.2);
  border-bottom: 1px dashed rgba(21, 17, 13, 0.2);
  padding: 16px 0;
}

.summary-payment > div {
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: center;
}

.summary-payment > div.is-pending {
  visibility: hidden;
}

.summary-payment > .summary-pair-row {
  grid-template-columns: minmax(118px, 0.58fr) minmax(0, 1.42fr);
  gap: 8px;
}

.summary-pair-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.summary-payment dd {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  line-height: 1.45;
}

.summary-pair-item dd {
  white-space: nowrap;
}

.summary-payment #bankText {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.summary-payment dd span {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.summary-payment strong {
  font-size: 1.35rem;
}

.summary-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.55;
}

.submit-button {
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.field-error,
.form-status {
  min-height: 18px;
  color: var(--coral-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-status {
  margin: 0;
}

.submitting-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(21, 17, 13, 0.48);
}

.submitting-overlay[hidden] {
  display: none;
}

.submitting-overlay > div,
.complete-dialog {
  width: min(420px, calc(100% - 34px));
  border: 0;
  border-radius: 18px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.submitting-overlay > div {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.submitting-overlay .spinner {
  display: block;
}

.submitting-overlay strong,
.submitting-overlay p {
  margin: 0;
}

.spinner {
  width: 34px;
  height: 34px;
  display: inline-block;
  border: 4px solid rgba(242, 107, 85, 0.22);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.complete-dialog::backdrop {
  background: rgba(21, 17, 13, 0.56);
}

.poster-dialog {
  width: min(860px, calc(100% - 28px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.poster-dialog::backdrop {
  background: rgba(21, 17, 13, 0.62);
}

.poster-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
  object-fit: contain;
  background: var(--cream);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.complete-dialog h2 {
  margin-top: 22px;
}

.complete-dialog a {
  width: 100%;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.students-main {
  padding: clamp(42px, 8vw, 84px) 0 80px;
}

.students-hero {
  margin-bottom: 28px;
}

.students-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.students-title-row h1 {
  margin-bottom: 0;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.summary-cards article {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.summary-cards span {
  color: var(--teal);
  font-weight: 900;
}

.summary-cards strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.roster-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.loading-state,
.empty-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 44px 20px;
  color: var(--muted);
  font-weight: 800;
}

.page-loading {
  grid-template-columns: auto 1fr;
  justify-items: start;
  align-items: center;
  margin: -6px 0 18px;
  border: 1px solid rgba(21, 17, 13, 0.12);
  padding: 16px 18px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 8px 22px rgba(55, 37, 22, 0.06);
}

.page-loading .spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.loading-state[hidden],
.empty-state[hidden],
.intro-roster[hidden],
.intro-gender-roster[hidden] {
  display: none;
}

.intro-roster {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--white);
}

.intro-roster th,
.intro-roster td {
  border-bottom: 1px solid var(--line);
  padding: 16px 14px;
  text-align: left;
}

.intro-roster th {
  color: var(--teal);
  font-weight: 950;
}

.paid-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(36, 117, 107, 0.12);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.intro-gender-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(21, 17, 13, 0.12);
  background: var(--white);
}

.intro-roster-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: clamp(16px, 3vw, 22px);
}

.intro-roster-column + .intro-roster-column {
  border-left: 1px solid rgba(21, 17, 13, 0.1);
}

.intro-roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal);
}

.intro-roster-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  line-height: 1.2;
}

.intro-roster-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.intro-roster-list {
  display: grid;
  gap: 8px;
}

.intro-roster-person {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 7px;
}

.intro-roster-person strong {
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intro-roster-empty {
  margin: 0;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

body.is-submitting {
  cursor: progress;
}

.mobile-total {
  display: none;
}

@media (max-width: 860px) {
  body {
    padding-bottom: 112px;
  }

  .intro-header {
    min-height: 78px;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
  }

  .intro-header .brand {
    grid-column: 1;
    justify-self: start;
  }

  .intro-header nav {
    grid-column: 2;
  }

  .intro-header img {
    width: 104px;
  }

  main {
    width: min(100% - 28px, 680px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .oneday-promo {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .oneday-promo a {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.78rem, 7vw, 2.16rem);
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .hero h1 span {
    white-space: nowrap;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: clamp(0.96rem, 4vw, 1.08rem);
    line-height: 1.55;
  }

  .hero-visual img {
    aspect-ratio: 5 / 5;
    transform: none;
  }

  .hero-visual::before {
    top: -10px;
    left: 0;
    transform: rotate(-17deg);
  }

  .hero-visual::after {
    right: 0;
    bottom: -10px;
    transform: rotate(-16deg);
  }

  .intro-band,
  .content-grid,
  .intro-form {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #referrerField {
    grid-column: 1 / -1;
    margin-top: -2px;
  }

  .field-grid .wide {
    margin-top: 18px;
  }

  .field-grid label,
  .radio-field {
    gap: 8px;
  }

  input,
  select,
  textarea {
    padding: 11px 13px;
  }

  .radio-field {
    column-gap: 10px;
    row-gap: 8px;
  }

  .radio-field legend {
    margin-bottom: 6px;
  }

  .radio-field label {
    padding: 11px 13px;
  }

  .form-summary {
    position: static;
  }

  .summary-payment dd {
    flex-wrap: wrap;
  }

  .summary-payment > div,
  .payment-card dl div,
  .compact-list div,
  .complete-dialog dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .summary-payment > .summary-pair-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .summary-pair-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .lesson-summary .compact-list {
    gap: 10px;
  }

  .lesson-summary .compact-list div {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .lesson-summary .compact-list dt {
    white-space: nowrap;
  }

  .lesson-summary .compact-list dd {
    font-size: clamp(0.9rem, 3.55vw, 1rem);
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    background: rgba(255, 253, 248, 0.9);
    transform: translateY(-50%);
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .mobile-total {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 128px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(21, 17, 13, 0.16);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition:
      opacity 0.16s ease,
      visibility 0.16s ease,
      transform 0.16s ease;
  }

  .mobile-total.is-inline-submit-visible {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  .mobile-total span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-total strong {
    display: block;
    color: var(--coral);
    font-size: 22px;
    line-height: 1.2;
  }

  .mobile-total button {
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
  }

  .mobile-total button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
  }

  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 520px) {
  .intro-header {
    padding: 12px 14px;
  }

  .intro-header img {
    width: 96px;
  }

  .intro-header nav a {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.74rem, 6.8vw, 2.04rem);
  }

  .content-grid {
    gap: 18px;
  }

  .intro-band,
  .notice-strip,
  .apply-section,
  .photo-gallery-section,
  .roster-panel,
  .info-block {
    padding: 24px 18px;
  }

  .photo-gallery img {
    aspect-ratio: 4 / 3;
  }

  .poster-card {
    padding: 0;
  }

  .summary-cards {
    grid-template-columns: 1fr 1fr;
  }

  .summary-cards article {
    padding: 18px;
  }

  .intro-roster th,
  .intro-roster td {
    padding: 14px 10px;
  }
}
