/* Katarina Beauty — site styles */

:root {
  --bg: #faf7f2;
  --bg-alt: #f3ede6;
  --sand: #e9e0d6;
  --beige: #d4cac1;
  --taupe: #a8998b;
  --ink: #2b2623;
  --ink-soft: #5f554e;
  --muted: #8a7e75;
  --line: #e2d9cf;
  --espresso: #3a302a;
  --espresso-hover: #2b231e;
  --clay: #9a7660;
  --clay-hover: #86634e;
  --edu-dark: #2f2824;
  --white: #fff;

  --serif: 'Noto Serif Display', 'Didot', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --header-h: 96px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; }
strong { font-weight: 500; color: var(--ink); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--beige); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.narrow-wide { max-width: 980px; }
.center { text-align: center; }
.center .btn, .center .link-arrow { margin-top: 8px; }
.small { font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* ---------- Typography ---------- */

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--ink);
  margin-bottom: .55em;
  text-wrap: balance;
}
.display--lg { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.display--xl { font-size: clamp(3rem, 8.4vw, 7rem); line-height: 1; letter-spacing: -.015em; }
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4em;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--ink-soft); }
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
  max-width: 820px;
  margin: clamp(48px, 7vw, 96px) auto 0;
  text-wrap: balance;
}
.quote--left { text-align: left; margin: 1.2em 0; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.quote--big { margin: 0 auto; }
.quote--big p { margin-bottom: .6em; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

.list { list-style: none; margin: 0 0 1.2em; }
.list li { position: relative; padding-left: 1.4em; margin-bottom: .35em; }
.list li::before { content: ''; position: absolute; left: 0; top: .85em; width: .7em; height: 1px; background: var(--taupe); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .7rem; }
.btn--block { display: flex; width: 100%; }
.btn--book { background: var(--espresso); color: var(--bg); }
.btn--book:hover { background: var(--espresso-hover); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--white); }
/* Course CTAs — deliberately different from salon booking */
.btn--course { background: var(--clay); color: var(--white); border-radius: 999px; }
.btn--course:hover { background: var(--clay-hover); }
.btn--course-outline { border-color: var(--clay); color: var(--clay); border-radius: 999px; }
.btn--course-outline:hover { background: var(--clay); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 2em; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--taupe);
  transition: gap .3s var(--ease), border-color .3s;
}
.link-arrow::after { content: '→'; font-family: var(--sans); letter-spacing: 0; }
.link-arrow:hover { gap: 1.2em; border-color: var(--ink); }
.link-arrow--light { color: inherit; border-color: currentColor; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  max-width: calc(1440px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand { flex: none; display: block; }
.brand img { height: 70px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 38px); list-style: none; }
.nav a {
  position: relative;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  :root { --header-h: 78px; }
  .nav, .header-book { display: none; }
  .brand img { height: 56px; }
  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 46px; height: 46px;
    margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 26px; height: 1px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .3s;
  }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -8px; }
  .menu-toggle__bars::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu nav a[aria-current="page"] { font-style: italic; }
.mobile-menu__foot { padding-top: 28px; }
.mobile-menu__foot p { margin: 18px 0 0; text-align: center; font-size: .9rem; }
.mobile-menu__foot a { text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section--sand { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row .display { margin-bottom: 0; }
.section-head--row p:last-child { margin-bottom: 0; }

/* ---------- Hero (home) ---------- */

.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero__text { text-align: center; max-width: 1100px; }
.hero__text .display { margin-bottom: .25em; }
.hero__lead { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--ink-soft); margin: 0; }
.hero .btn-row { justify-content: center; }
.hero__media {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 0 clamp(0px, 2vw, 32px);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 88vh;
  object-fit: cover;
  animation: heroIn 1.6s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .hero__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Page hero ---------- */

.page-hero { padding: clamp(48px, 8vw, 120px) 0 var(--section); }
.page-hero--center { text-align: center; padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero--center .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.page-hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 120px); }
}
.page-hero--404 { min-height: 60vh; display: grid; align-items: center; }

/* ---------- Frames / media ---------- */

