:root {
  --ink: #071f39;
  --ink-deep: #04172b;
  --ink-soft: #17354f;
  --paper: #fcf9f3;
  --paper-deep: #f3ede2;
  --white: #ffffff;
  --text: #172331;
  --muted: #4d5965;
  --brass: #bd8527;
  --brass-light: #d9b56f;
  --burgundy: #74151e;
  --burgundy-dark: #591017;
  --border: rgba(189, 133, 39, 0.56);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
  --shadow-image: 0 20px 50px rgba(21, 25, 29, 0.13);
  --header-height: 92px;
  --container: min(1408px, calc(100% - 96px));
}

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

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

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button {
  font: inherit;
}

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

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--brass);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(252, 249, 243, 0.97);
  border-bottom: 1px solid var(--brass);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1480px, calc(100% - 64px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(34px, 4vw, 74px);
}

.primary-nav a {
  position: relative;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  overflow: clip;
  background:
    radial-gradient(circle at 7% 32%, rgba(189, 133, 39, 0.035), transparent 24%),
    var(--paper);
}

.hero-grid {
  min-height: 720px;
  padding: 58px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: clamp(54px, 5vw, 90px);
}

.hero-copy {
  max-width: 700px;
  animation: hero-in 700ms ease both;
}

.hero h1 {
  margin-bottom: 34px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 5.75vw, 6.2rem);
  font-weight: 600;
  line-height: 0.91;
  letter-spacing: -0.045em;
}

.ornament-rule {
  position: relative;
  width: 100%;
  height: 17px;
  margin: 0 0 24px;
}

.ornament-rule::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--border);
}

.ornament-rule span,
.ornament-rule span::before,
.ornament-rule span::after {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--burgundy);
  transform: rotate(45deg);
}

.ornament-rule span {
  z-index: 1;
  top: 4px;
  left: 50%;
  box-shadow: 0 0 0 4px var(--paper);
}

.ornament-rule span::before,
.ornament-rule span::after {
  content: "";
  top: 0;
}

.ornament-rule span::before {
  left: -11px;
}

.ornament-rule span::after {
  left: 11px;
}

.hero-intro {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  min-height: 62px;
  padding: 15px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease,
    color 180ms ease;
}

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

.button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary:hover {
  background: var(--ink-soft);
}

.button-secondary {
  color: var(--burgundy);
  background: transparent;
  border-color: var(--brass);
}

.button-secondary:hover {
  color: var(--white);
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.button-accent {
  color: var(--white);
  background: var(--burgundy);
  border-color: var(--brass);
}

.button-accent:hover {
  background: var(--burgundy-dark);
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: var(--brass);
}

.button-outline-light:hover {
  color: var(--ink);
  background: var(--brass-light);
}

.location-line {
  margin: 32px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 17px;
}

.location-line svg {
  width: 24px;
  height: 24px;
  fill: var(--burgundy);
  stroke: var(--burgundy);
  stroke-width: 1.6;
}

.hero-media {
  aspect-ratio: 1.18;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-image);
  animation: hero-media-in 850ms 100ms ease both;
}

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

.hero-next {
  padding: 30px 48px 21px;
  text-align: center;
  background: var(--paper-deep);
}

.hero-next p {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
}

.ornament-rule-wide {
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: 0;
}

.section {
  padding: 72px 0 110px;
}

.section-heading h2,
.lessons-intro h2 {
  margin-bottom: 26px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 4.35vw, 4.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-heading p,
.lessons-intro p {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 18px;
}

.section-heading-wide {
  max-width: 980px;
}

.section-heading-medium {
  max-width: 690px;
}

.membership {
  color: var(--muted) !important;
}

.about {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.about > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.78fr) minmax(160px, 0.32fr);
  column-gap: clamp(42px, 4.5vw, 76px);
  row-gap: 64px;
}

.about .section-heading {
  grid-column: 1 / 3;
}

.about-layout {
  display: contents;
}

.experience-column {
  grid-column: 1;
}

.about-details {
  grid-column: 2;
}

.section-label {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 13px;
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--border);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 22px;
  left: 5px;
  width: 1px;
  background: var(--brass);
}

.timeline li {
  position: relative;
  min-height: 74px;
  padding: 2px 0 29px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -30px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline-date {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.timeline-role {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.5;
}

.timeline-role::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.gold-list,
.requirement-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gold-list li,
.requirement-list li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.55;
}

.gold-list li::before,
.requirement-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.mission-block h4 {
  margin: -4px 0 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
}

.compact-list li {
  margin-bottom: 13px;
}

.about-media {
  grid-column: 3;
  grid-row: 1 / 3;
  min-height: 100%;
  overflow: hidden;
  border-radius: 17px;
  box-shadow: var(--shadow-image);
}

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

.lessons {
  background: var(--paper);
}

.lessons-intro {
  padding: 64px 0 40px;
}

.lesson-band {
  color: var(--white);
  background: var(--ink);
}

.lesson-types {
  padding: 54px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lesson-types article {
  position: relative;
  padding: 0 clamp(34px, 4vw, 72px);
}

.lesson-types article + article {
  border-left: 1px solid var(--brass);
}

.lesson-types article + article::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--brass);
  border: 2px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.lesson-types h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
}

