/* ===== HOME ===== */

/* Adrian kata */
.kata { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 7vw; align-items: center; }
.kata__video { position: relative; aspect-ratio: 9/16; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 40px 120px -40px var(--red-glow), inset 0 0 0 1px var(--line); }
.kata__video video { width: 100%; height: 100%; object-fit: cover; }
.kata__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 35%); pointer-events: none; }
.kata__sound { position: absolute; z-index: 2; left: 50%; bottom: 22px; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 800; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; transition: background .3s; white-space: nowrap; }
.kata__sound::before { content: ""; width: 0; height: 0; border-left: 10px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.kata__sound:hover { background: var(--red); }
.kata__body { display: grid; gap: 28px; justify-items: start; }
.kata__body h2 { font-size: var(--fs-xl); max-width: 12ch; }
.kata__body > p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 48ch; }
.kata__facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; flex-wrap: wrap; }
.kata__facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--ink); }
.kata__facts li:first-child b { font-family: var(--kanji); font-weight: 900; color: var(--red); font-size: 2.6rem; }
.kata__facts sup { font-size: .45em; color: var(--red); }
.kata__facts span { color: var(--ink-2); font-size: .875rem; }
.kata-modal { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; }
.kata-modal video { max-height: 90vh; max-width: 92vw; border-radius: 18px; }
.kata-modal button { position: absolute; top: 20px; right: 24px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 1.5rem; }
@media (max-width: 860px) { .kata { grid-template-columns: 1fr; } .kata__video { max-width: 420px; width: 100%; margin: 0 auto; } }

/* Photo wall */
.wall { position: relative; height: 150svh; overflow: hidden; isolation: isolate; }
.wall__cols { position: absolute; inset: -20% -4%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; rotate: -6deg; z-index: -1; }
.wall__col { display: grid; gap: 18px; align-content: start; }
.wall__col:nth-child(even) { margin-top: 18vh; }
.wall__col img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; filter: grayscale(.35) brightness(.55); }
.wall::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 40% at 50% 50%, rgba(7,7,7,.85), rgba(7,7,7,.35) 70%), linear-gradient(180deg, var(--bg), transparent 15%, transparent 85%, var(--bg)); }
.wall__title { position: sticky; top: 0; height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 24px; padding: 0 var(--m); }
.wall__title h2 { font-size: var(--fs-xl); line-height: .85; text-shadow: 0 10px 60px rgba(0,0,0,.8); }
.wall__title p { color: var(--ink); font-size: var(--fs-lead); }
@media (max-width: 760px) { .wall__cols { grid-template-columns: repeat(2, 1fr); } .wall__col:nth-child(n+3) { display: none; } .wall { height: 130svh; } }

/* Hero — the film is the star; type sits like a title card */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__media { position: absolute; inset: 0; z-index: -3; background: #000 url("../img/adrian/hero-poster.jpg") center/cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; filter: contrast(1.06) saturate(1.05); }
.hero__embers { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: .7; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,5,5,.75) 0%, rgba(5,5,5,0) 20%),
    linear-gradient(0deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.7) 22%, rgba(5,5,5,0) 55%),
    linear-gradient(90deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 45%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(32px, 6vw, 110px); padding: 0 var(--m) clamp(28px, 4vw, 48px); }
