/* Pilates by Gracie */
:root {
  --paper: #e5e1d6;
  --stone: #e5e1d6;
  --greige: #cfcabf;
  --taupe: #55524a;
  --green: #555851;
  --ink: #211f1e;
  --muted: #55524a;
  --cream: #f5f3ee;
  --line: rgba(33, 31, 30, 0.22);
  --r: 22px;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Satoshi', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(3.2rem, 7.2vw, 7.4rem); line-height: 0.92; }
h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; }
h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.1; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.center { text-align: center; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 34px; }
.nav-links a, .nav a.link { font-size: 1rem; text-decoration: none; }
.nav-links a:hover, .nav a.link:hover { text-decoration: underline; }
.nav-end { display: flex; align-items: center; gap: 22px; }
.nav a, .btn { white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--taupe); color: var(--cream); border: 1px solid var(--taupe); border-radius: 999px; padding: 17px 34px; font: 500 1.05rem var(--sans); text-decoration: none; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { background: transparent; color: var(--taupe); }
.btn.light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.light:hover { background: transparent; color: var(--cream); }
.btn.ghost { background: transparent; color: var(--taupe); }
.btn.ghost:hover { background: var(--taupe); color: var(--cream); }
.btn.sm { padding: 11px 22px; font-size: 0.95rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: wait; }

.price { font: 500 2.6rem/1 var(--sans); letter-spacing: -0.03em; }
.price s { font-size: 0.5em; font-weight: 400; opacity: 0.6; margin-left: 12px; letter-spacing: 0; text-decoration-thickness: 1px; }

/* hero */
.hero { position: relative; margin: 0 20px; }
.stage { position: relative; height: calc(100svh - 104px); min-height: 560px; color: var(--cream); }
.hero-imgs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r); overflow: hidden; background: var(--taupe); animation: settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-imgs img { filter: grayscale(1) contrast(0.86) brightness(1.3); width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-imgs::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(33, 31, 30, 0.62), rgba(33, 31, 30, 0.14) 36%, rgba(33, 31, 30, 0) 56%); }
@keyframes settle { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-foot { position: absolute; z-index: 1; left: clamp(22px, 2.8vw, 48px); right: clamp(22px, 2.8vw, 48px); bottom: clamp(24px, 2.8vw, 44px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.stage h1 { font-size: clamp(3rem, 6.4vw, 6.8rem); white-space: nowrap; }
.hero-cta { flex: none; width: min(300px, 26vw); padding-bottom: 6px; }
.hero-cta p { font-size: 1.05rem; line-height: 1.45; margin: 0 0 18px; }
.btn s { font-weight: 400; opacity: 0.55; }

/* sections */
.panel { margin: 0 20px; border-radius: var(--r); padding: clamp(56px, 7vw, 110px) 0; }
.panel.sand { background: var(--stone); }
.panel.sand .grid21 > div { background: var(--paper); }
.panel.sand .head p { color: var(--taupe); }
.panel.dark { background: var(--taupe); color: var(--cream); }
.panel.dark .lines li { border-color: rgba(245, 243, 238, 0.28); }
.panel.dark .buy { background: var(--cream); color: var(--ink); }
.panel.dark .buy p { color: var(--muted); }
section { padding: clamp(72px, 10vw, 150px) 0; }
.statement { font-weight: 300; font-family: var(--display); font-size: clamp(2rem, 3.9vw, 3.6rem); line-height: 1.1; letter-spacing: -0.015em; text-align: center; max-width: 21em; margin: 0 auto; }
.statement + .btn { margin-top: 44px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.trio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); margin-bottom: 24px; }
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--muted); margin: 0; max-width: 22em; }

.head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.head p { color: var(--muted); max-width: 24em; margin: 0; font-size: 1.1rem; }
.grid21 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.grid21 > div { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--stone); padding: 14px 16px; font-weight: 500; }
.grid21 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grid21 .has { color: var(--cream); }
.grid21 .has::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(18, 16, 14, 0.45), transparent 40%); }
.grid21 b { position: relative; z-index: 1; font-weight: 500; }

