/* ============================================================
   SOLENE — design system
   contemporary pilates studio · editorial identity
   ============================================================ */

:root {
  /* palette */
  --cream:    #f1efe8;  /* warm off-white          */
  --mineral:  #e6e4da;  /* pale mineral grey       */
  --sage:     #c7cab4;  /* muted sage              */
  --sage-dim: #b3b69e;
  --olive:    #5f6247;  /* olive green             */
  --olive-deep:#4a4d37;
  --stone:    #a9a091;  /* soft taupe / stone      */
  --charcoal: #24241d;  /* charcoal                */
  --ink:      #141410;  /* deep black              */

  /* type */
  --font-display: "Inter Tight", "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", sans-serif;

  --size-hero:  clamp(4.2rem, 14.5vw, 13.5rem);
  --size-huge:  clamp(2.6rem, 7vw, 6.4rem);
  --size-big:   clamp(2rem, 4.6vw, 4rem);
  --size-mid:   clamp(1.35rem, 2.4vw, 2rem);
  --size-body:  0.98rem;
  --size-small: 0.83rem;
  --size-label: 0.72rem;

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section: clamp(5rem, 11vw, 10.5rem);

  --radius-pill: 999px;
  --radius-panel: 1.4rem;
  --radius-img: 1.1rem;

  --line: 1px solid rgba(20, 20, 16, 0.16);
  --line-light: 1px solid rgba(241, 239, 232, 0.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  /* quiet the mixed stock palette into the brand's mineral range */
  filter: saturate(0.72) contrast(1.03);
}

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

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

::selection { background: var(--sage); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-size: var(--size-small);
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* ---------- shared vocabulary ---------- */

.wrap {
  width: min(100% - 2 * var(--gutter), 90rem);
  margin-inline: auto;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: lowercase;
}

.label {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.label--paren::before { content: "( "; font-weight: 400; }
.label--paren::after  { content: " )"; font-weight: 400; }

.eyebrow {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--olive);
}

.measure { max-width: 34em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--size-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--olive-deep); }

.btn--outline { border-color: rgba(20, 20, 16, 0.35); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--sage); }

.btn--ghost-light { border-color: rgba(241, 239, 232, 0.4); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--size-small);
  font-weight: 600;
  border-bottom: 1px solid rgba(20, 20, 16, 0.3);
  padding-bottom: 0.2rem;
  transition: gap 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.arrow-link:hover { gap: 0.95rem; border-color: var(--ink); }

.frame {
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--mineral);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
a.frame:hover img,
a:hover > .frame img { transform: scale(1.04); }

/* ---------- reveal on scroll ---------- */

/* only hide revealable content when JS is running (html.js set inline in <head>) */
html.js .reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

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

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-block: clamp(0.7rem, 1.1vw, 0.95rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out), color 0.35s var(--ease-out),
              padding-block 0.35s var(--ease-out);
}

/* --- adaptive theme -----------------------------------------------------
   The nav reads whatever section sits behind it (JS toggles .is-on-dark
   when a [data-nav="dark"] block crosses the header baseline) and flips its
   colours to stay legible. .is-scrolled adds the frosted backing, whose
   tint follows the current theme. Default (no class) = dark ink on light. */

/* over a dark section → light contents */
.site-nav.is-on-dark { color: var(--cream); }
.site-nav.is-on-dark .wordmark span { color: var(--sage); }
.site-nav.is-on-dark .nav-links a[aria-current="page"] { color: var(--sage); }
.site-nav.is-on-dark .site-nav__cta.btn--solid { background: var(--cream); color: var(--ink); }
.site-nav.is-on-dark .site-nav__cta.btn--solid:hover { background: var(--sage); }
.site-nav.is-on-dark .nav-toggle { border-color: rgba(241, 239, 232, 0.4); background: rgba(20, 20, 16, 0.35); }

/* scrolled → frosted backing, tinted to match the theme */
.site-nav.is-scrolled {
  background: rgba(241, 239, 232, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(20, 20, 16, 0.08);
  box-shadow: 0 1px 24px rgba(20, 20, 16, 0.06);
}
.site-nav.is-scrolled.is-on-dark {
  background: rgba(18, 18, 14, 0.66);
  border-bottom-color: rgba(241, 239, 232, 0.12);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.22);
}

.site-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.wordmark span { color: var(--olive); }

.nav-links {
  display: flex;
  gap: 0.4rem 1.6rem;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.nav-links a::before { content: "( "; font-weight: 400; opacity: 0.55; }
.nav-links a::after  { content: " )"; font-weight: 400; opacity: 0.55; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--olive); }

