:root {
  --ink: #211b18;
  --muted: #6b5f58;
  --paper: #fffaf4;
  --cream: #f6eadb;
  --cocoa: #3a241d;
  --berry: #b74355;
  --sage: #60745d;
  --steel: #60717a;
  --line: rgba(58, 36, 29, 0.15);
  --shadow: 0 20px 60px rgba(44, 30, 24, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 10px 40px rgba(32, 24, 20, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--cocoa);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(183, 67, 85, 0.1);
}

.site-nav .nav-login {
  color: #fff;
  background: var(--cocoa);
}

.site-nav .nav-login:hover,
.site-nav .nav-login.active {
  color: #fff;
  background: #4c2d25;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 80svh;
  overflow: hidden;
  padding: 112px 0 50px;
  background: var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--berry) 0 42px, var(--sage) 42px 84px, var(--steel) 84px 126px, var(--cocoa) 126px 168px);
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 250, 244, 0.92) 38%, rgba(255, 250, 244, 0.52) 65%, rgba(255, 250, 244, 0.18) 100%),
    linear-gradient(0deg, rgba(33, 27, 24, 0.28), rgba(33, 27, 24, 0));
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-inner,
.section,
.mentor-band,
.recorded-classes,
.enquiry,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-left: max(16px, calc((100vw - var(--max)) / 2));
}

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

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

h1 {
  max-width: 630px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 8vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  color: #40362f;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 12px 18px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--cocoa);
  box-shadow: 0 12px 28px rgba(58, 36, 29, 0.24);
}

.button.secondary {
  color: var(--cocoa);
  border-color: rgba(58, 36, 29, 0.28);
  background: rgba(255, 255, 255, 0.6);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0 0;
}

.hero-stats div {
  min-width: 118px;
  padding: 14px 16px;
  border: 1px solid rgba(58, 36, 29, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.hero-stats dt {
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bio-strip {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  padding: 18px 16px;
  color: #fff;
  background: var(--cocoa);
  text-align: center;
}

.bio-strip p {
  margin: 0;
  font-size: clamp(0.86rem, 1.8vw, 1rem);
  font-weight: 800;
}

.bio-strip span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--berry);
}

.section {
  padding: clamp(72px, 10vw, 116px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.intro-grid article,
.method-grid article {
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.intro-grid article {
  padding: 0 22px 24px;
}

.method-grid article {
  padding: 24px;
}

.intro-grid img {
  width: calc(100% + 44px);
  height: 190px;
  margin: 0 -22px 22px;
  object-fit: cover;
}

.intro-grid span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
}

.intro-grid p,
.method-grid p,
.path-panel p,
.mentor-copy p,
.recorded-classes p {
  color: var(--muted);
}

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

.path-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.path-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.path-tab.active {
  color: #fff;
  border-color: var(--cocoa);
  background: var(--cocoa);
}

.path-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: start;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.panel-kicker {
  margin-bottom: 10px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.path-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-panel li {
  padding: 13px 14px;
  border-left: 4px solid var(--berry);
  background: #fff6f1;
  font-weight: 700;
}

.mentor-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(56px, 9vw, 96px);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--cocoa), #5b2d31 58%, #2f4747);
}

.mentor-band .eyebrow,
.enquiry .eyebrow {
  color: #ffd2d9;
}

.mentor-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 4px;
}

.mentor-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.mentor-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: auto;
}

.mentor-card figcaption {
  display: grid;
  gap: 2px;
  padding: 16px;
}

.mentor-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

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

.method-grid article {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(96, 116, 93, 0.08), rgba(255, 255, 255, 0) 56%),
    #fff;
}

.recorded-classes {
  padding: clamp(72px, 10vw, 116px) 0;
}

.classes-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.45fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.classes-copy > .eyebrow,
.classes-copy h2 {
  grid-column: 1;
}

.classes-copy h2 {
  margin-bottom: 18px;
}

.classes-copy > p:not(.eyebrow) {
  grid-column: 1;
  max-width: 720px;
}

.classes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  justify-content: flex-end;
}

.classes-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.classes-more .button {
  min-width: min(260px, 100%);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.class-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(44, 30, 24, 0.08);
}

