:root {
  --paper: #f7f0e2;
  --paper-strong: #efe4cf;
  --surface: #fffdf8;
  --ink: #1d3440;
  --muted: #66777d;
  --brand: #126887;
  --brand-dark: #0b4c66;
  --sage: #577264;
  --gold: #caa85a;
  --line: #d9d1c3;
  --shadow: 0 22px 50px rgba(24, 50, 64, 0.13);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 104, 135, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(202, 168, 90, 0.05) 1px, transparent 1px),
    var(--surface);
  background-size: 52px 52px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.intro-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--gold), var(--sage));
  transform-origin: left;
  animation: introLine 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.intro-mark {
  width: min(340px, 72vw);
  border: 1px solid rgba(18, 104, 135, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: introMark 900ms cubic-bezier(0.18, 0.82, 0.26, 1) both;
}

body.is-loaded .intro-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 14px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(18, 104, 135, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(24, 50, 64, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand__logo {
  width: 70px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(18, 104, 135, 0.16);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 11px 13px;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover {
  color: var(--brand-dark);
  background: rgba(18, 104, 135, 0.08);
}

.header-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.header-action--portal {
  background: var(--brand);
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(32px, 5vw, 66px) 0 clamp(12px, 1vw, 18px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.55rem, 8.55vw, 7.4rem);
  line-height: 0.88;
  font-weight: 900;
  color: var(--brand-dark);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.98;
  color: var(--ink);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.hero__lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero__address {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
  padding: 13px 16px;
  border: 1px solid rgba(18, 104, 135, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  color: var(--brand-dark);
  font-weight: 800;
}

.pin {
  width: 13px;
  height: 13px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(202, 168, 90, 0.18);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--brand);
  color: #fffdf8;
  box-shadow: 0 14px 30px rgba(18, 104, 135, 0.22);
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--ghost {
  background: rgba(255, 253, 248, 0.8);
  border-color: rgba(18, 104, 135, 0.2);
  color: var(--brand-dark);
}

.button--wide {
  width: 100%;
}

.hero__visual {
  position: relative;
  isolation: isolate;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 18px 0 0 18px;
  z-index: -1;
  border: 1px solid rgba(18, 104, 135, 0.14);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.hero__visual img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 76px;
}

.highlights article,
.feature-card,
.book-card,
.teacher-facts article,
.contact-panel,
.lead-form {
  border: 1px solid rgba(18, 104, 135, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 38px rgba(24, 50, 64, 0.08);
}

.highlights article {
  padding: 22px;
}

.highlights span {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 1.55rem;
  font-weight: 900;
}

.highlights p,
.feature-card p,
.section-heading p,
.teacher-profile p,
.contact-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.course-section,
.teacher-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(30px, 5vw, 66px);
  padding: clamp(72px, 9vw, 110px) 0 clamp(48px, 6vw, 72px);
}

.section-heading {
  max-width: 520px;
}

.section-heading--wide {
  max-width: 780px;
  padding-top: clamp(72px, 9vw, 110px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 230px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(24, 50, 64, 0.12);
}

.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: rgba(18, 104, 135, 0.1);
  color: var(--brand-dark);
  font-weight: 900;
}

.book-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: end;
  gap: clamp(28px, 5vw, 66px);
  padding-bottom: clamp(72px, 9vw, 110px);
}

.book-showcase__copy {
  max-width: 470px;
}

.book-showcase__copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.book-showcase__copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.book-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 1.4vw, 18px);
  padding: 14px 0 30px;
}

.book-card {
  min-width: 0;
  padding: 10px;
  background: rgba(255, 253, 248, 0.92);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.book-card:nth-child(2),
.book-card:nth-child(4) {
  transform: translateY(22px);
}

.book-card:nth-child(3) {
  transform: translateY(8px);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(24, 50, 64, 0.12);
}

.book-card:nth-child(2):hover,
.book-card:nth-child(4):hover {
  transform: translateY(15px);
}

.book-card:nth-child(3):hover {
  transform: translateY(1px);
}

.listening-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: -34px;
  margin-bottom: 44px;
  padding: 24px;
  border: 1px solid rgba(18, 104, 135, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 16px 38px rgba(24, 50, 64, 0.08);
}

.listening-teaser h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.listening-teaser p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.book-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(18, 104, 135, 0.12);
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 12px 26px rgba(24, 50, 64, 0.11);
}

.book-card span {
  display: block;
  margin-top: 10px;
  color: var(--brand-dark);
  font-size: clamp(0.76rem, 1.1vw, 0.92rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.gallery-section {
  padding-bottom: clamp(72px, 9vw, 110px);
}

.gallery {
  margin-top: 28px;
}

.gallery__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #182e39;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.gallery__open {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery__open::after {
  content: "+";
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(9, 28, 38, 0.68);
  color: #fffdf8;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease;
}

.gallery__open:hover::after {
  transform: translateY(-2px);
  background: rgba(9, 28, 38, 0.82);
}

.gallery__stage img {
  width: 100%;
  height: clamp(360px, 62vw, 720px);
  object-fit: contain;
  background: #182e39;
  transition: opacity 220ms ease, transform 420ms ease;
}

.gallery__stage.is-changing img {
  opacity: 0;
  transform: scale(1.015);
}

.gallery__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(9, 28, 38, 0.72);
  color: #fffdf8;
  backdrop-filter: blur(12px);
}

.gallery__caption span {
  color: rgba(255, 253, 248, 0.8);
  font-weight: 700;
}

.gallery__controls {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(18, 104, 135, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(18, 104, 135, 0.08);
}

.gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.thumb {
  height: 86px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  opacity: 0.7;
  scroll-snap-align: center;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.thumb:hover,
.thumb.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

.thumb.is-active {
  border-color: var(--gold);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-section {
  padding: clamp(72px, 9vw, 110px) 0;
}

.teacher-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.teacher-profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.teacher-photo {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fffdf8;
  font-size: 5.2rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), var(--shadow);
}

.teacher-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.teacher-facts article {
  min-height: 136px;
  padding: 18px;
}

.teacher-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  line-height: 1;
  font-weight: 900;
}

.teacher-facts p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  padding: clamp(72px, 9vw, 110px) 0;
}

.contact-copy h2 {
  max-width: 750px;
}

.contact-copy p {
  max-width: 660px;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.contact-panel {
  padding: 26px;
}

.contact-panel dl,
.contact-panel dd {
  margin: 0;
}

.contact-panel dl {
  display: grid;
  gap: 12px;
}

.contact-link-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(18, 104, 135, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-link-card::after {
  content: ">";
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: rgba(18, 104, 135, 0.1);
  color: var(--brand-dark);
  font-weight: 900;
}

.contact-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 104, 135, 0.36);
  background: #fff;
  box-shadow: 0 18px 34px rgba(24, 50, 64, 0.12);
}

.contact-link-card--whatsapp:hover {
  border-color: rgba(31, 143, 95, 0.44);
}

.contact-link-card--instagram:hover {
  border-color: rgba(202, 168, 90, 0.5);
}

.contact-panel dt {
  margin-bottom: 6px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 36px;
  color: var(--brand-dark);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
}

.contact-panel dd small {
  flex: 0 0 auto;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #1f8f5f;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(31, 143, 95, 0.28);
}

.lead-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(850px, calc(100svh - 28px));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.lead-dialog::backdrop {
  background: rgba(9, 28, 38, 0.48);
  backdrop-filter: blur(6px);
}

.photo-dialog {
  width: min(1180px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100svh - 28px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffdf8;
}

.photo-dialog::backdrop {
  background: rgba(7, 23, 31, 0.82);
  backdrop-filter: blur(10px);
}

.photo-viewer {
  position: relative;
  min-height: min(760px, calc(100svh - 28px));
  display: grid;
  place-items: center;
}

.photo-viewer figure {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 12px;
  touch-action: pan-y;
}

.photo-viewer img {
  width: 100%;
  max-height: calc(100svh - 118px);
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.photo-viewer figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px 0;
  color: rgba(255, 253, 248, 0.92);
}

.photo-viewer figcaption span {
  color: rgba(255, 253, 248, 0.72);
  font-weight: 800;
}

.photo-viewer__close,
.photo-viewer__nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.photo-viewer__close:hover,
.photo-viewer__nav:hover {
  transform: translateY(-2px);
  background: rgba(255, 253, 248, 0.2);
}

.photo-viewer__close {
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
}

.photo-viewer__nav {
  top: 50%;
  width: 54px;
  height: 72px;
  transform: translateY(-50%);
  font-size: 1.8rem;
}

.photo-viewer__nav:hover {
  transform: translateY(calc(-50% - 2px));
}

.photo-viewer__nav--prev {
  left: -66px;
}

.photo-viewer__nav--next {
  right: -66px;
}

.lead-form {
  padding: clamp(20px, 4vw, 34px);
}

.dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dialog-header h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 7vw, 3.2rem);
}

.lead-form label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(18, 104, 135, 0.12);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 10px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.form-status.is-error {
  color: #9d3b2e;
}

.form-status.is-success {
  color: #1f704b;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes introMark {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-top: 2px;
  }

  .header-action {
    margin-left: auto;
  }

  .hero,
  .split,
  .book-showcase,
  .listening-teaser,
  .teacher-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__visual {
    max-width: 620px;
  }

  .highlights,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .book-showcase__copy {
    max-width: 720px;
  }

  .book-stack {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 22vw);
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    padding: 8px 2px 28px;
  }

  .book-card,
  .book-card:nth-child(2),
  .book-card:nth-child(3),
  .book-card:nth-child(4),
  .book-card:hover,
  .book-card:nth-child(2):hover,
  .book-card:nth-child(3):hover,
  .book-card:nth-child(4):hover {
    transform: none;
  }

  .book-card {
    scroll-snap-align: start;
  }

  .teacher-profile {
    grid-template-columns: 1fr;
  }

  .teacher-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section-shell,
  .site-header {
    width: min(calc(100% - 22px), var(--max));
  }

  .site-header {
    margin-top: 10px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo {
    width: 54px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
  }

  .main-nav a {
    flex: 1 1 0;
    padding: 10px 4px;
    text-align: center;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .main-nav {
    gap: 2px;
    overflow-x: visible;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.3rem);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .hero__address {
    align-items: flex-start;
    width: 100%;
    margin: 18px 0;
  }

  .hero {
    gap: 12px;
    padding-top: 24px;
    padding-bottom: 8px;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero__visual::before {
    inset: 10px 0 0 10px;
  }

  .hero__visual {
    width: min(100%, 430px);
    max-width: none;
    margin-inline: auto;
  }

  .hero__visual img {
    height: clamp(150px, 44vw, 188px);
    aspect-ratio: auto;
    object-position: center;
  }

  .hero__actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .book-showcase {
    gap: 20px;
  }

  .listening-teaser {
    margin-top: -24px;
    padding: 18px;
  }

  .book-stack {
    grid-auto-columns: minmax(138px, 42vw);
  }

  .book-card {
    padding: 8px;
  }

  .book-card span {
    font-size: 0.78rem;
  }

  .gallery__stage img {
    height: 420px;
  }

  .gallery__open::after {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .gallery__caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery__controls {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .thumb {
    height: 72px;
  }

  .teacher-photo {
    width: 132px;
    height: 132px;
    font-size: 4.2rem;
  }

  .teacher-facts,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 16px;
  }

  .contact-link-card {
    padding: 15px;
  }

  .contact-panel dd {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-right: 34px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
    font-size: 0.85rem;
  }

  .photo-dialog {
    width: calc(100% - 16px);
    max-height: calc(100svh - 16px);
  }

  .photo-viewer {
    min-height: calc(100svh - 16px);
  }

  .photo-viewer img {
    max-height: calc(100svh - 132px);
  }

  .photo-viewer figcaption {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 2px;
  }

  .photo-viewer__close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    background: rgba(9, 28, 38, 0.72);
  }

  .photo-viewer__nav {
    top: auto;
    bottom: 8px;
    width: 48px;
    height: 48px;
    transform: none;
    background: rgba(9, 28, 38, 0.72);
  }

  .photo-viewer__nav:hover {
    transform: translateY(-2px);
  }

  .photo-viewer__nav--prev {
    left: 8px;
  }

  .photo-viewer__nav--next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
