/* ================================================================
   Online Spanish Lessons — styles
   Edit the design tokens below to update the site globally.
   ================================================================ */

:root {
  --cream: #F2EDE3;
  --white: #FCFAF5;
  --terracotta: #6E2F34;
  --terracotta-dark: #4A2026;
  --yellow: #A8864E;
  --olive: #68705A;
  --olive-dark: #1F2E2A;
  --navy: #1B2940;
  --text: #17201D;
  --text-secondary: #5F625A;
  --border: #D5CCBD;
  --soft-terracotta: #EEE1DD;
  --soft-olive: #E6E9E0;
  --shadow-sm: 0 12px 34px rgba(23, 32, 29, 0.07);
  --shadow-lg: 0 30px 85px rgba(23, 32, 29, 0.14);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
  --container: 1200px;
  --header-height: 82px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.intro-active {
  overflow: hidden;
}

/* Cinematic brand entrance (visible only when JavaScript is available). */
.page-intro {
  display: none;
}

.js .page-intro {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(168, 134, 78, 0.1), transparent 36%),
    var(--navy);
  clip-path: inset(0 0 0 0);
}

.intro-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.intro-mark {
  position: relative;
  display: flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(216, 193, 141, 0.82);
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 700ms ease, transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro-mark::before {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(216, 193, 141, 0.32);
  content: "";
}

.intro-mark span {
  font-family: var(--font-heading);
  font-size: 3.45rem;
  line-height: 0.68;
}

.intro-mark small {
  margin-top: 10px;
  color: #D8C18D;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.intro-content > p {
  margin: 24px 0 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease 250ms, transform 600ms ease 250ms;
}

.intro-line {
  width: 0;
  height: 1px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, transparent, #D8C18D, transparent);
  transition: width 800ms ease 360ms;
}

.intro-content > small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 600ms ease 480ms;
}

.page-intro.is-ready .intro-mark {
  opacity: 1;
  transform: scale(1);
}

.page-intro.is-ready .intro-content > p {
  opacity: 1;
  transform: translateY(0);
}

.page-intro.is-ready .intro-line {
  width: 190px;
}

.page-intro.is-ready .intro-content > small {
  opacity: 1;
}

.page-intro.is-leaving {
  pointer-events: none;
  animation: intro-curtain 850ms cubic-bezier(0.75, 0, 0.2, 1) forwards;
}

/* Premium pointer halo for precise pointing devices. */
.cursor-halo {
  display: none;
}

.js .cursor-halo {
  position: fixed;
  z-index: 4500;
  top: 0;
  left: 0;
  display: block;
  width: 36px;
  height: 36px;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 220ms ease;
}

.cursor-halo::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(168, 134, 78, 0.78);
  border-radius: 50%;
  background: rgba(216, 193, 141, 0.04);
  box-shadow: 0 0 22px rgba(168, 134, 78, 0.16);
  content: "";
  transition: background 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.cursor-halo.is-visible {
  opacity: 1;
}

.cursor-halo.is-active::before {
  border-color: rgba(110, 47, 52, 0.82);
  background: rgba(168, 134, 78, 0.12);
  transform: scale(1.55);
}

@keyframes intro-curtain {
  to { clip-path: inset(0 0 100% 0); }
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  max-width: 750px;
  margin-bottom: 24px;
  font-size: clamp(3.7rem, 6.8vw, 6.35rem);
  letter-spacing: -0.03em;
}

