/* ==========================================================================
   Core Studio | Mind & Body
   Brand tokens follow the Core Studio brandbook (logo "C· CORE / MIND & BODY")
   and the mobile app theme (app/src/global.scss).
   Shape rule: photos = arch (rounded top), buttons = pill, panels = 24px.
   Theme: brand-locked light (cream) with one burgundy colour block (app).
   ========================================================================== */

:root {
  --bg: #fff9ed;
  --surface: #f9f3e8;
  --surface-2: #f3ede2;
  --surface-3: #e8e2d7;
  --primary: #3c0004;
  --primary-2: #5d0e11;
  --gold: #cca830;
  --gold-light: #ffe088;
  --gold-dark: #735c00;
  --text: #1d1b15;
  --muted: #564241;
  --line: #dcc0be;
  --on-primary: #fff3e2;

  --serif: "Noto Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;

  --r-panel: 24px;
  --r-pill: 999px;
  --shadow: 0 18px 50px -24px rgba(60, 0, 4, 0.28);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --nav-h: 72px;

  /* z-index scale */
  --z-nav: 50;
  --z-menu: 60;
  --z-grain: 70;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--on-primary); }

/* paper grain, fixed and non-interactive (never on scroll containers) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 18px; border-radius: var(--r-pill); text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.display { font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: 1.02; }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 18px;
}
em, .i { font-style: italic; }
.dot { color: var(--gold); }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--primary);
  --fg-btn: var(--on-primary);
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--bg-btn);
  background: var(--bg-btn);
  color: var(--fg-btn);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn i { font-size: 1.15em; transition: transform 0.35s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--primary); border-color: rgba(60, 0, 4, 0.28); }
.btn--ghost:hover { background: var(--primary); color: var(--on-primary); }
.btn--light { --bg-btn: var(--on-primary); --fg-btn: var(--primary); }
.btn--gold { --bg-btn: var(--gold); --fg-btn: #2a1d00; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  height: var(--nav-h);
  transition: background-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.nav.is-solid {
  background: rgba(255, 249, 237, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(60, 0, 4, 0.08);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.32em; }
.nav__links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--text);
  padding: 6px 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold); transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav__links a[aria-current="page"] { color: var(--primary); }
.nav .btn { padding: 11px 20px; font-size: 0.88rem; }
.burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(60, 0, 4, 0.2); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; color: var(--primary); font-size: 1.3rem;
}
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--primary); color: var(--on-primary);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 40px) 36px);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top img { height: 34px; filter: brightness(0) invert(95%) sepia(10%) saturate(300%); }
.menu__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 243, 226, 0.3); background: none; color: inherit; font-size: 1.3rem; cursor: pointer; }
.menu ul { list-style: none; margin: auto 0; padding: 0; }
.menu li a { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3.2rem); text-decoration: none; padding: 6px 0; color: var(--on-primary); }
.menu li a[aria-current="page"] { color: var(--gold-light); }

/* ---------- Arch photo frame (signature motif) ---------- */
.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px var(--r-panel) var(--r-panel);
  background: var(--surface-2);
  isolation: isolate;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--full { border-radius: 999px 999px 0 0; }
.frame { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--surface-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
section { position: relative; }
.pad { padding-block: clamp(88px, 12vw, 168px); }
.pad-s { padding-block: clamp(64px, 8vw, 112px); }

/* Page hero (inner pages) */
.phero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(56px, 8vw, 104px); }
.phero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.phero__media { aspect-ratio: 4 / 5; max-height: 560px; }
.phero .lead { margin-top: 24px; }

