/* ============================================================
   KARATE CLUB 47 — v3
   Bold, modern, karate details: belts, brush strokes, stamps,
   tatami lines, gi-lapel dividers. Light + dark themes.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f4f3f0;
  --surface: #ffffff;
  --panel: #eeeae3;           /* studio-photo backdrop (stays light in both themes) */
  --ink: #0c0c0d;
  --text: #1a1a1c;
  --muted: #68686e;
  --line: rgba(12, 12, 13, .1);
  --line-2: rgba(12, 12, 13, .2);
  --red: #e10613;
  --red-d: #b9040f;
  --gold: #d8b25a;

  --dark: #0b0b0c;            /* always-dark sections */
  --dark-2: #161618;
  --d-text: #f5f5f3;
  --d-muted: #a2a2a8;
  --d-line: rgba(255, 255, 255, .12);

  --header-bg: rgba(255, 255, 255, .86);
  --wm: rgba(12, 12, 13, .04);
  --shadow: 0 30px 60px -32px rgba(0, 0, 0, .28);
  --shadow-sm: 0 14px 30px -18px rgba(0, 0, 0, .3);

  --font: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jp: "Yuji Syuku", "Noto Serif JP", serif;

  --r: 20px;
  --r-lg: 30px;
  --wrap: 1280px;
  --g: clamp(18px, 4vw, 40px);
  --hh: 78px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-5%25' y='-60%25' width='110%25' height='220%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .25' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='10'/%3E%3C/filter%3E%3Cpath d='M8 21C60 13 120 27 180 19s90-3 112 2' stroke='%23e10613' stroke-width='26' stroke-linecap='round' fill='none' filter='url(%23f)'/%3E%3C/svg%3E");
  --brush-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-5%25' y='-60%25' width='110%25' height='220%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .25' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='10'/%3E%3C/filter%3E%3Cpath d='M8 21C60 13 120 27 180 19s90-3 112 2' stroke='%230c0c0d' stroke-width='26' stroke-linecap='round' fill='none' filter='url(%23f)'/%3E%3C/svg%3E");
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f0f10;
  --bg-2: #161617;
  --surface: #1b1b1d;
  --ink: #f5f5f3;
  --text: #ececea;
  --muted: #9c9ca2;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .24);
  --dark: #060606;
  --dark-2: #131314;
  --header-bg: rgba(15, 15, 16, .84);
  --wm: rgba(255, 255, 255, .04);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .4s, color .4s;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; } /* phone-size copies are swapped in via <picture>; layout treats it as if it weren't there */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.container { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.muted { color: var(--muted); }
.jp { font-family: var(--jp); }

/* ---------- Type ---------- */
.display, .h2, .num b, .ach-row > b, .foot-slogan, .bp-title, .trainer-facts b, .hero-meta b {
  font-stretch: 76%; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em;
}
.display { font-size: clamp(3.4rem, 9.2vw, 8.6rem); line-height: .9; color: var(--ink); }
.h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: .98; color: var(--ink); position: relative; z-index: 0; text-wrap: balance; }
.h2-xl { font-size: clamp(2.5rem, 6vw, 5rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; text-wrap: pretty; }

/* brush-stroke highlight under <em> words; it paints itself when revealed */
em { font-style: normal; position: relative; display: inline-block; white-space: nowrap; }
.h2 em::after {
  content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; bottom: -.2em; height: .34em;
  background: var(--brush) center / 100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease) .35s;
}
.in .h2 em::after, .h2.in em::after, .in.h2 em::after { transform: scaleX(1); }
.display em { color: var(--red); }

.tagline { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tagline i { font-style: normal; letter-spacing: .04em; font-weight: 800; background: var(--red); color: #fff; padding: 3px 11px; border-radius: 99px; }
.head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.head-center { align-items: center; text-align: center; }
.head-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
.head-split > div { display: flex; flex-direction: column; gap: 18px; }
.head-split .lead { max-width: 46ch; color: var(--muted); }

/* giant kanji watermark */
.wm {
  position: absolute; z-index: 0; top: 30px; right: -1vw; pointer-events: none; user-select: none;
  font-family: var(--jp); font-size: clamp(12rem, 30vw, 30rem); line-height: .9; color: var(--wm); white-space: nowrap;
  will-change: transform;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px; position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 99px;
  font-weight: 700; font-size: .96rem; white-space: nowrap;
  transition: transform .25s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: .88rem; }
.btn-lg { --h: 60px; padding: 0 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 14px 30px -12px rgba(225, 6, 19, .7); }
.btn-red::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .35) 48%, transparent 70%); transform: translateX(-130%); transition: transform .8s var(--ease); }
.btn-red:hover { background: var(--red-d); }
.btn-red:hover::before { transform: translateX(130%); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--red); color: #fff; }