h1 em {
  color: var(--terracotta);
  font-weight: 500;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.hero-line > span,
.hero-line > em {
  display: inline-block;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  letter-spacing: -0.02em;
}

.js .reveal h2 {
  position: relative;
}

.js .reveal h2::after {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 17px;
  background: linear-gradient(90deg, var(--yellow), transparent);
  content: "";
  transition: width 900ms cubic-bezier(0.16, 1, 0.3, 1) 280ms;
}

.js .reveal.is-visible h2::after {
  width: 88px;
}

.js .section-heading.centered.reveal h2::after {
  margin-right: auto;
  margin-left: auto;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

h3 {
  margin-bottom: 16px;
  font-size: 1.75rem;
}

section,
footer {
  position: relative;
}

section[id],
footer [id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--text);
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--terracotta-dark);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 2px solid var(--terracotta);
  border-radius: 2px;
  color: var(--white);
  background: var(--terracotta);
  box-shadow: 0 10px 24px rgba(103, 40, 46, 0.18);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.button::after {
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
  transition: left 650ms ease;
}

.button:hover::after {
  left: 130%;
}

.button:hover {
  border-color: var(--terracotta-dark);
  background: var(--terracotta-dark);
  box-shadow: 0 13px 28px rgba(103, 40, 46, 0.22);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding: 10px 19px;
  font-size: 0.81rem;
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.button-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
  background: var(--white);
  box-shadow: none;
}

.button-light {
  border-color: var(--white);
  color: var(--terracotta-dark);
  background: var(--white);
  box-shadow: none;
}

.button-light:hover {
  border-color: var(--cream);
  color: var(--terracotta-dark);
  background: var(--cream);
}

.button-full {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(220, 212, 200, 0.75);
  background: rgba(245, 241, 233, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: height var(--transition), box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(32, 40, 37, 0.09);
  background: rgba(245, 241, 233, 0.96);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #D8C18D);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(168, 134, 78, 0.75);
  border-radius: 2px;
  color: var(--white);
  background: var(--navy);
}

.brand-mark::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(168, 134, 78, 0.38);
  content: "";
  pointer-events: none;
}

.brand-mark > span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  line-height: 0.72;
}

.brand-mark > small {
  margin-top: 7px;
  color: #D8C18D;
  font-size: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
}

.brand-copy small {
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.45vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation ul a {
  position: relative;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: clamp(0.72rem, 0.8vw, 0.84rem);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.primary-navigation ul a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.primary-navigation ul a:hover,
.primary-navigation ul a.active {
  color: var(--text);
}

.primary-navigation ul a:hover::after,
.primary-navigation ul a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: opacity var(--transition), transform var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  overflow: hidden;
  min-height: 760px;
  padding-top: calc(var(--header-height) + 86px);
  background:
    radial-gradient(circle at 5% 38%, rgba(168, 134, 78, 0.1), transparent 25%),
    radial-gradient(circle at 91% 10%, rgba(104, 112, 90, 0.12), transparent 28%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.8fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.55vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 25px;
  margin: 0;
  padding: 23px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.benefit-list li span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px var(--soft-olive);
}

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

.photo-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border: 1px solid var(--yellow);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  will-change: transform;
}

.photo-frame::after {
  position: absolute;
  z-index: 4;
  inset: -9px;
  border: 1px solid rgba(168, 134, 78, 0.42);
  content: "";
  pointer-events: none;
  animation: frame-drift 7s ease-in-out infinite;
}

@keyframes frame-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -5px); }
}

.teacher-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  filter: saturate(0.88) contrast(1.03);
  transition: filter 700ms ease, transform 900ms ease;
}

.photo-frame:hover .teacher-photo {
  filter: saturate(0.96) contrast(1.04);
  transform: scale(1.012);
}

.hero-visual figcaption {
  position: relative;
  z-index: 3;
  display: flex;
  width: max-content;
  max-width: calc(100% - 32px);
  align-items: center;
  gap: 10px;
  margin: -29px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 5px var(--soft-olive);
}

.visual-accent {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}

.visual-accent-one {
  top: 10%;
  right: -42px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(168, 134, 78, 0.58);
  border-radius: 0;
}

.visual-accent-two {
  bottom: 3%;
  left: -52px;
  width: 150px;
  height: 150px;
  border-radius: 0;
  background: rgba(104, 112, 90, 0.13);
}

/* Professional lesson profile */
.professional-strip {
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  background: var(--navy);
}

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