.hero__main { display: grid; gap: 22px; justify-items: start; max-width: 720px; }
.hero__title { font-size: clamp(2.75rem, 5.6vw, 5.75rem); line-height: .92; letter-spacing: .01em; }
.hero__title > span { display: block; }
.hero__lead { max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* Sound button: brings the montage to life with its music */
.hero__sound { display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 26px 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(244,239,232,.28); font-weight: 800; font-size: .875rem; letter-spacing: .04em; background: rgba(7,7,7,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: box-shadow .3s, background .3s; }
.hero__sound:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.hero__sound[aria-pressed="true"] { background: rgba(255,31,20,.18); box-shadow: inset 0 0 0 1.5px var(--red); }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 30%; background: var(--red); border-radius: 2px; }
.hero__sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* Credentials: reads like a rank certificate */
.creds { margin: 0; display: grid; gap: 0; min-width: 300px; }
.cred { display: grid; grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(244,239,232,.16); }
.cred:last-child { border-bottom: 1px solid rgba(244,239,232,.16); }
.cred dt { font-family: var(--display); font-size: 2.6rem; line-height: 1; white-space: nowrap; }
.cred dt sup { font-size: .42em; vertical-align: top; margin-left: 2px; }
.cred__star { color: #ffc531; font-size: .6em; vertical-align: top; margin-left: 4px; }
.cred dd { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.4; max-width: 22ch; }
.cred dd a { text-decoration: underline; text-decoration-color: rgba(244,239,232,.3); text-underline-offset: 3px; }
.cred dd a:hover { color: var(--ink); text-decoration-color: var(--red); }

.hero__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px var(--m); border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); background: rgba(5,5,5,.6); }
.scroll-cue { display: inline-flex; }
.scroll-cue i { width: 2px; height: 28px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--red); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: repeat(4, 1fr); min-width: 0; gap: 14px; }
  .cred { grid-template-columns: 1fr; gap: 6px; border-bottom: 1px solid rgba(244,239,232,.16); }
  .cred dt { font-size: 2rem; }
  .cred dd { font-size: .8125rem; }
}
@media (max-width: 600px) {
  .hero__title { font-size: 2.6rem; }
  .hero__video { object-position: 60% 50%; }
  .hero__ctas { width: 100%; }
  .hero__ctas > * { flex: 1 1 100%; justify-content: center; }
  .creds { grid-template-columns: repeat(2, 1fr); gap: 4px 14px; }
  .cred dt { font-size: 1.6rem; }
  .cred dd { font-size: .75rem; }
  .hero__foot > span:first-child, .hero__addr { display: none; }
  .hero__foot { justify-content: center; }
}
/* Phones: keep the video in view. The fixed bottom bar already carries "Book a class". */
@media (max-width: 760px) {
  .hero__grid { gap: 18px; padding-bottom: 92px; }
  .hero__main { gap: 14px; }
  .hero__title { font-size: 2.3rem; }
  .hero__ctas { width: auto; margin-top: 0; }
  .hero__ctas > .btn { display: none; }
  /* No sound button on phones: sound comes on with the first touch (js/home.js unlock) */
  .hero__ctas { display: none; }
  .creds { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .cred { padding: 8px 0; gap: 2px; }
  .cred dt { font-size: 1.35rem; }
  .cred dd { font-size: .6875rem; line-height: 1.3; }
  .hero__foot { display: none; }
}

/* Zanshin */
.zan { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; overflow: hidden; }
.zan__k { display: flex; flex-direction: column; align-items: center; line-height: .95; }
.zan__k .kanji { font-size: clamp(9rem, 22vw, 22rem); position: relative; display: block; color: var(--ink); }
.zan__k .kanji:last-child { color: var(--red); }
/* ghost of the character underneath, so the brush reveal reads as ink filling a shape */
.zan__k .kanji::before { content: attr(data-k); position: absolute; inset: 0; color: rgba(244,239,232,.07); z-index: -1; }
.zan__k .kanji .ink { display: block; clip-path: inset(0 0 0 0); }
.zan__body { display: grid; gap: 40px; justify-items: start; }
@media (max-width: 860px) { .zan { grid-template-columns: 1fr; } .zan__k { flex-direction: row; } .zan__k .kanji { font-size: 34vw; } }

/* Kick scrub */
.kick { position: relative; height: 100svh; min-height: 560px; background: #000; overflow: hidden; }
.kick__pin { position: relative; height: 100%; overflow: hidden; }
.kick__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.kick__pin::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, transparent 40%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.kick__words { position: absolute; z-index: 2; left: var(--m); top: 50%; translate: 0 -50%; width: min(42vw, 560px); height: 60%; }
.kw { position: absolute; left: 0; top: 50%; translate: 0 -50%; display: grid; gap: 18px; opacity: 0; }
.kw b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(4rem, 10vw, 10rem); line-height: .85; }
.kw b.kanji { font-family: var(--kanji); font-weight: 900; color: var(--red); text-shadow: 0 0 60px var(--red-glow); }
.kw span { font-size: var(--fs-lead); color: var(--ink-2); max-width: 26ch; }
.kick__progress { position: absolute; z-index: 2; right: var(--m); top: 50%; translate: 0 -50%; width: 2px; height: 40vh; background: var(--line); }
.kick__progress i { position: absolute; inset: 0; background: var(--red); box-shadow: 0 0 12px var(--red); transform-origin: top; transform: scaleY(0); }
@media (max-width: 760px) { .kick__words { width: auto; right: var(--m); top: auto; bottom: 12%; translate: none; height: 40%; } .kw { top: auto; bottom: 0; translate: none; } .kw b { font-size: 18vw; } }

/* Horizontal programs */
.hprog { position: relative; }
.hprog__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 48px; overflow: hidden; padding: 100px 0 40px; }
.hprog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hprog__head h2 { font-size: var(--fs-xl); max-width: 11ch; }
.hprog__track { display: flex; gap: 28px; padding: 0 var(--m); width: max-content; will-change: transform; }
.pcard { position: relative; width: clamp(280px, 30vw, 440px); flex: 0 0 auto; display: grid; gap: 20px; }
.pcard__img { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 20px; background: var(--bg-3); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9) brightness(.85); }
.pcard__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .5s; }
.pcard:hover .pcard__img img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.pcard:hover .pcard__img::after { box-shadow: inset 0 0 0 2px var(--red), 0 0 60px -10px var(--red-glow); }
.pcard__txt small { color: var(--red); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; }
.pcard__txt h3 { font-size: clamp(2rem, 3vw, 3rem); margin: 8px 0 10px; }
.pcard__txt p { color: var(--ink-2); max-width: 32ch; }
.pcard--end { align-content: center; justify-items: start; padding: 40px; border-radius: 20px; background: radial-gradient(120% 80% at 0% 100%, rgba(255,31,20,.25), transparent 60%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 4/5; align-self: start; }
.pcard--end h3 { font-size: clamp(2.25rem, 3.4vw, 3.5rem); }
.pcard--end p { color: var(--ink-2); margin: 16px 0 28px; }
@media (max-width: 860px) {
  .hprog__pin { height: auto; overflow: visible; padding: 100px 0 60px; }
  .hprog__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
  .pcard { width: 78vw; scroll-snap-align: start; }
  .hprog__head { flex-direction: column; align-items: flex-start; }
}

/* Senseis */
.sens { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; align-items: center; }
.sens__img { aspect-ratio: 4/3; border-radius: 24px; }
.sens__img img { filter: contrast(1.05) saturate(.9); }
.sens__body { display: grid; gap: 28px; justify-items: start; }
.sens__body h2 { font-size: var(--fs-l); max-width: 12ch; }
.sens__body > p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 44ch; }
.sens__list { list-style: none; margin: 0; padding: 0; width: 100%; }
.sens__list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sens__list b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.75rem; line-height: 1; }
.sens__list span { color: var(--red); font-weight: 700; font-size: .875rem; letter-spacing: .08em; }
@media (max-width: 860px) { .sens { grid-template-columns: 1fr; } }

