/* The Space Pilates Studio — black / white / beige */

@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/ArchivoBlack.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Glacial Indifference';
  src: url('../fonts/GlacialIndifference-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Glacial Indifference';
  src: url('../fonts/GlacialIndifference-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  --beige: #F2EDE3;
  --beige-deep: #E6DECF;
  --ink: #1A1815;
  --white: #FFFFFF;
  --muted: #6E6759;
  --line: rgba(26, 24, 21, 0.12);
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --body: 'Glacial Indifference', 'Century Gothic', 'Futura', sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 19px; }

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.02rem, 7vw, 4.21rem); }
h2 { font-size: clamp(1.43rem, 4vw, 2.36rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

.kicker {
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-bottom: 1.1rem;
}

.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 44ch; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--beige) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  gap: 24px;
}
.logo {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: lowercase;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo span { display: block; font-family: var(--body); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.42em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: clamp(14px, 2.5vw, 34px); align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--beige); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--beige); }
.btn-light { border-color: var(--beige); background: var(--beige); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--beige); }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 130px) var(--pad); }
.tight { padding-top: clamp(40px, 5vw, 70px); }
.wrap { max-width: 1200px; margin: 0 auto; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* Video hero — full-bleed film with the wordmark over it */
.video-hero {
  position: relative;
  height: calc(100vh - 74px);
  height: calc(100svh - 74px);
  min-height: 480px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.video-hero video,
.video-hero .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.video-hero .slide { opacity: 0; transition: opacity 1.8s ease; }
.video-hero .slide.show { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.03); } }
.video-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 21, 0.32);
  z-index: 1;
}
.hero-logo { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 0 16px; }
/* When the film is playing, lift the wordmark into the clear top of frame
   so it never sits over the video's own captions */
.video-hero.has-video { align-items: flex-start; }
.video-hero.has-video .hero-logo { margin-top: clamp(64px, 16vh, 160px); }
.video-hero.has-video .hero-logo .mark { font-size: clamp(3rem, 11vw, 8rem); }
.hero-logo .mark {
  font-family: var(--display);
  text-transform: lowercase;
  font-size: clamp(3.4rem, 14vw, 12rem);
  line-height: 0.95;
  display: block;
}
.hero-logo .sub {
  display: block;
  margin-top: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55em;
  font-size: clamp(0.7rem, 1.6vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
}
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  text-decoration: none;
  font-size: 1.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) {
  .video-hero .slide.show { animation: none; }
  .hero-scroll { animation: none; }
}

/* Welcome intro (under the video hero) */
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.intro h1 { max-width: 14ch; margin: 0 auto 1.6rem; }
.intro .lead { margin: 0 auto 2.4rem; }
.intro .hero-actions { justify-content: center; }

