/* ==========================================================================
   深度触达 DEEPTOUCH — V10
   三形态图鉴 / 首屏移动端巨树 / 全站动效 / 四字理念 / 移动分页
   ========================================================================== */

/* ---------------------------------------------------------- progress -- */
.progress {
  height: 3px;
  background: rgba(5, 11, 20, 0.08);
}

.progress__bar {
  background: linear-gradient(90deg, var(--cyan), var(--gold) 62%, var(--gold-deep));
  box-shadow: 0 0 14px rgba(228, 180, 92, 0.32);
}

/* ---------------------------------------------------- deeper reveals -- */
.js .reveal {
  transform: translate3d(0, 32px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-in { transform: none; }

.js .form-card.reveal,
.js .gallery__row.reveal,
.js .case-tile.reveal,
.js .manga-card.reveal,
.js .social-card.reveal,
.js .creative.reveal {
  transform: translate3d(0, 28px, 0) scale(0.985);
}

.js .form-card.reveal.is-in,
.js .gallery__row.reveal.is-in,
.js .case-tile.reveal.is-in,
.js .manga-card.reveal.is-in,
.js .social-card.reveal.is-in,
.js .creative.reveal.is-in {
  transform: none;
}

.js .creed__tab.reveal {
  transform: translate3d(0, 16px, 0);
}

.js .creed__tab.reveal.is-in { transform: none; }

/* -------------------------------------------------- section band active -- */
.sec-band {
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.sec-band__no,
.sec-band__line,
.sec-band__name {
  transition: transform 0.45s var(--ease), background 0.45s var(--ease),
    color 0.45s var(--ease), letter-spacing 0.45s var(--ease), opacity 0.45s var(--ease);
}

.sec-band__line { transform-origin: 0 50%; }

.sec-band.is-active {
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--cat) 64%, transparent),
    0 14px 30px rgba(16, 25, 35, 0.07);
}

.sec-band.is-active .sec-band__no {
  transform: translateY(-2px) rotate(-5deg);
  background: var(--cat);
  border-color: var(--cat);
  color: #fff;
}

.sec-band.is-active .sec-band__name { letter-spacing: 0.16em; }

.sec-band.is-active .sec-band__line {
  transform: scaleX(1);
  opacity: 1;
}

.sec-band--cross.is-active .sec-band__no {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--space);
}

/* ----------------------------------------------------- shared card feel -- */
a.media-link img,
.media-link img {
  cursor: zoom-in;
  transition: transform 0.62s var(--ease);
}

.form-card,
.manga-card,
.social-card,
.creative,
.hit-card,
.case-tile {
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.form-card__body,
.manga-card__body,
.social-card__body,
.hit-card__body {
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) {
  a.media-link:hover img,
  .media-link:hover img { transform: scale(1.045); }

  .form-card:hover,
  .manga-card:hover,
  .social-card:hover,
  .creative:hover,
  .hit-card:hover,
  .case-tile:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 18px 34px rgba(16, 25, 35, 0.1);
  }

  .form-card:hover .form-card__body,
  .manga-card:hover .manga-card__body,
  .social-card:hover .social-card__body,
  .hit-card:hover .hit-card__body {
    transform: translateY(-3px);
  }
}

@media (hover: none) {
  .form-card:active,
  .manga-card:active,
  .social-card:active,
  .creative:active,
  .hit-card:active,
  .case-tile:active { transform: scale(0.992); }

  .media-link:active img { transform: scale(1.025); }

  .form-card:active .form-card__body,
  .manga-card:active .manga-card__body,
  .social-card:active .social-card__body,
  .hit-card:active .hit-card__body { transform: translateY(-2px); }
}

/* ------------------------------------------------------- three forms -- */
.form-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--ink);
  background: var(--space);
  color: var(--paper);
}

.form-spec {
  min-width: 0;
  padding: 17px 19px 16px;
  border-left: 1px solid rgba(245, 241, 230, 0.16);
}

.form-spec:first-child { border-left: 0; }

.form-spec__no {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(120, 219, 234, 0.72);
}

.form-spec__name {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--paper);
}

.form-spec__time {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--gold);
}

.gallery__rows--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  border-top: 0;
}

.form-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.form-card:hover { border-color: var(--gold); }

.form-card__media {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #07111c;
}

.form-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 4px 2px;
  object-fit: contain;
  background: #07111c;
}

.form-card__media::after {
  top: 8px;
  bottom: auto;
}

.form-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 17px 18px 16px;
}

.form-card__body .gallery__tag { font-size: 8px; }

.form-card h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.form-card__desc {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  text-wrap: pretty;
}