.site-nav__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 20, 16, 0.3);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(241, 239, 232, 0.75);
  backdrop-filter: blur(6px);
}


/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--charcoal);
  color: var(--cream);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), visibility 0s 0.4s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu__close {
  padding: 0.7rem 1.3rem;
  border: 1px solid rgba(241, 239, 232, 0.35);
  border-radius: var(--radius-pill);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream);
}

.mobile-menu__links {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-transform: lowercase;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mobile-menu.is-open .mobile-menu__links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.08s + var(--i) * 0.06s);
}
.mobile-menu__links a:hover,
.mobile-menu__links a[aria-current="page"] { color: var(--sage); }
.mobile-menu__links a small {
  font-family: var(--font-body);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  opacity: 0.5;
}

.mobile-menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: var(--line-light);
  padding-top: 1.4rem;
  font-size: var(--size-small);
  opacity: 0.9;
}

body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-links, .site-nav__cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   HERO (home) — full-bleed cinematic
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: clip;
  isolation: isolate;
  color: var(--cream);
  padding-top: clamp(6.5rem, 13vh, 9.5rem);
}

/* full-bleed background image + overscan for gentle parallax */
.hero__media {
  position: absolute;
  inset: -14% 0;
  z-index: -2;
  background: var(--charcoal);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  /* keep natural, muted earthy colour — no monochrome; slight darken for text */
  filter: saturate(0.86) contrast(1.02) brightness(0.9);
  animation: hero-zoom 1.7s var(--ease-out) both;
}
@keyframes hero-zoom {
  from { transform: scale(1.08); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* dark scrims: top for nav, bottom + left for text legibility */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,14,10,0.5) 0%, rgba(14,14,10,0) 20%,
                    rgba(14,14,10,0) 48%, rgba(14,14,10,0.9) 100%),
    linear-gradient(90deg, rgba(14,14,10,0.62) 0%, rgba(14,14,10,0.12) 52%, rgba(14,14,10,0) 78%);
}

/* eyebrow label, directly above the headline */
.hero__eyebrow {
  color: rgba(241, 239, 232, 0.85);
  margin-bottom: clamp(1rem, 2.2vh, 1.5rem);
  text-shadow: 0 1px 14px rgba(10, 10, 8, 0.55);
}

/* bottom content block */
.hero__content { padding-bottom: clamp(2.25rem, 6vh, 4rem); }

.hero__title {
  font-size: clamp(3rem, 9.2vw, 8.6rem);
  margin-bottom: clamp(1.6rem, 4.5vh, 2.8rem);
  text-shadow: 0 2px 50px rgba(8, 8, 6, 0.4);
}

.hero__lower {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.hero__lead { max-width: 30rem; }
.hero__lead p {
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: rgba(241, 239, 232, 0.92);
}
.hero__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* scroll cue */
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 239, 232, 0.78);
  padding-bottom: 0.35rem;
  transition: color 0.3s var(--ease-out);
}
.hero__scroll:hover { color: var(--cream); }
.hero__scroll-line {
  width: 3.2rem;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: scroll-line 2.4s var(--ease-out) infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleX(0.45); opacity: 0.5; }
  50%      { transform: scaleX(1);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
  .hero__scroll-line { animation: none; transform: scaleX(1); }
}

@media (max-width: 760px) {
  .hero { padding-top: clamp(6rem, 16vh, 8rem); }
  .hero__media img { object-position: 52% 32%; }
  .hero__lower { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__scroll { display: none; }
}

/* marquee strip */
.strip {
  border-block: var(--line);
  padding: 1.05rem 0;
  overflow: hidden;
  background: var(--cream);
}
.strip__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: strip-scroll 36s linear infinite;
}
.strip__track span {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--olive);
}
@keyframes strip-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
}

/* ============================================================
   HOME sections
   ============================================================ */

section { position: relative; }

.section-pad { padding-block: var(--section); }

/* --- intro --- */
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.intro__statement {
  grid-column: 1 / 12;
  font-size: var(--size-huge);
}
.intro__statement em {
  font-style: normal;
  color: var(--stone);
}
/* image woven into the headline as an inline pill */
.intro__inline {
  display: inline-block;
  width: clamp(4.6rem, 10vw, 9.5rem);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-pill);
  overflow: hidden;
  vertical-align: -0.08em;
  margin-inline: 0.08em;
}
.intro__inline img { width: 100%; height: 100%; object-fit: cover; }

