:root {
  --navy: #092f47;
  --deep: #061f33;
  --teal: #0d6f8b;
  --teal-soft: #dff2f4;
  --gold: #f5b947;
  --orange: #e78322;
  --orange-deep: #b95e12;
  --ink: #102636;
  --muted: #607182;
  --line: #d7e6ec;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(6, 31, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

.panel {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  padding: clamp(72px, 9vw, 128px) 22px;
  overflow: hidden;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-inner.narrow {
  width: min(860px, 100%);
}

.hero-panel {
  background:
    radial-gradient(circle at 22% 22%, rgba(245, 185, 71, 0.18), transparent 24%),
    radial-gradient(circle at 76% 14%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(135deg, #061f33 0%, #0a3b56 54%, #075f78 100%);
  color: var(--white);
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 16vh;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
  pointer-events: none;
}

.fireworks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(24px, 4vw, 42px);
  width: 100%;
  text-align: center;
  transform: translateY(-2vh);
}

.hero-logo {
  width: 92vw;
  max-width: 790px;
  max-height: 42vh;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.22));
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: logoReveal 950ms cubic-bezier(.2,.8,.2,1) 350ms both;
}

.service-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  max-width: 1080px;
  color: #f8fbfc;
  font-size: clamp(1.15rem, 2.35vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.service-line span,
.service-line i {
  opacity: 1;
  transform: translateY(0);
  animation: serviceReveal 520ms ease both;
}

.hero-start-cue {
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-start-cue.visible {
  opacity: 1;
  pointer-events: auto;
  animation: tapCue 1.8s ease-in-out infinite;
}

.service-line span:nth-of-type(1) { animation-delay: 1.55s; }
.service-line i:nth-of-type(1) { animation-delay: 1.8s; }
.service-line span:nth-of-type(2) { animation-delay: 2.05s; }
.service-line i:nth-of-type(2) { animation-delay: 2.3s; }
.service-line span:nth-of-type(3) { animation-delay: 2.55s; }
.service-line i:nth-of-type(3) { animation-delay: 2.8s; }
.service-line span:nth-of-type(4) { animation-delay: 3.05s; }

.service-line i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(245, 185, 71, 0.12);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  left: 50%;
  width: 32px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
  animation: cue 1.5s ease-in-out infinite;
}

.section-down {
  position: fixed;
  left: 50%;
  bottom: clamp(22px, 3vw, 34px);
  z-index: 22;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--white);
  background: rgba(9, 47, 71, 0.56);
  box-shadow: 0 14px 30px rgba(6, 31, 51, 0.2);
  opacity: 0.72;
  transform: translateX(-50%);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  animation: floatDownCue 2.4s ease-in-out infinite;
}

.section-down:hover,
.section-down:focus-visible {
  opacity: 0.95;
}

.section-down.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.section-down svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-panel {
  background: linear-gradient(#ffffff, #f5fbfc);
}

.welcome-panel .section-inner {
  text-align: center;
}

h1,
h2 {
  margin: 0;
  color: var(--navy);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.04;
}

.welcome-panel p {
  margin: 28px auto 0;
  max-width: 780px;
  color: #284354;
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  line-height: 1.75;
}

.spotlight-panel {
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 185, 71, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 48%, #eef7f9 100%);
}

.spotlight-panel .section-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(980px, 100%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: center;
  margin-bottom: clamp(16px, 2.8vh, 30px);
  text-align: center;
}

.carousel {
  display: grid;
  place-items: center;
}

.carousel-btn {
  min-width: min(220px, 42vw);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 16px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--navy));
  box-shadow: 0 16px 34px rgba(9, 47, 71, 0.18);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(9, 47, 71, 0.24);
  filter: saturate(1.08);
}

.modal-close svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tutor-stage {
  position: relative;
  width: min(820px, 100%);
  min-height: min(620px, calc(100vh - 210px));
  display: block;
  perspective: 1400px;
}

