/* ============ Tokens ============ */
:root {
  --ink: #0c0d0e;
  --ink-2: #141618;
  --ink-3: #1d2023;
  --line: rgba(239, 232, 220, .12);
  --paper: #efe8dc;
  --paper-dim: rgba(239, 232, 220, .68);
  --red: #d8432f;
  --red-deep: #a92f1f;
  --teal: #5fa9a8;
  --gold: #c9a24a;

  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--red); }
::selection { background: var(--red); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }

.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.1em; display: flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px;
  font: 700 .98rem/1 var(--body); text-decoration: none; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(216, 67, 47, .7); }
.btn--primary:hover { background: #e9513c; }
.btn--ghost { border: 1.5px solid rgba(239, 232, 220, .35); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(239, 232, 220, .06); }
.btn--big { font-size: 1.1rem; padding: 1.1em 2em; }

.link-arrow { display: inline-flex; gap: .5em; font-weight: 700; text-decoration: none; color: var(--paper); border-bottom: 1.5px solid var(--red); padding-bottom: 3px; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .3s, padding .3s;
}
/* Blur on a separate layer: backdrop-filter on .nav itself would trap the fixed phone menu inside the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { background: rgba(12, 13, 14, .82); border-bottom: 1px solid var(--line); padding-block: 10px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.1rem var(--display); letter-spacing: .02em; }
.nav__brand b { color: var(--red); font-weight: 800; }
.nav__logo { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--paper-dim); transition: color .2s; }
.nav__links a:hover { color: var(--paper); }
.nav__links .nav__cta { color: #fff; background: var(--red); padding: .6em 1.15em; border-radius: 999px; }
.nav__links .nav__cta:hover { color: #fff; background: #e9513c; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; z-index: 2;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--paper); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(12, 13, 14, .97); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav__links a { font: 800 1.8rem var(--display); color: var(--paper); }
  .nav__links .nav__cta { font-size: 1.4rem; padding: .6em 1.4em; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
}

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 120px 0 clamp(70px, 10vh, 120px); overflow: hidden; isolation: isolate;
}
.hero__emblem { position: absolute; inset: 0; z-index: -2; background: var(--ink); overflow: hidden; }
.hero__emblem img {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: min(76svh, 92vw); height: auto; opacity: .6;
  animation: spin 267.6s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,13,14,.92) 0%, rgba(12,13,14,.55) 55%, rgba(12,13,14,.25) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 40%);
}
.hero__content { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 { font-size: clamp(3.4rem, 11vw, 9rem); margin-bottom: .3em; }
.hero__lead { max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--paper-dim); margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(239,232,220,.4); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--paper); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Hero load-in */
.hero__content > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .24s; }
.hero__content > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ Marquee ============ */
.marquee { background: var(--red); color: var(--ink); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg) scale(1.02); margin-top: -10px; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; gap: 28px; animation: marquee 28s linear infinite; font: 800 clamp(1.3rem, 2.6vw, 2rem)/1 var(--display); letter-spacing: .06em; align-items: center; }
.marquee i { font-style: normal; font-size: .45em; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ About ============ */
.about__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about__text { font-size: 1.08rem; color: var(--paper-dim); }
.about__text strong { color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(60px, 8vw, 100px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink); padding: 32px 26px; display: flex; flex-wrap: wrap; align-items: baseline; }
.stat__num { font: 800 clamp(2.6rem, 5vw, 3.8rem)/1 var(--display); color: var(--paper); }
.stat__num sup { font-size: .45em; }
.stat__plus { font: 800 2rem var(--display); color: var(--red); }
.stat__label { flex-basis: 100%; margin-top: 8px; font-size: .92rem; color: var(--paper-dim); }

/* ============ What is taiko ============ */
.taiko { background: var(--ink-2); overflow: hidden; }
.taiko::before {
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(circle at 50% 100%, transparent 18px, var(--paper) 19px, var(--paper) 21px, transparent 22px, transparent 28px, var(--paper) 29px, var(--paper) 31px, transparent 32px);
  background-size: 64px 32px;
}
.taiko__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: start; position: relative; }
.taiko__intro p { color: var(--paper-dim); font-size: 1.08rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(60px, 9vw, 110px); position: relative; }
.pillar { position: relative; padding: 34px 30px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.pillar:hover { border-color: rgba(216, 67, 47, .6); transform: translateY(-4px); }
.pillar__kanji { position: absolute; right: -6px; top: -22px; font: 800 8rem/1 var(--display); color: rgba(239,232,220,.05); }
.pillar h3 { color: var(--paper); }
.pillar p { color: var(--paper-dim); margin: 0; }

/* ============ Watch ============ */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.videos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 16px; }
.video {
  position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-3); color: var(--paper); text-align: left; aspect-ratio: 16 / 10; font: inherit;
}
.video--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: brightness(.72) saturate(.9); }
.video:hover img { transform: scale(1.05); filter: brightness(.9); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,13,14,.92), transparent 60%); }
.video__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform .3s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.video__play::before { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video:hover .video__play { transform: scale(1.12); }
.video:not(.video--feature) .video__play { left: auto; top: 14px; right: 14px; margin: 0; width: 44px; height: 44px; }
.video:not(.video--feature) .video__play::before { border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 3px; }
.video--feature .video__play { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.video__meta { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; }
.video__meta b { font: 800 1.15rem var(--display); }
.video--feature .video__meta b { font-size: 1.7rem; }
.video__meta small { color: var(--paper-dim); font-size: .82rem; }
.video:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.lightbox__close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; background: none; border: 0; color: var(--paper); cursor: pointer; }

/* ============ Join ============ */
.join { background: var(--paper); color: var(--ink); }
.join .eyebrow { color: var(--red-deep); }
.join__head { max-width: 760px; }
.join__lead { font-size: 1.15rem; color: #3c3a36; }
.join__free { color: var(--ink); background: linear-gradient(transparent 60%, rgba(216, 67, 47, .28) 60%); padding: 0 2px; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 20px; max-width: 640px; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 20px 40px -24px rgba(0,0,0,.25); }
.step p { color: #4a4741; margin: 0; }
.step a { color: var(--red-deep); font-weight: 700; }

.schedule { margin-top: 56px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.schedule__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 20px; }
.schedule__head h3 { margin: 0; font-size: 1.7rem; }
.schedule__note { color: var(--paper-dim); font-size: .9rem; }
.schedule__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.schedule__list li { border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 2px; }
.schedule__day { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.schedule__time { font: 800 2rem/1.1 var(--display); }
.schedule__group { color: var(--paper-dim); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.schedule__group em { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--red); color: #fff; padding: 3px 8px; border-radius: 999px; }

.pack { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.pack > div { border: 1.5px solid rgba(12,13,14,.12); border-radius: var(--radius); padding: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #3c3a36; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--red); }
.ticks em { color: var(--red-deep); font-weight: 700; }
.join__cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.join .btn--ghost { color: var(--ink); border-color: rgba(12,13,14,.3); }
.join .btn--ghost:hover { border-color: var(--ink); background: rgba(12,13,14,.05); }

/* ============ Events ============ */
.timeline { display: grid; gap: 16px; }
.timeline__empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--paper-dim); margin: 0; }
.timeline__empty a { color: var(--paper); }
.event { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); transition: border-color .3s; }
.event:hover { border-color: rgba(95,169,168,.5); }
.event time { display: grid; align-content: start; border-right: 1px solid var(--line); padding-right: 20px; }
.event time b { font: 800 2.4rem/1 var(--display); color: var(--red); white-space: nowrap; }
.event time span { color: var(--paper-dim); font-weight: 600; font-size: .9rem; margin-top: 6px; }
.event h3 { margin: 10px 0 8px; }
.event p { color: var(--paper-dim); margin: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(216,67,47,.15); color: #f07a68; }
.tag--teal { background: rgba(95,169,168,.15); color: var(--teal); }

.past { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.past summary { cursor: pointer; font-weight: 700; color: var(--paper-dim); list-style: none; display: inline-flex; gap: 10px; align-items: center; }
.past summary::-webkit-details-marker { display: none; }
.past summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s; }
.past[open] summary::before { transform: rotate(45deg); }
.past ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: var(--paper-dim); }
.past time { display: inline-block; min-width: 130px; color: var(--paper); font-weight: 700; }

.booking { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: linear-gradient(120deg, var(--red-deep), var(--red)); }
.booking h3 { font-size: 1.9rem; }
.booking p { margin: 0; max-width: 36em; color: rgba(255,255,255,.85); }
.booking .btn--primary { background: var(--ink); box-shadow: none; }
.booking .btn--primary:hover { background: #000; }

/* ============ Location ============ */
.location { background: var(--ink-2); }
.location__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: stretch; }
.location address { font-style: normal; font-size: 1.2rem; color: var(--paper); margin-bottom: 1.4em; }
.directions { margin: 0 0 1.8em; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 12px; color: var(--paper-dim); }
.directions li { counter-increment: d; padding-left: 40px; position: relative; }
.directions li::before { content: counter(d); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--teal); }
.directions b { color: var(--paper); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.9) invert(.92) contrast(.9) hue-rotate(180deg); }

/* ============ Footer ============ */
.footer { padding: clamp(80px, 12vw, 140px) 0 40px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: end; }
.footer h2 { font-size: clamp(2.8rem, 8vw, 6rem); }
.footer__mail { font: 800 clamp(1.3rem, 3vw, 2rem) var(--display); text-decoration: none; border-bottom: 2px solid var(--red); word-break: break-all; }
.footer__mail:hover { color: var(--red); }
.socials { display: grid; gap: 12px; }
.socials a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.socials a:hover { border-color: var(--red); background: rgba(216,67,47,.08); transform: translateX(4px); }
.socials svg { width: 28px; height: 28px; flex: none; color: var(--red); }
.socials span { display: grid; color: var(--paper-dim); font-size: .92rem; }
.socials b { color: var(--paper); font-size: 1.05rem; }
.footer__bottom { margin-top: 90px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; color: var(--paper-dim); font-size: .88rem; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--paper); }
.footer__logo { height: 40px; width: auto; }
.footer__bottom { align-items: center; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .videos { grid-template-columns: repeat(2, 1fr); }
  .schedule__list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .about__grid, .taiko__grid, .location__grid, .footer__grid { grid-template-columns: 1fr; }
  .steps, .pillars, .pack { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__scroll { display: none; }
  .videos { grid-template-columns: 1fr; }
  .video--feature { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 10; }
  .event { grid-template-columns: 1fr; gap: 14px; }
  .event time { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; display: flex; align-items: baseline; gap: 12px; }
  .past time { display: block; }
  .stat { padding: 24px 18px; }
  .schedule__list { grid-template-columns: 1fr 1fr; }
  .schedule__time { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