.form-card__directions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.form-card__directions li {
  min-width: 0;
  padding-left: 9px;
  border-left: 1px solid var(--gold);
}

.form-card__directions b {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.form-card__directions span {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-3);
}

.form-card__spec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.form-card__spec span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.form-card__spec b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}

@media (max-width: 980px) {
  .form-spec { padding: 15px 14px 14px; }
  .form-spec__name { font-size: 17px; }
  .form-card h4 { font-size: 18px; }
}

@media (max-width: 760px) {
  .form-specs { margin-top: 18px; }
  .form-spec { padding: 12px 8px 11px; }
  .form-spec__no { font-size: 7px; }
  .form-spec__name { margin-top: 4px; font-size: 13px; }
  .form-spec__time { font-size: 8px; }

  .gallery__rows--cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
  }

  .form-card__media img { aspect-ratio: 16 / 10; }
  .form-card__body { padding: 15px 16px 15px; }
  .form-card h4 { font-size: 20px; }
  .form-card__desc { font-size: 12px; }
}

/* --------------------------------------------------------- hero mobile -- */
@media (max-width: 760px) {
  .hero { min-height: max(660px, 100svh); }

  .hero__bg picture {
    transition: transform 0.65s var(--ease), filter 0.55s var(--ease);
  }

  .hero__poster {
    object-position: 66% 44%;
    animation-duration: 42s;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(5, 11, 20, 0.82) 0%, rgba(5, 11, 20, 0.16) 40%, rgba(5, 11, 20, 0.76) 100%),
      linear-gradient(90deg, rgba(5, 11, 20, 0.7) 0%, rgba(5, 11, 20, 0.16) 64%, rgba(5, 11, 20, 0) 100%);
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(5, 11, 20, 0.66) 0%, rgba(5, 11, 20, 0.08) 42%, rgba(5, 11, 20, 0.66) 100%);
  }

  .hero__tap {
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    background: radial-gradient(circle,
      rgba(160, 245, 255, 0.72) 0%,
      rgba(120, 219, 234, 0.44) 34%,
      rgba(228, 180, 92, 0.18) 58%,
      transparent 72%);
  }

  .hero.is-tapping .hero__bg picture {
    transform: scale(1.035);
    filter: brightness(1.3) saturate(1.14);
  }

  .hero.is-tapping .hero__tap { animation: heroTapMobile 1.05s var(--ease) forwards; }
}

@keyframes heroTapMobile {
  0% { opacity: 1; transform: scale(0.28); }
  58% { opacity: 0.82; }
  100% { opacity: 0; transform: scale(1.7); }
}

/* -------------------------------------------------------- four creed -- */
.creed {
  margin-top: clamp(42px, 5vw, 66px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.creed__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.creed__hint {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.creed__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.creed__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 154px;
  padding: 17px 18px 15px 0;
  border-right: 1px solid var(--line);
  text-align: left;
}

.creed__tab:last-child { border-right: 0; padding-right: 0; }

.creed__tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}

.creed__tab.is-active::after { transform: scaleX(1); }

.creed__glyph {
  display: block;
  font-family: var(--serif);
  font-size: clamp(70px, 7vw, 104px);
  font-weight: 400;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 25, 35, 0.32);
  transition: color 0.42s var(--ease), -webkit-text-stroke-color 0.42s var(--ease),
    text-shadow 0.42s var(--ease), transform 0.42s var(--ease);
}

.creed__tab:hover .creed__glyph,
.creed__tab.is-active .creed__glyph {
  color: var(--gold-deep);
  -webkit-text-stroke-color: var(--gold-deep);
  text-shadow: 0 0 22px rgba(228, 180, 92, 0.34);
}

.creed__tab.is-active .creed__glyph { transform: translateY(-2px); }

.creed__en {
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.creed__name {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

.creed__tab.is-active .creed__name { color: var(--gold-deep); }

.creed__panels { border-top: 1px solid var(--line); }

.creed__panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
  gap: 20px 42px;
  padding: 26px 0 30px;
  animation: creedIn 0.45s var(--ease) both;
}

.creed__panel[hidden] { display: none; }

@keyframes creedIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}

.creed__panel-head {
  grid-row: 1 / span 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.creed__panel-glyph {
  flex: none;
  font-family: var(--serif);
  font-size: 58px;
  line-height: 0.9;
  color: var(--gold-deep);
}

.creed__kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.creed__panel h4 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.creed__lead {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gold-deep);
}

.creed__body {
  max-width: 50em;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
  text-wrap: pretty;
}

.creed__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-self: end;
  border-top: 1px solid var(--line);
}

