/* =========================================================
   ZANCHIN KARATE DO — v2 cinematic design system
   ========================================================= */
:root {
  --bg: #070707;
  --bg-2: #0e0e0e;
  --bg-3: #161616;
  --ink: #f4efe8;
  --ink-2: #b9b3ab;
  --ink-3: #6f6a64;
  --red: #ff1f14;
  --red-deep: #b30d07;
  --red-glow: rgba(255, 31, 20, .55);
  --blue: #1c4bd6;
  --line: rgba(244, 239, 232, .12);

  --display: "Anton", "Impact", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --kanji: "Noto Serif JP", serif;

  --m: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  --fs-mega: clamp(4.5rem, 14vw, 15rem);
  --fs-xl: clamp(3.25rem, 8vw, 8.5rem);
  --fs-l: clamp(2.5rem, 5vw, 5rem);
  --fs-m: clamp(1.75rem, 2.6vw, 2.75rem);
  --fs-lead: clamp(1.125rem, 1rem + .5vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 999; background: var(--red); color: #fff; padding: 12px 18px; }
.skip:focus { top: 16px; }
.wrap { padding-left: var(--m); padding-right: var(--m); }
.red { color: var(--red); }
.kanji { font-family: var(--kanji); font-weight: 900; }

/* Small label */
.tag { display: inline-flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.tag::before { content: ""; width: 28px; height: 2px; background: var(--red); box-shadow: 0 0 12px var(--red-glow); }

/* ---------- Film grain + vignette ---------- */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--red);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 0 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--b); color: #fff; font-weight: 800; font-size: .9375rem; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 0 0 var(--red-glow), 0 10px 40px -10px var(--red-glow);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease); }
.btn:hover { box-shadow: 0 0 0 6px rgba(255,31,20,.18), 0 18px 60px -10px var(--red-glow); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn .ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.22); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; }
.btn:hover .ico { transform: rotate(-45deg); background: var(--red); color: #fff; }
.btn--ghost { --b: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { min-height: 48px; padding: 0 22px; font-size: .8125rem; }
.link-u { position: relative; font-weight: 700; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200; border-radius: 50%; }
.cursor { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1.5px solid rgba(255,255,255,.55); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.cursor span { font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .2s; color: #fff; }
.cursor.is-hover { width: 90px; height: 90px; margin: -45px 0 0 -45px; background: var(--red); border-color: var(--red); }
.cursor.is-hover span { opacity: 1; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--red); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; }
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; }
.loader__panel--t { top: 0; } .loader__panel--b { bottom: 0; }
.loader__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; }
.loader__logo { width: clamp(120px, 14vw, 200px); filter: drop-shadow(0 0 40px rgba(255,31,20,.45)); }
.loader__count { font-family: var(--display); font-size: clamp(3rem, 8vw, 7rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.loader__bar { width: min(320px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--red); box-shadow: 0 0 12px var(--red); transform: scaleX(0); transform-origin: left; }
.loader__flash { position: absolute; inset: 0; background: var(--red); opacity: 0; z-index: 3; }
html.seen .loader { display: none; }

/* ---------- Page transition ---------- */
.wipe { position: fixed; inset: 0; z-index: 250; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.wipe i { background: var(--red-deep); transform: scaleY(0); transform-origin: bottom; }
.wipe i:nth-child(even) { background: #000; }
.wipe__mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.wipe__mark img { width: 120px; }

/* ---------- Header ---------- */
.hdr { position: fixed; z-index: 120; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--m); transition: transform .6s var(--ease), background .4s, backdrop-filter .4s; }
.hdr.is-scrolled { background: rgba(7,7,7,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hdr.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 62px; height: 62px; transition: transform .8s var(--ease); filter: drop-shadow(0 0 18px rgba(255,31,20,.35)); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand__txt { display: grid; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.75rem; letter-spacing: .04em; }
.brand__sub { font-size: .6875rem; font-weight: 800; letter-spacing: .32em; color: var(--red); margin-top: 4px; white-space: nowrap; }
.hdr.is-scrolled .brand img { width: 50px; height: 50px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav > a:not(.btn) { position: relative; padding: 8px 0; color: var(--ink-2); transition: color .3s; }
.nav > a:not(.btn):hover, .nav > a[aria-current="page"] { color: var(--ink); }
.nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.lang { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.lang button { min-width: 38px; height: 30px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); transition: background .3s, color .3s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.burger { display: none; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.burger i { position: absolute; left: 16px; right: 16px; height: 2px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:nth-child(1) { top: 21px; } .burger i:nth-child(2) { top: 29px; }
.menu-open .burger i:nth-child(1) { top: 25px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 25px; transform: rotate(-45deg); }
@media (max-width: 1100px) {
  .nav > a:not(.btn) { display: none; }
  .burger { display: block; }
}
@media (max-width: 600px) {
  .brand img { width: 50px; height: 50px; }
  .brand__name { font-size: 1.375rem; }
  .nav .btn { display: none; }
  .nav { gap: 10px; }
}

/* ---------- Full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 110; background: var(--bg); display: grid; grid-template-columns: 1.2fr 1fr; visibility: hidden; clip-path: inset(0 0 100% 0); }
.menu__links { padding: 140px var(--m) 48px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.menu__links a { font-family: var(--display); font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: 1; text-transform: uppercase; display: flex; align-items: baseline; gap: 18px; color: var(--ink-3); transition: color .3s, transform .5s var(--ease); }
.menu__links a small { font-family: var(--body); font-size: .8125rem; color: var(--red); letter-spacing: .2em; font-weight: 800; }
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--ink); transform: translateX(14px); }
.menu__media { position: relative; overflow: hidden; }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity .6s var(--ease), transform 1.2s var(--ease); filter: grayscale(.2) contrast(1.1); }
.menu__media img.on { opacity: .9; transform: scale(1); }
.menu__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 40%); }
.menu__foot { position: absolute; left: var(--m); bottom: 28px; display: flex; gap: 28px; flex-wrap: wrap; font-size: .875rem; color: var(--ink-2); }
@media (max-width: 860px) { .menu { grid-template-columns: 1fr; } .menu__media { display: none; } }

/* ---------- Reveal helpers (visible without JS) ---------- */
.ln { display: block; overflow: hidden; padding: .14em 0 .1em; margin: -.14em 0 -.1em; }
.ln.is-done { overflow: visible; }
[data-reveal] { overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.phero { position: relative; min-height: 88svh; display: grid; align-items: end; padding: 180px var(--m) clamp(48px, 7vw, 100px); overflow: hidden; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img, .phero__bg video { width: 100%; height: 115%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,7,7,.35) 0%, rgba(7,7,7,.2) 40%, var(--bg) 100%), radial-gradient(80% 60% at 20% 100%, rgba(255,31,20,.18), transparent 70%); }
.phero h1 { font-size: var(--fs-mega); line-height: .86; max-width: 12ch; }
.phero__row { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-top: 32px; }
.phero__lead { max-width: 46ch; font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.5; }
.phero__k { position: absolute; right: var(--m); top: 120px; font-family: var(--kanji); font-weight: 900; font-size: clamp(6rem, 16vw, 16rem); line-height: 1; color: rgba(255,31,20,.22); writing-mode: vertical-rl; z-index: -1; }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 8vw, 130px) var(--m); position: relative; }
.sec--tight { padding-top: clamp(60px, 7vw, 110px); padding-bottom: clamp(60px, 7vw, 110px); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 90px); }
.sec-head h2 { font-size: var(--fs-l); }
.sec-head p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 44ch; justify-self: end; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { justify-self: start; } }

/* Big statement with highlight words */
.statement { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-l); line-height: 1.02; max-width: 22ch; }
.statement .w { opacity: .14; transition: none; }
.statement em { font-style: normal; color: var(--red); text-shadow: 0 0 40px var(--red-glow); }

/* Marquee */
.marquee { overflow: hidden; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.marquee__track { display: flex; align-items: center; gap: 60px; width: max-content; font-family: var(--display); font-size: clamp(2.5rem, 6vw, 6rem); text-transform: uppercase; line-height: 1; will-change: transform; }
.marquee__track .o { color: transparent; -webkit-text-stroke: 1.5px var(--ink-3); }
.marquee__track .k { font-family: var(--kanji); font-weight: 900; color: var(--red); font-size: 1.12em; }
.marquee__track .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }

/* Media reveal frame */
.frame { position: relative; overflow: hidden; background: var(--bg-3); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 28px 10px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 28px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 7vw, 7rem); line-height: 1; }
.stat b sup { font-size: .4em; color: var(--red); vertical-align: top; margin-left: 4px; }
.stat span { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } .stat { border-bottom: 1px solid var(--line); } }

/* CTA band */
.cta { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 170px) var(--m); text-align: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,31,20,.32) 0%, rgba(255,31,20,.08) 30%, transparent 60%); z-index: -1; }
.cta h2 { font-size: var(--fs-xl); line-height: .9; max-width: 14ch; margin: 0 auto; }
.cta p { color: var(--ink-2); font-size: var(--fs-lead); margin: 28px auto 44px; max-width: 40ch; }
.cta__btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) var(--m) 0; background: #000; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h3 { font-family: var(--body); font-size: .75rem; letter-spacing: .24em; font-weight: 800; color: var(--ink-3); margin-bottom: 20px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink-2); transition: color .3s; }
.foot a:hover { color: var(--red); }
.foot__brand img { width: 96px; margin-bottom: 24px; }
.foot__brand p { color: var(--ink-2); max-width: 32ch; }
.foot__big { font-family: var(--display); font-size: 25vw; line-height: .78; text-transform: uppercase; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(244,239,232,.16); margin-top: 60px; white-space: nowrap; letter-spacing: -.01em; user-select: none; }
.foot__big span { display: inline-block; }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; padding: 24px 0 30px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); }
.foot__legal a { color: var(--ink-2); }
.foot__legal .pw a { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* Sticky mobile action bar */
.mbar { position: fixed; z-index: 100; left: 12px; right: 12px; bottom: 12px; display: none; gap: 8px; }
.mbar a { flex: 1; min-height: 54px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.mbar .call { background: rgba(20,20,20,.9); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); }
.mbar .go { background: var(--red); box-shadow: 0 10px 30px -8px var(--red-glow); }
@media (max-width: 760px) { .mbar { display: flex; } body { padding-bottom: 80px; } }

/* Forms */
.field { display: grid; gap: 8px; }
.field label { font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 58px; padding: 0 18px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font: 500 1rem var(--body); transition: border-color .3s, box-shadow .3s; appearance: none; }
.field textarea { padding: 16px 18px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,31,20,.15); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23b9b3ab' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field select option { background: var(--bg-2); }

/* Accordion */
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); text-transform: uppercase; line-height: 1.05; transition: color .3s, padding .4s var(--ease); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--red); padding-left: 10px; }
.acc .pm { flex: 0 0 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; transition: background .3s, transform .5s var(--ease); }
.acc .pm::before, .acc .pm::after { content: ""; position: absolute; left: 14px; right: 14px; top: 21px; height: 2px; background: currentColor; }
.acc .pm::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.acc details[open] .pm { background: var(--red); transform: rotate(180deg); }
.acc details[open] .pm::after { transform: rotate(0); }
.acc details p { padding: 0 0 30px; color: var(--ink-2); max-width: 64ch; font-size: 1.0625rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}
@media (max-width: 760px) { .phero__k { display: none; } }

/* Partner band (backlinks: BlackBeltCRM + Anexan) */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.partner { display: flex; align-items: center; gap: 24px; padding: 26px 30px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s, background .4s; }
.partner:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px rgba(255,31,20,.5); }
.partner img { flex: 0 0 auto; width: 190px; height: auto; }
.partner img.partner__anx { width: 56px; }
.partner__txt { display: grid; gap: 6px; }
.partner__txt b { font-weight: 800; color: var(--ink); font-size: 1.0625rem; }
.partner__txt span { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.partner:hover .partner__txt span { color: var(--ink); }
@media (max-width: 900px) { .partners { grid-template-columns: 1fr; } .partner { flex-direction: column; align-items: flex-start; gap: 16px; } .partner img { width: 170px; } }

@media (max-width: 600px) { .foot__grid { grid-template-columns: 1fr; gap: 32px; } }
.partner__txt b a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.partner__txt b a:hover { color: var(--red); }
