/* base.css - the layout under the design: the reset and the mechanics of the lightbox, video tiles, slideshows and
   the Book page. Anything with a look (colours, typefaces) lives in dir-seamless.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; background-color: #0e0e10; color: #ece9e2; font-family: "Inter Tight", system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, blockquote { text-wrap: balance; }   /* never strand one word on a line of its own */
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background-color: #fff; color: #000; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
html.lb-open, html.menu-open { overflow: hidden; }
.t-main:focus { outline: none; }

/* mechanics shared by every direction */
.t-ph { display: block; width: 100%; overflow: hidden; }
.t-ph img { width: 100%; }
.t-logo-mark { display: inline-block; width: 1.6em; height: 1.6em; background-color: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.t-vid { display: block; width: 100%; text-align: left; }
.t-vid-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background-color: #000; }
.t-vid-poster img { width: 100%; height: 100%; object-fit: cover; }   /* also crops the black bars off YouTube's 4:3 posters */
.t-vid-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.t-vid-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background-color: rgba(0, 0, 0, .55); border: 1.5px solid rgba(255, 255, 255, .85); }
.t-vid-play::after { content: ""; position: absolute; left: 25px; top: 19px; border: 12px solid transparent; border-left: 18px solid #fff; border-right: 0; }
.t-reel { position: relative; }
.t-reel video { width: 100%; background-color: #000; object-fit: cover; }
.t-ext { font-size: .85em; }

/* lightbox: the picture is an <img> with a real src, never a background, so nothing can reset it */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto; align-items: center; justify-items: center; background-color: rgba(8, 8, 9, .96); padding: 24px 0 18px; }
.lb-img { grid-column: 2; grid-row: 1; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lb-cap { grid-column: 1 / -1; grid-row: 2; color: #cfcac1; font-size: 13px; letter-spacing: .02em; padding: 12px 24px 0; text-align: center; font-family: "Inter Tight", system-ui, sans-serif; }
.lb button { color: #fff; font-size: 40px; line-height: 1; width: 56px; height: 56px; border-radius: 50%; font-family: system-ui, sans-serif; }
.lb button:hover { background-color: rgba(255, 255, 255, .12); }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-x { position: absolute; right: 14px; top: 12px; z-index: 2; }
@media (max-width: 700px) { .lb { grid-template-columns: 44px 1fr 44px; } .lb button { width: 40px; height: 40px; font-size: 30px; } }


/* ---------- the Book page (book.js): the studio's own "Book Your Session" mock-up, layout only.
   Every colour, face and edge comes from the direction's sheet ---------- */
.bk { max-width: 1320px; margin-inline: auto; }
.bk-hero { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 68vh; overflow: hidden; background-color: #111; }
.bk-hero-img { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.bk-hero-img.is-on { opacity: 1; }
.bk-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.bk-mode { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 148px; padding: 22px 12px; text-align: center; }
.bk-mode-ic { display: grid; place-items: center; width: 48px; height: 48px; }
/* the chosen service fills with a blue gradient (Kaine, 2026-09-29), the same in every direction. It starts at their own
   measured blue backdrop (#045ff2) and only deepens, so white type never falls below its 5.35:1. The gradient is a layer
   that fades in behind the content: a selected tab is complete whether or not the fade ever runs. */
.bk-mode { position: relative; isolation: isolate; overflow: hidden; }
.bk-mode::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s ease;
  background-image: linear-gradient(135deg, #045ff2 0%, #0447c4 52%, #062a86 100%); }
.bk-mode[aria-selected="true"] { color: #fff; }
.bk-mode[aria-selected="true"]::before { opacity: 1; }
.bk-mode[aria-selected="true"] .bk-mode-ic { border-color: rgba(255, 255, 255, .7); color: #fff; }
.bk-mode[aria-selected="true"] .bk-mode-state { color: rgba(255, 255, 255, .85); opacity: 1; }
.bk-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(28px, 4vw, 60px); align-items: start; margin-top: clamp(32px, 4vw, 52px); }
.bk-flow, .bk-panel { display: grid; gap: 26px; min-width: 0; }
.bk .t-form { max-width: none; }
.bk-field { position: relative; display: grid; gap: 8px; align-content: start; }
.bk-date, .bk-pk-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.bk-date svg, .bk-pk-btn svg { flex: none; opacity: .6; }
.bk-pk-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-pk-meta { opacity: .6; }
.bk-pop, .bk-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; }
.bk-list { right: 0; max-height: 460px; overflow-y: auto; padding: 8px; }
.bk-list:focus { outline: none; }
.bk-list-h { padding: 8px 10px 10px; }
.bk-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 12px 14px; cursor: pointer; }
.bk-opt-price { text-align: right; white-space: nowrap; }
.bk-opt-time, .bk-opt-inc { grid-column: 1 / -1; }
.bk-line b { font-weight: 700; }
.bk-adds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bk-adds--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-add { position: relative; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.bk-add-plate { display: grid; place-items: center; height: 108px; flex: none; }
.bk-add-body { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-content: start; padding: 14px 16px 16px; }
.bk-add input { grid-row: 1; width: 18px; height: 18px; margin: 2px 0 0; accent-color: currentColor; cursor: pointer; }
.bk-add-name, .bk-add-line, .bk-add-need { grid-column: 2; }
.bk-add-price { grid-column: 1 / -1; justify-self: end; margin-top: 8px; }
.bk-add:has(input:focus-visible) { outline: 3px solid currentColor; outline-offset: 3px; }
.bk-fig { overflow: hidden; }
.bk-fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.bk-fig-pk--banner img { aspect-ratio: 2 / 1; }   /* a package's own banner is 2:1 and has words in it: shown whole */
.bk-fee { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; padding: 16px 18px; }
.bk-fee-line { grid-column: 1; }
.bk-fee-price { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.bk-inc { padding: 18px 20px; }
.bk-inc-h { margin-bottom: 6px; }
.bk-more { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; width: 100%; padding: 14px 18px; text-align: left; }
.bk-more-s { grid-column: 1; }
.bk-more svg { grid-column: 2; grid-row: 1 / 3; transition: transform .2s; }
.bk-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.bk-more-panel { display: grid; gap: 16px; padding: 20px; margin-top: -14px; }
.bk-done { width: 100%; min-height: 46px; }
.bk-go { width: 100%; justify-content: center; }
.bk-hint:empty { display: none; }
.bk-sum { position: sticky; top: 24px; padding: 28px; }
.bk-sum-list, .bk-sum-tot { display: grid; }
.bk-sum-list div, .bk-sum-tot div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.bk-sum-list dd, .bk-sum-tot dd { text-align: right; }
.bk-sum-box { padding: 14px 16px; }
.bk-sum-box li { display: flex; justify-content: space-between; gap: 12px; }
.bk-sum-box li::before { content: "•"; margin-right: -4px; }
.bk-sum-box li span { flex: 1; }
/* the date popover's month */
.bk-cal { padding: 12px; }
.bk-cal-cap { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; margin-bottom: 6px; }
.bk-cal-nav { position: absolute; top: 2px; display: grid; place-items: center; width: 36px; height: 36px; }
.bk-cal-nav[data-step="-1"] { left: 2px; }
.bk-cal-nav[data-step="1"] { right: 2px; }
.bk-cal-nav:disabled { opacity: .3; cursor: default; }
.bk-cal-grid { border-collapse: collapse; }
.bk-cal-grid th { width: 44px; height: 30px; padding: 0; font-weight: inherit; }
.bk-cal-grid td { padding: 1px; text-align: center; }
.bk-day { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; font-variant-numeric: tabular-nums; }
.bk-day:disabled { cursor: default; }
.bk-day[aria-current="date"]::after { content: ""; position: absolute; left: 50%; top: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background-color: currentColor; }
/* how booked a day is (the studio's calendar): a short bar under the number, filled by the share of the day taken;
   a fully booked day is struck through and can't be picked. Colours are each direction's. */
.bk-day-load { position: absolute; left: 50%; bottom: 5px; width: 22px; height: 4px; margin-left: -11px; border-radius: 2px; overflow: hidden; }
.bk-day-load i { display: block; height: 100%; border-radius: 2px; }
.bk-day.is-full { text-decoration: line-through; cursor: not-allowed; }
.bk-cal-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 4px 0; max-width: 308px; }
.bk-cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.bk-cal-key .bk-day-load { position: static; margin: 0; }
.bk-cal-key s { display: inline-block; min-width: 18px; text-align: center; }
@media (max-width: 1100px) { .bk-body { grid-template-columns: 1fr; } .bk-sum { position: static; } }
@media (max-width: 700px) {
  .bk-hero { aspect-ratio: 4 / 3; }
  .bk-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-mode { min-height: 124px; }
  .bk-adds, .bk-adds--3 { grid-template-columns: 1fr; }
  .bk-add { flex-direction: row; }
  .bk-add-plate { width: 84px; height: auto; }
  .bk-sum { padding: 24px 20px; }
}

/* ---------- reviews on the home page (pages.js reviews()): layout only. Quoted word for word; each direction draws them ---------- */
.t-rev { margin: 0; }
.t-rev-q { margin: 0; }
.t-revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-rev-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 16px; }
.t-rev-score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
@media (max-width: 960px) { .t-revs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .t-revs { grid-template-columns: 1fr; } }

/* ---------- a featured video (the Studio tour, the membership breakdown): one wide tile, nothing loaded until pressed ---------- */
.t-feature { max-width: 1100px; }
.t-feature .t-vid-play { transform: scale(1.4); }

/* ---------- slideshow (pages.js slides()): a scroll-snapped row of big photographs at their own shape ---------- */
.t-slides-track { position: relative; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t-slides-track::-webkit-scrollbar { display: none; }
.t-slides-track:focus-visible { outline-offset: 6px; }
.t-slides .t-slide { flex: none; width: auto; scroll-snap-align: start; }
.t-slides .t-slide img { width: auto; max-width: none; height: clamp(320px, 64vh, 660px); }
.t-slides-bar { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.t-slides-btn { display: grid; place-items: center; width: 48px; height: 48px; font-size: 20px; line-height: 1; }
.t-slides-btn:disabled { opacity: .3; cursor: default; }
.t-slides-count { min-width: 5.5em; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .t-slides .t-slide img { height: 64vw; max-width: 88vw; object-fit: cover; } }

/* ---------- member stories (pages.js stories()): a slot is a labelled frame until a member's own story fills it ---------- */
.t-mstories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.t-mstory { display: flex; flex-direction: column; gap: 14px; }
.t-mstory-bts { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; padding: 12px; text-align: center; }
.t-mstory-bts img { width: 100%; height: 100%; object-fit: cover; }
.t-mstory dl { display: grid; gap: 12px; }
.t-mstory--slot dd { height: 2.4em; }
.t-mstory-note { margin-top: 22px; max-width: 70ch; }
@media (max-width: 960px) { .t-mstories { grid-template-columns: 1fr; } }
.t-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