.professional-strip-grid > div {
  display: flex;
  min-height: 112px;
  justify-content: center;
  flex-direction: column;
  padding: 24px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.professional-strip-grid > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.professional-strip-grid small {
  margin-bottom: 6px;
  color: #D5BD86;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.professional-strip-grid strong {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.section-copy > p:last-child,
.section-heading > p:last-child,
.included-intro > p,
.contact-copy > p {
  color: var(--text-secondary);
  font-size: 1.06rem;
}

.section-copy > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
}

.teacher-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #24342E, #17201D);
  box-shadow: var(--shadow-lg);
}

.teacher-card::after {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(168, 134, 78, 0.32);
  border-radius: 0;
  border-radius: 50%;
  content: "";
}

.teacher-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.experience-portrait {
  position: relative;
  height: 250px;
  margin: -38px -38px 32px;
  overflow: hidden;
  border-bottom: 1px solid rgba(168, 134, 78, 0.55);
}

.experience-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 32, 29, 0.42), transparent 48%);
  content: "";
}

.experience-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.78) contrast(1.04);
  transition: filter 800ms ease, transform 1200ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.teacher-card:hover .experience-portrait img {
  filter: saturate(0.9) contrast(1.04);
}

.teacher-initial {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--terracotta);
  font-family: var(--font-heading);
  font-size: 2rem;
}

.card-label {
  margin-bottom: 2px;
  color: #D5BD86;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.teacher-card h3 {
  margin-bottom: 0;
  color: var(--white);
  font-size: 2.15rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.check-list li::before {
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #D5BD86;
  background: rgba(185, 150, 75, 0.13);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 700;
}

.editable-note {
  margin: 25px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.65;
}

/* Section headings */
.section-heading {
  max-width: 720px;
  margin-bottom: 55px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
}

/* How classes work */
.methods {
  background: var(--cream);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.method-card {
  position: relative;
  min-height: 420px;
  padding: 38px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.method-card::before,
.price-card::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  right: 22px;
  left: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 500ms ease;
}

.method-card::after,
.price-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(168, 134, 78, 0.15), transparent 34%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.method-card:hover::after,
.price-card:hover::after {
  opacity: 1;
}

.method-card > *,
.price-card > * {
  position: relative;
  z-index: 1;
}

.method-card:hover::before,
.price-card:hover::before {
  transform: scaleX(1);
}

/* Editorial old-money story */
.editorial-story {
  --kinetic-x: 0px;
  padding-top: 0;
  overflow: hidden;
  background: var(--cream);
}

.editorial-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: -5%;
  color: transparent;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 19vw, 18rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.32;
  pointer-events: none;
  transform: translate3d(var(--kinetic-x), -50%, 0);
  -webkit-text-stroke: 1px rgba(168, 134, 78, 0.32);
  white-space: nowrap;
  will-change: transform;
}

.editorial-story-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(55px, 9vw, 130px);
}

/* Kinetic editorial signature between content and pricing. */
.signature-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.signature-marquee-track {
  display: flex;
  width: max-content;
  animation: signature-scroll 24s linear infinite;
  will-change: transform;
}

.signature-marquee-track span {
  display: block;
  padding: 19px 22px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.signature-marquee-track i {
  margin-inline: 22px;
  color: var(--yellow);
  font-size: 0.5rem;
  font-style: normal;
  vertical-align: middle;
}

.signature-marquee:hover .signature-marquee-track {
  animation-play-state: paused;
}

@keyframes signature-scroll {
  to { transform: translateX(-50%); }
}

.editorial-story-photo {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--yellow);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  will-change: transform;
}

.editorial-story-photo::before {
  position: absolute;
  z-index: -1;
  inset: 20px -20px -20px 20px;
  border: 1px solid rgba(168, 134, 78, 0.45);
  content: "";
}

.editorial-story-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.8) contrast(1.04);
  transition: filter 800ms ease, transform 1000ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.editorial-story-photo:hover img {
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.012);
}