.tutor-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(230px, 0.75fr);
  max-height: min(620px, calc(100vh - 210px));
  overflow: hidden;
  border: 1px solid rgba(13, 111, 139, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
  animation: cardIn 420ms ease forwards;
  cursor: pointer;
}

.tutor-card.is-active {
  z-index: 2;
}

.tutor-card.is-preview {
  z-index: 1;
  width: min(560px, 88%);
  opacity: 0.42;
  filter: saturate(0.9);
}

.tutor-card.is-preview .tutor-copy {
  pointer-events: none;
}

.tutor-card.is-left {
  transform: translate(-112%, -50%) scale(0.82);
  animation: none;
}

.tutor-card.is-right {
  transform: translate(12%, -50%) scale(0.82);
  animation: none;
}

.tutor-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 6px;
}

.tutor-photo {
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: var(--white);
  overflow: hidden;
}

.tutor-photo img {
  width: 100%;
  height: 100%;
  min-height: min(560px, calc(100vh - 230px));
  display: block;
  object-fit: cover;
  object-position: center top;
}

.tutor-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  text-align: center;
}

.tutor-copy h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1;
}

.tutor-copy p {
  margin: 14px 0 34px;
  color: var(--teal);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 800;
}

.read-bio,
.submit-button,
.giant-book,
.info-button,
.floating-book,
.floating-testimonials {
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--navy));
  box-shadow: 0 16px 34px rgba(9, 47, 71, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.read-bio {
  align-self: center;
  padding: 14px 22px;
  font-weight: 800;
}

.read-bio:hover,
.submit-button:hover,
.giant-book:hover,
.info-button:hover,
.floating-book:hover,
.floating-testimonials:hover,
.read-bio:focus-visible,
.submit-button:focus-visible,
.giant-book:focus-visible,
.info-button:focus-visible,
.floating-book:focus-visible,
.floating-testimonials:focus-visible,
.share-button:hover,
.share-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(9, 47, 71, 0.24);
  filter: saturate(1.08);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(14px, 2.4vh, 24px);
}

.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b7ccd4;
}

.dots button.active {
  width: 32px;
  background: var(--gold);
}

.info-panel {
  background:
    linear-gradient(rgba(6, 31, 51, 0.9), rgba(6, 31, 51, 0.9)),
    radial-gradient(circle at 82% 24%, rgba(245, 185, 71, 0.2), transparent 24%),
    var(--deep);
}

.info-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 30px);
  width: min(720px, 100%);
  margin: 0 auto;
}

.info-button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #0d6f8b, #092f47);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 900;
  text-align: center;
}

.info-button-wide {
  min-height: clamp(132px, 20vh, 190px);
}

.articles-section-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, var(--orange), var(--orange-deep));
}

.info-button svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-panel {
  background:
    radial-gradient(circle at 28% 24%, rgba(13, 111, 139, 0.14), transparent 26%),
    radial-gradient(circle at 78% 74%, rgba(245, 185, 71, 0.18), transparent 25%),
    #ffffff;
  text-align: center;
}

.booking-panel .section-inner {
  display: grid;
  justify-items: center;
  gap: 34px;
}

.booking-panel h2 {
  max-width: 980px;
  font-size: clamp(1.7rem, 3.4vw, 3.8rem);
}

.giant-book {
  padding: clamp(24px, 4vw, 42px) clamp(58px, 10vw, 128px);
  font-size: clamp(2rem, 5vw, 5.4rem);
  font-weight: 950;
}