.frame { margin: 0; position: relative; overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--portrait { aspect-ratio: 3 / 4; }
.frame--landscape { aspect-ratio: 4 / 3; }
.frame__badge {
  position: absolute; left: 0; bottom: 0;
  background: var(--bg);
  padding: 18px 26px 14px;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.frame__badge span { display: block; font-family: var(--sans); font-size: .65rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---------- Split ---------- */

.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(56px, 8vw, 128px); }
  .split--reverse .split__media { order: -1; }
  .split--reverse > .split__text { order: 2; }
  .split--intro { grid-template-columns: 1fr .9fr; }
  .split--story, .split--team { grid-template-columns: .85fr 1fr; }
}
.split__text > :last-child { margin-bottom: 0; }
.split__text .btn, .split__text .link-arrow { margin-top: 1em; }

/* ---------- Service cards (home) ---------- */

.service-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.service-card__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); margin-bottom: 20px; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card:hover img { transform: scale(1.04); }
.service-card__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--ink); line-height: 1.15; margin-bottom: 8px; }
.service-card__text { font-size: .95rem; line-height: 1.6; }
@media (max-width: 1100px) {
  .service-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 34%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .service-cards::-webkit-scrollbar { display: none; }
  .service-card { scroll-snap-align: start; }
}
@media (max-width: 600px) { .service-cards { grid-auto-columns: 74%; } }

/* ---------- Pillars ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 80px); }
.pillar { border-top: 1px solid var(--line); padding-top: 28px; }
.pillar__num { display: block; font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--taupe); margin-bottom: 18px; }
.pillar__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 300; margin-bottom: 16px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

.team-names { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; margin: 4px 0 28px; }
.team-names li { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink); }
.team-names li:not(:last-child)::after { content: '·'; margin: 0 .6em; color: var(--taupe); font-style: normal; }

/* ---------- Work grid (home) ---------- */

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-grid__item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.work-grid__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.work-grid__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-grid__item:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .work-grid__item:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Reviews ---------- */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 48px; }
.review { margin: 0; background: var(--bg); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.stars { color: var(--clay); letter-spacing: .2em; font-size: .85rem; margin-bottom: 18px; }
.review blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); flex: 1; }
.review blockquote p:last-child { margin: 0; }
.review figcaption { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.review figcaption span { display: block; color: var(--muted); letter-spacing: .12em; font-size: .7rem; margin-top: 4px; }

/* ---------- CTA band ---------- */

.cta-band { position: relative; min-height: clamp(420px, 60vh, 640px); display: grid; place-items: center; text-align: center; color: var(--bg); overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(43, 38, 35, .38), rgba(43, 38, 35, .5)); }
.cta-band__content { position: relative; padding: 80px var(--gutter); max-width: 760px; }
.cta-band .display { color: var(--bg); }
.cta-band p { color: rgba(250, 247, 242, .9); font-size: 1.15rem; }
.cta-band .btn { margin-top: 16px; }

/* ---------- Services page ---------- */

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(250, 247, 242, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; justify-content: center; gap: clamp(20px, 4vw, 56px); list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 18px 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 700px) { .subnav ul { justify-content: flex-start; } }

.service { padding: var(--section) 0 0; scroll-margin-top: calc(var(--header-h) + 60px); }
.service__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .service__grid { grid-template-columns: .9fr 1fr; gap: clamp(56px, 8vw, 120px); }
  .service--reverse .service__media { order: 2; }
  .service__media { position: sticky; top: calc(var(--header-h) + 90px); }
}
.service__num { font-family: var(--serif); font-style: italic; color: var(--taupe); margin-bottom: .6em; }
.service__body .btn { margin-top: 1.2em; }
.service:last-of-type { padding-bottom: var(--section); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; }
.tags li { border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; font-size: .88rem; color: var(--ink); background: var(--bg); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 24px; }
.duo__item { background: var(--bg-alt); padding: 26px 26px 10px; }
.duo h3, .note h3, .h-sub, .step h3, .info-card h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.2; margin-bottom: 12px; }
.duo p { font-size: .97rem; }
@media (max-width: 600px) { .duo { grid-template-columns: 1fr; } }
.note { border-left: 1px solid var(--taupe); padding-left: 22px; margin: 0 0 28px; }
.note p:last-child { margin-bottom: 0; }
.h-sub { margin-top: 8px; }