.big { padding: clamp(64px, 9vw, 130px) 0; display: flex; align-items: center; justify-content: center; gap: 2.5vw; overflow: hidden; }
.bigword { color: var(--taupe); font-weight: 500; font-family: var(--display); font-size: 25vw; line-height: 0.8; letter-spacing: -0.03em; }
.arch { flex: none; width: 24vw; aspect-ratio: 3 / 4.2; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.offer { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.lines { list-style: none; padding: 0; margin: clamp(28px, 4vw, 48px) 0 0; }
.lines li { padding: 22px 0; border-top: 1px solid var(--line); font-size: 1.25rem; }
.lines li:last-child { border-bottom: 1px solid var(--line); }
.buy { position: sticky; top: 28px; background: var(--green); color: var(--cream); border-radius: var(--r); padding: clamp(28px, 3.4vw, 44px); }
.buy h3 { margin-bottom: 26px; }
.buy .price { font-size: 3.6rem; margin-bottom: 28px; }
.buy p { color: rgba(246, 242, 234, 0.65); font-size: 1rem; margin: 18px 0 0; }

details { border-top: 1px solid var(--line); padding: 24px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-size: 1.3rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 14px 0 0; color: var(--muted); max-width: 36em; }

.closing { position: relative; margin: 0 20px; height: min(86svh, 800px); border-radius: var(--r); overflow: hidden; color: var(--cream); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 30px; padding: clamp(24px, 4vw, 56px); }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.closing::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 16, 14, 0.8), rgba(18, 16, 14, 0.1) 60%); }
.closing > :not(img) { position: relative; z-index: 1; }
footer { padding: 36px 0 44px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.buybar { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; display: none; align-items: center; justify-content: space-between; gap: 14px; background: var(--taupe); color: var(--cream); border-radius: 999px; padding: 8px 8px 8px 24px; transform: translateY(140%); transition: transform 0.4s; }
.buybar.on { transform: none; }
.buybar .btn { padding: 12px 24px; }
.buybar s { opacity: 0.6; margin-left: 6px; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .hero-imgs { animation: none; } }

/* join + sign-in: photo beside the form */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.split-photo { position: sticky; top: 0; height: 100svh; padding: 20px; }
.split-photo .frame { position: relative; height: 100%; border-radius: var(--r); overflow: hidden; color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 3vw, 40px); }
.split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.split-photo .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 16, 14, 0.78), rgba(18, 16, 14, 0.05) 55%, rgba(18, 16, 14, 0.35)); }
.split-photo .frame > :not(img) { position: relative; z-index: 1; }
.split-form { padding: clamp(32px, 6vw, 96px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.split-form form { width: 100%; max-width: 540px; }
.split-form .top { display: flex; justify-content: flex-end; margin-bottom: 36px; max-width: 540px; }

label.field { display: block; margin-bottom: 22px; }
label.field span, .legend { display: block; font-size: 1rem; margin-bottom: 8px; }
input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='date'], input[type='url'], textarea {
  width: 100%; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(28, 26, 24, 0.22); border-radius: 12px; padding: 15px 16px; font: 400 1.05rem var(--sans); color: var(--ink); outline: none; transition: border-color 0.2s, background 0.2s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--ink); background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; border: 1px solid rgba(28, 26, 24, 0.22); background: rgba(255, 255, 255, 0.55); border-radius: 12px; padding: 15px 10px; transition: background 0.2s, color 0.2s; }