.floating-book,
.floating-testimonials {
  position: fixed;
  bottom: clamp(14px, 2vw, 28px);
  z-index: 20;
  padding: 16px 24px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(9, 47, 71, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 240ms ease, visibility 240ms ease, transform 240ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.site-shell.floating-book-visible .floating-book,
.site-shell.floating-testimonials-visible .floating-testimonials {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-book {
  right: clamp(14px, 2vw, 28px);
  background: linear-gradient(135deg, var(--teal), var(--navy));
}

.floating-testimonials {
  left: clamp(14px, 2vw, 28px);
  background: linear-gradient(135deg, #9f8fe8, #6f5ec7);
}

.article-page .floating-book,
.article-page .floating-testimonials,
.thank-you-page .floating-book,
.thank-you-page .floating-testimonials {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-book.attention-loop {
  animation: bookPulse 3s ease infinite;
}

.site-footer {
  scroll-snap-align: end;
  padding: 36px 22px 42px;
  color: #e7f2f5;
  background: var(--deep);
  text-align: center;
}

.site-footer p {
  margin: 8px 0;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 31, 51, 0.64);
  backdrop-filter: blur(7px);
}

.modal-card {
  position: relative;
  width: min(880px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
  padding: clamp(28px, 5vw, 58px);
  animation: modalIn 220ms ease forwards;
}

.booking-card {
  width: min(980px, 100%);
}

.articles-card {
  width: min(760px, 100%);
}

.testimonials-card {
  width: min(1080px, 100%);
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fbfdfe;
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 850;
  line-height: 1.25;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-link:hover,
.article-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(231, 131, 34, 0.45);
  box-shadow: 0 16px 34px rgba(9, 47, 71, 0.12);
}

.article-link img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 25;
  float: right;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -16px -16px 10px 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: #eef7f9;
  box-shadow: 0 8px 20px rgba(9, 47, 71, 0.14);
}

.modal-card h2 {
  margin-bottom: 22px;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
}

.modal-body {
  color: #243e50;
  font-size: 1.04rem;
  line-height: 1.75;
}

.modal-body p {
  margin: 0 0 18px;
}

.modal-body h3 {
  margin: 30px 0 12px;
  color: var(--navy);
  font-size: 1.3rem;
}

.modal-body blockquote {
  margin: 0 0 20px;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--gold);
  color: #284354;
}

.request-form {
  display: grid;
  gap: 22px;
}

fieldset {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 8px;
  color: var(--navy);
  font-weight: 850;
}

legend span,
.field span {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 650;
}

.choice {
  display: block;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 780;
}

.field[hidden] {
  display: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid #cbdce3;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdfe;
}

textarea {
  resize: vertical;
}

.day-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 18px;
  margin-top: 12px;
}

.day-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.full {
  grid-column: 1 / -1;
}

.request-form h3 {
  margin: 2px 0 -8px;
  color: var(--navy);
}

.submit-button {
  justify-self: start;
  padding: 15px 24px;
  font-weight: 900;
}

.hidden-field {
  display: none;
}

.article-page {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background:
    radial-gradient(circle at 16% 8%, rgba(245, 185, 71, 0.14), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(13, 111, 139, 0.12), transparent 26%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 34%, #f4fafb 100%);
}

.article-shell {
  min-height: 100vh;
}

.article-header {
  padding: clamp(34px, 6vw, 72px) 22px 0;
}

.article-topbar,
.article-hero,
.article-body,
.article-footer-inner {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
}

.article-topbar {
  display: flex;
  justify-content: flex-start;
}

.article-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}

.article-brand img {
  width: clamp(118px, 12vw, 170px);
  height: auto;
}

.article-hero {
  padding: clamp(36px, 6vw, 76px) 0 clamp(30px, 5vw, 54px);
}

.article-hero h1 {
  max-width: 940px;
  font-size: clamp(2.45rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-weight: 800;
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  padding-bottom: clamp(44px, 8vw, 90px);
  color: #203a4d;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.82;
}

.article-body h2 {
  margin: 42px 0 14px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.14;
}

.article-body h2.major-section {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body ol,
.article-body ul {
  margin: 0 0 24px 1.35em;
  padding: 0;
}

.article-body li {
  margin: 8px 0;
}

.article-actions {
  display: flex;
  justify-content: center;
  margin: 0 0 34px;
}

.article-actions.hero-share {
  justify-content: flex-start;
  margin: -8px 0 30px;
}

.article-actions.bottom {
  margin: 44px 0 0;
}

.share-button {
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 16px 34px rgba(185, 94, 18, 0.2);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.article-footer {
  padding: 34px 22px 42px;
  color: #e7f2f5;
  background: var(--deep);
  text-align: center;
}

.article-footer p {
  margin: 8px 0;
}

.share-status {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 750;
}

.standard-page .article-hero {
  padding-bottom: clamp(36px, 6vw, 68px);
}

.standard-page .article-image {
  margin-top: clamp(30px, 5vw, 58px);
}

.standard-page .article-body {
  max-width: 860px;
  padding-top: clamp(8px, 2vw, 22px);
}

.about-jd-page .article-image {
  width: min(560px, 100%);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  background: #eef7f9;
}

.about-jd-page .article-hero h1 {
  margin-inline: auto;
  text-align: center;
}

.about-jd-page .article-image img {
  object-fit: contain;
}

.testimonial-page-mount {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 clamp(54px, 8vw, 96px);
}

.testimonials-card > h2 {
  clear: both;
  margin-bottom: 24px;
  text-align: center;
}

.testimonial-toc {
  position: sticky;
  top: 0;
  z-index: 3;
  width: min(640px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto clamp(24px, 4vw, 40px);
  overflow-x: auto;
  border: 1px solid rgba(13, 111, 139, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(9, 47, 71, 0.1);
  backdrop-filter: blur(10px);
}

.testimonial-toc a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.testimonial-toc a + a {
  border-left: 1px solid rgba(13, 111, 139, 0.18);
}

.testimonial-toc a:hover,
.testimonial-toc a:focus-visible {
  color: var(--orange-deep);
}

.testimonial-stack {
  display: grid;
  gap: clamp(42px, 7vw, 82px);
  width: 100%;
}

.testimonial-section {
  display: grid;
  gap: clamp(22px, 4vw, 34px);
  width: 100%;
  max-width: 100%;
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(13, 111, 139, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 185, 71, 0.22), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(13, 111, 139, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.96));
  box-shadow: var(--shadow);
}

.testimonial-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 520ms ease, transform 520ms ease;
}

.testimonial-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.testimonial-tutor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  text-align: center;
}

.testimonial-tutor img {
  width: clamp(124px, 18vw, 180px);
  height: clamp(124px, 18vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 5px solid var(--teal-soft);
  box-shadow: 0 18px 40px rgba(9, 47, 71, 0.16);
}

.testimonial-tutor img.jd-testimonial-photo {
  object-fit: contain;
  object-position: center center;
  background: #eef7f9;
}

.testimonial-tutor h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.testimonial-quotes {
  column-count: 2;
  column-gap: clamp(16px, 3vw, 28px);
}

.quote-card {
  break-inside: avoid;
  margin: 0 0 clamp(14px, 2vw, 20px);
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(13, 111, 139, 0.12);
  border-radius: 8px;
  color: #203a4d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(223, 242, 244, 0.72), rgba(255, 255, 255, 0.72));
  box-shadow: 0 14px 34px rgba(9, 47, 71, 0.1);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.65;
}

.quote-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--orange-deep);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 900;
}

.quote-card span {
  display: block;
}

.thank-you-page {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 185, 71, 0.16), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(13, 111, 139, 0.16), transparent 26%),
    linear-gradient(135deg, #f7fbfc 0%, #ffffff 58%, #eef7f9 100%);
}

.thank-you-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 30px;
  padding: 40px 22px;
  text-align: center;
}

.thank-you-shell > img {
  width: min(360px, 76vw);
  height: auto;
}

.thank-you-card {
  width: min(720px, 100%);
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid rgba(13, 111, 139, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.thank-you-card p {
  margin: 18px auto 30px;
  max-width: 520px;
  color: #284354;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.return-home {
  display: inline-block;
  border-radius: 8px;
  padding: 14px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--navy));
  box-shadow: 0 16px 34px rgba(9, 47, 71, 0.18);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.return-home:hover,
.return-home:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(9, 47, 71, 0.24);
  filter: saturate(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes serviceReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 21px); }
}