/* Page hero (inner pages) */
.page-hero { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(30px, 4vw, 60px); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split > div > h2 { margin-bottom: 1.2rem; }
.split p + p { margin-top: 1em; }

/* Photos */
.photo {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.photo.wide { aspect-ratio: 16 / 10; }
.photo.square { aspect-ratio: 1; }

/* Photo placeholders — replace with real photos */
.ph {
  background: linear-gradient(160deg, var(--beige-deep), #D8CDB8);
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.ph.wide { aspect-ratio: 16 / 9; }
.ph.square { aspect-ratio: 1; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 32px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 32px); }
.card {
  background: var(--white);
  border-radius: 18px;
  padding: clamp(28px, 3.5vw, 44px);
}
.card h3 { margin-bottom: 0.8rem; }
.card .num {
  font-family: var(--display);
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  width: 44px; height: 44px;
  line-height: 42px;
  text-align: center;
}

/* Dark band */
.form-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  display: none;
}
.form-note.show { display: block; }
.form-note.ok { color: var(--ink); font-weight: 700; }
.form-note.err { color: #a3341f; }

/* Spam trap field. Moved off-screen rather than display:none, because some bots
   skip anything hidden outright and this one is meant to be found and filled. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* A vertical stack of blocks inside ONE section. Without this each block needs
   its own <section>, and consecutive sections stack their padding into gaps of
   200px and up. Spacing between the blocks is set here instead. */
.flow > * + * { margin-top: clamp(40px, 5vw, 76px); }
/* A full section's bottom padding stacked on the next section's top padding
   reads as dead space. Trims one side so the boundary matches the ~130px the
   rest of the page uses. */
.flow-section { padding-bottom: clamp(40px, 5vw, 70px); }
.flow .pull { margin-top: clamp(48px, 6vw, 88px); }
.byline { margin-top: 2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--muted);
}

.pull {
  font-family: var(--display, inherit);
  font-size: clamp(1.35rem, 4.2vw, 2.44rem);
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

.band { background: var(--ink); color: var(--beige); border-radius: 24px; margin: 0 var(--pad); padding: clamp(48px, 7vw, 90px) clamp(28px, 5vw, 80px); }
.band .kicker { color: rgba(242, 237, 227, 0.55); }
.band h2 { color: var(--white); }

/* Pricing */
/* Five equal cards left Packs & Casual orphaned on its own row with three empty
   slots beside it. The intro offer and the pack are not memberships anyway, so
   they sit as full-width features and the three membership tiers get a clean
   row of three. */
.pricing > * + * { margin-top: 20px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.price-feature {
  background: var(--white);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.price-feature.featured { background: var(--ink); color: var(--beige); }
.price-feature.featured h3 { color: var(--white); }
.price-feature.featured .per { color: rgba(242, 237, 227, 0.6); }
.price-feature.featured li { border-bottom-color: rgba(242, 237, 227, 0.15); }
.price-feature h3 { margin-top: 14px; }
.price-feature .amount { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; margin-top: 6px; }
.price-feature .per { font-size: 0.92rem; color: var(--muted); margin-top: 8px; }
.price-feature ul { list-style: none; margin: 0 0 22px; font-size: 1rem; }
.price-feature li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.price-feature .btn { text-align: center; }
.price-card { background: var(--white); border-radius: 18px; padding: 34px 30px; display: flex; flex-direction: column; gap: 10px; }
.price-card.featured { background: var(--ink); color: var(--beige); }
.price-card .amount { font-family: var(--display); font-size: 2.4rem; }
.price-card .per { font-size: 0.92rem; color: var(--muted); }
.price-card.featured .per { color: rgba(242, 237, 227, 0.6); }
.price-card ul { list-style: none; margin: 8px 0 18px; font-size: 1rem; }
.price-card li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.price-card.featured li { border-bottom-color: rgba(242, 237, 227, 0.15); }
.price-card .btn { margin-top: auto; text-align: center; }
.tag { align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; background: var(--beige); color: var(--ink); border-radius: 999px; padding: 5px 12px; }
.price-feature .tag { display: inline-block; }
.tag-light { background: var(--line); color: var(--ink); }

/* Testimonials */
.quote-card { background: var(--white); border-radius: 18px; padding: 36px; }
/* Award note above the reviews. Deliberately not a link: the awards site still
   lists the studio's previous address. */
.award {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 1.6rem auto 0;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.award strong { font-size: 1rem; letter-spacing: 0.01em; }
.award span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
@media (max-width: 560px) { .award { border-radius: 20px; padding: 14px 20px; } }

.quote-card p { font-size: 1.08rem; }
.quote-card .stars { color: var(--ink); letter-spacing: 3px; margin-bottom: 14px; }
.quote-card cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  font-weight: 700;
  font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.3rem; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 26px; max-width: 62ch; color: var(--muted); }

/* Forms */
form { display: grid; gap: 16px; }
label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
input, textarea, select {
  font: inherit;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--ink); border-color: transparent; }

/* Contact */
.contact-info { display: grid; gap: 22px; }
.contact-info h3 { margin-bottom: 4px; }
.map-embed { border: 0; width: 100%; height: 420px; border-radius: 18px; filter: grayscale(0.9); }

/* Footer */
footer { background: var(--ink); color: var(--beige); margin-top: clamp(64px, 9vw, 130px); padding: clamp(48px, 7vw, 90px) var(--pad) 36px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.foot-grid h3 { font-size: 0.9rem; margin-bottom: 16px; color: rgba(242, 237, 227, 0.6); }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: var(--beige); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-logo { font-family: var(--display); font-size: 1.6rem; text-transform: lowercase; margin-bottom: 12px; }
.foot-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(242, 237, 227, 0.15); font-size: 0.8rem; color: rgba(242, 237, 227, 0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Ticker */
.ticker {
  background: var(--ink);
  color: var(--beige);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.ticker span { display: inline-block; padding-left: 100%; animation: tick 28s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; padding-left: 0; } }

/* Why cards (4-up numbered) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 22px); }

/* Arch photo cards */
.archrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.arch {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 400px 400px 26px 26px;
  height: 600px;
  text-decoration: none;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.6s ease; }
.arch:hover img { transform: scale(1.05); }
.arch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.25) 45%, rgba(10, 10, 10, 0) 70%);
}
.arch .txt { position: absolute; left: 28px; right: 28px; bottom: 34px; color: var(--white); z-index: 2; }
.arch .txt h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--white); }
.arch .txt p { font-size: 1rem; color: #E8E4DC; margin-bottom: 14px; }
.arch .txt .go {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--white);
  padding-bottom: 3px;
}

/* Arch-topped photo (single images) */
.photo.arch-top { border-radius: 340px 340px 18px 18px; }

/* Instructors */
.instr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.instr { text-align: center; }
.instr img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 200px 200px 16px 16px; margin-bottom: 18px; }
.instr h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.instr .role { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.instr p { font-size: 1rem; color: var(--muted); }
@media (max-width: 1000px) { .instr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .instr-grid { grid-template-columns: 1fr; } }

/* Instagram grid */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-grid a { display: block; overflow: hidden; border-radius: 12px; }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.ig-grid a:hover img { transform: scale(1.06); }
@media (max-width: 1000px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* Chat widget */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); color: var(--beige);
  border: none; cursor: pointer; font-size: 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); transition: 0.2s;
}
.chat-fab:hover { transform: scale(1.07); }
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 90;
  width: min(360px, calc(100vw - 44px));
  background: var(--white); border: 1px solid #E4E0D7;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  display: none; flex-direction: column;
  max-height: min(560px, 70vh);
  border-radius: 18px 18px 4px 18px; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head { background: var(--ink); color: var(--beige); padding: 16px 20px; }