/* Why */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__c { position: relative; overflow: hidden; padding: 44px 36px 40px; border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .5s; }
.why__c:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(255,31,20,.5), 0 30px 80px -30px var(--red-glow); }
.why__c .kanji { position: absolute; right: -10px; top: -20px; font-size: 10rem; line-height: 1; color: rgba(255,31,20,.12); }
.why__c h3 { font-size: 2.25rem; margin-bottom: 14px; position: relative; }
.why__c p { color: var(--ink-2); position: relative; }
.why__more { display: inline-block; margin-top: 40px; }
@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; } }

/* History teaser */
.hist { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hist__bg { position: absolute; inset: -10% 0; z-index: -2; }
.hist__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.55); }
.hist::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,7,7,.95) 0%, rgba(7,7,7,.6) 50%, rgba(7,7,7,.2) 100%), linear-gradient(0deg, var(--bg), transparent 30%), linear-gradient(180deg, var(--bg), transparent 25%); }
.hist__body { display: grid; gap: 28px; justify-items: start; max-width: 760px; }
.hist__body h2 { font-size: var(--fs-xl); }
.hist__body p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 46ch; }
.hist__k { position: absolute; right: var(--m); top: 50%; translate: 0 -50%; writing-mode: vertical-rl; font-family: var(--kanji); font-weight: 900; font-size: clamp(5rem, 11vw, 11rem); line-height: 1; color: rgba(244,239,232,.16); z-index: -1; }
@media (max-width: 860px) { .hist__k { display: none; } }
.kick__pin { --flash: 0; }
.kick__pin::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 60% at 60% 45%, rgba(255,31,20,.55), transparent 70%); opacity: var(--flash); pointer-events: none; mix-blend-mode: screen; }

/* Who is training: four doors right under the hero */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #000; }
.path { position: relative; height: clamp(180px, 22vw, 300px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px; isolation: isolate; }
.path img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(.5) brightness(.5); transition: filter .6s var(--ease), scale 1s var(--ease); }
.path::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent 60%); }
.path:hover img, .path:focus-visible img { filter: none; scale: 1.06; }
.path__age { color: var(--red); font-weight: 800; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.path__name { font-family: var(--display); font-size: clamp(1.75rem, 2.6vw, 2.75rem); line-height: 1; text-transform: uppercase; margin-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.path__name::after { content: "→"; font-family: var(--body); font-size: 1.25rem; translate: -8px 0; opacity: 0; transition: translate .4s var(--ease), opacity .4s; }
.path:hover .path__name::after { translate: 0 0; opacity: 1; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr 1fr; } .path { height: 170px; padding: 16px; } .path:last-child { grid-column: span 2; } }

/* Faint dojo emblem on the "wall" behind the silhouette: multiply keeps the black figure in front */
.kick__logo { position: absolute; z-index: 1; left: 66%; top: 46%; width: min(62vh, 46vw); translate: -50% -50%; opacity: .14; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.4); pointer-events: none; }
@media (max-width: 760px) { .kick__logo { left: 50%; width: 80vw; opacity: .12; } }