.steps-wrap { padding-top: clamp(48px, 6vw, 80px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg-alt); padding: clamp(28px, 3vw, 40px); }
.step__num { display: block; font-family: var(--serif); font-style: italic; color: var(--taupe); margin-bottom: 14px; }
.step p { font-size: .97rem; margin-bottom: 0; }
.steps-more { max-width: 820px; margin: 40px auto 0; text-align: center; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Team (about) ---------- */

.team { display: grid; gap: clamp(72px, 10vw, 140px); }
.member { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .member { grid-template-columns: .8fr 1fr; gap: clamp(56px, 8vw, 120px); }
  .member--reverse { grid-template-columns: 1fr .8fr; }
  .member--reverse .member__photo { order: 2; }
}
.member__name { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; margin-bottom: 14px; }
.member__role { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay); margin-bottom: 28px; line-height: 1.7; }

/* ---------- Education ---------- */

.edu-hero { background: var(--edu-dark); color: rgba(250, 247, 242, .82); padding: clamp(48px, 8vw, 110px) 0; }
.edu-hero .display, .edu-hero strong { color: var(--bg); }
.edu-hero .eyebrow, .edu-hero .crumbs { color: var(--beige); }
.edu-hero .lead { color: rgba(250, 247, 242, .9); }
.edu-hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .edu-hero__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 120px); } }
.edu-hero__sub { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--beige); margin-top: -.6em; }
.edu-hero__headline { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--bg); }
.edu-hero .frame { background: #3d3530; }
.crumbs { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.6em; }
.crumbs a { text-decoration: none; border-bottom: 1px solid currentColor; }
.edu-dark { background: var(--edu-dark); color: rgba(250, 247, 242, .82); }
.edu-dark .display { color: var(--bg); }
.edu-dark .eyebrow { color: var(--beige); }

.course-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.course-card { background: var(--bg); display: flex; flex-direction: column; }
.course-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.04); }
.course-card__level { position: absolute; left: 16px; top: 16px; background: var(--bg); color: var(--ink); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.course-card__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.course-card__body > p { font-size: .97rem; }
.course-card__title { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; letter-spacing: .02em; }
.course-card__title a { text-decoration: none; }
.course-card__sub { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay); margin: 8px 0 18px; }
.course-card__next { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.course-card .btn { align-self: flex-start; margin-top: 8px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.stats li { padding-top: 32px; }
.stats__value { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); margin-bottom: 12px; }
.stats__label { font-size: .92rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } .stats li { padding-top: 24px; } }

.facts { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.facts__list { display: flex; flex-wrap: wrap; margin: 0; }
.facts__list > div { flex: 1 1 200px; padding: 26px 24px 26px 0; }
.facts__list > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 700px) {
  .facts__list > div { flex-basis: 50%; padding: 18px 12px 18px 0; }
  .facts__list > div + div { padding-left: 0; border-left: 0; }
}