.creed__points li {
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 12px 14px 0 0;
  border-right: 1px solid var(--line);
}

.creed__points li:last-child { border-right: 0; padding-right: 0; }
.creed__points li + li { padding-left: 14px; }

.creed__points li > span {
  flex: none;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.9;
  color: var(--gold-deep);
}

.creed__points b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

.creed__points p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-3);
}

@media (max-width: 760px) {
  .creed__hint { display: none; }

  .creed__tabs { margin-top: 12px; }

  .creed__tab {
    min-height: 98px;
    padding: 12px 8px 12px 0;
  }

  .creed__glyph { font-size: clamp(46px, 15vw, 62px); }
  .creed__en { margin-top: 10px; font-size: 6.5px; }
  .creed__name { font-size: 11px; }

  .creed__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0 26px;
  }

  .creed__panel-head {
    grid-row: auto;
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .creed__panel-glyph { font-size: 48px; }
  .creed__panel h4 { font-size: 24px; }
  .creed__lead { font-size: 12px; }
  .creed__body { font-size: 12.5px; line-height: 1.9; }

  .creed__points {
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--line);
  }

  .creed__points li,
  .creed__points li + li {
    padding: 10px 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .creed__points li:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------ mobile pager -- */
.mobile-pager { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.nav-open .mobile-pager { opacity: 0; pointer-events: none; }

  .mobile-pager {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 118;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(5, 11, 20, 0.97);
    border-top: 1px solid rgba(245, 241, 230, 0.16);
    transition: opacity 0.25s var(--ease);
  }

  .mobile-pager__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 58px;
    color: var(--paper-55);
    transition: color 0.25s var(--ease);
  }

  .mobile-pager__item::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 22px;
    height: 2px;
    background: var(--gold);
    transform: translateX(-50%) scaleX(0);
    transform-origin: 50% 50%;
    transition: transform 0.25s var(--ease);
  }

  .mobile-pager__item span {
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: var(--paper-40);
  }

  .mobile-pager__item b {
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.35;
  }

  .mobile-pager__item.is-active { color: var(--gold); }
  .mobile-pager__item.is-active span { color: var(--gold); }
  .mobile-pager__item.is-active::before { transform: translateX(-50%) scaleX(1); }
}

/* --------------------------------------------------------- media dialog -- */
.media-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.media-dialog::backdrop { background: rgba(3, 8, 14, 0.93); }

.media-dialog__bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(5, 11, 20, 0.82);
}

.media-dialog__hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--paper-55);
}

.media-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(245, 241, 230, 0.28);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.media-dialog__close:hover {
  background: rgba(245, 241, 230, 0.1);
  border-color: var(--gold);
}

.media-dialog__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 72px 4vw 4vw;
}

.media-dialog__img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(245, 241, 230, 0.15);
  background: #07111c;
}

.media-dialog__caption {
  max-width: 76ch;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--paper-55);
  text-align: center;
}

@media (max-width: 760px) {
  .media-dialog__bar { padding: 12px 15px; }
  .media-dialog__hint { font-size: 8px; }
  .media-dialog__figure { padding: 66px 12px 22px; }
  .media-dialog__img { max-width: 94vw; max-height: 76vh; }
}

/* ------------------------------------------------------ reduced motion -- */
/* Per-site preference, initialized before styles load. */

html.js[data-motion="off"] .reveal,
html.js[data-motion="off"] .form-card.reveal,
html.js[data-motion="off"] .gallery__row.reveal,
html.js[data-motion="off"] .case-tile.reveal,
html.js[data-motion="off"] .manga-card.reveal,
html.js[data-motion="off"] .social-card.reveal,
html.js[data-motion="off"] .creative.reveal,
html.js[data-motion="off"] .creed__tab.reveal {
    opacity: 1 !important;
    transform: none !important;
  }

html[data-motion="off"] .form-card:hover,
html[data-motion="off"] .manga-card:hover,
html[data-motion="off"] .social-card:hover,
html[data-motion="off"] .creative:hover,
html[data-motion="off"] .hit-card:hover,
html[data-motion="off"] .case-tile:hover,
html[data-motion="off"] .creed__tab.is-active .creed__glyph {
    transform: none !important;
  }

html[data-motion="off"] .hero__poster { animation: none !important; }

html[data-motion="off"] .hero.is-tapping .hero__bg picture { transform: none !important; filter: none !important; }

html[data-motion="off"] .hero.is-tapping .hero__tap { animation: none !important; opacity: 0 !important; }

html[data-motion="off"] .creed__panel { animation: none !important; }

html[data-motion="off"] .sec-band__no { transform: none !important; }


