:root {
  --bg: #f3f4f6;
  --bg-deep: #e8eaee;
  --surface: #fbfbfc;
  --ink: #1f242b;
  --muted: #5c6570;
  --line: #d5d9df;
  --accent: #3d4f5f;
  --accent-soft: #a8b5a0;
  --accent-warm: #8b7355;
  --shadow: 0 18px 40px rgba(31, 36, 43, 0.08);
  --radius: 2px;
  --font-sans: "Figtree", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --narrow: min(720px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(168, 181, 160, 0.22), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(61, 79, 95, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

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

.narrow { width: var(--narrow); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 1000;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 244, 246, 0.86);
  border-bottom: 1px solid rgba(213, 217, 223, 0.8);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--accent);
  border-bottom-width: 5px;
  transform: skewX(-8deg);
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  background: var(--accent);
  color: #f7f8f9;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  background: #314150;
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn-small {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.header-cta { justify-self: end; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin: 0 0 0.6rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.meta-line,
.price-line {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-line {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

/* Home hero — full-bleed image plane */
.home-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #f4f5f7;
  overflow: hidden;
}

.home-hero-media {
  position: absolute;
  inset: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroRise 1.4s ease-out both;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 36, 43, 0.15) 0%, rgba(31, 36, 43, 0.72) 78%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  animation: fadeUp 0.9s ease 0.2s both;
}

.home-hero .brand-hero {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.home-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: rgba(244, 245, 247, 0.92);
  max-width: 32rem;
  margin-bottom: 0.75rem;
}

.home-hero .lead {
  color: rgba(244, 245, 247, 0.82);
  margin-bottom: 1.5rem;
}

.home-hero .btn {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--ink);
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.course-item:hover {
  transform: translateY(-4px);
}

.course-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.92);
}

.course-item h3 {
  margin: 0;
}

.course-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.quote-band {
  background: var(--accent);
  color: #eef1f3;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  max-width: 40rem;
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  opacity: 0.85;
}

.page-intro {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.page-intro .lead { margin-bottom: 0; }

.prose-page {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.prose-page h2 { margin-top: 2rem; }
.prose-page ul, .prose-page ol { padding-left: 1.2rem; }
.prose-page li { margin-bottom: 0.4rem; }

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.listing-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.listing-card img {
  width: 140px;
  height: 105px;
  object-fit: cover;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.review-list {
  display: grid;
  gap: 1.75rem;
}

.review-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.review-item blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.review-item footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-person img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 0.85rem;
}

.team-person p {
  color: var(--muted);
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}

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

.form .error {
  color: #8a2f2f;
  font-size: 0.88rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success { border-color: var(--accent-soft); }
.form-status.is-error { border-color: #c47a7a; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-aside {
  background: rgba(251, 251, 252, 0.7);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.studio-hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: end;
  color: #f4f5f7;
}

.studio-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(31, 36, 43, 0.75));
}

.studio-hero .shell {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.studio-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.studio-steps article {
  counter-increment: step;
  padding-top: 0.5rem;
}

.studio-steps article::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.post-cover {
  margin: 0 auto 2rem;
}

.post-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.post-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(251, 251, 252, 0.65);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  gap: 1.5rem;
}

.footer-links li { margin-bottom: 0.35rem; }
.footer-links a, .footer-contact a {
  text-decoration: none;
  color: var(--ink);
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  background: rgba(31, 36, 43, 0.96);
  color: #eef1f3;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  animation: slideUp 0.45s ease both;
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  max-width: 46rem;
  font-size: 0.92rem;
}

.cookie-inner a { color: #c9d4c4; }

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner .btn {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--ink);
}

.cookie-banner .btn-ghost {
  background: transparent;
  color: #eef1f3;
  border-color: rgba(238, 241, 243, 0.35);
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroRise {
  from { transform: scale(1.06); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@media (max-width: 900px) {
  .course-grid,
  .team-grid,
  .studio-steps,
  .footer-grid,
  .detail-hero,
  .contact-layout,
  .split {
    grid-template-columns: 1fr;
  }

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

  .post-item {
    grid-template-columns: 1fr;
  }

  .header-cta { display: none; }

  .nav-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    padding-bottom: 1rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .listing-card {
    grid-template-columns: 100px 1fr;
  }

  .listing-card img {
    width: 100px;
    height: 80px;
  }
}