@keyframes floatDownCue {
  0%, 100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 6px);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes tapCue {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bookPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 16px 34px rgba(9, 47, 71, 0.18);
  }

  18% {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 0 8px rgba(245, 185, 71, 0.22), 0 28px 56px rgba(9, 47, 71, 0.3);
    filter: saturate(1.12);
  }

  42% {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 0 0 14px rgba(245, 185, 71, 0), 0 16px 34px rgba(9, 47, 71, 0.18);
  }

  68% {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 0 6px rgba(245, 185, 71, 0.16), 0 24px 46px rgba(9, 47, 71, 0.26);
  }
}

@media (max-width: 820px) {
  .panel {
    min-height: 100svh;
    padding: 72px 18px;
  }

  .spotlight-panel {
    padding: 34px 14px 28px;
  }

  .site-shell {
    height: 100svh;
  }

  .spotlight-panel .section-inner {
    height: calc(100svh - 62px);
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .service-line {
    max-width: min(94vw, 370px);
    gap: 10px 12px;
    font-size: clamp(1rem, 4.35vw, 1.2rem);
  }

  .hero-logo {
    width: min(88vw, 365px);
    max-height: 30svh;
  }

  .service-line i {
    width: 6px;
    height: 6px;
  }

  .carousel {
    display: grid;
  }

  .carousel-btn {
    min-width: 0;
    flex: 1;
    padding: 14px 12px;
  }

  .tutor-stage {
    width: min(100%, 360px);
    min-height: calc(100svh - 160px);
  }

  .tutor-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 1fr) auto;
    width: min(86%, 310px);
    max-height: calc(100svh - 160px);
  }

  .tutor-card.is-preview {
    width: min(78%, 280px);
  }

  .tutor-card.is-left {
    transform: translate(-118%, -50%) scale(0.82);
  }

  .tutor-card.is-right {
    transform: translate(18%, -50%) scale(0.82);
  }

  .tutor-photo {
    min-height: 0;
    background:
      radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.96), rgba(238, 247, 249, 0.92) 56%),
      linear-gradient(180deg, #f8fcfd, #e7f4f7);
  }

  .tutor-photo img {
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
  }

  .tutor-copy {
    padding: 16px 18px 18px;
  }

  .tutor-copy h3 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .tutor-copy p {
    margin: 8px 0 14px;
    font-size: clamp(0.9rem, 3.8vw, 1rem);
  }

  .read-bio {
    padding: 11px 18px;
  }

  .dots {
    margin-top: 10px;
  }

  .info-buttons,
  .day-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .floating-book {
    right: 12px;
    bottom: 12px;
    padding: 14px 18px;
  }

  .floating-testimonials {
    left: 12px;
    bottom: 12px;
    padding: 14px 18px;
  }

  .section-down {
    width: 44px;
    height: 44px;
    bottom: 30px;
  }

  .section-down svg {
    width: 23px;
    height: 23px;
  }

  .footer-contact {
    display: grid;
    gap: 6px;
  }

  .footer-separator {
    display: none;
  }

  .site-footer,
  .article-footer {
    padding-bottom: 104px;
  }

  .article-link {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .article-link img {
    width: 74px;
    height: 74px;
  }

  .testimonial-section {
    padding: 20px 14px;
  }

  .testimonial-quotes {
    column-count: 1;
  }

  .modal {
    padding: 12px;
  }
}

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

  .hero-logo,
  .service-line span,
  .service-line i,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .section-down {
    transform: translateX(-50%) !important;
  }
}