.short-rule {
  display: block;
  width: 54px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--brass);
}

.lesson-types p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
}

.lesson-media {
  display: block;
  width: 100%;
  height: 210px;
  overflow: hidden;
}

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

.rates {
  padding: 28px 0 42px;
  background: var(--paper);
}

.rates-heading {
  max-width: 420px;
  margin: 0 auto 8px;
  text-align: center;
}

.rates-heading h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.05;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--brass);
}

.rate-item {
  position: relative;
  padding: 0 30px 24px;
  text-align: center;
}

.rate-item + .rate-item {
  border-left: 1px solid var(--brass);
}

.rate-item + .rate-item::before {
  content: "";
  position: absolute;
  top: 54px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--brass);
  border: 2px solid var(--paper);
  transform: rotate(45deg);
}

.rate-item h4 {
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.rate-item p {
  margin-bottom: -8px;
  color: var(--burgundy);
  font-size: 18px;
}

.rate-item strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 4.8rem;
  font-weight: 600;
  line-height: 1;
}

.overtime-note {
  margin: 9px 0 20px;
  text-align: center;
  font-size: 16px;
}

.rate-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 42px;
}

.rate-notes p {
  position: relative;
  margin: 0;
  padding-left: 23px;
  font-size: 15px;
  line-height: 1.45;
}

.rate-notes p::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--burgundy);
  transform: rotate(45deg);
}

.rate-notes .button {
  min-width: 282px;
}

.policies {
  background: var(--paper);
}

.policy-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
  gap: clamp(68px, 8vw, 130px);
}

.policy-grid h3 {
  margin-bottom: 6px;
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.ornament-rule-small {
  max-width: 390px;
  margin-bottom: 16px;
}

.policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: policies;
}

.policy-list li {
  position: relative;
  min-height: 78px;
  padding: 18px 0 18px 54px;
  border-bottom: 1px solid var(--border);
  counter-increment: policies;
}

.policy-list li::before {
  content: counter(policies) ".";
  position: absolute;
  top: 9px;
  left: 0;
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
}

.requirements-column {
  position: relative;
  padding-left: 52px;
  border-left: 1px solid var(--brass);
}

.requirements-column::before {
  content: "";
  position: absolute;
  top: 42%;
  left: -6px;
  width: 10px;
  height: 10px;
  background: var(--brass);
  border: 2px solid var(--paper);
  transform: rotate(45deg);
}

.requirement-list li {
  margin-bottom: 0;
  padding: 22px 0 22px 34px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
}

.requirement-list li::before {
  top: 2.1em;
  left: 6px;
}

.contact {
  padding: 62px 0;
  color: var(--white);
  background: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(480px, 0.95fr) minmax(500px, 1.05fr);
  gap: clamp(62px, 5.5vw, 88px);
}

.contact-copy {
  position: relative;
  padding-right: 38px;
  border-right: 1px solid var(--brass);
}

.contact-copy::after {
  content: "";
  position: absolute;
  top: 48%;
  right: -6px;
  width: 10px;
  height: 10px;
  background: var(--brass);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.contact h2 {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 3.7vw, 3.65rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.ornament-rule-dark {
  margin-bottom: 12px;
}

.ornament-rule-dark span {
  box-shadow: 0 0 0 4px var(--ink);
}

.contact-copy > p {
  max-width: 480px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-actions {
  margin-bottom: 24px;
}

.contact-actions .button {
  min-width: 240px;
  flex: 1;
}

.contact address {
  margin-bottom: 20px;
  display: grid;
  gap: 10px;
  font-style: normal;
}

.contact address a,
.contact address p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
}

.contact address a:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact address svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact address p svg {
  fill: var(--brass);
}

.payment-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--brass);
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}

.closing {
  padding: 26px 0 16px;
  background: var(--paper);
  text-align: center;
}

