/* Client feedback notes of 2026-11-09 and 11-10 (feedback mode, home page). Loaded last, home only. */

/* 7ec5e875: the panel's character stands above its headline (堂, then 時 and 業 to match). */
.hero-kanji {
  margin: 0 0 clamp(16px, 3.4svh, 40px);
  font: 400 clamp(72px, 8.4vw, 148px)/1 var(--brush-ja);
  color: #f4f1ea;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .5);
}
@media (max-width: 700px) { .hero-kanji { margin-bottom: 14px; font-size: clamp(56px, 17vw, 84px); } }
@media (max-height: 500px) and (orientation: landscape) { .hero-kanji { display: none; } }

/* 1f1fab5b: no English line under the Japanese (and Chinese) headline. */
html:is([data-lang="ja"], [data-lang="zh"]) .hero-panel .gd-smallcaps { display: none; }

/* 05f3ccf9: the films carry their own grade, so no live filter runs over a playing video. */
.hero-panel .hero-panel__media > video,
#waza-panel .hero-panel__media > video { filter: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-panel:first-child .hero-panel__media { background-image: url('assets/c-v-dou-d.webp'); }
  .hero-panel:nth-child(2) .hero-panel__media { background-image: url('assets/c-v-toki-d.webp'); }
  .hero-panel:nth-child(3) .hero-panel__media { background-image: url('assets/c-v-waza-d.webp'); }
}

/* 05f3ccf9: on touch screens the film's drift is driven by the scroll timeline (compositor), not by
   script on every scroll event, which lagged behind the finger. Without support the film stays put. */
.has-touch-hero .hero-panel__media { transform: none; will-change: auto; }
@supports (animation-timeline: view()) {
  .has-touch-hero .hero-panel { view-timeline: --gd-panel block; }
  .has-touch-hero .hero-panel__media { animation: gd-hero-drift linear both; animation-timeline: --gd-panel; will-change: transform; }
}
@keyframes gd-hero-drift {
  from { transform: translate3d(0, -70%, 0); }
  to { transform: translate3d(0, 70%, 0); }
}

/* ca0fb219: the brand statement, set as verse: one line per row in all three languages (the text
   reveal component's data-lines mode). The size follows the screen height so all sixteen lines stay
   on the one pinned screen. */
#dou-statement .tb-text-reveal__sticky { gap: clamp(14px, 3svh, 28px); }
body.page-home main #dou-statement .gd-verse .tb-text-reveal__text {
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center;
  writing-mode: horizontal-tb; height: auto; max-width: 100%; padding: 0;
  font-size: clamp(14px, min(1.75vw, 2.35svh), 27px) !important; line-height: 1.75 !important; letter-spacing: .1em;
}
body.page-home main #dou-statement [data-l="en"].gd-verse .tb-text-reveal__text {
  font-size: clamp(15px, min(1.9vw, 2.5svh), 30px) !important; line-height: 1.65 !important; letter-spacing: .01em;
}
#dou-statement .gd-verse .tb-text-reveal__word { display: block; margin: 0; white-space: nowrap; }
#dou-statement .gd-verse .tb-text-reveal__word:is(:nth-child(2), :nth-child(7), :nth-child(9), :nth-child(11), :nth-child(13), :nth-child(15)) { margin-top: .9em; }
@media (max-width: 700px) {
  body.page-home main #dou-statement .gd-verse .tb-text-reveal__text {
    font-size: clamp(13px, min(4.1vw, 2.35svh), 18px) !important; line-height: 1.75 !important; letter-spacing: .04em;
  }
  body.page-home main #dou-statement [data-l="en"].gd-verse .tb-text-reveal__text {
    font-size: clamp(13px, min(3.7vw, 2.35svh), 17px) !important; line-height: 1.7 !important; letter-spacing: 0;
  }
  #dou-statement [data-l="en"].gd-verse .tb-text-reveal__word { white-space: normal; text-align: center; }
}