.editorial-story-photo figcaption {
  padding: 13px 5px 3px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.03em;
  text-align: center;
}

.editorial-story-copy {
  max-width: 580px;
}

.editorial-story-copy h2 {
  margin-bottom: 25px;
}

.editorial-story-copy > p:not(.eyebrow) {
  margin-bottom: 35px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.editorial-principles {
  display: grid;
  margin-bottom: 32px;
  border-top: 1px solid var(--border);
}

.editorial-principles span {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--terracotta);
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: gap var(--transition), color var(--transition);
}

.editorial-link:hover {
  gap: 20px;
  color: var(--text);
}

.method-card:hover {
  border-color: rgba(142, 59, 60, 0.42);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.method-icon {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 46px;
  border-radius: 18px;
  background: var(--soft-terracotta);
}

.method-card:nth-child(2) .method-icon {
  background: rgba(185, 150, 75, 0.17);
}

.method-card:nth-child(3) .method-icon {
  background: var(--soft-olive);
}

.method-icon::before,
.method-icon::after,
.method-icon span::before,
.method-icon span::after {
  position: absolute;
  content: "";
}

.grammar-icon::before {
  width: 28px;
  height: 34px;
  border: 2px solid var(--terracotta-dark);
  border-radius: 4px;
}

.grammar-icon::after {
  width: 16px;
  height: 2px;
  background: var(--terracotta-dark);
  box-shadow: 0 7px 0 var(--terracotta-dark), 0 14px 0 var(--terracotta-dark);
}

.conversation-icon::before,
.conversation-icon::after {
  width: 27px;
  height: 20px;
  border: 2px solid #876D32;
  border-radius: 9px;
}

.conversation-icon::before {
  top: 18px;
  left: 14px;
}

.conversation-icon::after {
  right: 13px;
  bottom: 17px;
}

.learning-icon::before {
  width: 31px;
  height: 31px;
  border: 2px solid var(--olive-dark);
  border-radius: 50%;
}

.learning-icon::after {
  width: 12px;
  height: 2px;
  background: var(--olive-dark);
  transform: translate(8px, 15px) rotate(35deg);
}

.card-number {
  position: absolute;
  top: 34px;
  right: 34px;
  color: var(--border);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.method-card p:last-child {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.91rem;
}

/* What's included */
.included {
  overflow: hidden;
  background: var(--olive-dark);
}

.included::before {
  position: absolute;
  top: -170px;
  left: -120px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  content: "";
}

.included-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.included h2,
.included .included-intro > p {
  color: var(--white);
}

.included .eyebrow {
  color: #F4CE84;
}

.included-intro > p {
  opacity: 0.8;
}

.included-quote {
  position: relative;
  margin-top: 40px;
  padding: 24px 24px 24px 68px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
}

.included-quote span {
  position: absolute;
  top: 8px;
  left: 22px;
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
}

.included-quote p {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.25;
}

.included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 16px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 600;
}

.included-list li:last-child {
  grid-column: 1 / -1;
}

.included-list li span {
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

/* Student reviews — a slow, continuous editorial carousel. */
.reviews {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(168, 134, 78, 0.055) 1px, transparent 1px) 0 0 / 82px 100%,
    var(--white);
}

.reviews::before,
.reviews::after {
  position: absolute;
  left: 50%;
  width: 116px;
  height: 1px;
  background: var(--yellow);
  content: "";
  opacity: 0.7;
  transform: translateX(-50%);
}

.reviews::before {
  top: 42px;
}

.reviews::after {
  bottom: 42px;
}

.reviews .section-heading {
  margin-bottom: 52px;
}

.reviews-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.reviews-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: reviews-scroll 92s linear infinite;
}

.reviews-set {
  display: flex;
  flex-shrink: 0;
  gap: 22px;
  padding-right: 22px;
}