.closing p {
  max-width: 880px;
  margin: 0 auto 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.site-footer {
  padding: 21px 24px;
  color: var(--muted);
  background: var(--paper-deep);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

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

@keyframes hero-media-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1180px) {
  :root {
    --container: min(1080px, calc(100% - 64px));
  }

  .hero-grid {
    min-height: 650px;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(4rem, 6.4vw, 5.2rem);
  }

  .about > .container {
    display: block;
  }

  .about-layout {
    margin-top: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(42px, 4.5vw, 76px);
  }

  .experience-column,
  .about-details,
  .about-media {
    grid-column: auto;
    grid-row: auto;
  }

  .about-media {
    grid-column: 1 / -1;
    min-height: 300px;
    max-height: 350px;
  }

  .about-media img {
    object-position: center 58%;
  }

  .lesson-types {
    padding-inline: 12px;
  }

  .lesson-types article {
    padding-inline: 30px;
  }

  .rate-notes {
    gap: 26px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --container: min(760px, calc(100% - 48px));
  }

  .header-inner {
    width: calc(100% - 40px);
    height: var(--header-height);
  }

  .brand {
    font-size: 2rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    z-index: 90;
    top: var(--header-height);
    right: 0;
    left: 0;
    min-height: calc(100dvh - var(--header-height));
    padding: 54px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
    color: var(--ink);
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

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

  .nav-open .site-header {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--paper);
  }

  .primary-nav a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
  }

  .hero-grid {
    min-height: 0;
    padding: 64px 0 52px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 10vw, 5.3rem);
  }

  .hero-media {
    aspect-ratio: 1.35;
  }

  .section {
    padding: 72px 0 88px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .about-media {
    grid-column: auto;
  }

  .lessons-intro {
    padding-top: 88px;
  }

  .lesson-types {
    padding: 18px 0;
    grid-template-columns: 1fr;
  }

  .lesson-types article {
    padding: 34px 16px;
  }

  .lesson-types article + article {
    border-top: 1px solid var(--brass);
    border-left: 0;
  }

  .lesson-types article + article::before {
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .rate-notes {
    grid-template-columns: 1fr 1fr;
  }

  .rate-notes .button {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .policy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .requirements-column,
  .contact-copy {
    padding: 42px 0 0;
    border-top: 1px solid var(--brass);
    border-left: 0;
    border-right: 0;
  }

  .requirements-column::before,
  .contact-copy::after {
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .contact-copy {
    order: 0;
    padding-top: 0;
    padding-bottom: 44px;
    border-top: 0;
    border-bottom: 1px solid var(--brass);
  }

  .contact-copy::after {
    top: auto;
    bottom: -6px;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100% - 36px);
  }

  body {
    font-size: 17px;
  }

  .header-inner {
    width: calc(100% - 28px);
  }

  .brand {
    max-width: calc(100% - 62px);
    overflow: hidden;
    font-size: 1.55rem;
    text-overflow: ellipsis;
  }

  .hero-grid {
    padding-top: 48px;
    gap: 42px;
  }

  .hero h1 {
    margin-bottom: 26px;
    font-size: clamp(3.15rem, 15vw, 4.2rem);
    line-height: 0.94;
  }

  .hero-intro {
    font-size: 1.12rem;
  }

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

  .button {
    width: 100%;
    min-height: 58px;
    padding-inline: 22px;
  }

  .location-line {
    margin-top: 26px;
  }

  .hero-media {
    aspect-ratio: 1.05;
    border-radius: 13px;
  }

  .hero-next {
    padding-inline: 18px;
  }

  .hero-next p {
    font-size: 2.1rem;
  }

  .section {
    padding: 74px 0;
  }

  .section-heading h2,
  .lessons-intro h2 {
    font-size: 3.25rem;
    line-height: 0.98;
  }

  .section-heading p,
  .lessons-intro p {
    font-size: 16px;
  }

  .about-layout {
    margin-top: 46px;
  }

  .timeline {
    padding-left: 26px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 28px;
  }

  .timeline li::before {
    left: -26px;
  }

  .timeline-role {
    padding-left: 0;
  }

  .timeline-role::before {
    display: none;
  }

  .timeline-date {
    font-size: 22px;
  }

  .about-media {
    min-height: 330px;
  }

  .lesson-media {
    height: 160px;
  }

  .rates {
    padding-top: 36px;
  }

  .rates-heading h3 {
    font-size: 2.65rem;
  }

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

  .rate-item {
    padding: 26px 0;
  }

  .rate-item + .rate-item {
    border-top: 1px solid var(--brass);
    border-left: 0;
  }

  .rate-item + .rate-item::before {
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .rate-notes {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .rate-notes .button {
    grid-column: auto;
  }

  .policy-grid {
    gap: 62px;
  }

  .policy-list li {
    padding-left: 46px;
    font-size: 16px;
  }

  .requirements-column {
    padding-left: 0;
  }

  .requirement-list li {
    font-size: 16px;
  }

  .contact {
    padding: 54px 0;
  }

  .contact-grid {
    gap: 42px;
  }

  .contact h2 {
    font-size: 3.25rem;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact address a,
  .contact address p {
    align-items: flex-start;
    font-size: 15px;
  }

  .closing {
    padding-inline: 8px;
  }

  .closing p {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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