/* ---------- Home hero ---------- */
.hero { min-height: 100dvh; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 48px; display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero .lead { margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; height: min(76dvh, 720px); }
.hero__media .arch--main { position: absolute; right: 0; top: 0; width: 78%; height: 100%; }
.hero__media .arch--small { position: absolute; left: 0; bottom: 6%; width: 38%; aspect-ratio: 3 / 4.4; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid rgba(60, 0, 4, 0.08);
  font-size: 0.85rem; color: var(--muted);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #3f8f5a; box-shadow: 0 0 0 4px rgba(63, 143, 90, 0.16); }
.status.is-closed .status__dot { background: var(--line); box-shadow: 0 0 0 4px rgba(220, 192, 190, 0.3); }
.status b { color: var(--text); font-weight: 600; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto p.big {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.9vw, 3.3rem);
  line-height: 1.22; letter-spacing: -0.015em;
  max-width: 22ch; margin: 0 auto; color: var(--primary);
}
.manifesto .sig { margin-top: 44px; display: inline-flex; flex-direction: column; align-items: center; gap: 14px; }
.manifesto .sig img { height: 56px; }
.manifesto .sig span { font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

/* ---------- Disciplines (sticky split) ---------- */
.disc { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.disc__aside { position: sticky; top: calc(var(--nav-h) + 48px); }
.disc__aside .lead { margin-top: 22px; }
.disc__aside .link { margin-top: 28px; }
.disc__list { display: grid; gap: clamp(56px, 8vw, 120px); }
.disc__item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.disc__item:nth-child(even) .disc__img { order: 2; }
.disc__img { aspect-ratio: 3 / 4.2; }
.disc__item h3 { margin-bottom: 14px; }
.disc__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--muted);
  font-size: 0.8rem; font-weight: 600;
}

/* ---------- App block (the one burgundy colour block) ---------- */
.appx { background: var(--primary); color: var(--on-primary); overflow: hidden; }
.appx h2, .appx h3 { color: var(--on-primary); }
.appx .muted { color: rgba(255, 243, 226, 0.72); }
.appx__pin { min-height: 100dvh; display: flex; align-items: center; padding-block: 64px; }
.appx__grid { display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; width: 100%; }
.appx__intro h2 { margin-bottom: 20px; }
.appx__intro .btn { margin-top: 28px; }
.appx__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 50% 55%, rgba(204, 168, 48, 0.16), transparent 70%),
    radial-gradient(60% 60% at 90% 10%, rgba(93, 14, 17, 0.9), transparent 70%);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step { opacity: 0.38; transition: opacity 0.5s var(--ease); padding-left: 22px; position: relative; }
.step::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); transform: scale(0); transition: transform 0.5s var(--ease);
}
.step.is-active { opacity: 1; }
.step.is-active::before { transform: scale(1); }
.step h3 { font-size: 1.35rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.97rem; }

/* 3D iPhone: stacked rounded layers give a real rounded thickness */
.phone-stage { perspective: 1600px; display: flex; justify-content: center; position: relative; z-index: 1; }
.phone {
  --w: min(300px, 70vw);
  --ratio: 2.1;
  position: relative; width: var(--w); aspect-ratio: 1 / var(--ratio);
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(8deg) rotateZ(-2deg);
  will-change: transform;
}
.phone__layer {
  position: absolute; inset: 0; border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(90deg, #2a2522, #6d635b 18%, #3b3430 50%, #6d635b 82%, #2a2522);
}
.phone__back {
  position: absolute; inset: 0; border-radius: calc(var(--w) * 0.155);
  background: radial-gradient(120% 80% at 30% 20%, #6b1a1e, #3c0004 60%, #2a0003);
  transform: translateZ(-12px) rotateY(180deg);
  backface-visibility: hidden;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone__back img { width: 26%; filter: brightness(0) invert(88%) sepia(30%) saturate(500%) hue-rotate(5deg); opacity: 0.9; }
.phone__cam {
  position: absolute; top: 4%; left: 7%; width: 34%; aspect-ratio: 1; border-radius: 28%;
  background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone__front {
  position: absolute; inset: 0; border-radius: calc(var(--w) * 0.155);
  background: #0e0c0b; padding: calc(var(--w) * 0.04);
  transform: translateZ(1px);
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1.5px #57504a, inset 0 0 0 4px #141110;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * 0.12); background: var(--bg);
}
.phone__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0;
}
.phone__screen img.is-on { opacity: 1; }
.phone__island {
  position: absolute; top: 2.4%; left: 50%; width: 31%; height: 3.6%; transform: translateX(-50%);
  background: #0b0a09; border-radius: 99px; z-index: 2;
}
.phone__glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 38%);
  mix-blend-mode: screen;
}
.phone__shadow {
  position: absolute; left: 50%; bottom: -46px; width: 80%; height: 40px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent);
  filter: blur(6px);
}
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px;
  border-radius: 14px; border: 1px solid rgba(255, 243, 226, 0.25); text-decoration: none;
  color: var(--on-primary); transition: background-color 0.3s, border-color 0.3s;
}
.store:hover { background: rgba(255, 243, 226, 0.08); border-color: rgba(255, 243, 226, 0.5); }
.store i { font-size: 1.6rem; }
.store small { display: block; font-size: 0.68rem; opacity: 0.75; line-height: 1.1; }
.store b { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.2; }