/* one aligned band under the statement: copy left, stats right */
.intro__row {
  grid-column: 1 / -1;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(1.4rem, 2.5vw, 2rem);
  border-top: var(--line);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.intro__copy {
  grid-column: 1 / 6;
  font-size: var(--size-small);
  max-width: 26rem;
}
.intro__copy .label { display: block; color: var(--olive); margin-bottom: 0.8rem; }

.intro__stats {
  grid-column: 7 / 13;
  display: flex;
  justify-content: flex-end;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.intro__stats div { min-width: 6.5rem; }
.intro__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.intro__stats span { font-size: var(--size-label); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }

@media (max-width: 900px) {
  .intro__statement { grid-column: 1 / -1; }
  .intro__copy { grid-column: 1 / -1; }
  .intro__stats { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; margin-top: 1.5rem; }
}

/* --- featured classes --- */
.featured { background: var(--mineral); border-radius: var(--radius-panel); }

.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.featured__head h2 { font-size: var(--size-big); }

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

.class-card { display: flex; flex-direction: column; gap: 1.1rem; }
.class-card .frame { aspect-ratio: 4 / 3; }
.class-card--wide .frame { aspect-ratio: 16 / 10; }
.class-card--tall .frame { aspect-ratio: 3 / 4; }

.class-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.class-card__meta h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}
.class-card__num { font-size: var(--size-label); letter-spacing: 0.12em; color: var(--olive); }
.class-card p { font-size: var(--size-small); opacity: 0.8; max-width: 26rem; }
.class-card__tags { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.class-card__tags span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border: var(--line);
  border-radius: var(--radius-pill);
}

.featured__grid { row-gap: clamp(3rem, 6vw, 5rem); }

.feat-1 { grid-column: 1 / 8; }
.feat-2 { grid-column: 8 / 13; }
.feat-3 { grid-column: 1 / 5; }
.feat-4 { grid-column: 5 / 9; }

/* closing tile — the section's designed end point */
.featured__tile {
  grid-column: 9 / 13;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius-panel);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s var(--ease-out);
}
.featured__tile:hover { background: var(--olive-deep); }
.featured__tile-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--sage);
}
.featured__tile-label {
  margin-top: 0.9rem;
  font-size: var(--size-small);
  opacity: 0.75;
  max-width: 11rem;
}
.featured__tile-cta {
  margin-top: auto;
  padding-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.featured__tile-cta span:last-child { transition: transform 0.3s var(--ease-out); }
.featured__tile:hover .featured__tile-cta span:last-child { transform: translateX(0.35rem); }

@media (max-width: 900px) {
  .feat-1, .feat-2, .feat-3, .feat-4 { grid-column: 1 / -1; }
  .class-card--tall .frame { aspect-ratio: 4 / 3; }
  .featured__tile { grid-column: 1 / -1; min-height: 14rem; }
  .featured__head { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}

/* --- philosophy --- */
.philosophy {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius-panel);
  overflow: clip;
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.philosophy__list { grid-column: 1 / 8; }
.philosophy__list li {
  border-top: var(--line-light);
  padding: clamp(1.2rem, 2.5vw, 2rem) 0;
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.philosophy__list li:last-child { border-bottom: var(--line-light); }
.philosophy__list .num { font-size: var(--size-label); letter-spacing: 0.12em; color: var(--sage); min-width: 2.2rem; }
.philosophy__list h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  line-height: 1.05;
}
.philosophy__list p {
  font-size: var(--size-small);
  opacity: 0.65;
  max-width: 17rem;
  margin-left: auto;
  display: none;
}
@media (min-width: 1100px) { .philosophy__list p { display: block; } }

.philosophy__media { grid-column: 8 / 13; position: relative; }
.philosophy__media .frame { aspect-ratio: 3 / 4; }
.philosophy__media figcaption {
  margin-top: 0.8rem;
  font-size: var(--size-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .philosophy__list, .philosophy__media { grid-column: 1 / -1; }
  .philosophy__media { order: -1; margin-bottom: 1.5rem; }
  .philosophy__media .frame { aspect-ratio: 16 / 11; }
}

/* --- gallery preview --- */
.gpreview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.gpreview__head h2 { font-size: var(--size-big); }

/* photo shelf — four equal frames, one clean row */
.gpreview__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
.gpreview__item { margin: 0; }
.gpreview__item .frame { display: block; aspect-ratio: 4 / 5; }

.gpreview__item figcaption {
  margin-top: 0.7rem;
  font-size: var(--size-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.gpreview__item figcaption span:last-child { opacity: 0.7; }

@media (max-width: 700px) {
  .gpreview__strip { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* --- instructor --- */
.instructor { background: var(--mineral); border-radius: var(--radius-panel); }

.instructor__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}
.instructor__media { grid-column: 1 / 6; }
.instructor__media .frame { aspect-ratio: 3 / 4; }
.instructor__body { grid-column: 7 / 13; padding-bottom: clamp(0rem, 3vw, 2.5rem); }
.instructor__body h2 { font-size: var(--size-big); margin-bottom: 1.4rem; }
.instructor__body p { max-width: 30rem; margin-bottom: 1.1rem; }
.instructor__sign {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.instructor__sign strong { font-family: var(--font-display); letter-spacing: -0.02em; }
.instructor__sign span { font-size: var(--size-label); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }

@media (max-width: 900px) {
  .instructor__media, .instructor__body { grid-column: 1 / -1; }
}

/* --- final CTA --- */
.cta-final { text-align: left; }
.cta-final h2 {
  font-size: clamp(3rem, 10vw, 8.5rem);
  max-width: 12ch;
}
.cta-final h2 em { font-style: normal; color: var(--olive); }
.cta-final__row {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-final__row p { font-size: var(--size-small); max-width: 22rem; opacity: 0.8; }

/* ============================================================
   PAGE HEADERS (inner pages)
   ============================================================ */

.page-head {
  padding-top: clamp(7.5rem, 16vh, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.page-head h1 { font-size: clamp(3.4rem, 11vw, 9.5rem); }
.page-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-head__row p { max-width: 26rem; font-size: var(--size-small); }

/* ============================================================
   CLASSES page
   ============================================================ */

.filters {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: var(--line);
}
.filter-btn {
  padding: 0.6rem 1.3rem;
  border: var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

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

/* one consistent row system — every class: image + number/title/desc/specs/note/CTA */
.class-row {
  border-top: var(--line);
  padding-block: clamp(2.75rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.class-row:last-child { border-bottom: var(--line); }
.class-row[hidden] { display: none; }

/* landscape image with the booking CTA beneath it; side alternates */
/* both pinned to grid row 1 so text and image always sit side by side,
   regardless of which column each lands in */
.class-row__body { grid-column: 1 / 7; grid-row: 1; }
.class-row__media {
  grid-column: 8 / 13;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-start;
}
.class-row__media .frame { width: 100%; aspect-ratio: 16 / 10; }

/* alternate image to the left on even rows */
.class-row:nth-child(even) .class-row__body  { grid-column: 7 / 13; }
.class-row:nth-child(even) .class-row__media { grid-column: 1 / 6; }

.class-row__index {
  font-size: var(--size-label);
  letter-spacing: 0.12em;
  color: var(--olive);
  margin-bottom: 0.8rem;
}
.class-row__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  line-height: 1.04;
  margin-bottom: 1rem;
}
.class-row__desc { max-width: 34em; font-size: var(--size-small); opacity: 0.85; }

.class-row__specs {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
}
.class-row__specs div { min-width: 5.5rem; }
.class-row__specs dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0;
}
.class-row__specs dd { margin: 0.1rem 0 0; font-size: var(--size-small); font-weight: 500; }

.class-row__note {
  margin-top: 1.4rem;
  font-size: var(--size-small);
  opacity: 0.7;
  max-width: 26rem;
}

@media (max-width: 900px) {
  .class-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .class-row__body,
  .class-row:nth-child(even) .class-row__body { grid-column: 1 / -1; grid-row: auto; }
  .class-row__media,
  .class-row:nth-child(even) .class-row__media { grid-column: 1 / -1; grid-row: auto; }
  .class-row__media .frame { aspect-ratio: 16 / 11; }
}

/* schedule */
.schedule { background: var(--charcoal); color: var(--cream); border-radius: var(--radius-panel); }
.schedule__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.schedule__head h2 { font-size: var(--size-big); }
.schedule__head p { font-size: var(--size-small); opacity: 0.7; max-width: 22rem; }

.schedule__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
}
.day {
  border: var(--line-light);
  border-radius: var(--radius-panel);
  padding: 1.3rem 1.4rem 1.5rem;
  background: rgba(241, 239, 232, 0.03);
}
.day h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.day li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(241, 239, 232, 0.12);
  font-size: var(--size-small);
}
.day li span:last-child { opacity: 0.6; white-space: nowrap; }

/* ============================================================
   GALLERY page
   ============================================================ */

.masonry {
  columns: 3;
  column-gap: clamp(0.9rem, 1.8vw, 1.5rem);
}
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 520px)  { .masonry { columns: 1; } }

.masonry figure {
  break-inside: avoid;
  margin: 0 0 clamp(0.9rem, 1.8vw, 1.5rem);
  position: relative;
}

.masonry-item {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--mineral);
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}
.masonry-item img {
  width: 100%;
  transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 16, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.masonry-item:hover img,
.masonry-item:focus-visible img { transform: scale(1.035); }
.masonry-item:hover::after,
.masonry-item:focus-visible::after { opacity: 1; }

.masonry figcaption {
  margin-top: 0.55rem;
  font-size: var(--size-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 14, 0.96);
  color: var(--cream);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
}
.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease-out);
}
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem);
}
.lightbox__count { font-size: var(--size-label); letter-spacing: 0.14em; }
.lightbox__close,
.lightbox__nav button {
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(241, 239, 232, 0.35);
  border-radius: var(--radius-pill);
  color: var(--cream);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s;
}
.lightbox__close:hover,
.lightbox__nav button:hover { background: var(--cream); color: var(--ink); }

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.6rem;
  filter: none;
}
.lightbox__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem) 1.5rem;
}
.lightbox__caption { font-size: var(--size-small); opacity: 0.8; }
.lightbox__nav { display: flex; gap: 0.6rem; }

/* ============================================================
   CONTACT page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3.5vw, 4rem);
  align-items: start;
}

.contact-info { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 2.4rem; }

.contact-info .frame { aspect-ratio: 4 / 3; }

.info-block { border-top: var(--line); padding-top: 1.1rem; }
.info-block h2 {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.7rem;
}
.info-block p, .info-block li { font-size: var(--size-body); }
.info-block a { border-bottom: 1px solid rgba(20, 20, 16, 0.25); transition: border-color 0.25s; }
.info-block a:hover { border-color: var(--ink); }

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(20, 20, 16, 0.14);
  font-size: var(--size-small);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list span:last-child { font-variant-numeric: tabular-nums; }

.contact-form-panel {
  grid-column: 6 / 13;
  background: var(--mineral);
  border-radius: var(--radius-panel);
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
.contact-form-panel h2 {
  font-family: var(--font-display);
  font-size: var(--size-mid);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-bottom: 0.6rem;
}
.contact-form-panel > p { font-size: var(--size-small); opacity: 0.75; margin-bottom: 2rem; max-width: 28rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 1.4rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--size-body);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(20, 20, 16, 0.18);
  border-radius: 0.85rem;
  padding: 0.85rem 1.05rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(95, 98, 71, 0.18);
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.form-foot small { font-size: 0.75rem; opacity: 0.6; max-width: 18rem; }
.form-success {
  grid-column: 1 / -1;
  background: var(--sage);
  color: var(--ink);
  padding: 1rem 1.3rem;
  border-radius: 0.85rem;
  font-size: var(--size-small);
  font-weight: 500;
}

.map-panel {
  margin-top: clamp(1.5rem, 3.5vw, 4rem);
  border-radius: var(--radius-panel);
  overflow: hidden;
  position: relative;
  background: var(--sage);
  min-height: 20rem;
  display: flex;
}
.map-panel__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 20, 16, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 16, 0.08) 1px, transparent 1px);
  background-size: 3.2rem 3.2rem;
}
.map-panel__pin {
  position: absolute;
  top: 46%; left: 58%;
  width: 1rem; height: 1rem;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(20, 20, 16, 0.15);
}
.map-panel__card {
  position: relative;
  margin: auto auto 1.5rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-panel);
  padding: 1.4rem 1.6rem;
  max-width: 20rem;
}
.map-panel__card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 0.4rem;
}
.map-panel__card p { font-size: var(--size-small); margin-bottom: 0.9rem; }

@media (max-width: 900px) {
  .contact-info, .contact-form-panel { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
  margin-top: var(--section);
}

.site-footer__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: var(--line-light);
}
.site-footer__cta h2 { font-size: var(--size-big); max-width: 14ch; }
.site-footer__cta h2 em { font-style: normal; color: var(--sage); }

.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.site-footer__brand p { font-size: var(--size-small); opacity: 0.6; max-width: 16rem; margin-top: 0.9rem; }
.site-footer h3 {
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.site-footer__cols li { padding: 0.28rem 0; }
.site-footer__cols a {
  font-size: var(--size-small);
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
}
.site-footer__cols a:hover { opacity: 1; color: var(--sage); }
.site-footer address { font-style: normal; font-size: var(--size-small); opacity: 0.85; line-height: 1.8; }

.site-footer__word {
  font-size: clamp(3.5rem, 13vw, 12rem);
  color: rgba(241, 239, 232, 0.1);
  text-align: center;
  user-select: none;
  line-height: 1;
  margin-block: 1rem 2rem;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: var(--line-light);
  padding-top: 1.4rem;
  font-size: 0.75rem;
  opacity: 0.55;
}

@media (max-width: 800px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