.phone-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; font-stretch: 88%; transition: color .3s; }
.phone-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background .3s, border-color .3s, color .3s; }
.phone-link:hover { color: var(--red); }
.phone-link:hover .phone-ic { background: var(--red); border-color: var(--red); color: #fff; animation: ring .6s; }
@keyframes ring { 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }

.icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.icon:hover { transform: translateY(-3px); }

/* ---------- Image frames ---------- */
figure { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
figure:hover img { transform: scale(1.05); }
/* white-studio photos sit on a soft panel so they look right in both themes */
.studio { background: linear-gradient(160deg, #f4f1eb, var(--panel)); border-radius: var(--r-lg); isolation: isolate; }
.studio img { mix-blend-mode: multiply; filter: brightness(1.05) contrast(1.05); }

/* red seal stamp */
.hanko {
  position: absolute; z-index: 3; display: inline-block; padding: 12px 9px; border-radius: 8px;
  font-family: var(--jp); writing-mode: vertical-rl; text-orientation: upright; font-size: 1.15rem; line-height: 1.05; letter-spacing: .06em;
  background: var(--red); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), 0 12px 24px -10px rgba(225, 6, 19, .7);
  transform: rotate(-6deg);
}
.hanko-lg { font-size: 1.8rem; padding: 16px 12px; }
[data-rv] .hanko { opacity: 0; transform: rotate(-6deg) scale(2.2); }
[data-rv].in .hanko { opacity: 1; transform: rotate(-6deg) scale(1); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) .7s, opacity .2s .7s; }

/* ---------- Reveal ---------- */
[data-rv] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
[data-rv="left"] { transform: translateX(-56px); }
[data-rv="right"] { transform: translateX(56px); }
[data-rv].in { opacity: 1; transform: none; }
/* photo wipe-in. The clip is on the photo inside, never on the observed box itself:
   a fully clipped box counts as "not visible" and its reveal would never fire. */
[data-rv="img"] { opacity: 1; transform: none; }
[data-rv="img"]:not(.in) { background: transparent; }
[data-rv="img"] img { clip-path: inset(100% 0 0 0); transform: scale(1.14); transition: clip-path .75s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
[data-rv="img"].in img { clip-path: inset(0 0 0 0); transform: scale(1); }
[data-rv="img"].in:hover img, [data-rv="img"].in figure:hover img { transform: scale(1.05); transition-delay: 0s; }

/* ============================================================
   HEADER
   ============================================================ */
.header { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hh); transition: background .4s, box-shadow .4s; }
.header.scrolled { background: var(--header-bg); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 1px 0 var(--line); }
.header-in { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo { width: 48px; height: 48px; transition: transform .8s var(--ease); }
.brand:hover .brand-logo { transform: rotate(180deg); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-stretch: 80%; font-weight: 900; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.brand-txt small { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 600; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { font-size: .92rem; font-weight: 600; padding: 9px 14px; border-radius: 99px; color: var(--muted); transition: color .25s, background .25s; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--bg-2); }
.header-end { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.lang button { font-size: .74rem; font-weight: 700; padding: 6px 10px; border-radius: 99px; color: var(--muted); transition: color .2s, background .2s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.theme { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); transition: transform .5s var(--ease), color .3s; }
.theme:hover { transform: rotate(40deg); color: var(--red); }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: var(--ink); color: var(--bg); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: 100px var(--g) 32px; display: flex; flex-direction: column; gap: 22px; animation: fade .3s var(--ease); overflow: auto; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: 2.2rem; line-height: 1.1; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-close { position: absolute; top: 22px; right: var(--g); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.menu-row { display: flex; gap: 12px; align-items: center; }
.menu-phone { text-align: center; font-weight: 800; font-size: 1.25rem; }
@keyframes fade { from { opacity: 0; } }

/* ============================================================
   1 · HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hh) + 34px) 0 70px; overflow: hidden; }
.hero::before { /* tatami lines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 160px 80px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 0, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 0, transparent 75%);
}
.wm-hero { top: auto; bottom: -4vw; right: auto; left: -2vw; font-size: clamp(14rem, 34vw, 34rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225, 6, 19, .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(225, 6, 19, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 6, 19, 0); } }
.ln { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; padding-bottom: .04em; }
.ln > span { display: inline-block; transform: translateY(115%); transition: transform 1.1s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .1s; } .ln:nth-child(3) > span { transition-delay: .2s; }
.hero.in .ln > span { transform: none; }
.hero-copy > *:not(.display) { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero.in .hero-copy > * { opacity: 1; transform: none; }
.hero.in .hero-lead { transition-delay: .35s; } .hero.in .hero-cta { transition-delay: .45s; } .hero.in .hero-meta { transition-delay: .55s; }
.hero-lead { margin: 26px 0 34px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 46px; }
.hero-meta li { display: flex; flex-direction: column; padding: 0 30px; border-left: 3px solid var(--line); }
.hero-meta li:first-child { padding-left: 16px; border-color: var(--red); }
.hero-meta b { font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.hero-meta span { font-size: .84rem; color: var(--muted); }

/* photo stage */
.stage { position: relative; aspect-ratio: 4 / 5; max-height: 76vh; width: 100%; max-width: 560px; justify-self: center; perspective: 1200px; }
.stage-panel { position: absolute; inset: 0; border-radius: 40px; overflow: hidden; isolation: isolate; background: linear-gradient(165deg, #f6f3ed, var(--panel)); box-shadow: var(--shadow); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease); opacity: 0; scale: .94; transition: opacity 1s var(--ease) .15s, scale 1.2s var(--ease) .15s, transform .4s var(--ease); }
.hero.in .stage-panel { opacity: 1; scale: 1; }
.enso { position: absolute; z-index: 0; width: 92%; height: auto; aspect-ratio: 1; left: 4%; top: 8%; overflow: visible; }
.enso circle { stroke-dasharray: 0 2000; }
.hero.in .enso circle { animation: enso 2.2s .5s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes enso { to { stroke-dasharray: 1560 2000; } }
.stage-kanji { position: absolute; z-index: 0; left: 18px; top: 8px; font-family: var(--jp); font-size: clamp(4rem, 9vw, 8rem); line-height: 1; color: rgba(0, 0, 0, .07); }
.stage-img { position: absolute; z-index: 1; left: 50%; bottom: 0; height: 97%; width: auto; max-width: none; transform: translateX(-50%); mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.06);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); }

.chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); opacity: 0; transition: opacity .8s var(--ease); }
.hero.in .chip { opacity: 1; }
.hero.in .chip-a { transition-delay: .9s; } .hero.in .chip-b { transition-delay: 1.05s; } .hero.in .chip-c { transition-delay: 1.2s; }
.chip b { display: block; font-stretch: 78%; font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--ink); }
.chip small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.chip-a { top: 9%; left: -7%; } .chip-b { bottom: 17%; left: -9%; flex-direction: column; align-items: flex-start; gap: 2px; } .chip-c { top: 40%; right: -8%; }
.chip-b b { font-size: 2rem; color: var(--red); }
.chip-logo { width: 26px; height: 34px; color: var(--ink); }
.chip-belt { width: 54px; height: 30px; color: #141414; }
.float-a { animation: floatA 6s ease-in-out infinite; } .float-b { animation: floatA 7s ease-in-out -2s infinite reverse; }
@keyframes floatA { 50% { translate: 0 -12px; } }

.spin { position: absolute; z-index: 5; right: -5%; bottom: -5%; width: clamp(118px, 12vw, 158px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); scale: 0; transition: scale .7s cubic-bezier(.3, 1.5, .5, 1) 1.3s; }
.hero.in .spin { scale: 1; }
.spin > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin text { font-size: 15.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; fill: currentColor; }
.spin-core { display: grid; place-items: center; width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; transition: transform .4s var(--ease); }
.spin-core svg { width: 42%; height: 56%; }
.spin:hover .spin-core { transform: scale(1.14); }
@keyframes spin { to { transform: rotate(360deg); } }

/* photo hero: one background image, black → red gradient, centered text */
.hero-photo { color: #fff; text-align: center; background: #0b0b0c; padding: calc(var(--hh) + 50px) 0 120px; }
.hero-photo::before { display: none; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transform: scale(1.1); animation: heroZoom 16s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 75% at 50% 118%, rgba(225, 6, 19, .9) 0%, rgba(225, 6, 19, .45) 36%, rgba(225, 6, 19, 0) 70%),
    linear-gradient(180deg, rgba(8, 8, 9, .9) 0%, rgba(8, 8, 9, .62) 45%, rgba(8, 8, 9, .5) 100%);
}
.hero-center { display: flex; flex-direction: column; align-items: center; }
.hero-photo .eyebrow { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-photo .display { color: #fff; font-size: clamp(3.6rem, 10.4vw, 9.6rem); text-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.hero-photo .display em { color: #ff2a36; }
.hero-photo .hero-lead { color: rgba(255, 255, 255, .88); margin: 28px auto 36px; max-width: 54ch; }
.hero-photo .hero-cta { justify-content: center; }
.hero-photo .phone-link { color: #fff; }
.hero-photo .phone-ic { border-color: rgba(255, 255, 255, .5); }
.hero-photo .phone-link:hover { color: #fff; }
.hero-photo .phone-link:hover .phone-ic { background: #fff; border-color: #fff; color: var(--red); }
.btn-white { background: #fff; color: #0c0c0d; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.btn-white svg { color: var(--red); transition: transform .3s var(--ease), color .3s; }
.btn-white:hover { background: #0c0c0d; color: #fff; }
/* header sits on the dark photo until the page is scrolled */
.header:not(.scrolled) .brand, .header:not(.scrolled) .nav a { color: #fff; }
.header:not(.scrolled) .brand-txt small { color: rgba(255, 255, 255, .7); }
.header:not(.scrolled) .nav a:hover, .header:not(.scrolled) .nav a.active { background: rgba(255, 255, 255, .14); color: #fff; }
.header:not(.scrolled) .lang, .header:not(.scrolled) .theme { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.header:not(.scrolled) .lang button { color: rgba(255, 255, 255, .78); }
.header:not(.scrolled) .lang button[aria-pressed="true"] { background: #fff; color: #0c0c0d; }
.header:not(.scrolled) .theme { color: #fff; }
.header:not(.scrolled) .burger { background: #fff; color: #0c0c0d; }

/* black-belt ticker */
.obi { position: relative; z-index: 2; background: var(--dark); color: var(--d-text); transform: rotate(-1.4deg) scale(1.02); margin: -18px 0 0; padding: 17px 0; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.obi::before, .obi::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed rgba(255, 255, 255, .28); }
.obi::before { top: 6px; } .obi::after { bottom: 6px; }
.obi-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 34s linear infinite; }
.obi span { font-stretch: 78%; font-weight: 900; font-size: clamp(1.2rem, 2.2vw, 1.7rem); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.obi i { width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); border-radius: 2px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
:root[data-theme="dark"] .obi { background: var(--red); }
:root[data-theme="dark"] .obi i { background: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.sec { position: relative; padding: clamp(90px, 11vw, 160px) 0; overflow: hidden; }
.sec-tone { background: var(--bg-2); }
.sec-dark { background: var(--dark); color: var(--d-text); padding-top: clamp(130px, 14vw, 200px); }
.sec-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 160px 80px; }
.sec-dark .h2 { color: var(--d-text); }
.sec-dark .tagline, .sec-dark .muted { color: var(--d-muted); }
.sec-dark .wm { color: rgba(255, 255, 255, .045); }
section[id] { scroll-margin-top: 40px; }
/* gi-lapel divider: the V of a karate jacket */
/* left lapel crosses over the right one, with a line of stitching, like a real gi */
.lapel { position: absolute; z-index: 1; top: -1px; left: 0; width: 100%; height: clamp(46px, 6.2vw, 92px); overflow: hidden; }
.lapel path:first-child { fill: var(--bg); }
.lapel-tone path:first-child { fill: var(--bg-2); }
.lapel-line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; }
.lapel-stitch { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 7 6; }

/* 2 · About */
#about .head .h2 { font-size: clamp(2.1rem, 5vw, 56px); } /* 56px on desktop, scales down on small screens */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-media { position: relative; }
.about-media .studio { aspect-ratio: 4 / 3; }
.about-pic { position: absolute; right: -5%; bottom: -16%; width: 32%; aspect-ratio: 3 / 4; border-radius: 18px; border: 6px solid var(--bg); box-shadow: var(--shadow); rotate: 5deg; }
.about-media .hanko { top: -20px; left: -12px; }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy .head { margin-bottom: 6px; }
.quote { position: relative; margin-top: 10px; padding: 6px 0 6px 26px; border-left: 5px solid var(--red); }
.quote p { font-stretch: 86%; font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; color: var(--ink); }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.quote-dark p { color: var(--d-text); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(80px, 10vw, 130px); }
.pillar { position: relative; overflow: hidden; padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: transform .45s var(--ease), background .4s, color .4s, border-color .4s, opacity .9s var(--ease) var(--d, 0s); }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pillar:hover { transform: translateY(-8px); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pillar:hover::before { transform: scaleX(1); }
.pk { font-family: var(--jp); font-size: 3.4rem; line-height: 1.1; transition: color .4s; }
.pillar:hover .pk { color: var(--red); }
.pillar b { font-stretch: 80%; font-weight: 900; font-size: 1.5rem; text-transform: uppercase; }
.pillar p { opacity: .7; font-size: .95rem; }

.beltpath { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 26px 34px; border-radius: var(--r); background: var(--dark); color: var(--d-text); }
.bp-txt { display: flex; flex-direction: column; }
.bp-txt b { font-stretch: 80%; font-weight: 900; font-size: 1.5rem; text-transform: uppercase; line-height: 1.15; }
.bp-txt span { color: var(--d-muted); font-size: .92rem; }
.belts { display: flex; gap: clamp(4px, 1vw, 14px); align-items: flex-start; }
.belts li { color: var(--c); opacity: 0; transform: translateY(-26px) rotate(-8deg); transition: opacity .5s var(--ease), transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.belts svg { width: clamp(38px, 5.6vw, 78px); height: auto; aspect-ratio: 120 / 66; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); transition: transform .3s var(--ease); }
.belts li:hover svg { transform: translateY(-6px) scale(1.08); }
.in .belts li { opacity: 1; transform: none; }
.belts li:nth-child(1) { transition-delay: .2s; } .belts li:nth-child(2) { transition-delay: .3s; } .belts li:nth-child(3) { transition-delay: .4s; } .belts li:nth-child(4) { transition-delay: .5s; }
.belts li:nth-child(5) { transition-delay: .6s; } .belts li:nth-child(6) { transition-delay: .7s; } .belts li:nth-child(7) { transition-delay: .8s; } .belts li:nth-child(8) { transition-delay: .9s; }
.belts li:last-child svg { filter: drop-shadow(0 0 0 rgba(255,255,255,.6)) drop-shadow(0 0 1px #fff); }

/* 3 · Numbers */
.numbers-bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.numbers-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: grayscale(1) contrast(1.15); opacity: .3; }
.numbers::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(90% 70% at 50% 50%, rgba(11, 11, 12, .35), rgba(11, 11, 12, .9)), linear-gradient(0deg, rgba(225, 6, 19, .16), rgba(225, 6, 19, 0) 45%); }
.numbers .lapel, .numbers .wm { z-index: 1; }
.numbers .num { background: rgba(18, 18, 20, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.num { position: relative; padding: 34px 30px; border-radius: var(--r); background: var(--dark-2); border: 1px solid var(--d-line); display: flex; flex-direction: column; gap: 8px; overflow: hidden; transition: transform .4s var(--ease), border-color .4s, opacity .9s var(--ease) var(--d, 0s); }
.num::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--d, 0s) + .3s); }
.num.in::after { transform: scaleX(1); }
.num:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .3); }
.num b { font-size: clamp(4rem, 8.6vw, 7.6rem); line-height: .86; font-stretch: 70%; }
.num sup { font-size: .4em; color: var(--red); margin-left: 4px; vertical-align: top; position: relative; top: .2em; }
.num > span { color: var(--d-muted); font-weight: 500; }

/* 4 · Why */
.why-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 18px; }
.why-img { grid-row: span 2; border-radius: var(--r-lg); min-height: 520px; }
.why-img figcaption { position: absolute; z-index: 2; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 12px; border-radius: 99px; background: var(--surface); color: var(--ink); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.why-img figcaption .jp { font-size: 1.5rem; color: var(--red); line-height: 1; }
.wcard { position: relative; overflow: hidden; padding: 28px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), background .4s, color .4s, border-color .4s, box-shadow .4s, opacity .9s var(--ease) var(--d, 0s); }
.wcard::before { content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.wcard:hover { transform: translateY(-8px); background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: var(--shadow); }
.wcard:hover::before { transform: scaleX(1); }
.wk { font-family: var(--jp); font-size: 3rem; line-height: 1; color: var(--ink); transition: color .4s, transform .5s var(--ease); transform-origin: left bottom; }
.wcard:hover .wk { color: var(--red); transform: scale(1.15) rotate(-4deg); }
.wcard small { position: absolute; right: 22px; top: 26px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.wcard h3 { font-stretch: 80%; font-weight: 800; font-size: 18px; line-height: 1.2; margin: 22px 0 8px; overflow-wrap: anywhere; }
.wcard p { font-size: .94rem; opacity: .68; }

/* 5 · Achievements */
.ach-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.ach-photo { position: relative; }
.ach-photo::before { content: ""; position: absolute; inset: -14px; border: 2px solid var(--gold); border-radius: calc(var(--r-lg) + 8px); rotate: -3deg; opacity: 0; transition: opacity 1s .6s, rotate 1.4s var(--ease) .6s; }
.ach-photo.in::before { opacity: .8; }
.ach-photo figure { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.podium { position: absolute; z-index: 3; right: -14px; bottom: -22px; display: flex; }
.podium i { font-style: normal; display: grid; place-items: center; width: 66px; height: 66px; margin-left: -12px; border-radius: 50%; font-stretch: 78%; font-weight: 900; font-size: 1.5rem; color: rgba(0, 0, 0, .72); border: 3px solid var(--dark); opacity: 0; transform: translateY(-40px); transition: opacity .4s, transform .7s cubic-bezier(.3, 1.6, .5, 1); }
.podium .g { background: radial-gradient(circle at 30% 30%, #fff2c2, #e2bb5c 50%, #a67a1e); transition-delay: .9s; z-index: 3; }
.podium .s { background: radial-gradient(circle at 30% 30%, #fff, #cdd0d5 50%, #868a91); transition-delay: 1.05s; z-index: 2; }
.podium .b { background: radial-gradient(circle at 30% 30%, #ffd9bb, #c98a55 50%, #824d1e); transition-delay: 1.2s; z-index: 1; }
.ach-photo.in .podium i { opacity: 1; transform: none; }
.ach-row { display: grid; grid-template-columns: minmax(150px, .5fr) 1fr; gap: 26px; align-items: center; padding: 26px 0; border-top: 1px solid var(--d-line); transition: padding .4s var(--ease), opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.ach-row:last-child { border-bottom: 1px solid var(--d-line); }
.ach-row:hover { padding-left: 14px; }
.ach-row > b { font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: .9; font-stretch: 70%; color: var(--gold); }
.ach-row > b.jp { font-family: var(--jp); font-weight: 400; color: var(--red); }
.ach-row h3 { font-stretch: 84%; font-weight: 800; font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; }
.ach-row p { color: var(--d-muted); }
.ach-strip { display: grid; grid-template-columns: 1.5fr .8fr 1fr .9fr; gap: 18px; margin-top: clamp(60px, 8vw, 100px); }
.ach-strip figure { height: clamp(200px, 24vw, 330px); }

/* 6 · Family */
.fam-grid {
  display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 200px);
  grid-template-areas:
    "a a a a a a a a b b b b" "a a a a a a a a b b b b"
    "c c c d d d d d e e e e" "c c c d d d d d e e e e"
    "f f f f f f g g g g g g" "f f f f f f g g g g g g";
}
.f-a { grid-area: a; } .f-b { grid-area: b; } .f-c { grid-area: c; } .f-d { grid-area: d; } .f-e { grid-area: e; } .f-f { grid-area: f; } .f-g { grid-area: g; }
.fam-grid figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: var(--surface); color: var(--ink); font-size: .8rem; font-weight: 700; padding: 7px 14px; border-radius: 99px; transform: translateY(8px); opacity: 0; transition: transform .5s var(--ease) .5s, opacity .5s .5s; }
.fam-grid .in figcaption { transform: none; opacity: 1; }
.f-b img, .f-c img { object-position: center 30%; }

/* 7 · Gallery */
/* even grid: every tile is the same height; landscape photos take two columns.
   The mix is chosen so each batch fills whole rows and the section ends level. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense; }
.g-item { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--bg); cursor: zoom-in; position: relative; }
.g-item.g-wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item::after { content: "+"; position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 400; scale: 0; transition: scale .35s cubic-bezier(.3, 1.5, .5, 1); }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after { scale: 1; }
.gallery:not(.open) .g-more { display: none; }
.g-foot { display: flex; justify-content: center; margin-top: 30px; }
.gallery.open + .g-foot { display: none; }
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(8, 8, 8, .96); display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; animation: fade .3s var(--ease); }
.lb[hidden] { display: none; }
.lb-fig { background: none; overflow: visible; border-radius: 0; height: 86vh; display: grid; place-items: center; }
.lb-fig img { width: auto; height: auto; max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 14px; transition: none; transform: none !important; }
.lb-nav, .lb-close { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); justify-self: center; transition: background .3s, transform .3s var(--ease); }
.lb-nav:hover, .lb-close:hover { background: var(--red); transform: scale(1.08); }
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #a2a2a8; font-weight: 700; letter-spacing: .1em; }

/* 8 · Trainer */
.trainer-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(50px, 8vw, 130px); align-items: center; }
.trainer-photo { position: relative; }
.trainer-photo figure { aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--dark-2); }
.trainer-photo img { object-position: center 18%; }
.slab { position: absolute; inset: 9% -7% -6% 13%; border-radius: var(--r-lg); background: var(--red); rotate: -5deg; transform: scale(.6); opacity: 0; transition: transform 1s var(--ease) .3s, opacity .6s .3s; }
.in .slab { transform: none; opacity: 1; }
.trainer-jp { position: absolute; right: -58px; top: 6px; font-family: var(--jp); font-size: 3.2rem; writing-mode: vertical-rl; text-orientation: upright; color: var(--d-text); line-height: 1; }
.trainer-body .head { margin-bottom: 22px; gap: 14px; }
.trainer-name { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .92; }
.trainer-role { font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.trainer-bio { color: var(--d-muted); max-width: 56ch; font-size: 1.05rem; }
.trainer-body .quote { margin-top: 26px; }
.trainer-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.trainer-facts li { padding: 20px; border-radius: 16px; background: var(--dark-2); border: 1px solid var(--d-line); display: flex; flex-direction: column; gap: 4px; }
.trainer-facts b { font-size: 2.2rem; line-height: 1; color: var(--d-text); }
.trainer-facts span { font-size: .84rem; color: var(--d-muted); }
.trainer-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; margin-top: clamp(60px, 8vw, 110px); }
.trainer-strip figure { height: clamp(220px, 26vw, 370px); background: var(--dark-2); }

/* 9 · Schedule & branches */
.branch-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.42fr); gap: 18px; align-items: stretch; }
.branch-tabs { display: flex; flex-direction: column; gap: 10px; }
.branch-tabs button { flex: 1; display: grid; grid-template-columns: 46px 1fr 24px; column-gap: 8px; align-items: center; text-align: left; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease); }
.branch-tabs i { grid-row: span 2; font-style: normal; font-stretch: 78%; font-weight: 900; font-size: 1.5rem; color: var(--red); }
.branch-tabs b { font-stretch: 86%; font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.branch-tabs span { grid-column: 2; font-size: .82rem; opacity: .6; }
.branch-tabs svg { grid-column: 3; grid-row: 1 / span 2; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); }
.branch-tabs button:hover { transform: translateX(6px); border-color: var(--line-2); }
.branch-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: none; }
.branch-tabs button.on svg { opacity: 1; transform: none; color: var(--red); }
.branch-panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.branch-panel figure { border-radius: 0; min-height: 440px; }
.bp-pin { position: absolute; z-index: 2; left: 18px; top: 18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; animation: floatA 3s ease-in-out infinite; }
.bp-body { padding: clamp(26px, 3.4vw, 46px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.bp-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bp-title { font-size: 30px; line-height: 1.05; color: var(--ink); margin-top: -10px; }
.bp-title.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } }
.bp-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bp-times a { display: grid; place-items: center; height: 62px; border-radius: 14px; border: 1.5px solid var(--line-2); font-stretch: 78%; font-weight: 900; font-size: 1.45rem; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.bp-times a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-4px); }
.bp-info { display: flex; flex-direction: column; gap: 8px; }
.bp-info li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; }
.bp-info li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 6px; border-radius: 2px; background: var(--red); }
.bp-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.bp-map { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 2px solid var(--line-2); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.bp-map:hover { color: var(--red); border-color: var(--red); }

/* 10 · Start */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.steps { position: relative; margin-bottom: 34px; }
/* the line the steps hang on is a belt that fills with red */
.steps::before, .steps::after { content: ""; position: absolute; left: 29px; top: 20px; width: 8px; border-radius: 4px; }
.steps::before { bottom: 50px; background: var(--line); }
.steps::after { height: 0; background: var(--red); transition: height 2.4s var(--ease) .2s; }
.steps:has(li.in)::after { height: calc(100% - 70px); }
.steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 66px 1fr; gap: 22px; padding-bottom: 30px; }
.step-k { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); font-family: var(--jp); font-size: 1.9rem; line-height: 1; color: var(--ink); transition: background .4s calc(var(--d, 0s) + .5s), color .4s calc(var(--d, 0s) + .5s), border-color .4s calc(var(--d, 0s) + .5s), transform .4s var(--ease); }
.steps li.in .step-k { background: var(--red); border-color: var(--red); color: #fff; }
.steps li:hover .step-k { transform: scale(1.1) rotate(-6deg); }
.steps h3 { font-stretch: 84%; font-weight: 800; font-size: 1.4rem; line-height: 1.2; margin: 8px 0 4px; color: var(--ink); }
.steps p { color: var(--muted); }
.start-media { position: relative; }
.start-media .studio { aspect-ratio: 3 / 4; }
.start-media .hanko { left: -18px; bottom: 34px; }

/* offer card in "How to start" */
.offer { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 22px 18px 18px; margin: -6px 0 30px; border-radius: 18px; background: var(--surface); border: 1.5px dashed var(--red); box-shadow: 0 16px 34px -22px rgba(225, 6, 19, .6); max-width: 560px; overflow: hidden; }
.offer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.offer-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: rgba(225, 6, 19, .1); color: var(--red); flex: none; margin-left: 6px; }
.offer-ic svg { width: 34px; height: 34px; animation: wiggle 3.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(7deg); } 95% { transform: rotate(-4deg); } }
.offer-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--red); padding: 3px 10px; border-radius: 99px; margin-bottom: 6px; }
.offer p { color: var(--text); font-size: 1rem; line-height: 1.45; }
.offer b { color: var(--red); font-weight: 800; }

/* 11 · FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--hh) + 30px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.faq-side .head { margin-bottom: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px 20px 26px; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); flex: none; transition: background .3s, color .3s, transform .4s var(--ease); }
.faq details[open] summary i { background: var(--red); color: #fff; transform: rotate(135deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); max-width: 64ch; }

/* 12 · Register */
.register { position: relative; background: var(--red); color: #fff; padding: clamp(90px, 11vw, 150px) 0; overflow: hidden; scroll-margin-top: calc(var(--hh) + 4px); }
.register::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 160px 80px; }
.register .wm { color: rgba(0, 0, 0, .09); right: auto; left: -2vw; top: auto; bottom: -3vw; }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.reg-copy { display: flex; flex-direction: column; gap: 22px; }
.tagline-w { color: rgba(255, 255, 255, .85); }
.tagline-w i { background: #fff; color: var(--red); }
.register .h2 { color: #fff; }
.register .h2 em::after { background-image: var(--brush-ink); opacity: .9; }
.reg-copy .lead { color: rgba(255, 255, 255, .9); max-width: 46ch; }
.reg-pic { aspect-ratio: 16 / 8; border-radius: var(--r); border: 4px solid rgba(255, 255, 255, .9); max-width: 520px; background: #111; }
.reg-pic img { filter: grayscale(1) contrast(1.1); object-position: center 35%; }
.reg-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; }
.reg-contacts > span { margin-right: 8px; opacity: .9; }
.reg-contacts .icon:hover { background: #fff; color: var(--red); border-color: #fff; }

.form { position: relative; display: flex; flex-direction: column; gap: 18px; background: var(--surface); color: var(--text); padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .65); }
.form-belt { position: absolute; top: -17px; right: 34px; width: 132px; height: auto; aspect-ratio: 120 / 66; color: #141414; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); transform-origin: 50% 20%; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 50% { rotate: 3deg; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field legend { margin-bottom: 9px; }
.field input, .field select, .phone { height: 56px; width: 100%; border: 1.5px solid transparent; background: var(--bg-2); border-radius: 14px; font-size: 1.02rem; padding: 0 18px; outline: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%2388888e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input::placeholder { color: #a0a0a6; }
.field input:focus, .field select:focus, .phone:focus-within { border-color: var(--red); background-color: var(--surface); box-shadow: 0 0 0 4px rgba(225, 6, 19, .14); }
.phone { display: flex; align-items: center; gap: 12px; padding-right: 0; }
.phone span { font-weight: 800; color: var(--muted); padding-right: 12px; border-right: 1.5px solid var(--line-2); }
.phone input { border: 0 !important; background: none !important; box-shadow: none !important; height: 100%; padding: 0 18px 0 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.invalid input, .field.invalid select, .field.invalid .phone { border-color: var(--red); }
.field-err { font-size: .78rem; color: var(--red); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; text-transform: none; letter-spacing: normal; color: var(--text); font-size: inherit; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 99px; background: var(--bg-2); border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; transition: all .2s; }
.chips label:hover span { border-color: var(--line-2); }
.chips input:checked + span { background: var(--red); color: #fff; box-shadow: 0 10px 20px -10px rgba(225, 6, 19, .8); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form-note { font-size: .82rem; color: var(--muted); }
.form button[disabled] { opacity: .6; pointer-events: none; }
.form-ok { position: absolute; inset: 0; z-index: 3; border-radius: inherit; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 32px; animation: fade .4s var(--ease); }
.form-ok[hidden] { display: none; }
.form-ok h3 { font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: 2.2rem; line-height: 1; color: var(--ink); }
.form-ok p { color: var(--muted); max-width: 34ch; }
.hanko-ok { position: static; writing-mode: horizontal-tb; display: grid; place-items: center; width: 78px; height: 78px; padding: 0; animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
.hanko-ok svg { width: 38px; height: 38px; }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(2.4); } }

/* 13 · Instagram */
.sec-ig { padding-bottom: clamp(80px, 9vw, 130px); }
.ig-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(30px, 4vw, 46px); }
.ig-head .head { margin-bottom: 0; }
.ig-ctrl { display: flex; gap: 10px; flex: none; }
.arrow { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: background .3s, transform .3s var(--ease); }
.arrow:hover { background: var(--red); color: #fff; transform: scale(1.08); }
.ig-track { --pad: max(var(--g), calc((100vw - var(--wrap)) / 2 + var(--g))); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 6px var(--pad) 10px; scrollbar-width: none; cursor: grab; outline: none; }
.ig-track::-webkit-scrollbar { display: none; }
.ig-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.ig-track.dragging .ig-card { pointer-events: none; }
.ig-card { position: relative; flex: 0 0 clamp(220px, 23vw, 300px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); scroll-snap-align: start; background: var(--bg-2); transition: transform .5s var(--ease); }
.ig-card:hover { transform: translateY(-8px) rotate(-1.2deg); }
.ig-card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.ig-ov { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(225, 6, 19, .78), rgba(225, 6, 19, .2)); color: #fff; opacity: 0; transition: opacity .35s; }
.ig-ov svg { width: 38px; height: 38px; }
.ig-card:hover .ig-ov { opacity: 1; }
.ig-foot { display: flex; align-items: center; gap: 32px; margin-top: 30px; }
.ig-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-2); position: relative; overflow: hidden; }
.ig-progress span { position: absolute; left: 0; top: 0; height: 100%; width: 20%; border-radius: 3px; background: var(--red); transition: left .25s, width .25s; }

/* Footer */
.footer { position: relative; background: var(--dark); color: var(--d-text); padding: clamp(70px, 9vw, 110px) 0 30px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--d-line); }
.foot-brand { display: flex; align-items: center; gap: 28px; }
.foot-logo { width: 130px; height: 130px; color: var(--d-text); animation: spin 40s linear infinite; }
.foot-slogan { font-size: clamp(2rem, 4vw, 3.2rem); line-height: .92; }
.foot-slogan span { color: var(--red); }
.foot-col h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--d-muted); font-weight: 700; margin-bottom: 18px; }
.foot-col ul { display: flex; flex-direction: column; gap: 8px; }
.foot-col li { font-weight: 600; font-size: 1.05rem; }
.foot-phone { display: block; font-stretch: 80%; font-weight: 900; font-size: 1.9rem; margin-bottom: 18px; transition: color .3s; }
.foot-phone:hover { color: var(--red); }
.foot-social { display: flex; gap: 8px; }
.foot-social .icon { border-color: var(--d-line); }
.foot-social .icon:hover { background: var(--red); border-color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: .86rem; color: var(--d-muted); }
.foot-bottom { align-items: center; }
.foot-bottom > :first-child, .foot-bottom > .foot-jp, .foot-bottom > .foot-legal { flex: 1; }
.foot-bottom > .foot-jp, .foot-bottom > .foot-legal { text-align: right; }
.foot-credit { display: inline-flex; align-items: center; gap: 10px; color: var(--d-muted); transition: color .3s, opacity .3s; white-space: nowrap; }
.foot-credit img { height: 18px; width: auto; opacity: .85; transition: opacity .3s; }
.foot-credit:hover { color: var(--d-text); } .foot-credit:hover img { opacity: 1; }
.foot-jp { font-family: var(--jp); letter-spacing: .25em; color: var(--red); }

/* Sticky mobile CTA */
.sticky { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; gap: 8px; padding: 7px; border-radius: 99px; background: var(--header-bg); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line), var(--shadow); transform: translateY(160%); transition: transform .45s var(--ease); }
.sticky.show { transform: none; }
.sticky-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg); flex: none; }
.sticky-main { flex: 1; --h: 52px; }

/* dark-theme touches */
:root[data-theme="dark"] .field select option { background: #1b1b1d; color: #ececea; }
:root[data-theme="dark"] .sec-dark, :root[data-theme="dark"] .footer { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .beltpath { background: var(--surface); border: 1px solid var(--line); }
:root[data-theme="dark"] .chip-belt, :root[data-theme="dark"] .form-belt { color: #f5f5f3; }
:root[data-theme="dark"] .step-k { background: var(--bg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header-end { margin-left: auto; }
  .burger { display: grid; }
  .why-grid { grid-template-columns: 1fr 1fr 1fr; }
  .why-img { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 16 / 8; }
  .chip-a { left: -2%; } .chip-b { left: -3%; } .chip-c { right: -3%; } .spin { right: -2%; }
  .trainer-jp { right: -44px; font-size: 2.4rem; }
}

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero-grid, .about-grid, .ach-grid, .trainer-grid, .start-grid, .faq-grid, .reg-grid, .branch-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 440px; margin-top: 20px; }
  .head-split { flex-direction: column; align-items: flex-start; gap: 18px; }
  .about-media { margin-bottom: 60px; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .ach-photo { max-width: 460px; }
  .ach-strip { grid-template-columns: 1fr 1fr; }
  .trainer-photo { max-width: 440px; }
  .branch-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .branch-tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .start-media { max-width: 420px; }
  .faq-side { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .sticky { display: flex; }
  body { padding-bottom: 84px; }
  [data-rv="left"], [data-rv="right"] { transform: translateY(36px); }
}

@media (max-width: 640px) {
  :root { --hh: 66px; --r-lg: 24px; }
  .header-cta, .header-end > .lang { display: none; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-txt small { display: none; }
  .display { font-size: clamp(3.3rem, 17.5vw, 5rem); }
  .hero-cta .btn { width: 100%; }
  .hero-photo { padding-bottom: 90px; }
  .hero-photo .hero-cta { flex-direction: column; width: 100%; }
  .hero-meta { display: grid; grid-template-columns: auto auto auto; justify-content: start; }
  .hero-meta li { padding: 0 12px; }
  .hero-meta li:first-child { padding-left: 10px; }
  .hero-meta b { font-size: 1.05rem; white-space: nowrap; }
  .hero-meta span { font-size: .72rem; }
  .stage { max-width: 86%; }
  .stage-panel { border-radius: 28px; }
  .chip { padding: 9px 13px; border-radius: 14px; }
  .chip b { font-size: 1.15rem; } .chip-b b { font-size: 1.5rem; }
  .chip-a { left: -9%; top: 4%; } .chip-b { left: -9%; } .chip-c { right: -9%; top: 58%; }
  .spin { right: -8%; bottom: -6%; width: 108px; } .spin text { font-size: 16px; }
  .pillars, .num-grid, .why-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .num { padding: 22px 18px; }
  .why-img { aspect-ratio: 4 / 3; }
  .beltpath { padding: 22px; }
  .ach-row { grid-template-columns: 1fr; gap: 8px; }
  .podium i { width: 54px; height: 54px; font-size: 1.2rem; }
  .fam-grid { gap: 10px; grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; grid-template-areas: "a a" "b c" "b c" "d d" "e e" "f g"; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } .g-item { border-radius: 12px; }
  .lb { grid-template-columns: 1fr; } .lb-nav { position: absolute; bottom: 14px; } .lb-prev { left: 14px; } .lb-next { right: 14px; } .lb-fig { height: 78vh; padding: 0 10px; }
  .trainer-jp { display: none; }
  .trainer-facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .trainer-facts li { padding: 14px 12px; } .trainer-facts b { font-size: 1.6rem; }
  .trainer-strip { grid-template-columns: 1fr 1fr; gap: 10px; } .ts-wide { grid-column: 1 / -1; }
  .branch-tabs { grid-template-columns: 1fr; }
  .branch-panel { grid-template-columns: 1fr; } .branch-panel figure { min-height: 200px; aspect-ratio: 16 / 9; }
  .bp-times { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .form-belt { width: 100px; right: 22px; }
  .ig-head { flex-direction: column; align-items: flex-start; } .ig-ctrl { display: none; }
  .ig-card { flex-basis: 68vw; }
  .ig-foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .foot-top { grid-template-columns: 1fr; } .foot-brand { flex-direction: column; align-items: flex-start; }
  .foot-bottom { flex-direction: column; align-items: flex-start; } .foot-bottom > .foot-jp, .foot-bottom > .foot-legal { text-align: left; }
  .wm { font-size: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-rv], .hero-copy > *, .chip, .stage-panel, .belts li, .podium i, .fam-grid figcaption { opacity: 1 !important; transform: none !important; clip-path: none !important; scale: 1 !important; }
  [data-rv="img"] img { clip-path: none !important; transform: none !important; }
  .ln > span { transform: none; } .spin { scale: 1; } .enso circle { stroke-dasharray: 1560 2000; }
  .h2 em::after { transform: scaleX(1); } .slab { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HERO · spotlight + lightning (logo bolt)
   The photo is dark except where the pointer is; the logo bolt
   glows, tilts toward the pointer and blinks like lightning.
   ============================================================ */
.mh { min-height: 100vh; min-height: 100svh; background: #070709; }
.mh.hero-photo { padding: calc(var(--hh) + 46px) 0 110px; }
.mh .eyebrow { background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: .74rem; letter-spacing: .24em; color: rgba(255, 255, 255, .72); gap: 14px; margin-bottom: 30px; }
.mh .eyebrow .dot { width: 30px; height: 1px; border-radius: 0; animation: none; box-shadow: none; background: #5fb0ff; }
.mh .display { text-shadow: none; }
.mh .hero-lead { color: rgba(255, 255, 255, .68); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.mh.left { text-align: left; }
.mh.left .hero-copy { display: flex; flex-direction: column; align-items: flex-start; z-index: 3; }
.mh.left .hero-copy > * { max-width: min(42vw, 580px); }
.mh.left .display { font-size: clamp(3.2rem, 7.2vw, 7.2rem); max-width: none; }
.mh.left .hero-lead { margin-left: 0; max-width: 42ch; }
.mh.left .hero-cta { justify-content: flex-start; }

/* background photo */
.bgp { position: absolute; top: 0; bottom: 0; left: var(--l, 0); right: var(--r, 0); overflow: hidden; z-index: 0; }
.bgp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; filter: grayscale(1) contrast(1.12); opacity: 0; transform: scale(1.07); transition: opacity .9s ease, transform 9s ease-out; }
.in .bgp img { opacity: var(--o, .4); transform: none; }
.bgp.strike img { animation: lit 1.3s; }
@keyframes lit { 0% { filter: grayscale(1) contrast(1.12) brightness(2.3); } 10% { filter: grayscale(1) contrast(1.12) brightness(1.1); } 20% { filter: grayscale(1) contrast(1.12) brightness(1.9); } 100% { filter: grayscale(1) contrast(1.12) brightness(1); } }
.t4 .bgp { --o: .95; }

/* the dark layer with a hole of light that follows the pointer */
.spot { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle 360px at var(--x, 60%) var(--y, 48%), rgba(7, 7, 9, .02) 0, rgba(7, 7, 9, .55) 46%, rgba(7, 7, 9, .9) 100%); }
.spot::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 280px at var(--x, 60%) var(--y, 48%), rgba(80, 150, 255, .2), rgba(80, 150, 255, 0) 70%); }
.spot.flash { animation: spotFlash 1.1s; }
@keyframes spotFlash { 0% { opacity: .2; } 9% { opacity: 1; } 18% { opacity: .35; } 34% { opacity: .85; } 100% { opacity: 1; } }
.amb { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; background: radial-gradient(42% 60% at 73% 48%, rgba(90, 160, 255, .5), rgba(90, 160, 255, 0) 72%); }
.amb.strike { animation: aflash 1.3s; }
@keyframes aflash { 0% { opacity: .95; } 10% { opacity: .15; } 20% { opacity: .7; } 100% { opacity: 0; } }

/* line art */
.ln-svg { position: absolute; z-index: 2; pointer-events: none; overflow: visible; width: auto; height: auto; }
.ln-svg polyline, .ln-svg path { fill: none; stroke-linejoin: miter; stroke-miterlimit: 8; }
.core { stroke: #f4f9ff; }
.echo { stroke: #4da3ff; }
/* crackles drawn by the script */
.lt { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(205, 230, 255, .9)) drop-shadow(0 0 14px rgba(70, 160, 255, .85)) drop-shadow(0 0 38px rgba(40, 110, 255, .55)); }
.lt .b { stroke: #dceaff; stroke-width: 1.4; opacity: 0; }
.lt.strike .b { animation: bflash 1.5s forwards; }
@keyframes bflash { 0% { opacity: .95; } 10% { opacity: .15; } 20% { opacity: .9; } 55% { opacity: .45; } 100% { opacity: 0; } }

/* the logo bolt */
.tw .bolt-wrap { position: absolute; z-index: 2; right: 9%; top: 50%; height: min(76vh, 46vw); aspect-ratio: 112 / 140; transform: translateY(-50%); perspective: 900px; pointer-events: none; }
.tw .logo-bolt { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotateY(calc(var(--tx, 0) * 12deg)) rotateX(calc(var(--ty, 0) * -9deg)); transition: transform .25s ease-out; }
.tw .logo-bolt path { stroke-width: .55; }
.tw .logo-bolt .core, .tw .logo-bolt .echo { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tw .logo-bolt .core { stroke-width: .7; }
.tw .logo-bolt .echo { stroke-width: .5; }
.tw .echo-g { transform: translate(calc(var(--tx, 0) * 3px), calc(var(--ty, 0) * 3px)); transition: transform .25s ease-out; }
.tw.in .logo-bolt .core { animation: draw 2.2s cubic-bezier(.6, 0, .2, 1) .5s forwards; }
.tw.in .logo-bolt .echo { animation: draw 2.2s cubic-bezier(.6, 0, .2, 1) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tw .tick { stroke: none !important; opacity: 0; transition: opacity .6s 2.4s; }
.tw.in .tick { opacity: 1; }
.tick-r { fill: #ff2a36 !important; } .tick-b { fill: #4da3ff !important; }
.tw .spark { stroke: #fff; stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: .05 1; stroke-dashoffset: 1.05; opacity: 0; }
.tw.in .spark { animation: spark 4s 3s linear infinite; }
@keyframes spark { 0% { stroke-dashoffset: 1.05; opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 61%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.tw .fillb { fill: #f4faff; stroke: none !important; opacity: 0; }
.tw .hit .fillb { animation: hit 1.1s; }
@keyframes hit { 0% { opacity: .95; } 10% { opacity: .25; } 20% { opacity: .85; } 100% { opacity: 0; } }
/* glow that breathes, and spikes on every blink */
.t6 .logo-bolt { animation: glowPulse 3.4s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(190, 225, 255, .85)) drop-shadow(0 0 16px rgba(70, 150, 255, .6)) drop-shadow(0 0 40px rgba(50, 120, 255, .35)); }
  50% { filter: drop-shadow(0 0 6px rgba(225, 240, 255, 1)) drop-shadow(0 0 26px rgba(90, 170, 255, .95)) drop-shadow(0 0 70px rgba(50, 120, 255, .7)); }
}
.t6 .bolt-wrap.hit .logo-bolt { animation: hitGlow 1.1s, glowPulse 3.4s ease-in-out 1.1s infinite; }
@keyframes hitGlow {
  0% { opacity: 1; filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 40px rgba(120, 190, 255, 1)) drop-shadow(0 0 110px rgba(60, 130, 255, 1)); }
  9% { opacity: .25; }
  18% { opacity: 1; filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 36px rgba(120, 190, 255, 1)) drop-shadow(0 0 90px rgba(60, 130, 255, .9)); }
  30% { opacity: .6; }
  42% { opacity: 1; }
  100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(190, 225, 255, .85)) drop-shadow(0 0 16px rgba(70, 150, 255, .6)) drop-shadow(0 0 40px rgba(50, 120, 255, .35)); }
}

@media (max-width: 860px) {
  .mh.left .hero-copy > * { max-width: 100%; }
  .tw .bolt-wrap { right: -30%; height: 64vh; opacity: .3; }
  .t4 .bgp { --o: .8; }
}
@media (max-width: 640px) {
  .mh.left .display { font-size: clamp(3.3rem, 16vw, 4.6rem); }
  .mh.left .hero-cta { align-items: flex-start; }
  .mh.hero-photo { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .tw .logo-bolt .core, .tw .logo-bolt .echo { stroke-dashoffset: 0; }
  .bgp img { opacity: .8 !important; transform: none !important; }
  .tw .tick { opacity: 1; }
}

/* ============================================================
   TRAINER · read-more link + full story dialog
   ============================================================ */
.more-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 0 6px; font-weight: 800; font-size: .95rem; letter-spacing: .02em; color: var(--d-text); border-bottom: 2px solid var(--red); transition: gap .3s var(--ease), color .3s; }
.more-link svg { width: 18px; height: 18px; color: var(--red); transition: transform .3s var(--ease); }
.more-link:hover { gap: 14px; }
.more-link:hover svg { transform: translateX(3px); }
.more-link:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; border-radius: 4px; }

html.modal-open { overflow: hidden; }
.story:focus, .story:focus-visible { outline: none; }
.story { padding: 0; border: 0; background: transparent; color: var(--d-text); width: min(780px, calc(100% - 32px)); max-width: none; max-height: min(88vh, 1000px); margin: auto; overflow: visible; }
.story::backdrop { background: rgba(6, 6, 7, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.story[open] { animation: story-in .45s var(--ease); }
.story[open]::backdrop { animation: fade .35s var(--ease); }
@keyframes story-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
.story-in { position: relative; max-height: min(88vh, 1000px); overflow-y: auto; overscroll-behavior: contain; background: var(--dark-2); border: 1px solid var(--d-line); border-top: 4px solid var(--red); border-radius: var(--r-lg); box-shadow: 0 40px 120px rgba(0, 0, 0, .55); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.story-close { position: sticky; top: 14px; float: right; margin: 14px 14px -58px 0; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); transition: background .3s, transform .3s var(--ease); }
.story-close svg { width: 20px; height: 20px; }
.story-close:hover { background: var(--red); transform: rotate(90deg); }
.story-head { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 44px) clamp(22px, 4.5vw, 52px) 26px; border-bottom: 1px solid var(--d-line); }
.story-head img { width: 112px; height: 140px; object-fit: cover; object-position: center 18%; border-radius: 16px; }
.story-head .tagline { color: var(--d-muted); }
.story-name { margin: 8px 0 8px; font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: .95; letter-spacing: -.01em; }
.story-body { padding: 28px clamp(22px, 4.5vw, 52px) 10px; }
.story-body p { color: var(--d-muted); font-size: 1.02rem; line-height: 1.75; margin: 0 0 16px; max-width: 64ch; }
.story-body .story-lead { color: var(--d-text); font-size: 1.12rem; }
.story-body h3 { margin: 32px 0 12px; font-stretch: 82%; font-weight: 900; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em; display: flex; align-items: center; gap: 12px; }
.story-body h3::before { content: ""; width: 22px; height: 3px; background: var(--red); border-radius: 2px; }
.story-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 8px; }
.story-stats li { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--d-line); display: flex; flex-direction: column; gap: 4px; }
.story-stats b { font-stretch: 78%; font-weight: 900; font-size: 1.9rem; line-height: 1; }
.story-stats span { font-size: .8rem; color: var(--d-muted); }
.story-body .quote { margin: 30px 0 10px; }
.story-body .quote p { color: var(--d-text); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.35; margin: 0; }
.story-foot { position: sticky; bottom: 0; padding: 18px clamp(22px, 4.5vw, 52px) 22px; background: linear-gradient(to bottom, rgba(22, 22, 24, 0), var(--dark-2) 38%); display: flex; justify-content: flex-start; }
.story.story-inline { position: static; display: block; width: auto; max-height: none; margin-top: 30px; }
.story.story-inline .story-in { max-height: none; }
.story.story-inline .story-close { display: none; }

@media (max-width: 640px) {
  .story { width: 100%; max-height: 92vh; margin: auto 0 0; }
  .story[open] { animation-name: story-up; }
  @keyframes story-up { from { transform: translateY(100%); } }
  .story-in { max-height: 92vh; border-radius: 22px 22px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .story-head { grid-template-columns: 76px 1fr; gap: 16px; padding-right: 64px; }
  .story-head img { width: 76px; height: 96px; border-radius: 12px; }
  .story-head .trainer-role { letter-spacing: .08em; font-size: .74rem; line-height: 1.5; }
  .story-name { font-size: 1.9rem; }
  .story-stats { gap: 6px; } .story-stats li { padding: 12px 10px; } .story-stats b { font-size: 1.5rem; }
  .story-foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .story[open], .story[open]::backdrop { animation: none; } }

/* ============================================================
   BELT MEANINGS · tap a belt in the About belt row
   ============================================================ */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.belts button { display: block; padding: 4px 0 10px; color: inherit; background: none; border: 0; cursor: pointer; position: relative; }
.belts button::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--red); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease); }
.belts li.on button::after { transform: translateX(-50%) scale(1); }
.belts li.on svg { transform: translateY(-6px) scale(1.1); }
.in .belts.has-on li:not(.on) { opacity: .38; }
.belts button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.belt-info { flex: 1 0 100%; border-top: 1px solid var(--d-line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.belt-info p { margin: 0; color: var(--d-muted); font-size: .95rem; line-height: 1.6; max-width: 78ch; }
.belt-info em { font-style: normal; color: var(--d-text); opacity: .7; white-space: nowrap; }
.bi:not([hidden]) { animation: swap .4s var(--ease); }
.bi-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.belt-info .bi-h { color: var(--d-text); }
.bi-h i { width: 22px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.bi-h b { font-stretch: 80%; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; }
.bi-h span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.belt-info .bi-outro { font-size: .82rem; color: var(--d-muted); opacity: .75; border-left: 2px solid var(--red); padding-left: 12px; }
@media (max-width: 640px) { .belt-info em { white-space: normal; } }

/* footer: email + privacy link */
.foot-col .foot-phone { margin-bottom: 8px; }
.foot-mail { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--d-text); font-weight: 600; transition: color .3s; }
.foot-mail svg { width: 18px; height: 18px; color: var(--red); }
.foot-mail:hover { color: var(--red); }
.foot-legal { color: var(--d-muted); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; }
.foot-legal:hover { color: var(--d-text); text-decoration-color: var(--red); }

/* register: phone number (replaces the photo) */
.reg-call { display: inline-flex; align-items: center; gap: 16px; align-self: flex-start; color: #fff; font-stretch: 82%; font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; margin: 6px 0 4px; }
.reg-call small { display: block; font-stretch: 100%; font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-bottom: 6px; }
.reg-call-ic { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--red); box-shadow: 0 0 0 8px rgba(255, 255, 255, .16); transition: transform .3s var(--ease), background .3s, color .3s; }
.reg-call-ic svg { width: 26px; height: 26px; }
.reg-call:hover .reg-call-ic { background: #0c0c0d; color: #fff; animation: ring .6s; }

/* footer: branch addresses link to the map */
.foot-col li a { transition: color .3s; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.foot-col li a:hover { color: #fff; text-decoration-color: var(--red); }

/* ============================================================
   SIGN-UP MODAL · every "#register" button opens the form here
   ============================================================ */
.regm { padding: 0; border: 0; background: transparent; color: var(--text); width: min(580px, calc(100% - 32px)); max-width: none; max-height: min(94vh, 1000px); margin: auto; overflow: visible; }
.regm:focus, .regm:focus-visible { outline: none; }
.regm::backdrop { background: rgba(6, 6, 7, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.regm[open] { animation: story-in .45s var(--ease); }
.regm[open]::backdrop { animation: fade .35s var(--ease); }
.regm-in { position: relative; max-height: min(94vh, 1000px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 40px 120px rgba(0, 0, 0, .55); scrollbar-width: thin; }
.regm-head { position: relative; padding: clamp(26px, 4vw, 38px) clamp(22px, 4vw, 38px) 34px; background: var(--red); color: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.regm-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 34px 34px; }
.regm-head > * { position: relative; }
.regm-title { font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: .95; padding-right: 50px; color: #fff; }
.regm-title em { color: #0c0c0d; }
.regm-phone { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-weight: 800; font-stretch: 88%; font-size: 1.15rem; color: #fff; }
.regm-phone svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #fff; color: var(--red); transition: background .3s, color .3s; }
.regm-phone:hover svg { background: #0c0c0d; color: #fff; animation: ring .6s; }
.regm-close { z-index: 5; }
.regm .form { box-shadow: none; border-radius: 0; padding: 34px clamp(22px, 4vw, 38px) 28px; gap: 16px; }
.regm .form-belt { top: -20px; right: 28px; width: 110px; }
@media (max-width: 640px) {
  .regm { width: 100%; max-height: 94vh; margin: auto 0 0; }
  .regm[open] { animation-name: story-up; }
  .regm-in { max-height: 94vh; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .regm[open], .regm[open]::backdrop { animation: none; } }

/* sign-up modal: one-line title + kimono offer */
.regm { width: min(640px, calc(100% - 32px)); }
.regm-title { white-space: nowrap; font-size: min(2.15rem, 5.6vw); padding-right: 54px; }
.regm-offer { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .2); font-size: .92rem; line-height: 1.4; color: #fff; }
.regm-offer b { font-weight: 800; }
.regm-offer-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--red); }
.regm-offer-ic svg { width: 26px !important; height: 26px !important; }
@media (max-width: 640px) { .regm { width: 100%; } .regm-title { font-size: 5.4vw; padding-right: 50px; } }

/* success state: optional WhatsApp follow-up */
.form-ok .ok-wa { margin-top: 4px; }
.form-ok .ok-wa[hidden] { display: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