/* ---------- Plans bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; margin-top: 56px; }
.tile {
  position: relative; border-radius: var(--r-panel); padding: clamp(24px, 3vw, 40px);
  background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  text-decoration: none; color: inherit;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.tile .price { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--primary); line-height: 1; }
.tile .price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin-left: 6px; }
.tile .from { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.tile--a { grid-column: span 7; grid-row: span 2; background: var(--primary); color: var(--on-primary); }
.tile--a h3, .tile--a .price { color: var(--on-primary); }
.tile--a > * { position: relative; z-index: 1; }
.tile--a::after {
  content: ""; position: absolute; right: -4%; bottom: -12%; width: 46%; aspect-ratio: 160 / 256;
  background: var(--on-primary); opacity: 0.06; pointer-events: none;
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat;
  mask: url("../img/logo-mark.png") center / contain no-repeat;
  transition: transform 0.8s var(--ease);
}
a.tile--a:hover::after { transform: translateY(-10px) rotate(-3deg); }
.tile--a .from, .tile--a .price small, .tile--a .muted { color: rgba(255, 243, 226, 0.72); }
.tile--b { grid-column: span 5; background: var(--surface-2); }
.tile--c { grid-column: span 6; flex-direction: row; align-items: flex-end; }
.tile--c.span-12 { grid-column: span 12; }
.tile--c.span-6 { grid-column: span 6; }
.tile--img { padding: 0; grid-column: span 5; min-height: 260px; }
.tile--img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile--wide { grid-column: span 7; background: var(--surface-3); }
.tile .go {
  position: absolute; right: clamp(20px, 2.4vw, 32px); top: clamp(20px, 2.4vw, 32px);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; opacity: 0.6; transition: transform 0.4s var(--ease), opacity 0.3s;
}
a.tile:hover .go { transform: rotate(-45deg); opacity: 1; }
.tile .incl { display: flex; flex-wrap: wrap; gap: 6px; }
.tile--a .chip { background: rgba(255, 243, 226, 0.1); color: var(--on-primary); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.gallery figure { margin: 0; }
.g1 { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.g2 { grid-column: 6 / span 7; aspect-ratio: 16 / 10; margin-top: 18%; }
.g3 { grid-column: 2 / span 6; aspect-ratio: 16 / 10; margin-top: -6%; }
.g4 { grid-column: 9 / span 4; aspect-ratio: 3 / 4; margin-top: -14%; }
.gallery .frame, .gallery .arch { height: auto; }

/* ---------- Today / timetable list ---------- */
.today__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.classes { display: grid; gap: 10px; }
.cls {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 22px; border-radius: 18px; background: var(--surface);
  transition: background-color 0.3s;
}
.cls:hover { background: var(--surface-2); }
.cls__time { font-family: var(--serif); font-size: 1.35rem; color: var(--primary); line-height: 1.1; }
.cls__time small { display: block; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.cls__name { font-family: var(--serif); font-size: 1.2rem; color: var(--text); }
.cls__info { font-size: 0.86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.cls__info span { display: inline-flex; align-items: center; gap: 5px; }
.places { font-size: 0.82rem; font-weight: 700; padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.places.is-open { background: rgba(63, 143, 90, 0.12); color: #2c6b41; }
.places.is-low { background: rgba(204, 168, 48, 0.18); color: var(--gold-dark); }
.places.is-full { background: rgba(60, 0, 4, 0.08); color: var(--primary); }
.skel { height: 82px; border-radius: 18px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 40px 28px; border-radius: var(--r-panel); background: var(--surface); text-align: center; color: var(--muted); }
.empty i { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 10px; }
.empty .btn { margin-top: 18px; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.visit__media { min-height: 480px; }
.hours { display: grid; gap: 2px; margin: 28px 0 32px; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(60, 0, 4, 0.08); font-size: 0.97rem; }
.hours div:last-child { border-bottom: 0; }
.hours div.is-today { color: var(--primary); font-weight: 700; }
.hours span:last-child { font-variant-numeric: tabular-nums; }
.contact-lines { display: grid; gap: 12px; margin-bottom: 32px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.contact-lines i { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); font-size: 1.1rem; flex: none; }

/* ---------- Footer ---------- */
.foot { background: var(--surface-2); padding: clamp(64px, 8vw, 104px) 0 32px; margin-top: 0; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot__brand img { height: 120px; width: auto; margin-bottom: 18px; }
.foot h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--text); font-size: 0.95rem; }
.foot ul a:hover { color: var(--primary); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(60, 0, 4, 0.1); font-size: 0.85rem; color: var(--muted); }
.foot__base a { text-decoration: none; }

/* ---------- Plans page ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 36px; }
.tab {
  padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid rgba(60, 0, 4, 0.18);
  background: transparent; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--primary);
  transition: background-color 0.3s, color 0.3s;
}
.tab[aria-selected="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.family-desc { margin: -16px 0 32px; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.plan {
  border-radius: var(--r-panel); padding: 30px 28px; background: var(--surface);
  display: flex; flex-direction: column; gap: 18px; position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.is-feature { background: var(--primary); color: var(--on-primary); }
.plan.is-feature h3, .plan.is-feature .price { color: var(--on-primary); }
.plan.is-feature .muted, .plan.is-feature .price small { color: rgba(255, 243, 226, 0.72); }
.plan.is-feature .chip { background: rgba(255, 243, 226, 0.12); color: var(--on-primary); }
.plan h3 { font-size: 1.5rem; }
.plan .price { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--primary); }
.plan .price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.95rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li i { color: var(--gold); margin-top: 4px; }
.plan .per { font-size: 0.85rem; }
.ribbon { align-self: flex-start; margin-bottom: -6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); background: var(--gold); color: #2a1d00; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.note { padding: 28px; border-radius: var(--r-panel); background: var(--surface-2); }
.note i { font-size: 1.6rem; color: var(--primary); }
.note h3 { font-size: 1.25rem; margin: 14px 0 8px; }
.note p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Planning page ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; width: 76px; padding: 14px 0; border-radius: 40px;
  border: 1px solid rgba(60, 0, 4, 0.14); background: transparent; cursor: pointer; text-align: center;
  transition: background-color 0.3s, color 0.3s;
}
.day small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.day b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--primary); line-height: 1.2; }
.day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] b { color: var(--on-primary); }
.day:disabled { opacity: 0.4; cursor: default; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 20px 0 28px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field select {
  appearance: none; -webkit-appearance: none;
  min-width: 200px; padding: 12px 40px 12px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(60, 0, 4, 0.22); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%233c0004' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  font: inherit; font-size: 0.95rem; color: var(--text); cursor: pointer;
}
.field select:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.plan-layout > * { min-width: 0; }
.side-card { position: sticky; top: calc(var(--nav-h) + 24px); padding: 32px; border-radius: var(--r-panel); background: var(--primary); color: var(--on-primary); }
.side-card h3 { color: var(--on-primary); font-size: 1.6rem; margin-bottom: 10px; }
.side-card p { color: rgba(255, 243, 226, 0.75); font-size: 0.95rem; }
.side-card .btn { margin-top: 10px; }
.side-card .hours div { border-color: rgba(255, 243, 226, 0.14); }
.side-card .hours div.is-today { color: var(--gold-light); }

/* ---------- Rules / prose ---------- */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule { padding: clamp(28px, 3vw, 40px); border-radius: var(--r-panel); background: var(--surface); }
.rule:nth-child(3n + 1) { background: var(--surface-2); }
.rule__n { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.rule h3 { font-size: 1.45rem; margin: 14px 0 14px; }
.rule ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; font-size: 0.97rem; }
.rule ul li::marker { color: var(--gold); }
.rule--wide { grid-column: 1 / -1; background: var(--primary) !important; color: var(--on-primary); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.rule--wide h3 { color: var(--on-primary); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 18px; background: var(--surface); padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-size: 1.2rem; color: var(--primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform 0.4s var(--ease); flex: none; margin-top: 4px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 70ch; }

/* Studio page */
.values { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.value { padding: 36px 30px; border-radius: var(--r-panel); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.value:first-child { background: var(--primary); color: var(--on-primary); grid-row: span 2; justify-content: flex-end; }
.value:first-child h3 { color: var(--on-primary); }
.value:first-child p { color: rgba(255, 243, 226, 0.76); }
.value i { font-size: 1.8rem; color: var(--gold); }
.value h3 { font-size: 1.5rem; }
.value p { margin: 0; color: var(--muted); }
.tour { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tour figure { margin: 0; }
.tour figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.tour figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--primary); }
.t1 { grid-column: span 4; } .t1 .arch { aspect-ratio: 3 / 4; }
.t2 { grid-column: span 8; } .t2 .frame { aspect-ratio: 16 / 9; }
.t3 { grid-column: span 7; } .t3 .frame { aspect-ratio: 16 / 9; }
.t4 { grid-column: span 5; } .t4 .arch { aspect-ratio: 4 / 4.3; }
.coaches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.coach .arch { aspect-ratio: 3 / 4; }
.coach h3 { font-size: 1.3rem; margin-top: 14px; }
.coach p { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }

/* Courses page */
.course { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.course + .course { margin-top: clamp(80px, 10vw, 144px); }
.course:nth-of-type(even) .course__media { order: 2; }
.course__media { aspect-ratio: 4 / 5; }
.course h2 { margin-bottom: 18px; }
.course .content { color: var(--muted); }
.course .content p { margin-bottom: 0.8em; }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.level { padding: 30px; border-radius: var(--r-panel); background: var(--surface); }
.level__bar { display: flex; gap: 5px; margin-bottom: 20px; }
.level__bar span { width: 22px; height: 5px; border-radius: 4px; background: var(--surface-3); }
.level__bar span.on { background: var(--primary); }
.level h3 { font-size: 1.4rem; margin-bottom: 8px; }
.level p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { padding: clamp(28px, 3vw, 44px); border-radius: var(--r-panel); background: var(--surface); }
.contact-card h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 12px; }
.contact-card p { color: var(--muted); }
.contact-card--dark { background: var(--primary); color: var(--on-primary); }
.contact-card--dark h2 { color: var(--on-primary); }
.contact-card--dark p { color: rgba(255, 243, 226, 0.76); }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--r-panel); filter: grayscale(0.4) sepia(0.15); }

/* Reveal helpers (initial state applied by JS only, so no-JS stays visible) */
.js [data-reveal] { opacity: 0; }
/* hero text waits for fonts + SplitText, then site.js reveals it (no-JS keeps it visible) */
.js .hero h1, .js .phero h1, .js [data-hero-fade] { visibility: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links, .nav .btn { display: none; }
  .burger { display: inline-flex; }
  .appx__grid { grid-template-columns: 1fr minmax(240px, 300px); }
  .appx__intro { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 32px); }
  .hero__grid, .phero__grid, .disc, .disc__item, .visit, .course, .plan-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero__media { height: 62vh; min-height: 420px; }
  .disc__aside { position: static; }
  .disc__item:nth-child(even) .disc__img, .course:nth-of-type(even) .course__media { order: 0; }
  .disc__img { aspect-ratio: 4 / 4.6; }
  .appx__pin { min-height: auto; padding-block: 96px; }
  .appx__grid { grid-template-columns: 1fr; text-align: left; }
  .phone-stage { margin: 24px 0 56px; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile { grid-column: auto; grid-row: auto; }
  .tile--c { flex-direction: column; align-items: stretch; }
  .tile--img { min-height: 280px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g1, .g2, .g3, .g4 { grid-column: auto; margin-top: 0; }
  .g2, .g3 { grid-column: 1 / -1; }
  .cls { grid-template-columns: 72px 1fr; }
  .cls .places { grid-column: 2; justify-self: start; }
  .visit__media { min-height: 360px; }
  .notes, .rules, .values { grid-template-columns: 1fr; }
  .value:first-child { grid-row: auto; }
  .tour { grid-template-columns: 1fr; }
  .tour > figure { grid-column: auto; }
  .side-card { position: static; }
  .foot__grid { grid-template-columns: 1fr; }
  .phero__media { max-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; }
  .menu { transition: none; }
}
