/* ==========================================================================
   DOGA YILMAZ — PREMIUM PERSONAL ENGLISH TUTOR WEBSITE
   Editorial Swiss-Inspired Design System & Animation Stylesheet
   ========================================================================== */

:root {
  /* Color System — Strict Monochromatic Palette */
  --bg-primary: #F8F8F8;
  --bg-secondary: #FFFFFF;
  --bg-alt: #F1F1F1;
  --text-primary: #171717;
  --text-secondary: #777777;
  --text-muted: #999999;
  --border-color: #E3E3E3;
  --border-strong: #171717;
  --bg-dark: #181818;
  --text-on-dark: #F8F8F8;
  --text-on-dark-muted: #9E9E9E;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;

  /* Layout & Spacing */
  --container-max: 1380px;
  --container-pad: clamp(1.25rem, 4.2vw, 4rem);
  --section-py: clamp(5rem, 9.5vw, 8.75rem);
  --header-height: 88px;
  --header-height-scrolled: 74px;

  /* Motion Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   01. RESET & BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height-scrolled);
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.68;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

/* Keyboard Accessibility */
:focus-visible {
  outline: 1.5px solid var(--text-primary);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1.5rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: top 0.25s var(--ease-out-quart);
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   02. CONTAINERS, GRID & SHARED TYPOGRAPHY
   ========================================================================== */

.section-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.editorial-section {
  position: relative;
  padding-top: var(--section-py);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(280px, 37.5%) minmax(0, 62.5%);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
  padding-bottom: var(--section-py);
}

.editorial-left {
  position: relative;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}

.index-number {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.index-rule {
  display: inline-block;
  width: 44px;
  height: 1px;
  background-color: #C9C9C9;
  transform-origin: left center;
}

.index-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-heading {
  font-size: clamp(2.25rem, 4.1vw, 4.125rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.024em;
  word-spacing: 0.06em;
  color: var(--text-primary);
}

.section-intro {
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 58ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.prose-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.prose-stack p {
  font-size: clamp(1rem, 1.08vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 56ch;
}

.prose-stack p.lead-paragraph {
  font-size: clamp(1.0625rem, 1.22vw, 1.25rem);
  line-height: 1.62;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.prose-stack p.philosophy-statement {
  color: var(--text-primary);
  font-weight: 400;
  padding-top: 0.25rem;
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  transform-origin: left center;
}

/* ==========================================================================
   03. BUTTONS & INTERACTIVE LINKS
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 1.85rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid var(--text-primary);
  border-radius: 14px;
  transition:
    background-color 0.3s var(--ease-out-quart),
    color 0.3s var(--ease-out-quart),
    transform 0.3s var(--ease-out-quart),
    border-color 0.3s var(--ease-out-quart);
  will-change: transform;
}

.btn-primary .btn-arrow {
  display: inline-block;
  font-size: 0.95rem;
  transition: transform 0.28s var(--ease-out-quart);
}

.btn-primary:hover {
  background-color: #2B2B2B;
  border-color: #2B2B2B;
}

.btn-primary:hover .btn-arrow {
  transform: translate(3px, -3px);
}

.journey-cta {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.journey-cta-btn svg {
  display: block;
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  position: relative;
  transition: color 0.25s var(--ease-out-quart);
}

.btn-secondary::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.75;
  transition:
    transform 0.32s var(--ease-out-quart),
    opacity 0.32s var(--ease-out-quart);
}

.btn-secondary .btn-arrow-right {
  display: inline-block;
  transition: transform 0.28s var(--ease-out-quart);
}

.btn-secondary:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.btn-secondary:hover .btn-arrow-right {
  transform: translateX(4px);
}

.inline-editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--text-primary);
  transition:
    opacity 0.25s var(--ease-out-quart),
    border-color 0.25s var(--ease-out-quart);
}

.inline-editorial-link .link-arrow {
  display: inline-block;
  font-size: 0.875rem;
  transition: transform 0.28s var(--ease-out-quart);
}

.inline-editorial-link:hover .link-arrow {
  transform: translate(3px, -3px);
}

.section-cta-wrap {
  margin-top: clamp(2rem, 3.2vw, 2.75rem);
}

/* ==========================================================================
   04. NAVIGATION BAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 200;
  background-color: rgba(248, 248, 248, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  transition:
    height 0.35s var(--ease-out-quart),
    background-color 0.35s var(--ease-out-quart),
    border-color 0.35s var(--ease-out-quart),
    transform 0.7s var(--ease-out-expo),
    opacity 0.7s var(--ease-out-expo);
}

.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(248, 248, 248, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-color);
}

.header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand-wordmark {
  justify-self: start;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  transition: opacity 0.25s ease;
}

.brand-wordmark:hover {
  opacity: 0.72;
}

.desktop-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.85rem, 3vw, 2.85rem);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.45rem;
  font-size: 0.96875rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: #525252;
  transition: color 0.25s var(--ease-out-quart);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.12rem;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.32s var(--ease-out-quart);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-contact-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.425rem;
  font-size: 0.96875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  padding-bottom: 0.3rem;
  border-bottom: 1.5px solid var(--text-primary);
  transition: opacity 0.25s var(--ease-out-quart);
  outline: none;
}

/* Rolling text: "Contact Now" and the phone number take turns rolling up
   through the same spot (both share one grid cell, so width = widest item) */
.header-cta-text {
  display: grid;
  overflow: hidden;
  line-height: 1.45;
}

.cta-roll-item {
  grid-area: 1 / 1;
  text-align: left;
  white-space: nowrap;
  will-change: transform;
}

.cta-roll-a {
  animation: ctaRollA 6s var(--ease-in-out-cubic) infinite;
}

.cta-roll-b {
  animation: ctaRollB 6s var(--ease-in-out-cubic) infinite;
}

@keyframes ctaRollA {
  0%, 40%   { transform: translateY(0); }
  50%       { transform: translateY(-110%); }
  50.01%    { transform: translateY(110%); }
  90%       { transform: translateY(110%); }
  100%      { transform: translateY(0); }
}

@keyframes ctaRollB {
  0%, 40%   { transform: translateY(110%); }
  50%, 90%  { transform: translateY(0); }
  100%      { transform: translateY(-110%); }
}

/* Reduced motion: no rolling, just show the number */
@media (prefers-reduced-motion: reduce) {
  .cta-roll-a {
    display: none;
  }

  .cta-roll-b {
    animation: none;
    transform: none;
  }
}

.header-cta .arrow-icon {
  display: inline-block;
  font-size: 0.925rem;
  transition: transform 0.28s var(--ease-out-quart);
}

.header-cta:hover .arrow-icon,
.header-cta[aria-expanded="true"] .arrow-icon {
  transform: translate(2.5px, -2.5px);
}

.header-contact-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 170px;
  padding: 0.4rem;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.22s var(--ease-out-quart),
    transform 0.24s var(--ease-out-quart),
    visibility 0.22s var(--ease-out-quart);
  z-index: 250;
}

.header-contact-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.header-contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition:
    background-color 0.2s var(--ease-out-quart),
    color 0.2s var(--ease-out-quart);
}

.header-contact-option:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.contact-option-arrow {
  font-size: 0.82rem;
  opacity: 0.72;
  transition: transform 0.2s var(--ease-out-quart), opacity 0.2s var(--ease-out-quart);
}

.header-contact-option:hover .contact-option-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: -0.5rem;
  position: relative;
  z-index: 220;
}

.hamburger-box {
  width: 24px;
  height: 10px;
  position: relative;
  display: block;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.25px;
  background-color: var(--text-primary);
  transition:
    transform 0.35s var(--ease-out-expo),
    top 0.35s var(--ease-out-expo);
}

.hamburger-line.line-1 {
  top: 0;
}

.hamburger-line.line-2 {
  top: 8px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line.line-1 {
  top: 4px;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line.line-2 {
  top: 4px;
  transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--bg-primary);
  z-index: 210;
  padding: calc(var(--header-height) + 1.5rem) var(--container-pad) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease-out-quart),
    visibility 0.4s var(--ease-out-quart);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-inner {
  max-width: var(--container-max);
  width: 100%;
  height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.meta-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.meta-divider {
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  margin-block: auto;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s var(--ease-out-quart),
    transform 0.45s var(--ease-out-quart);
}

.mobile-menu.is-open .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-nav-item:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(4) { transition-delay: 0.21s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(5) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(6) { transition-delay: 0.31s; }

.mobile-nav-link {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.15rem;
  transition: transform 0.28s var(--ease-out-quart);
}

.mobile-nav-link:hover {
  transform: translateX(6px);
}

.mobile-nav-num {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.mobile-nav-title {
  font-size: clamp(1.625rem, 5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.028em;
  color: var(--text-primary);
}

.mobile-menu-footer {
  padding-top: 1.5rem;
}

.mobile-cta-btn {
  width: 100%;
}

/* ==========================================================================
   05. HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding-top: var(--header-height);
  background-color: var(--bg-primary);
  overflow: hidden;
  min-height: clamp(680px, 100dvh, 920px);
  display: flex;
  align-items: stretch;
}

.hero-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
  display: flex;
  align-items: stretch;
}

/* Hero Main Grid — Generous 58% Left for Oversized Heading / 42% Right */
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  gap: clamp(1.5rem, 2.5vw, 3rem);
  align-items: stretch;
}

.hero-content {
  align-self: center;
  padding-top: clamp(1.5rem, 3vh, 2.75rem);
  padding-bottom: clamp(1.75rem, 3.4vh, 3rem);
  position: relative;
  z-index: 2;
}

/* Clean, Well-Spaced Trust Indicators */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: clamp(2.75rem, 4.5vw, 4rem);
  margin-bottom: clamp(2.5rem, 4.8vh, 3.5rem);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.trust-value {
  font-size: clamp(1.65rem, 2.2vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.trust-value-text {
  font-size: clamp(1.35rem, 1.8vw, 1.6875rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  word-spacing: 0.12em;
  line-height: 1.1;
}

.trust-label {
  font-size: clamp(0.8125rem, 0.92vw, 0.9rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.trust-divider {
  width: 1px;
  height: 44px;
  background-color: rgba(23, 23, 23, 0.14);
}

/* Large, Dominant 3-Line Editorial Hero Heading */
.hero-heading {
  font-size: clamp(3.25rem, min(5.35vw, 9.1vh), 5.55rem);
  font-weight: 400;
  line-height: 1.11;
  letter-spacing: -0.028em;
  word-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: clamp(1.85rem, 3.6vh, 2.65rem);
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.05em;
}

.line-inner {
  display: block;
  will-change: transform;
}

.hero-description {
  font-size: clamp(0.875rem, 0.94vw, 0.96875rem);
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: clamp(2rem, 4vh, 2.85rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2rem, 3.4vw, 3rem);
}

.hero-actions .btn-primary {
  padding: 1.1rem 2rem;
  letter-spacing: 0.005em;
  word-spacing: 0.06em;
}

/* Lower-Left Scroll Indicator */
.hero-scroll-wrap {
  margin-top: clamp(2.75rem, 5.2vh, 4rem);
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.scroll-indicator:hover {
  color: var(--text-primary);
}

.scroll-indicator-arrow {
  display: inline-block;
  animation: scrollIndicatorLoop 2.4s var(--ease-in-out-cubic) infinite;
}

@keyframes scrollIndicatorLoop {
  0%, 100% {
    transform: translateY(-2px);
    opacity: 0.55;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* Right Hero Portrait Column — Large, Confident, Fills Right Side */
.hero-Visual {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-top: clamp(0.5rem, 1.2vh, 1.25rem);
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  line-height: 0;
}

.hero-portrait-img {
  width: auto;
  height: clamp(500px, calc(100dvh - var(--header-height) - 1rem), 790px);
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
  transform-origin: bottom right;
  will-change: transform, opacity;
}

.hero-bottom-rule {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  transform-origin: left center;
}

/* ==========================================================================
   06. SECTION 01 — ABOUT DOGA YILMAZ
   ========================================================================== */

.about-right-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(2rem, 4.5vw, 4.25rem);
  align-items: start;
}

.about-highlights {
  border-left: 1px solid var(--border-color);
  padding-left: clamp(1.5rem, 2.8vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.highlight-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.highlight-number {
  font-size: clamp(2.125rem, 3.2vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.highlight-caption {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.highlight-divider {
  width: 100%;
  max-width: 72px;
  height: 1px;
  background-color: var(--border-color);
  transform-origin: left center;
}

/* ==========================================================================
   07. SECTION 02 — ENGLISH PROGRAMS
   ========================================================================== */

.program-list {
  border-top: 1px solid var(--border-color);
}

.program-row {
  border-bottom: 1px solid var(--border-color);
  transition:
    background-color 0.3s var(--ease-out-quart),
    border-color 0.3s var(--ease-out-quart);
}

.program-row:hover {
  background-color: rgba(23, 23, 23, 0.022);
  border-bottom-color: #BDBDBD;
}

.program-heading {
  font-weight: 400;
}

.program-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(1.25rem, 2vw, 1.65rem) 0.5rem;
  text-align: left;
  outline: none;
}

.program-trigger:focus,
.program-trigger:focus-visible {
  outline: none;
}

.program-num {
  font-size: 0.78125rem;
  font-weight: 400;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s var(--ease-out-quart);
}

.program-title {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  transition: transform 0.32s var(--ease-out-quart);
}

.program-arrow {
  font-size: 1.125rem;
  color: var(--text-primary);
  transition: transform 0.32s var(--ease-out-quart);
}

.program-row:hover .program-title {
  transform: translateX(8px);
}

.program-row:hover .program-arrow {
  transform: translateX(5px);
}

.program-trigger[aria-expanded="true"] .program-arrow {
  transform: rotate(90deg);
}

.program-row:hover .program-trigger[aria-expanded="true"] .program-arrow {
  transform: rotate(90deg) translateX(2px);
}

.program-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.38s var(--ease-out-quart),
    opacity 0.32s var(--ease-out-quart);
}

.program-panel[hidden] {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
}

.program-panel.is-open,
.program-row:hover .program-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.program-panel-inner {
  overflow: hidden;
}

.program-desc {
  padding: 0 2.5rem 1.5rem calc(44px + 0.5rem);
  font-size: 0.96875rem;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* ==========================================================================
   08. SECTION 03 — PERSONALIZED LEARNING APPROACH
   ========================================================================== */

.approach-intro {
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

.process-list {
  display: flex;
  flex-direction: column;
}

.process-row {
  position: relative;
}

.process-top-line,
.process-bottom-line {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  transform-origin: left center;
}

.process-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.2vw, 2.5rem);
  align-items: baseline;
}

.process-step-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.process-step-title {
  font-size: clamp(1.25rem, 1.75vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.process-step-desc {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 52ch;
}

/* ==========================================================================
   09. SECTION 04 — FREE WEEKLY SPEAKING CLUB
   ========================================================================== */

.section-speaking-club {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-block: clamp(5.5rem, 10vw, 9.25rem);
}

.speaking-club-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.25rem);
}

.speaking-club-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #DFDFDF;
}

.speaking-club-header .section-index {
  margin-bottom: 0;
}

.club-top-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.speaking-club-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: end;
}

.club-main-heading {
  font-size: clamp(2.75rem, 5.4vw, 5.25rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.036em;
  color: var(--text-primary);
  margin-bottom: clamp(2rem, 3.8vw, 3rem);
}

.club-statement-row {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #D8D8D8;
}

.club-free-display {
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

.club-statement-divider {
  width: 1px;
  height: 28px;
  background-color: #CCCCCC;
}

.club-supporting-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.speaking-club-right {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.speaking-club-right .lead-paragraph {
  font-size: clamp(1.125rem, 1.35vw, 1.3125rem);
  line-height: 1.58;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.club-body-copy {
  font-size: clamp(1rem, 1.08vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.club-action-wrap {
  padding-top: 0.85rem;
}

/* ==========================================================================
   10. SECTION 05 — MY TEACHING JOURNEY
   ========================================================================== */

.journey-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

.milestone-item {
  position: relative;
}

.milestone-rule {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  transform-origin: left center;
}

.milestone-grid {
  display: grid;
  grid-template-columns: minmax(190px, 38%) minmax(0, 62%);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.65rem, 2.8vw, 2.35rem);
  align-items: baseline;
}

.milestone-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.milestone-index {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.milestone-primary-label {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.milestone-title {
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.milestone-desc {
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   11. SECTION 06 — FREQUENTLY ASKED QUESTIONS
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-bottom-color: #C2C2C2;
}

.faq-question-heading {
  font-weight: 400;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.35rem, 2.2vw, 1.75rem);
  text-align: left;
  outline: none;
}

.faq-trigger:focus,
.faq-trigger:focus-visible {
  outline: none;
}

.faq-question-text {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  transition: transform 0.28s var(--ease-out-quart);
}

.faq-trigger:hover .faq-question-text {
  transform: translateX(4px);
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.faq-icon-h,
.faq-icon-v {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--text-primary);
  transform: translate(-50%, -50%);
  transition: transform 0.32s var(--ease-out-quart), opacity 0.32s var(--ease-out-quart);
}

.faq-icon-h {
  width: 14px;
  height: 1.25px;
}

.faq-icon-v {
  width: 1.25px;
  height: 14px;
}

.faq-trigger[aria-expanded="true"] .faq-icon-v {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.38s var(--ease-out-quart),
    opacity 0.32s var(--ease-out-quart);
}

.faq-panel[hidden] {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
}

.faq-panel.is-open,
.faq-item:hover .faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-answer {
  padding-bottom: 1.65rem;
  padding-right: 2.5rem;
  font-size: 0.96875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 58ch;
}

/* ==========================================================================
   12. SECTION 07 — FINAL CALL TO ACTION & DIRECTORY
   ========================================================================== */

.cta-main-heading {
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
}

.cta-lead-copy {
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.cta-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin-bottom: clamp(3rem, 5vw, 4.25rem);
}

/* On-Page Configurable Booking / Contact Directory */
.booking-directory {
  padding-top: 0.5rem;
  transition: background-color 0.4s ease;
}

.directory-top-rule {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 1.75rem;
  transform-origin: left center;
}

.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.directory-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.directory-selected-topic {
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.directory-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.topic-chip {
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: transparent;
  transition:
    border-color 0.25s var(--ease-out-quart),
    color 0.25s var(--ease-out-quart),
    background-color 0.25s var(--ease-out-quart);
}

.topic-chip:hover {
  border-color: #AEAEAE;
  color: var(--text-primary);
}

.topic-chip.is-active {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.directory-channels {
  border-top: 1px solid var(--border-color);
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.25s ease;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.channel-name {
  font-size: 0.96875rem;
  font-weight: 400;
  color: var(--text-primary);
}

.channel-detail {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.channel-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.channel-action:hover {
  opacity: 0.72;
}

.directory-status-note {
  margin-top: 1.25rem;
  font-size: 0.84375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.directory-status-note.is-highlighted {
  color: var(--text-primary);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2.5rem;
  padding-bottom: clamp(3rem, 5.5vw, 4.5rem);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-wordmark {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
}

.footer-contact-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 8px;
}

.footer-contact-icon-btn {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background-color: transparent;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background-color 0.28s var(--ease-out-quart),
    border-color 0.28s var(--ease-out-quart),
    color 0.28s var(--ease-out-quart),
    transform 0.28s var(--ease-out-quart);
}

.footer-contact-icon-btn svg {
  display: block;
  flex-shrink: 0;
}

.footer-contact-icon-btn:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #0E0E0E;
  transform: translateY(-3px);
}

.footer-contact-icon-btn:focus-visible {
  outline: 1.5px solid #FFFFFF;
  outline-offset: 3px;
}

.footer-nav {
  align-self: center;
}

.footer-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.footer-nav-link {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  transition: color 0.25s ease;
}

.footer-nav-link:hover {
  color: var(--text-on-dark);
}

.footer-cta-col {
  justify-self: end;
  align-self: center;
}

.footer-book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-on-dark);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(248, 248, 248, 0.55);
  transition: border-color 0.25s ease;
}

.footer-book-link .arrow-icon {
  display: inline-block;
  transition: transform 0.28s var(--ease-out-quart);
}

.footer-book-link:hover {
  border-bottom-color: var(--text-on-dark);
}

.footer-book-link:hover .arrow-icon {
  transform: translate(2.5px, -2.5px);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding-top: 2rem;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  transition: color 0.25s ease;
}

.back-to-top .up-arrow {
  display: inline-block;
  transition: transform 0.28s var(--ease-out-quart);
}

.back-to-top:hover {
  color: var(--text-on-dark);
}

.back-to-top:hover .up-arrow {
  transform: translateY(-3px);
}

/* Interactive Physics Alphabet Playground */
.footer-alphabet-stage {
  position: relative;
  width: 100%;
  height: clamp(240px, 19.5vw, 285px);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.footer-alphabet-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: default;
}

.footer-alphabet-canvas.is-hovering-letter {
  cursor: grab;
}

.footer-alphabet-canvas.is-dragging-letter {
  cursor: grabbing;
}

/* ==========================================================================
   13B. FLOATING BOTTOM-RIGHT Q&A CONCIERGE WIDGET
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-assistant {
  position: fixed;
  right: clamp(1.25rem, 2.4vw, 2.25rem);
  bottom: clamp(1.25rem, 2.4vw, 2.25rem);
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* Flat Glass Gradient Circle Button */
.floating-assistant-trigger {
  pointer-events: auto;
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(205, 210, 225, 0.5) 45%, rgba(120, 128, 150, 0.38) 100%);
  color: #171717;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.28s var(--ease-out-quart),
    box-shadow 0.28s var(--ease-out-quart),
    border-color 0.28s var(--ease-out-quart);
}

/* Ask-a-question nudge bubble, left of the floating button */
.assistant-nudge {
  position: absolute;
  right: 72px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.7rem 0.65rem 1rem;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 999px;
  background: #FFFFFF;
  color: #171717;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14px) scale(0.96);
  transform-origin: right center;
  transition:
    opacity 0.4s var(--ease-out-quart),
    transform 0.4s var(--ease-out-quart),
    visibility 0s linear 0.4s;
}

.assistant-nudge.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition-delay: 0s;
}

.assistant-nudge-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 1rem;
  color: rgba(23, 23, 23, 0.55);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.assistant-nudge-dismiss:hover {
  background-color: rgba(23, 23, 23, 0.08);
  color: #171717;
}

.assistant-nudge:focus-visible {
  outline: 1.5px solid #171717;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .assistant-nudge {
    right: 68px;
    font-size: 0.82rem;
    padding: 0.55rem 0.6rem 0.55rem 0.85rem;
  }
}

/* Moving Mist Layers inside the glass button */
.floating-assistant-trigger::before,
.floating-assistant-trigger::after {
  content: "";
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(7px);
  will-change: transform;
}

.floating-assistant-trigger::before {
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 72% 68%, rgba(150, 165, 255, 0.55) 0%, rgba(150, 165, 255, 0) 40%);
  animation: mistFlowA 2.4s ease-in-out infinite alternate;
}

.floating-assistant-trigger::after {
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 215, 245, 0.6) 0%, rgba(255, 215, 245, 0) 36%),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 34%);
  animation: mistFlowB 3.1s ease-in-out infinite alternate;
}

@keyframes mistFlowA {
  0% { transform: translate(-10%, -6%) rotate(0deg) scale(1); }
  100% { transform: translate(10%, 8%) rotate(120deg) scale(1.12); }
}

@keyframes mistFlowB {
  0% { transform: translate(9%, 7%) rotate(0deg) scale(1.1); }
  100% { transform: translate(-10%, -8%) rotate(-140deg) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-assistant-trigger::before,
  .floating-assistant-trigger::after {
    animation: none;
  }
}

.floating-assistant-trigger:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(215, 220, 235, 0.62) 45%, rgba(130, 138, 160, 0.46) 100%);
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.16);
}

.trigger-letter-d {
  position: relative;
  z-index: 3;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #171717;
  transition:
    opacity 0.24s var(--ease-out-quart),
    transform 0.24s var(--ease-out-quart);
}

.trigger-close-icon {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: #171717;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  opacity: 0;
  transform: rotate(-45deg) scale(0.75);
  transition:
    opacity 0.24s var(--ease-out-quart),
    transform 0.24s var(--ease-out-quart);
  pointer-events: none;
}

.floating-assistant-trigger[aria-expanded="true"] .trigger-letter-d {
  opacity: 0;
  transform: scale(0.75);
}

.floating-assistant-trigger[aria-expanded="true"] .trigger-close-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Conversational Chat Window */
.floating-assistant-panel {
  pointer-events: none;
  width: min(375px, calc(100vw - 2rem));
  margin-bottom: 0.85rem;
  background-color: rgba(250, 250, 250, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition:
    opacity 0.3s var(--ease-out-quart),
    transform 0.32s var(--ease-out-expo),
    visibility 0.3s var(--ease-out-quart);
}

.floating-assistant-panel.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.assistant-header {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.assistant-header-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.assistant-header-monogram {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}

.assistant-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.assistant-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}

.assistant-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.71875rem;
  color: var(--text-on-dark-muted);
}

.chat-online-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E5E5E5;
  display: inline-block;
}

.assistant-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.assistant-close-btn:hover {
  color: var(--text-on-dark);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Chat Thread Area */
.assistant-body {
  padding: 1rem 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 210px;
  max-height: min(275px, 42vh);
  overflow-y: auto;
  padding-right: 0.2rem;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  animation: chatBubbleEnter 0.26s var(--ease-out-quart) both;
}

@keyframes chatBubbleEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-row-bot {
  align-self: flex-start;
  max-width: 90%;
}

.chat-row-user {
  align-self: flex-end;
  justify-content: flex-end;
  max-width: 85%;
}

.chat-avatar {
  display: none;
}

.assistant-msg {
  font-size: 0.84375rem;
  line-height: 1.52;
  padding: 0.68rem 0.9rem;
  position: relative;
}

.assistant-msg-bot {
  background-color: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.assistant-msg-user {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 14px 14px 4px 14px;
}

.chat-time {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.78;
}

.assistant-msg-user .chat-time {
  color: rgba(248, 248, 248, 0.68);
  text-align: right;
}

.assistant-msg-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  padding: 0.36rem 0.68rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bg-primary);
  background-color: var(--text-primary);
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.assistant-msg-action:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

/* Typing Dots Indicator */
.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.15rem 0.1rem;
}

.chat-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  animation: chatTypingPulse 1.2s infinite ease-in-out;
}

.chat-typing-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.chat-typing-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes chatTypingPulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Suggested Quick Chat Pills Bar */
.assistant-options-section {
  padding: 0.45rem 0.9rem 0.6rem;
  background-color: transparent;
  transition:
    opacity 0.32s var(--ease-out-quart),
    transform 0.32s var(--ease-out-quart);
}

.assistant-options-section.is-pending {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.assistant-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.assistant-option-chip {
  padding: 0.36rem 0.68rem;
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--text-primary);
  background-color: #FFFFFF;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.28s var(--ease-out-quart),
    transform 0.28s var(--ease-out-quart);
}

.assistant-options-section.is-pending .assistant-option-chip {
  opacity: 0;
  transform: translateY(6px);
}

.assistant-options-section:not(.is-pending) .assistant-option-chip:nth-child(1) { transition-delay: 0.02s; }
.assistant-options-section:not(.is-pending) .assistant-option-chip:nth-child(2) { transition-delay: 0.06s; }
.assistant-options-section:not(.is-pending) .assistant-option-chip:nth-child(3) { transition-delay: 0.10s; }
.assistant-options-section:not(.is-pending) .assistant-option-chip:nth-child(4) { transition-delay: 0.14s; }
.assistant-options-section:not(.is-pending) .assistant-option-chip:nth-child(5) { transition-delay: 0.18s; }
.assistant-options-section:not(.is-pending) .assistant-option-chip:nth-child(6) { transition-delay: 0.22s; }

.assistant-option-chip:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Chat Composer Input Bar */
.assistant-custom-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background-color: #FFFFFF;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.assistant-custom-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8125rem;
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.assistant-custom-input::placeholder {
  color: var(--text-secondary);
}

.assistant-custom-input:focus {
  border-color: var(--text-primary);
  background-color: #FFFFFF;
}

.assistant-send-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.assistant-send-btn:hover {
  background-color: #2E2E2E;
  transform: scale(1.04);
}

/* ==========================================================================
   14. GLOBAL ANIMATION SYSTEM (Progressive Enhancement)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Initial Page Load Choreography */
  html.js .site-header {
    opacity: 0;
    transform: translateY(-12px);
  }

  html.js.is-loaded .site-header {
    opacity: 1;
    transform: translateY(0);
  }

  html.js .hero-stagger-1,
  html.js .hero-stagger-2 {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.65s var(--ease-out-quart),
      transform 0.65s var(--ease-out-quart);
  }

  html.js.is-loaded .hero-stagger-1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
  }

  html.js.is-loaded .hero-stagger-2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
  }

  html.js .hero-heading .line-inner {
    transform: translateY(108%);
    transition: transform 0.78s var(--ease-out-expo);
  }

  html.js.is-loaded .hero-heading .hero-line-1 {
    transform: translateY(0);
    transition-delay: 0.08s;
  }

  html.js.is-loaded .hero-heading .hero-line-2 {
    transform: translateY(0);
    transition-delay: 0.18s;
  }

  html.js.is-loaded .hero-heading .hero-line-3 {
    transform: translateY(0);
    transition-delay: 0.24s;
  }

  html.js.is-loaded .hero-heading .hero-line-4 {
    transform: translateY(0);
    transition-delay: 0.32s;
  }

  html.js .hero-fade-desc {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.6s var(--ease-out-quart) 0.32s,
      transform 0.6s var(--ease-out-quart) 0.32s;
  }

  html.js.is-loaded .hero-fade-desc {
    opacity: 1;
    transform: translateY(0);
  }

  html.js .hero-fade-cta {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.6s var(--ease-out-quart) 0.42s,
      transform 0.6s var(--ease-out-quart) 0.42s;
  }

  html.js.is-loaded .hero-fade-cta {
    opacity: 1;
    transform: translateY(0);
  }

  html.js .hero-portrait-img {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.82s var(--ease-out-expo) 0.14s,
      transform 0.82s var(--ease-out-expo) 0.14s;
  }

  html.js.is-loaded .hero-portrait-img {
    opacity: 1;
    transform: translateY(0);
  }

  /* Scroll-Triggered Reveals */
  html.js [data-reveal="fade"] {
    opacity: 0;
    transition: opacity 0.65s var(--ease-out-quart);
  }

  html.js [data-reveal="fade"].is-visible {
    opacity: 1;
  }

  html.js [data-reveal="up"],
  html.js [data-reveal-item] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.65s var(--ease-out-quart),
      transform 0.65s var(--ease-out-quart);
  }

  html.js [data-reveal="up"].is-visible,
  html.js [data-reveal-item].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  html.js [data-reveal="heading"] .line-inner {
    transform: translateY(106%);
    transition: transform 0.78s var(--ease-out-expo);
  }

  html.js [data-reveal="heading"].is-visible .line-mask:nth-child(1) .line-inner {
    transform: translateY(0);
    transition-delay: 0.04s;
  }

  html.js [data-reveal="heading"].is-visible .line-mask:nth-child(2) .line-inner {
    transform: translateY(0);
    transition-delay: 0.14s;
  }

  html.js [data-reveal="heading"].is-visible .line-mask:nth-child(3) .line-inner {
    transform: translateY(0);
    transition-delay: 0.24s;
  }

  html.js [data-reveal-line] {
    transform: scaleX(0);
    transition: transform 0.85s var(--ease-out-expo);
  }

  html.js [data-reveal-line].is-visible {
    transform: scaleX(1);
  }
}

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

/* ==========================================================================
   15. RESPONSIVE DESIGN (1920px -> 360px)
   ========================================================================== */

@media (max-width: 1180px) {
  .about-right-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .about-highlights {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 2.25rem;
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }

  .highlight-divider {
    width: 1px;
    height: 64px;
    max-width: none;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-section {
    min-height: auto;
    display: block;
  }

  .hero-container {
    display: block;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-content {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
  }

  .hero-Visual {
    justify-content: center;
    padding-top: 0;
  }

  .hero-portrait-frame {
    max-width: 420px;
    height: auto;
    margin-inline: auto;
    justify-content: center;
  }

  .hero-portrait-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 440px;
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .speaking-club-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .footer-cta-col {
    justify-self: start;
  }

  .footer-alphabet-stage {
    height: 225px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
    --header-height-scrolled: 60px;
  }

  .hero-trust {
    gap: 0.95rem;
    flex-wrap: nowrap;
  }

  .trust-value {
    font-size: 1.25rem;
  }

  .trust-value-text {
    font-size: 1.0625rem;
  }

  .trust-label {
    font-size: 0.71875rem;
  }

  .trust-divider {
    height: 32px;
    flex-shrink: 0;
  }

  .hero-heading {
    font-size: clamp(2.05rem, 8.6vw, 2.95rem);
    line-height: 1.08;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero-actions .btn-primary {
    width: 100%;
  }

  .hero-actions .btn-secondary {
    align-self: flex-start;
  }

  .hero-scroll-wrap {
    margin-top: 1.75rem;
  }

  .hero-editorial-seal {
    width: 78px;
    height: 78px;
    top: 0.5rem;
    right: 0.25rem;
  }

  .hero-portrait-frame {
    max-width: 340px;
  }

  .about-highlights {
    flex-direction: column;
    gap: 1.5rem;
  }

  .highlight-divider {
    width: 64px;
    height: 1px;
  }

  .program-trigger {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding-inline: 0.15rem;
  }

  .program-desc {
    padding-left: calc(32px + 0.15rem);
    padding-right: 0.5rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .milestone-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .cta-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cta-actions-row .btn-primary {
    width: 100%;
  }

  .cta-actions-row .btn-secondary {
    align-self: flex-start;
  }

  .channel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .footer-alphabet-stage {
    height: 180px;
  }
}

@media (max-width: 380px) {
  .hero-heading {
    font-size: 2.25rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .club-main-heading {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   16. MOBILE REFINEMENTS
   Scoped to tablet/phone breakpoints only — desktop (>980px) is unaffected.
   ========================================================================== */

/* Menu overlay: keep every link + CTA reachable and keep the chat widget
   from sitting on top of the full-screen menu */
@media (max-width: 980px) {
  .mobile-menu {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-inner {
    height: auto;
    min-height: 100%;
    gap: 1.25rem;
  }

  .floating-assistant {
    transition: opacity 0.25s var(--ease-out-quart);
  }

  body.menu-open .floating-assistant {
    opacity: 0;
    pointer-events: none;
  }

  body.menu-open .floating-assistant * {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Short phones (e.g. 360x640, iPhone SE): tighten the menu so all six links
   and the Book CTA fit without scrolling */
@media (max-width: 980px) and (max-height: 700px) {
  .mobile-menu {
    padding-top: calc(var(--header-height) + 0.75rem);
    padding-bottom: 1.5rem;
  }

  .mobile-menu-meta {
    padding-bottom: 0.85rem;
  }

  .mobile-nav-link {
    padding-block: 0.7rem;
  }

  .mobile-nav-title {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
    line-height: 1.2;
  }

  .mobile-menu-footer {
    padding-top: 1rem;
  }
}

/* Touch targets: enlarge tap areas to ~44px without changing the visual layout */
@media (max-width: 640px) {
  .scroll-indicator,
  .inline-editorial-link,
  .channel-action,
  .footer-book-link,
  .back-to-top {
    position: relative;
  }

  .scroll-indicator::before,
  .inline-editorial-link::before,
  .channel-action::before,
  .footer-book-link::before,
  .back-to-top::before {
    content: '';
    position: absolute;
    inset: -11px -8px;
  }

  .footer-nav-list {
    row-gap: 0;
  }

  .footer-nav-link {
    display: inline-block;
    padding-block: 0.65rem;
  }

  .assistant-option-chip {
    padding: 0.5rem 0.8rem;
  }

  .assistant-close-btn {
    width: 40px;
    height: 40px;
    margin-right: -0.5rem;
  }

  .assistant-send-btn {
    width: 40px;
    height: 40px;
  }

  .assistant-nudge-dismiss {
    width: 32px;
    height: 32px;
    margin: -5px -5px -5px 0;
  }

  .milestone-index {
    font-size: 0.75rem;
  }

  .chat-time {
    font-size: 0.6875rem;
  }
}

/* Chat panel: never taller than the visible viewport on phones */
@media (max-width: 640px) {
  .floating-assistant-panel {
    max-height: calc(100dvh - 6.75rem);
  }

  .assistant-header,
  .assistant-options-section,
  .assistant-custom-form {
    flex-shrink: 0;
  }

  .assistant-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .assistant-messages {
    flex: 0 1 210px;
    min-height: 0;
  }
}

/* Short phones: suggested chips become a single swipeable row to save height */
@media (max-width: 640px) and (max-height: 700px) {
  .assistant-options-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .assistant-options-list::-webkit-scrollbar {
    display: none;
  }

  .assistant-option-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Very narrow phones: keep the menu meta line on a single row */
@media (max-width: 380px) {
  .meta-label {
    white-space: nowrap;
    letter-spacing: 0.1em;
  }
}
