/* Texas Muay Thai & Kickboxing Academy · site styles
   Palette pulled from the shield logo and the red mats: Texas red, flag navy, white.
   One family (Bricolage Grotesque) with width + weight doing the contrast work. */

:root {
  --bg: oklch(1 0 0);
  --bg-2: oklch(0.968 0.008 262);
  --bg-3: oklch(0.93 0.012 262);
  --line: oklch(0.89 0.012 262);
  --ink: oklch(0.25 0.065 264);        /* flag navy, body text */
  --ink-2: oklch(0.43 0.035 264);      /* secondary text, 8:1 on white */
  --red: oklch(0.54 0.205 27);         /* Texas red / the mats */
  --red-hot: oklch(0.49 0.19 27);
  --red-tint: oklch(0.965 0.018 27);
  --navy: oklch(0.29 0.085 264);
  --navy-2: oklch(0.36 0.08 264);
  --on-dark: oklch(0.98 0.004 264);
  --on-dark-2: oklch(0.86 0.02 264);
  --note: oklch(0.86 0.14 88);         /* Tidegate preview notes only */

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --thai: "Noto Sans Thai", var(--font);

  --gutter: clamp(18px, 5vw, 72px);
  --max: 1280px;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --z-sticky: 10;
  --z-bar: 20;
  --z-menu: 30;
  --z-toggle: 40;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-variation-settings: "opsz" 16;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-variation-settings: "opsz" 72; }