.class-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.class-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.class-type {
  margin-bottom: 10px;
  color: var(--berry);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.class-card h3 {
  min-height: 58px;
  margin-bottom: 10px;
}

.class-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.class-card li {
  padding: 9px 10px;
  border-radius: 6px;
  background: #fff6f1;
  color: var(--cocoa);
  font-size: 0.9rem;
  font-weight: 750;
}

.class-link {
  display: inline-flex;
  margin-top: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 7px;
  color: #fff;
  background: var(--cocoa);
  font-weight: 900;
  text-decoration: none;
}

.class-link:hover {
  background: #4c2d25;
}

.enquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: clamp(32px, 5vw, 48px);
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
}

.enquiry h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.enquiry .button.primary {
  flex: 0 0 auto;
  background: var(--paper);
  color: var(--cocoa);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.catalog-page {
  background: #fff8f0;
}

.legal-page {
  background: #fff8f0;
}

.legal-content {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 70px;
}

.legal-content h1 {
  margin-bottom: 8px;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.legal-updated {
  margin-bottom: 36px;
  color: var(--muted);
  font-weight: 800;
}

.legal-content section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 12px;
  color: var(--cocoa);
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

.legal-content a {
  color: var(--cocoa);
  font-weight: 850;
}

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

.catalog-hero {
  padding: 132px 0 42px;
}

.catalog-hero h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
}

.catalog-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.catalog-section {
  padding-bottom: 84px;
}

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

.portal-page {
  background: #fff8f0;
}

.portal-hero,
.student-library {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 76svh;
  padding: 132px 0 64px;
}

.portal-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7.2vw, 7rem);
}

.portal-hero p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.portal-login-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.portal-login-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.portal-card-label,
.portal-status {
  font-size: 0.82rem;
  font-weight: 850;
}

.portal-card-label {
  margin-bottom: 12px;
  color: var(--berry);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.google-login {
  width: 100%;
  margin-top: 16px;
}

.portal-status {
  margin: 16px 0 0;
  color: var(--muted);
}

.student-library {
  padding: 0 0 84px;
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.library-heading h2 {
  margin-bottom: 10px;
}

.library-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.library-card {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.library-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.library-card-body {
  padding: 22px;
}

.video-frame {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #18110f;
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-empty {
  width: 100%;
  height: 100%;
}

.video-frame iframe {
  border: 0;
}

.video-empty,
.empty-library {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.video-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.video-lesson {
  display: grid;
  gap: 10px;
}

.video-label {
  margin: 0;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-list a {
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff6f1;
  color: var(--cocoa);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 880px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: min(260px, calc(100vw - 24px));
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: 84svh;
    padding-top: 116px;
  }

  .hero-snapshot {
    display: none;
  }

  .hero-visual::after {
    background:
      linear-gradient(180deg, rgba(255, 250, 244, 0.95) 0%, rgba(255, 250, 244, 0.88) 42%, rgba(255, 250, 244, 0.62) 100%),
      linear-gradient(0deg, rgba(33, 27, 24, 0.22), rgba(33, 27, 24, 0));
  }

  .hero-photo {
    object-position: 62% center;
  }

  .hero-inner {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .bio-strip {
    flex-wrap: wrap;
  }

  .intro-grid,
  .method-grid,
  .path-panel,
  .mentor-band,
  .classes-copy,
  .class-grid,
  .catalog-grid,
  .portal-hero,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .classes-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .classes-more {
    justify-content: flex-start;
  }

  .mentor-band {
    padding: 42px 24px;
  }

  .mentor-card {
    max-width: 280px;
  }

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

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

@media (max-width: 560px) {
  .brand {
    font-size: 0.95rem;
  }

  .hero {
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(3.45rem, 20vw, 5rem);
  }

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

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats div {
    min-width: 0;
    padding: 11px 10px;
  }

  .hero-stats dt {
    font-size: 1.1rem;
  }

  .hero-stats dd {
    font-size: 0.74rem;
  }

  .section {
    padding: 62px 0;
  }

  .catalog-hero {
    padding-top: 112px;
  }

  .portal-hero {
    min-height: auto;
    padding: 112px 0 52px;
  }

  .intro-grid article,
  .method-grid article {
    min-height: 160px;
  }

  .path-panel {
    padding: 22px;
  }

  .recorded-classes {
    padding: 62px 0;
  }

  .class-card h3 {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