.review-card {
  position: relative;
  display: flex;
  width: 410px;
  min-height: 410px;
  flex: 0 0 410px;
  flex-direction: column;
  justify-content: space-between;
  padding: 43px 38px 35px;
  border: 1px solid rgba(168, 134, 78, 0.42);
  border-radius: var(--radius-sm);
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(242, 237, 227, 0.76)),
    var(--cream);
  box-shadow: 0 20px 45px rgba(23, 32, 29, 0.07);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.review-card::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 30px;
  height: 30px;
  border-right: 1px solid rgba(168, 134, 78, 0.55);
  border-bottom: 1px solid rgba(168, 134, 78, 0.55);
  content: "";
}

.review-card:hover,
.review-card:focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 26px 58px rgba(23, 32, 29, 0.12);
  transform: translateY(-5px);
}

.review-card:focus-visible {
  outline: 3px solid rgba(168, 134, 78, 0.34);
  outline-offset: 4px;
}

.review-quote-mark {
  display: block;
  height: 55px;
  color: var(--terracotta);
  font-family: var(--font-heading);
  font-size: 5.2rem;
  font-style: italic;
  line-height: 0.9;
}

.review-text {
  margin: 13px 0 32px;
  color: #333A36;
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.42;
}

.review-card footer {
  display: grid;
  gap: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.review-card footer strong {
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.review-card footer span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.reviews-viewport:hover .reviews-track,
.reviews-viewport:focus-within .reviews-track,
.reviews-viewport:active .reviews-track {
  animation-play-state: paused;
}

.reviews.is-paused .reviews-track {
  animation-play-state: paused;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 27px auto 0;
}

.reviews-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(252, 250, 245, 0.88);
  font: 700 0.67rem/1 var(--font-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.reviews-toggle:hover,
.reviews-toggle:focus-visible {
  border-color: var(--yellow);
  background: var(--white);
}

.reviews-toggle:focus-visible {
  outline: 3px solid rgba(168, 134, 78, 0.28);
  outline-offset: 3px;
}

.reviews-toggle-icon {
  position: relative;
  display: block;
  width: 9px;
  height: 11px;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.reviews.is-paused .reviews-toggle-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 0;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.reviews-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes reviews-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Pricing */
.pricing {
  background: var(--cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.price-card {
  position: relative;
  display: flex;
  grid-column: span 2;
  min-height: 530px;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(32, 40, 37, 0.045);
}

.price-card {
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.price-card:hover {
  border-color: rgba(168, 134, 78, 0.62);
  box-shadow: 0 18px 42px rgba(23, 32, 29, 0.1);
  transform: translateY(-5px);
}

.price-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.price-card-popular {
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 28px;
  padding: 8px 16px;
  border-radius: 0;
  color: var(--white);
  background: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-card-header {
  padding-bottom: 23px;
  border-bottom: 1px solid var(--border);
}

.price-card-header h3 {
  max-width: 190px;
  margin-bottom: 20px;
}

.price-card-header p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 0;
}

.price-card-header strong {
  color: var(--terracotta-dark);
  font-family: var(--font-heading);
  font-size: 2.65rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-card-header span {
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.price-card ul {
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding: 6px 0 6px 25px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.price-card li::before {
  position: absolute;
  top: 14px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

.plan-description {
  margin-bottom: 25px;
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.6;
}

.plan-button {
  margin-top: auto;
}

.pricing-note {
  margin: 38px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.payment-methods {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto 0;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.payment-methods strong {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.payment-methods i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--yellow);
}

/* Trial */
.trial {
  padding-top: 0;
  background: var(--cream);
}

.trial-card {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
  padding: 62px 68px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--terracotta);
}

.trial-card::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 60px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.trial-card > * {
  position: relative;
  z-index: 1;
}

.trial-card .eyebrow {
  color: #E6D19F;
}

.trial-card h2 {
  margin-bottom: 15px;
  color: var(--white);
  font-size: clamp(2.5rem, 4.7vw, 4rem);
}

.trial-card p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.trial-editable {
  display: inline-block;
  margin: 13px 0 0;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  font-size: 0.73rem;
}

/* FAQ */
.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(500px, 1fr);
  align-items: start;
  gap: clamp(50px, 9vw, 120px);
}

.faq .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 42px);
  margin-bottom: 0;
}

.accordion {
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion h3 {
  margin: 0;
  font-family: var(--font-body);
}

.accordion button {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 22px 6px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion button span {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cream);
}

.accordion button span::before,
.accordion button span::after {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--terracotta-dark);
  content: "";
  transition: transform var(--transition);
}

.accordion button span::after {
  transform: rotate(90deg);
}

.accordion button[aria-expanded="true"] span::after {
  transform: rotate(0);
}

.accordion-panel p {
  margin: -3px 45px 25px 6px;
  color: var(--text-secondary);
}

.accordion-panel:not([hidden]) p {
  animation: accordion-in 420ms ease both;
}

@keyframes accordion-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accordion-panel[hidden] {
  display: none;
}

/* Contact */
.contact {
  background: var(--soft-terracotta);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(560px, 1fr);
  align-items: start;
  gap: clamp(55px, 8vw, 110px);
}

.contact-copy h2 {
  margin-bottom: 20px;
}

.contact-copy > p {
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-detail > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--terracotta-dark);
  background: var(--white);
  font-weight: 700;
}

.contact-detail div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.3;
}

.contact-detail small {
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.contact-detail strong {
  overflow-wrap: anywhere;
  font-size: 0.83rem;
}

.button-whatsapp {
  margin-top: 17px;
  border-color: var(--olive-dark);
  background: var(--olive-dark);
  box-shadow: none;
}

.button-whatsapp:hover {
  border-color: #202825;
  background: #202825;
}

.text-contact-link {
  display: block;
  width: fit-content;
  margin-top: 13px;
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(142, 59, 60, 0.35);
  text-underline-offset: 4px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.text-contact-link:hover {
  color: var(--text);
  text-decoration-color: var(--terracotta);
}

.config-note {
  margin-top: 17px;
  color: var(--text-secondary);
  font-size: 0.7rem !important;
  line-height: 1.5;
}

.contact-form {
  padding: 42px;
  border: 1px solid rgba(220, 212, 200, 0.82);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-field label {
  color: var(--text);
  font-size: 0.79rem;
  font-weight: 700;
}

.form-field label > span:not(.optional) {
  color: var(--terracotta-dark);
}

.optional {
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 51px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #FCFAF6;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9B938A;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(142, 59, 60, 0.11);
}

.form-field input.user-invalid,
.form-field select.user-invalid,
.form-field textarea.user-invalid {
  border-color: #A63D2F;
}

.form-status {
  min-height: 27px;
  margin: 18px 0 8px;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.form-status.success {
  color: var(--olive-dark);
}

/* Footer */
.site-footer {
  padding: 75px 0 24px;
  color: rgba(255, 255, 255, 0.73);
  background: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.8fr;
  gap: 80px;
  padding-bottom: 55px;
}

.brand-footer .brand-copy strong,
.brand-footer .brand-copy small {
  color: var(--white);
}

.footer-brand p {
  max-width: 360px;
  margin: 24px 0 0;
  font-size: 0.88rem;
}

.footer-column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.footer-column h2 {
  margin-bottom: 9px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-column a {
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-payment {
  color: #D8C18D;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:last-child {
  max-width: 480px;
  text-align: right;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  z-index: 900;
  right: max(22px, calc((100vw - var(--container)) / 2 - 78px));
  bottom: 24px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--olive-dark);
  box-shadow: 0 12px 30px rgba(48, 45, 42, 0.22);
  transition: background var(--transition), transform var(--transition);
}

.floating-whatsapp:hover {
  background: #202825;
  transform: translateY(-3px);
}

.whatsapp-symbol {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid var(--white);
  border-radius: 50%;
}

.whatsapp-symbol::before {
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--white);
  content: "";
  transform: rotate(24deg);
}

.whatsapp-symbol::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  border-radius: 0 0 0 6px;
  content: "";
  transform: rotate(-45deg);
}

/* Reveal animations are enabled only when JavaScript is available. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 850ms ease, transform 850ms ease;
}

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

/* Layered hero entrance */
.js .hero-content.is-visible > * {
  opacity: 0;
  animation: hero-intro 820ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.js .hero-content.is-visible > :nth-child(1) { animation-delay: 80ms; }
.js .hero-content.is-visible > :nth-child(2) { animation-delay: 170ms; }
.js .hero-content.is-visible > :nth-child(3) { animation-delay: 280ms; }
.js .hero-content.is-visible > :nth-child(4) { animation-delay: 390ms; }
.js .hero-content.is-visible > :nth-child(5) { animation-delay: 500ms; }

@keyframes hero-intro {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .hero-content.is-visible .hero-line > span,
.js .hero-content.is-visible .hero-line > em {
  animation: title-line-rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js .hero-content.is-visible .hero-line:nth-child(2) > em {
  animation-delay: 130ms;
}

@keyframes title-line-rise {
  from {
    opacity: 0;
    transform: translateY(110%) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.js .hero-visual.is-visible .photo-frame {
  animation: image-curtain 1000ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes image-curtain {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.js .teacher-card.reveal .experience-portrait img {
  transform: scale(1.07);
}

.js .teacher-card.reveal.is-visible .experience-portrait img {
  transform: scale(1);
}

.js .professional-strip.reveal .professional-strip-grid > div {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js .professional-strip.reveal.is-visible .professional-strip-grid > div {
  opacity: 1;
  transform: translateY(0);
}

.js .professional-strip.reveal.is-visible .professional-strip-grid > div:nth-child(2) { transition-delay: 90ms; }
.js .professional-strip.reveal.is-visible .professional-strip-grid > div:nth-child(3) { transition-delay: 180ms; }
.js .professional-strip.reveal.is-visible .professional-strip-grid > div:nth-child(4) { transition-delay: 270ms; }

.js .stagger-group > .reveal:nth-child(2) {
  transition-delay: 110ms;
}

.js .stagger-group > .reveal:nth-child(3) {
  transition-delay: 220ms;
}

.js .stagger-group > .reveal:nth-child(4) {
  transition-delay: 330ms;
}

.js .stagger-group > .reveal:nth-child(5) {
  transition-delay: 440ms;
}

/* Laptop and tablet */
@media (max-width: 1240px) {
  :root {
    --header-height: 76px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-navigation {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    max-height: calc(100vh - var(--header-height));
    gap: 22px;
    padding: 22px 24px 30px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(242, 237, 227, 0.98);
    box-shadow: 0 18px 35px rgba(32, 40, 37, 0.13);
    opacity: 0;
    overflow-y: auto;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .primary-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-navigation ul {
    display: grid;
    gap: 0;
  }

  .primary-navigation ul li {
    border-bottom: 1px solid var(--border);
  }

  .primary-navigation ul a {
    display: block;
    padding: 13px 2px;
    font-size: 0.9rem;
  }

  .primary-navigation ul a::after {
    display: none;
  }

  .nav-cta {
    justify-self: stretch;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
    gap: 55px;
  }

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

  .price-card,
  .price-card:nth-child(4) {
    grid-column: auto;
  }

  .price-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 90px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 70px);
  }

  .hero-grid,
  .about-grid,
  .editorial-story-grid,
  .included-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 750px;
  }

  .hero-visual {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .editorial-story-photo {
    width: min(100%, 520px);
  }

  .editorial-story-copy {
    max-width: 680px;
  }

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

  .professional-strip-grid > div:nth-child(2) {
    border-right: 0;
  }

  .professional-strip-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .about-grid,
  .included-grid,
  .faq-grid,
  .contact-grid {
    gap: 50px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: auto;
  }

  .faq .section-heading {
    position: static;
  }

  .trial-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .trial-card .button {
    justify-self: start;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-height: 70px;
    --radius-lg: 8px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .reviews::before {
    top: 28px;
  }

  .reviews::after {
    bottom: 28px;
  }

  .reviews .section-heading {
    margin-bottom: 38px;
  }

  .reviews-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }

  .reviews-set {
    gap: 14px;
    padding-right: 14px;
  }

  .review-card {
    width: min(84vw, 360px);
    min-height: 390px;
    flex-basis: min(84vw, 360px);
    padding: 34px 27px 29px;
  }

  .review-text {
    font-size: 1.17rem;
  }

  .reviews-hint {
    max-width: 250px;
    line-height: 1.6;
  }

  .reviews-controls {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .intro-mark {
    width: 78px;
    height: 78px;
  }

  .intro-mark span {
    font-size: 2.9rem;
  }

  .editorial-watermark {
    left: -20%;
    font-size: 8rem;
  }

  .signature-marquee-track span {
    padding-block: 15px;
    font-size: 0.82rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark::before {
    inset: 3px;
  }

  .brand-mark > span {
    font-size: 1.45rem;
  }

  .brand-mark > small {
    margin-top: 5px;
    font-size: 0.3rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  h3 {
    font-size: 1.55rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 57px);
  }

  .hero-grid {
    gap: 55px;
  }

  .professional-strip-grid > div {
    min-height: 92px;
    padding: 19px 16px;
  }

  .professional-strip-grid strong {
    font-size: 1.05rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .benefit-list {
    display: grid;
    gap: 13px;
  }

  .photo-frame {
    padding: 10px;
    border-radius: 2px;
  }

  .teacher-photo {
    border-radius: 0;
  }

  .hero-visual figcaption {
    padding: 13px 15px;
    font-size: 0.67rem;
  }

  .visual-accent-one {
    right: 0;
    width: 80px;
    height: 80px;
    border-width: 1px;
  }

  .visual-accent-two {
    left: 0;
    width: 100px;
    height: 100px;
  }

  .teacher-card,
  .method-card,
  .contact-form {
    padding: 28px 23px;
  }

  .experience-portrait {
    height: 220px;
    margin: -28px -23px 26px;
  }

  .editorial-story-photo::before {
    display: none;
  }

  .teacher-card-top {
    align-items: flex-start;
  }

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

  .included-list {
    grid-template-columns: 1fr;
  }

  .included-list li:last-child {
    grid-column: auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card,
  .price-card:last-child {
    grid-column: auto;
    width: 100%;
    min-height: auto;
  }

  .price-card {
    padding: 29px 24px;
  }

  .popular-badge {
    right: 22px;
  }

  .trial {
    padding-top: 0;
  }

  .trial-card {
    padding: 44px 25px;
  }

  .trial-card .button {
    width: 100%;
  }

  .accordion button {
    min-height: 70px;
    padding: 19px 2px;
    font-size: 0.9rem;
  }

  .accordion-panel p {
    margin-right: 24px;
    margin-left: 2px;
    font-size: 0.88rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .payment-methods {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 13px;
    padding-inline: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

  .footer-bottom p:last-child {
    text-align: left;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 360px) {
  .brand-copy strong {
    font-size: 1.05rem;
  }

  .header-inner {
    gap: 10px;
  }

  .teacher-card-top {
    flex-direction: column;
  }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .page-intro {
    display: none;
  }

  .js .cursor-halo {
    display: none;
  }

  .editorial-watermark {
    transform: translateY(-50%);
  }

  .reviews-viewport {
    overflow-x: auto;
    padding-bottom: 14px;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: x mandatory;
  }

  .reviews-track {
    animation: none !important;
    transform: none;
  }

  .review-card {
    scroll-snap-align: center;
  }

  .reviews-toggle,
  .reviews-hint {
    display: none;
  }
}