.chat-head .t { font-family: var(--display); font-size: 17px; text-transform: lowercase; }
.chat-head .s { font-size: 12px; color: #A49E91; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }
.chat-body { padding: 16px; overflow-y: auto; flex: 1; background: #FAF9F6; }
.msg { max-width: 85%; padding: 11px 15px; margin-bottom: 10px; font-size: 14.5px; line-height: 1.5; border-radius: 14px; }
.msg.bot { background: var(--beige); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.user { background: var(--ink); color: var(--white); margin-left: auto; border-bottom-right-radius: 4px; }
.msg a { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: #FAF9F6; }
.chip { border: 1px solid var(--ink); background: var(--white); padding: 7px 13px; border-radius: 999px; font-size: 12.5px; cursor: pointer; font-family: var(--body); }
.chip:hover { background: var(--ink); color: var(--white); }
.chat-in { display: flex; border-top: 1px solid #E4E0D7; background: var(--white); }
.chat-in input { flex: 1; border: none; border-radius: 0; padding: 14px 16px; font-size: 14.5px; font-family: var(--body); outline: none; }
.chat-in button { border: none; background: var(--ink); color: var(--white); padding: 0 20px; cursor: pointer; font-size: 16px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .archrow { grid-template-columns: 1fr; }
  .arch { height: 520px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .split, .grid-3, .grid-2, .foot-grid { grid-template-columns: 1fr; }
  .price-feature { grid-template-columns: 1fr; }
  .nav-toggle { display: block; font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--beige);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px var(--pad) 28px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero { min-height: 70vh; }
  .split.flip > div:first-child { order: 2; }
}