p { text-wrap: pretty; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

/* type */
.h1 {
  font-size: clamp(2.7rem, 1.6rem + 5.2vw, 5.4rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: .95;
  letter-spacing: -.028em;
}
.h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -.022em;
}
.h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; font-stretch: 88%; line-height: 1.15; letter-spacing: -.01em; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.red { color: var(--red); }
.thai { font-family: var(--thai); font-weight: 500; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 14px 26px;
  background: var(--red); color: #fff;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 17px; letter-spacing: .005em; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px oklch(0.54 0.205 27 / .75);
  transition: background .25s var(--ease), transform .35s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { background: var(--red-hot); transform: translateY(-1px); box-shadow: 0 14px 30px -12px oklch(0.54 0.205 27 / .85); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-light { background: #fff; color: var(--red); box-shadow: 0 12px 30px -14px oklch(0.2 0.1 27 / .6); }
.btn-light:hover { background: var(--on-dark); color: var(--red-hot); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { font-weight: 700; color: var(--red); text-decoration: none; border-bottom: 2px solid oklch(0.54 0.205 27 / .3); transition: border-color .25s; }
.link:hover { border-color: var(--red); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: var(--z-sticky); background: oklch(1 0 0 / .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px oklch(0.25 0.065 264 / .4); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-size: 18px; font-weight: 800; font-stretch: 82%; letter-spacing: -.01em; }
.brand small { font-size: 12.5px; color: var(--ink-2); font-weight: 500; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--red); }
.top-phone { font-weight: 700; text-decoration: none; font-size: 16px; white-space: nowrap; padding: 10px 6px; }
.top .btn { min-height: 46px; padding: 10px 20px; font-size: 16px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--bg-2); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--bg); padding: 18px var(--gutter) 32px; display: flex; flex-direction: column; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.mobile-menu.open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.mobile-menu .mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { text-decoration: none; font-size: 2rem; font-weight: 800; font-stretch: 80%; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: auto; }
.mobile-menu .mm-call { text-align: center; margin-top: 14px; font-weight: 700; font-size: 18px; text-decoration: none; }

/* sticky phone bar */
.actionbar { display: none; }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .h1 { margin: 0 0 22px; }
.hero .h1 .line { display: block; }
.hero .lede { margin-bottom: 30px; }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; font-size: 15.5px; color: var(--ink-2); }
.stars { display: inline-flex; gap: 2px; color: var(--red); }
.stars svg { width: 18px; height: 18px; }
.proof b { color: var(--ink); }

.collage { position: relative; aspect-ratio: 1 / 1.02; }
.collage figure { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -32px oklch(0.25 0.065 264 / .55); background: var(--bg-3); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { left: 0; top: 0; width: 76%; aspect-ratio: 852 / 580; z-index: 1; }
.collage .c2 { right: 0; top: 30%; width: 40%; aspect-ratio: 1; z-index: 3; border: 6px solid var(--bg); }
.collage .c3 { left: 6%; bottom: 0; width: 58%; aspect-ratio: 16 / 9; z-index: 2; border: 6px solid var(--bg); }
.collage .tag { position: absolute; right: 2%; bottom: 4%; z-index: 4; margin: 0; background: var(--navy); color: var(--on-dark); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; line-height: 1.35; max-width: 230px; box-shadow: 0 18px 40px -20px oklch(0.2 0.08 264 / .7); }
.collage .tag b { display: block; font-size: 17px; }

/* hero entrance: content is visible by default; motion only enhances */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .h1 .line { animation: rise .9s var(--ease) both; }
  .js .hero .h1 .line:nth-child(2) { animation-delay: .08s; }
  .js .hero .lede, .js .hero .btn-row, .js .hero .proof { animation: fade .9s var(--ease) .18s both; }
  .js .collage figure { animation: unveil 1.1s var(--ease) both; }
  .js .collage .c2 { animation-delay: .12s; }
  .js .collage .c3 { animation-delay: .24s; }
  .js .collage .tag { animation: fade .8s var(--ease) .55s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0 round var(--radius)); transform: translateY(24px); } to { clip-path: inset(0 0 0 0 round var(--radius)); transform: none; } }

/* ---------- page hero (inner pages) ---------- */
.phero { padding: clamp(36px, 6vw, 88px) 0 clamp(36px, 5vw, 64px); }
.phero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.phero .h1 { font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.6rem); margin-bottom: 18px; }
.phero figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -34px oklch(0.25 0.065 264 / .55); }
.phero figure img { width: 100%; height: 100%; object-fit: cover; }
.crumb { font-size: 15px; font-weight: 600; color: var(--red); margin-bottom: 14px; display: inline-block; text-decoration: none; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tint { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 { margin-bottom: 16px; }

/* two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(420px, 44vw, 560px); border-radius: calc(var(--radius) + 4px); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(0.18 0.06 264 / .92) 8%, oklch(0.18 0.06 264 / .45) 48%, oklch(0.18 0.06 264 / .05) 78%); }
.door:hover img { transform: scale(1.04); }
.door-body { padding: clamp(22px, 3vw, 36px); }
.door .who { display: inline-block; font-size: 15px; font-weight: 700; background: var(--red); color: #fff; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.door h3 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); font-weight: 800; font-stretch: 80%; line-height: 1; letter-spacing: -.02em; margin-bottom: 12px; }
.door p { color: oklch(0.93 0.01 264); max-width: 42ch; margin-bottom: 18px; }
.door .go { font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.door .go span { transition: transform .35s var(--ease); }
.door:hover .go span { transform: translateX(5px); }

/* first class steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 70px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-size: 64px; font-weight: 800; font-stretch: 75%; line-height: 1; color: var(--red); }
.steps li::after { content: ""; position: absolute; top: 30px; left: 58px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); }
.first-note { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 20px 24px; background: var(--red-tint); border-radius: var(--radius); }
.first-note p { flex: 1 1 360px; font-weight: 600; }

/* rank / prajiad (navy world) */
.rank { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.rank .lede { color: var(--on-dark-2); }
.rank-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.rank .h2 .thai { display: block; font-size: .42em; font-stretch: 100%; letter-spacing: 0; color: oklch(0.8 0.1 27); margin-top: 14px; }
.ladder { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ladder li { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center; }
.band { height: 22px; border-radius: 999px; background: var(--c); box-shadow: inset 0 -3px 0 oklch(0 0 0 / .18), inset 0 2px 0 oklch(1 0 0 / .18); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, oklch(1 0 0 / .16) 0 3px, transparent 3px 9px); }
.band.split { background: linear-gradient(90deg, oklch(0.16 0.01 264) 0 50%, var(--red) 50% 100%); }
.ladder b { display: block; font-size: 17px; }
.ladder span { color: var(--on-dark-2); font-size: 15.5px; line-height: 1.45; }
.rank-foot { margin-top: 26px; color: var(--on-dark-2); font-size: 16px; max-width: 60ch; }

/* reviews */
.reviews-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.score { position: sticky; top: 110px; }
.score .big { font-size: clamp(5rem, 3rem + 7vw, 8rem); font-weight: 800; font-stretch: 75%; line-height: .85; letter-spacing: -.04em; }
.score .stars svg { width: 26px; height: 26px; }
.score p { color: var(--ink-2); margin: 10px 0 20px; }
.quotes { display: flex; flex-direction: column; gap: 18px; }
.quote { margin: 0; padding: 26px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.quote:nth-child(2) { margin-left: clamp(0px, 4vw, 56px); }
.quote blockquote { margin: 0 0 14px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.45; font-weight: 500; }
.quote figcaption { font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }

/* kru */
.kru-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.kru-photo { position: relative; }
.kru-photo figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.kru-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.kru-photo .inset { position: absolute; right: -18px; bottom: -28px; width: 38%; aspect-ratio: 3 / 4; border: 6px solid var(--bg); box-shadow: 0 24px 50px -28px oklch(0.25 0.065 264 / .6); }
.kru .h2 { margin-bottom: 18px; }
.kru p + p { margin-top: 14px; }
.kru .facts { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.kru .facts li { display: flex; gap: 12px; align-items: baseline; }
.kru .facts li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--red); transform: translateY(-1px); }

/* schedule */
.sched-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table.sched { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15.5px; }
.sched th, .sched td { padding: 14px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sched thead th { font-size: 14px; font-weight: 700; background: var(--bg-2); position: sticky; top: 0; }
.sched thead th.today { color: var(--red); }
.sched tbody th { font-weight: 700; white-space: nowrap; width: 110px; color: var(--ink-2); }
.sched td.today { background: var(--red-tint); }
.cls { display: block; font-weight: 700; line-height: 1.25; }
.cls small { display: block; font-weight: 500; color: var(--ink-2); font-size: 13.5px; }
.cls + .cls { margin-top: 8px; }
.kid { color: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.legend span:last-child::before { display: none; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; background: var(--ink); }
.legend span.k::before { background: var(--red); }

/* day list (mobile schedule) */
.days { display: none; }

/* visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.visit dl { margin: 22px 0 28px; display: grid; gap: 18px; }
.visit dt { font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 2px; }
.visit dd { margin: 0; font-size: 18px; }
.visit dd a { text-decoration: none; font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--bg-3); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.areas { color: var(--ink-2); font-size: 16px; }

/* CTA band */
.band-cta { background: var(--red); color: #fff; padding: clamp(56px, 8vw, 104px) 0; position: relative; overflow: hidden; }
.band-cta::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(ellipse at 50% 100%, oklch(0.62 0.2 30 / .7), transparent 60%); pointer-events: none; }
.band-cta .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.band-cta .h2 { max-width: 16ch; }
.band-cta p { color: oklch(0.95 0.03 27); margin-top: 12px; max-width: 46ch; }
.band-cta .call { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 54px; padding: 0 12px; }

/* feature list (program pages) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 104px); }
.split.flip > figure { order: 2; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.split .h2 { margin-bottom: 16px; }
.split p + p { margin-top: 14px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ticks svg { width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.meta li { font-size: 14.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); }

/* program list rows (not identical cards) */
.programs { border-top: 2px solid var(--ink); }
.prog { display: grid; grid-template-columns: .9fr 1.3fr .8fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.prog h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; font-stretch: 82%; line-height: 1.05; }
.prog p { color: var(--ink-2); }
.prog .when { font-size: 15.5px; font-weight: 600; }
.prog .when span { display: block; color: var(--ink-2); font-weight: 500; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
.faq .a p + p { margin-top: 10px; }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.person figure { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person h3 { font-size: 1.4rem; font-weight: 800; font-stretch: 85%; }
.person .role { color: var(--red); font-weight: 700; font-size: 15.5px; margin: 2px 0 8px; }
.person p { color: var(--ink-2); font-size: 16.5px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.values div { padding: 24px 22px 8px 0; }
.values div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.values h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 82%; margin-bottom: 8px; }
.values p { color: var(--ink-2); font-size: 16.5px; }

/* free class form */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 30px 70px -44px oklch(0.25 0.065 264 / .5); }
.form-card .h3 { margin-bottom: 6px; }
.form-card > p { color: var(--ink-2); margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid oklch(0.78 0.02 264); border-radius: 10px; background: var(--bg); font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.5 0.03 264); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px oklch(0.25 0.065 264 / .12); }
.field input[aria-invalid="true"] { border-color: var(--red); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; font-weight: 600; font-size: 15.5px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 1.5px solid oklch(0.78 0.02 264); border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.consent a { color: var(--ink); }
.form-card .btn { width: 100%; margin-top: 22px; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.form-status.err { color: var(--red); }
.form-status.ok { color: oklch(0.45 0.12 150); }
.expect { display: grid; gap: 22px; }
.expect div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.expect .n { width: 44px; height: 44px; border-radius: 50%; background: var(--red-tint); color: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.expect h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.expect p { color: var(--ink-2); font-size: 16.5px; }

/* legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }

/* footer */
.foot { background: var(--navy); color: var(--on-dark-2); padding: clamp(56px, 7vw, 88px) 0 110px; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand b { color: #fff; }
.foot .brand small { color: var(--on-dark-2); }
.foot h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot p { margin-top: 14px; max-width: 34ch; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid oklch(1 0 0 / .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Tidegate preview notes */
.tg-note { display: flex; gap: 12px; align-items: flex-start; border: 1.5px dashed oklch(0.7 0.14 80); background: oklch(0.97 0.05 92); color: oklch(0.3 0.05 80); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; margin-top: 18px; max-width: 60ch; }
.tg-note b { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--note); color: oklch(0.25 0.05 80); padding: 3px 7px; border-radius: 5px; margin-top: 1px; }
.on-dark .tg-note, .rank .tg-note { background: oklch(0.36 0.06 90 / .35); color: var(--on-dark); border-color: oklch(0.86 0.14 88 / .6); }
body.notes-off .tg-note { display: none; }
.tg-toggle { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-toggle); display: inline-flex; align-items: center; gap: 10px; background: oklch(0.25 0.065 264 / .92); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 0; border-radius: 999px; padding: 8px 14px 8px 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tg-toggle .dot { width: 30px; height: 18px; border-radius: 999px; background: oklch(0.45 0.04 264); position: relative; transition: background .25s; }
.tg-toggle .dot::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.tg-toggle[aria-pressed="true"] .dot { background: var(--note); }
.tg-toggle[aria-pressed="true"] .dot::after { transform: translateX(12px); background: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .top-phone { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero-grid, .phero-grid, .rank-grid, .reviews-grid, .kru-grid, .visit-grid, .split, .form-grid { grid-template-columns: 1fr; }
  .split.flip > figure { order: 0; }
  .collage { max-width: 560px; width: 100%; margin: 0 auto; }
  .score { position: static; }
  .quote:nth-child(2) { margin-left: 0; }
  .kru-photo .inset { right: 10px; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 400px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 76px; }
  .steps li::before { font-size: 52px; }
  .steps li::after { display: none; }
  .prog { grid-template-columns: 1fr; gap: 8px; }
  .values { grid-template-columns: 1fr 1fr; }
  .values div:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .sched-wrap.desk { display: none; }
  .days { display: grid; gap: 12px; }
  .day { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .day summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 800; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; background: var(--bg-2); }
  .day summary::-webkit-details-marker { display: none; }
  .day.today summary { background: var(--red-tint); color: var(--red); }
  .day ul { list-style: none; margin: 0; padding: 6px 18px 12px; }
  .day li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .day li:last-child { border-bottom: 0; }
  .day time { font-weight: 700; color: var(--ink-2); font-size: 15.5px; }
}
@media (max-width: 640px) {
  .top .btn { display: none; }
  .brand img { width: 38px; }
  .brand b { font-size: 16.5px; }
  .brand small { font-size: 12px; }
  .collage { aspect-ratio: 1 / 1.08; }
  .collage .tag { font-size: 13px; padding: 10px 12px; max-width: 170px; }
  .collage .tag b { font-size: 15px; }
  .fields { grid-template-columns: 1fr; }
  .ladder li { grid-template-columns: 1fr; gap: 8px; }
  .values { grid-template-columns: 1fr; }
  .values div, .values div + div { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .actionbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: oklch(1 0 0 / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .actionbar a { flex: 1; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; }
  .actionbar .call { box-shadow: inset 0 0 0 2px var(--ink); }
  .actionbar .free { background: var(--red); color: #fff; }
  .tg-toggle { bottom: 84px; left: 12px; padding: 8px; font-size: 0; gap: 0; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---- events & offers ---- */
.offer { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--red-tint); border: 1.5px solid oklch(0.54 0.205 27 / .25); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.offer + .offer { margin-top: 14px; }
.offer h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; font-stretch: 82%; line-height: 1.05; }
.offer p { color: var(--ink-2); margin-top: 8px; max-width: 58ch; }
.offer .btn { flex: none; }
.offer-posters { margin-top: 22px; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.ev { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ev figure { margin: 0; background: var(--bg-3); }
.ev img { width: 100%; height: auto; display: block; } /* posters are never cropped */
.ev-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.ev-date { font-size: 15px; font-weight: 600; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.ev-date b { background: var(--navy); color: var(--on-dark); border-radius: 8px; padding: 3px 9px; font-size: 14px; letter-spacing: .02em; }
.ev h3 { font-size: 1.35rem; font-weight: 800; font-stretch: 84%; line-height: 1.1; }
.ev p { color: var(--ink-2); }
.ev-empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg); max-width: 62ch; }
.ev-empty p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 700px) {
  .offer { flex-direction: column; align-items: flex-start; }
}

/* honeypot: off-screen for people, visible to form-filling bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
