:root {
  color-scheme: dark;
  --background: #0c0910;
  --surface: #15101c;
  --border: #30243b;
  --text: #f8f4fa;
  --muted: #bdb2c7;
  --purple: #c6a2ff;
  --accent: #a976ff;
  --ink: #160a22;
  --body-font: 'DM Sans', 'Yu Gothic UI', 'Hiragino Sans', Meiryo, sans-serif;
  --display-font: 'Arial Black', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.65 var(--body-font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 96px, 1192px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 4; inset: 8px auto auto 8px; padding: 8px 16px; background: var(--purple); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; background: #0e0a13; border-bottom: 1px solid var(--border); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: 24px; }
.wordmark { display: block; justify-self: start; width: clamp(107px, 13vw, 148px); }
.wordmark img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 30px); }
.site-nav a, .header-social { font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .header-social:hover, .back-to-top:hover { color: var(--purple); }
.header-social { justify-self: end; display: inline-flex; align-items: center; gap: 9px; padding: 6px 0 6px 10px; }
.instagram-icon { display: inline-block; position: relative; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 4px; flex: 0 0 auto; }
.instagram-icon::before { content: ''; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.instagram-icon::after { content: ''; position: absolute; top: 2px; right: 2px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.outbound { margin-left: 2px; font-size: 1.05em; }

.hero { isolation: isolate; position: relative; overflow: hidden; background: #100c17; }
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(470px, 44vw, 620px); }
.hero-copy { position: relative; z-index: 1; width: 56%; padding: 64px 0 72px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--purple); font: 700 12px/1.4 'DM Sans', Arial, sans-serif; letter-spacing: .16em; white-space: nowrap; }
.eyebrow::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--accent); flex: 0 0 auto; }
.eyebrow span { color: #8972a6; }
.hero h1 { margin: 22px 0 18px; font: 900 clamp(56px, 7.4vw, 112px)/1.11 var(--display-font); letter-spacing: -.095em; }
.hero h1 strong { color: var(--purple); font-weight: inherit; }
.hero-intro { max-width: 30em; margin: 0; color: var(--muted); font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; border: 1px solid transparent; font-size: 13px; font-weight: 800; white-space: nowrap; transition: background .18s, border-color .18s, color .18s; }
.button-primary { color: var(--ink); background: var(--accent); }
.button-primary:hover { background: #d0aeff; }
.button-secondary { background: #120d19; border-color: #514063; }
.button-secondary:hover { border-color: var(--accent); color: var(--purple); }

.hero-art { position: absolute; z-index: -1; inset: 0 0 0 35%; background: #28143d; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; filter: saturate(.84) brightness(.9); }
.hero-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #100c17 0%, #100c17e0 8%, #100c1738 30%, transparent 57%), linear-gradient(0deg, #100c17b8 0%, transparent 31%); }
.hero-logo { position: absolute; z-index: 1; inset: auto 0 29px auto; width: min(27vw, 325px); border: 1px solid #ac7ee769; box-shadow: 0 10px 44px #0c0815a8; }

.opening { background: #1b1029; border-block: 1px solid #413153; }
.opening-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.opening time { color: var(--purple); font: 800 clamp(19px, 2.3vw, 29px)/1 Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .045em; }
.opening-caption { font-size: 14px; font-weight: 800; }
.opening-link { margin-inline-start: auto; border-color: #765998; color: var(--purple); }

.section { padding-block: clamp(62px, 7.2vw, 104px); scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 32px; }
h2 { margin: 9px 0 0; font: 900 clamp(30px, 4.1vw, 54px)/1.2 var(--display-font); letter-spacing: -.065em; }
.section-note { margin: 0 0 3px; color: var(--muted); font-size: 13px; }

.updates { padding-block: clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--border); }
.updates-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(20px, 4vw, 56px);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: 5px 16px 16px 5px;
  background: radial-gradient(ellipse at 12% 0%, #2e1a42, transparent 75%), #120e19;
}
.updates-copy > p:not(.eyebrow) { margin: 16px 0 22px; color: var(--muted); font-size: 15px; }
.updates-profile { color: var(--purple); }
.instagram-embed {
  width: min(100%, 520px);
  justify-self: center;
  container-type: inline-size;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f4f6;
  box-shadow: 0 12px 30px #07040d8c;
}
.instagram-feed { display: block; width: 100%; height: calc(224px + 66.667cqw); border: 0; color-scheme: light; }

.day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day-tabs button { display: flex; justify-content: center; align-items: baseline; gap: 9px; min-height: 55px; padding: 9px 4px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.day-tabs button:hover { background: #241731; color: var(--text); }
.day-tabs button[aria-selected='true'] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.day-name { font-weight: 900; font-size: 19px; }
.day-code { font: 700 10px/1 Arial, sans-serif; letter-spacing: .1em; }
.day-panel { display: grid; grid-template-columns: minmax(116px, .34fr) 1fr; gap: 20px; padding: 18px 28px; margin-top: 6px; min-height: 172px; background: var(--surface); border: 1px solid var(--border); }
.day-panel h3 { margin: 10px 0; font-size: 23px; }
.session-list, .record { list-style: none; margin: 0; padding: 0; }
.session-list li { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 16px; min-height: 46px; border-bottom: 1px solid var(--border); }
.session-list li:last-child, .record li:last-child { border-bottom: 0; }
.session-time { display: inline-flex; gap: 6px; font: 700 14px/1.3 'IBM Plex Mono', Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.session-time span { color: var(--muted); }
.session-name { display: flex; align-items: center; gap: 10px; padding-block: 7px; font-size: 14px; font-weight: 700; }
.session-name::before { content: ''; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.session-name.open::before { background: #bfb1f7; }
.session-name.kids::before { background: #e8a7e5; }
.session-name.pending { color: var(--muted); }
.session-name.pending::before { background: transparent; border: 1px solid var(--muted); }
.schedule-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.schedule-note a, .source-link { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

.fees { padding-block-start: 0; }
.fee-group { padding: clamp(12px, 2.4vw, 30px); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.fee-group + .fee-group { margin-top: 16px; }
.fee-group h3 { margin: 0 0 12px; font-size: clamp(17px, 2.3vw, 24px); }
.fee-table { width: 100%; border-collapse: collapse; font-size: clamp(12px, 1.4vw, 15px); }
.fee-table th, .fee-table td { padding: 10px clamp(4px, 1.25vw, 14px); text-align: left; border-bottom: 1px solid var(--border); }
.fee-table thead { background: #211529; }
.fee-table th:first-child { width: 44%; }
.fee-table td:nth-child(2) { color: var(--purple); font-weight: 800; font-variant-numeric: tabular-nums; }
.fee-table td:last-child { color: var(--muted); }
.fee-description, .fee-notes { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.fee-description + .fee-table { margin-top: 12px; }
.fee-notes { padding-inline-start: 1.35em; }

.gym-photos { padding-block-start: 0; }
.gym-gallery { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 12px; }
.gym-photo { position: relative; margin: 0; overflow: hidden; border-radius: 8px; background: var(--surface); }
.gym-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 58%; }
.gym-photo-feature { grid-row: span 2; }
.gym-photo-feature img { position: absolute; inset: 0; height: 100%; object-position: center; }

.team { background: #120e19; border-block: 1px solid var(--border); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); min-height: 320px; border: 1px solid var(--border); background: #191021; }
.profile-photo { position: relative; background: #2a1e36; overflow: hidden; }
.profile-photo img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 25%; filter: saturate(.48); }
.profile-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #28143f80, transparent 56%); pointer-events: none; }
.profile-body { padding: 24px 20px; }
.profile h3 { margin: 0 0 14px; font: 900 clamp(21px, 2.2vw, 31px)/1.2 var(--display-font); white-space: nowrap; }
.record li { display: grid; grid-template-columns: 39px 1fr; gap: 7px; padding-block: 9px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.record li > span { color: var(--purple); font: 700 12px/1.8 'IBM Plex Mono', Consolas, monospace; }
.record strong { color: var(--text); }

.merchandise { border-bottom: 1px solid var(--border); }
.merchandise-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(115deg, #120e19, #251632);
}
.merchandise-photo { display: grid; filter: drop-shadow(0 10px 13px #070409a0); }
.merchandise-photo img { grid-area: 1 / 1; width: 100%; }
/* Contours in the 1440 × 682 product photo. The page background shows through. */
.shirt-white-logo {
  clip-path: polygon(
    31.67% 4.11%, 32.71% 5.72%, 39.65% 8.8%, 42.15% 10.56%, 51.32% 20.82%,
    51.18% 23.02%, 46.46% 39.44%, 42.85% 37.98%, 41.53% 36.8%, 41.11% 37.24%,
    41.6% 52.05%, 41.81% 82.26%, 42.22% 90.76%, 37.78% 92.23%, 31.74% 93.11%,
    18.4% 93.84%, 9.38% 93.26%, 10.35% 78.59%, 10.21% 71.26%, 11.18% 51.91%,
    11.46% 37.54%, 10.14% 37.1%, 6.39% 40.03%, 5.83% 39.88%, 5.14% 38.27%,
    1.11% 22.29%, 0.9% 20.53%, 12.64% 8.36%, 17.85% 6.45%, 21.25% 6.16%,
    22.36% 4.4%, 25% 6.01%, 27.99% 6.3%, 31.04% 5.13%
  );
}
.shirt-purple-logo {
  clip-path: polygon(
    71.81% 5.43%, 73.68% 7.33%, 76.32% 8.06%, 79.65% 7.33%, 80.97% 6.16%,
    82.64% 8.5%, 87.99% 11.44%, 91.32% 15.1%, 96.25% 23.02%, 99.51% 26.98%,
    98.19% 30.06%, 94.17% 42.82%, 90.35% 40.03%, 90.49% 55.87%, 91.04% 75.07%,
    92.08% 90.91%, 91.81% 91.79%, 75.14% 91.79%, 61.6% 90.47%, 61.81% 84.75%,
    61.53% 61.29%, 61.94% 38.27%, 59.86% 37.39%, 57.15% 38.27%, 56.11% 37.98%,
    53.82% 29.18%, 52.01% 19.65%, 60.42% 11.88%, 62.5% 9.38%, 68.96% 6.6%,
    71.04% 6.3%
  );
}
.merchandise-copy h2 { font-size: clamp(25px, 3.6vw, 43px); }
.merchandise-variants { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.merchandise-price { margin: 12px 0 20px; color: var(--purple); font: 800 36px/1.15 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.merchandise-price span { margin-left: 4px; font-size: .55em; }

.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 60px; align-items: center; }
.address { margin: 20px 0 3px; font-size: clamp(17px, 2.2vw, 23px); font-weight: 700; }
.postal-code { display: block; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.map-action { margin: 14px 0 9px; }
.map-pin { position: relative; width: 13px; height: 13px; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0; transform: translateY(-2px) rotate(-45deg); }
.map-pin::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.source-link { font-size: 12px; }
.contact { border: 1px solid #413153; padding: clamp(20px, 4vw, 40px); background: linear-gradient(115deg, #1c1327, #251335); }
.contact h3 { margin: 0; font-size: 23px; }
.contact p { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 78px; }
.back-to-top { color: var(--muted); font-size: 13px; }

@media (max-width: 1060px) {
  .wrap { width: min(100% - 64px, 1192px); }
  .profile { grid-template-columns: minmax(0, .50fr) minmax(0, 1fr); }
  .profile-body { padding-inline: 15px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; gap: 0; }
  .header-inner > .wordmark, .header-social { margin-block: 17px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); }
  .site-nav a { padding-block: 9px; }
  .hero-copy { width: 62%; }
  .hero h1 { font-size: clamp(51px, 8.5vw, 65px); }
  .hero-logo { width: 33vw; }
  .section-heading { flex-wrap: wrap; }
  .updates-panel { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .profile { grid-template-columns: minmax(0, .57fr) minmax(0, 1fr); min-height: 285px; }
  .profile-body { padding: 24px; }
  .merchandise-panel { grid-template-columns: 1fr; }
  .access-grid { gap: 25px; }
}

@media (max-width: 580px) {
  .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; text-align: center; }
  .hero-inner { display: block; min-height: 0; padding-bottom: 262px; }
  .hero-copy { width: 100%; padding: 45px 0 0; }
  .hero h1 { font-size: clamp(51px, 12.4vw, 72px); margin-block: 17px 14px; }
  .hero-actions { margin-top: 22px; gap: 8px; }
  .button { gap: 8px; padding-inline: 11px; }
  .hero-art { inset: auto 0 0; height: 290px; }
  .hero-art::after { background: linear-gradient(180deg, #100c17 0%, #100c175c 24%, transparent 50%), linear-gradient(0deg, #100c17b8 0%, transparent 30%); }
  .hero-logo { inset: auto 0 16px auto; width: min(54vw, 240px); }
  .opening-inner { flex-wrap: wrap; align-content: center; gap: 10px 12px; padding-block: 14px; }
  .opening-link { flex-basis: 100%; margin-inline-start: 0; }
  .opening-caption { font-size: 13px; }
  .section-heading { gap: 10px; margin-bottom: 22px; }
  .day-tabs { gap: 4px; }
  .day-tabs button { flex-direction: column; align-items: center; gap: 2px; min-height: 50px; padding: 6px 2px; }
  .day-name { font-size: 15px; line-height: 1.3; }
  .day-code { font-size: 8px; }
  .day-panel { grid-template-columns: 1fr; gap: 0; padding: 8px 12px; }
  .day-panel h3 { margin: 3px 0 0; font-size: 17px; }
  .session-list li { grid-template-columns: auto 1fr; gap: 12px; }
  .session-time { font-size: 12px; gap: 4px; }
  .session-name { font-size: 12px; gap: 6px; }
  .gym-gallery { grid-template-columns: 1fr; }
  .gym-photo-feature { grid-row: auto; }
  .gym-photo img { aspect-ratio: 16 / 10; }
  .gym-photo-feature img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .profile { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }
  .profile-body { padding: 18px 11px; }
  .profile h3 { margin-bottom: 8px; }
  .record li { grid-template-columns: 31px 1fr; gap: 3px; font-size: 12px; }
  .record li > span { font-size: 10px; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