.course-intro { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .course-intro { grid-template-columns: 1fr 1fr; gap: clamp(56px, 8vw, 120px); } }
.course-intro .lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 300; line-height: 1.45; color: var(--ink); }
.topics__list { list-style: none; counter-reset: t; }
.topics__list li { counter-increment: t; display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.topics__list li::before { content: counter(t, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--taupe); min-width: 1.6em; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.info-card { background: var(--bg); padding: clamp(28px, 3.4vw, 48px); }
.info-card > :last-child { margin-bottom: 0; }

.dates { list-style: none; border-top: 1px solid var(--line); margin-bottom: 40px; }
.date { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.date__day { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.date__day::first-letter { text-transform: uppercase; }
.date__time { color: var(--muted); }
.date__spots { color: var(--clay); font-weight: 400; }
.date__spots small { color: var(--muted); font-weight: 300; }
.date--full { opacity: .55; }
.date--full .date__spots { color: var(--muted); }
@media (max-width: 700px) {
  .date { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .date__day { grid-column: 1; }
  .date__time { grid-column: 1; grid-row: 2; }
  .date__spots { grid-column: 1; grid-row: 3; }
  .date .btn { grid-column: 2; grid-row: 1 / 4; }
}
.empty { background: var(--bg-alt); padding: 32px; text-align: center; margin-bottom: 40px; }
.empty p:last-child { margin: 0; }

/* ---------- Form ---------- */

.form-wrap { max-width: 760px; }
.form-head { text-align: center; margin-bottom: 40px; }
.form { background: var(--bg); padding: clamp(24px, 4vw, 56px); }
.field { margin-bottom: 22px; }
.form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form__fields > * { grid-column: 1 / -1; }
.form__fields > .field--half { grid-column: auto; }
@media (max-width: 600px) { .form__fields > .field--half { grid-column: 1 / -1; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice { display: inline-flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.choice input { accent-color: var(--clay); }
.btn[disabled] { opacity: .7; cursor: wait; }
.field > label { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field--check label { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .92rem; line-height: 1.6; color: var(--ink-soft); cursor: pointer; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--clay); }
.field--error input, .field--error select, .field--error textarea { border-color: #a4473a; }
.field__error, .form__error { display: block; color: #a4473a; font-size: .88rem; margin-top: 6px; }
.form__error--top { background: #f6e9e6; padding: 12px 16px; margin: 0 0 24px; }
.form__note { margin: 18px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--bg); padding: clamp(32px, 5vw, 64px); text-align: center; }
.thanks:focus { outline: none; }
.thanks__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--clay); color: var(--clay); font-size: 1.4rem; margin-bottom: 24px; }

/* ---------- Gallery ---------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { border: 1px solid var(--line); background: transparent; padding: 10px 20px; border-radius: 999px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; color: var(--ink-soft); transition: all .25s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gallery { columns: 3 320px; column-gap: 16px; }
.gallery__item { display: block; margin-bottom: 16px; break-inside: avoid; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.gallery__item img { width: 100%; transition: transform 1.2s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item.is-hidden { display: none; }
@media (max-width: 600px) { .gallery { columns: 2; column-gap: 8px; } .gallery__item { margin-bottom: 8px; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(28, 24, 22, .96); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { color: rgba(250, 247, 242, .7); font-size: .85rem; margin-top: 14px; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; background: none; border: 0; color: var(--bg); cursor: pointer; font-family: var(--serif); font-weight: 300; line-height: 1; padding: 12px; }
.lightbox__close { top: 8px; right: 12px; font-size: 2.6rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
@media (max-width: 600px) { .lightbox__nav { top: auto; bottom: 8px; transform: none; } }

/* ---------- Contact ---------- */

.contact-list { margin: 48px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list dd { margin: 0; color: var(--ink); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--ink); }
@media (max-width: 500px) { .contact-list > div { grid-template-columns: 1fr; gap: 2px; } }
.map { position: relative; aspect-ratio: 16 / 7; background: var(--sand); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.5) sepia(.15); }
.map__consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 8px; }
.map__consent p { max-width: 420px; font-size: .92rem; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 5; } }

/* ---------- Prose ---------- */

.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--edu-dark); color: rgba(250, 247, 242, .72); padding: clamp(64px, 8vw, 110px) 0 0; font-size: .95rem; }
.site-footer .eyebrow { color: var(--beige); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bg); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1fr; gap: 40px; }
.site-footer__brand img { width: 108px; height: auto; margin-bottom: 20px; }
.site-footer__links { list-style: none; }
.site-footer__links li { margin-bottom: 8px; }
.site-footer .btn { margin-top: 8px; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(250, 247, 242, .14); font-size: .8rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky booking bar ---------- */

.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 247, 242, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .4s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .site-footer { padding-bottom: 76px; }
  body.menu-open .mobile-bar { transform: translateY(110%); }
}

/* ---------- Reveal animations ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
  .frame img, .service-card__media img, .gallery__item img, .work-grid__item img { transition: none; }
}