.choice input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); margin: 4px 0 26px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.summary { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 22px 0; font-size: 1.1rem; }
.summary .price { font-size: 1.9rem; }
.msg { border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; background: #ecd9cc; color: #6e3219; }
.msg.ok { background: #dfe3d4; color: #36421f; }
.card { max-width: 460px; }

/* member area */
.progress { height: 2px; background: var(--line); margin: 32px 0 40px; position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--ink); transition: width 0.6s; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { aspect-ratio: 1; border-radius: 14px; border: 0; background: var(--cream); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background 0.2s, color 0.2s; }
.day .n { font: 500 1.5rem/1 var(--sans); }
.day .t { font-size: 0.9rem; color: var(--muted); line-height: 1.3; }
.day:hover:not(.locked) { background: var(--greige); }
.day.today, .day.today:hover { background: var(--ink); color: var(--cream); }
.day.today .t { color: rgba(246, 242, 234, 0.7); }
.day.locked { background: transparent; box-shadow: inset 0 0 0 1px var(--line); cursor: default; color: #857f74; }
.day.locked .t { color: inherit; }
.player { background: var(--green); color: var(--cream); border-radius: var(--r); overflow: hidden; margin-bottom: 40px; }
.player .frame { aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player .info { padding: 26px clamp(20px, 4vw, 36px) 30px; display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.player h3 { font: 500 1.35rem/1.3 var(--sans); letter-spacing: 0; }
.player .info p { color: rgba(246, 242, 234, 0.7); margin: 10px 0 0; max-width: 46em; white-space: pre-line; }
.player .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.player .btn.ghost { background: transparent; color: var(--cream); }

/* admin */
.tabs { display: flex; gap: 8px; margin: 28px 0; flex-wrap: wrap; }
.tabs button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 11px 22px; font: 500 1rem var(--sans); cursor: pointer; color: var(--ink); }
.tabs button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 26px; }
.stat { background: var(--cream); border-radius: 14px; padding: 18px 20px; }
.stat b { display: block; font: 500 2.2rem/1.2 var(--sans); letter-spacing: -0.02em; }
.tablewrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th { text-align: left; color: var(--muted); font-weight: 400; }
th, td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
td.wrapcell { white-space: normal; min-width: 200px; }
.pill { color: var(--muted); }
.pill.yes { color: #3e6b2c; }
.pill.pending { color: #a0522d; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.dayrow { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 20px; }
.dayrow .n { font: 500 2rem/1 var(--sans); }
.dayrow .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; flex: 1; min-width: 120px; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); }

/* hand-drawn marks (recoloured through a mask) + paper grain */
.mark { display: block; background: currentColor; pointer-events: none; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mark.star { --m: url(/images/star.png); aspect-ratio: 452 / 460; }
.mark.logo { --m: url(/images/logo.png); aspect-ratio: 1764 / 720; height: 40px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
footer { align-items: center; }
footer .mark.logo { height: 34px; color: var(--taupe); }
.mark.lead { width: 54px; margin: 0 auto 34px; color: var(--taupe); }
.mark.bg { position: absolute; z-index: 0; color: var(--greige); }
.has-mark { position: relative; overflow: clip; }
.has-mark > :not(.mark) { position: relative; z-index: 1; }
#questions .mark.bg { width: clamp(120px, 15vw, 220px); right: clamp(-30px, 5vw, 90px); top: 14%; transform: rotate(-12deg); }
.split-form .mark.bg { width: clamp(260px, 30vw, 460px); right: -8vw; bottom: -90px; transform: rotate(24deg); }
.member .mark.bg { width: clamp(130px, 14vw, 190px); right: 0; top: 78px; transform: rotate(-10deg); }
body::after { content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.34; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .32 0 0 0 0 .29 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

@media (max-width: 900px) {
  .member .mark.bg { width: 76px; top: 70px; }
  #questions .mark.bg { width: 72px; right: 22px; top: 62px; }
  .mark.logo { height: 34px; }
  .brand { gap: 9px; }
  .nav-links, .nav-end .btn { display: none; }
  .brand { font-size: 1.6rem; }
  .hero, .panel { margin: 0 12px; }
  .stage { height: auto; min-height: 0; aspect-ratio: 3 / 4.1; }
  .hero-imgs { grid-template-columns: 1fr; }
  .hero-imgs > div:nth-child(n + 2) { display: none; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .stage h1 { white-space: normal; font-size: clamp(3.2rem, 15vw, 5rem); }
  .hero-cta { width: auto; padding: 0; }
  .hero-cta p { margin-bottom: 12px; }
  .hero-cta .long { display: none; }
  .hero-cta .btn { width: 100%; }
  .statement { text-align: left; }
  .trio { grid-template-columns: 1fr; gap: 44px; }
  .grid21 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .offer { grid-template-columns: 1fr; }
  .buy { position: static; }
  .closing { margin: 0 12px; height: 78svh; }
  .buybar { display: flex; }
  footer { padding-bottom: 96px; }
  .split { grid-template-columns: 1fr; }
  .split-photo { position: relative; height: 44svh; padding: 12px; }
  .split-form .top { display: none; }
  .two { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(3, 1fr); }
  .dayrow { grid-template-columns: 1fr; }
}
