/* ==========================================================================
   QuietQuality — scenes-hub.css
   Scene styling shared by the 5 hub / content pages
   (services, case-study, staff, method, column).
   Loads immediately after motion.css and reuses its scene classes
   (qq-htrack-*, method-runner/-sticky/-connector, qq-case-grid,
   qq-video-overlay). This file adds only the page-specific pieces that the
   flagship index.html did not need. Brand tokens come from site.css :root.
   Every effect degrades to a static, legible state under
   prefers-reduced-motion.
   ========================================================================== */

/* --- Hero loop-video background (services) -------------------------------
   Sits between .hero::before (static image, z-index -3) and .hero::after
   (dark legibility gradient, z-index -1); the ambient canvas keeps painting
   its gold bars above it. The black backing hides the underlying hero image
   so the facade loop reads cleanly. */
/* Wave1: hub hero is a clean paper ground; the dark loop video is retired. */
.qq-hub-hero .qq-hero-video {
  display: none;
}

.qq-hub-hero .qq-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transform: scale(1.06);
  animation: qq-hub-drift 26s ease-in-out infinite alternate;
}

@keyframes qq-hub-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.6%, -1.1%, 0);
  }
}

/* Paper-tone band helpers (.qq-band-surface = paper-0, .qq-band-tint =
   paper-200) live in site.css as the site-wide vocabulary; the HTML here swaps
   the legacy .dark-band/.graphite-band over to them. paper-100 keeps using
   .paper-band. Black is reserved for .final-cta and the footage frame below. */

/* --- Framed footage block (case-study SCOPE) — Wave2 §9 額縁レシピ ---------
   The dark-tone city loop returns to the paper page as a *contained* ink-900
   picture frame (never a full-bleed black hero): ink ground, 1px metal
   hairline, radius 0, plus a Helvetica `FOOTAGE — …` label. The <video> keeps
   its lazy-load contract untouched (data-video-scene="loop" +
   data-src-1080/720 + poster); only the wrapper markup changed. */
.qq-hub-band {
  position: relative;
  padding: clamp(48px, 8vh, 104px) 0;
  background: var(--qq-paper-200, #e9e3d8);
  border-top: 1px solid var(--hairline, #d9d1c3);
  border-bottom: 1px solid var(--hairline, #d9d1c3);
}

.qq-hub-band-copy {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto clamp(28px, 5vh, 56px);
  text-align: center;
}

.qq-hub-band-copy h2 {
  /* (v3.3) The global h2 caps width at 960px; inside this centered band (up to
     --max 1440px) a margin:0 h2 box anchored left, so text-align:center only
     centred the text within that left-shifted box. margin-inline:auto centres
     the capped box itself, so the heading reads on the page's optical centre. */
  margin: 0 auto;
  max-width: min(960px, 100%);
  color: var(--ink, #151716);
  font-family: var(--font-serif);
  font-size: clamp(34px, 6.4vw, 82px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hub-media-frame {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(12px, 1.5vw, 18px);
  background: var(--qq-ink-900, #151716);
  border: 1px solid var(--metal-line, rgba(198, 181, 139, 0.55));
  border-radius: 0;
}

.hub-media-inner {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--qq-charcoal-800, #1c211d);
}

.hub-media-inner video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-media-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(9px, 1.2vw, 13px);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--metal, #c6b58b);
}

.hub-media-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--metal-line, rgba(198, 181, 139, 0.55));
}

/* --- Editorial overlay on the framed footage (case-study only) ------------
   v3.1-6: the Kyoto-scale loop had no meaning. It now carries this page's own
   proof numbers (90社 / 54名 / 30名超, echoing the hero stats) as large serif
   figures over an ink scrim, so the cityscape reads as "業種も規模も超えて".
   Only .hub-media-overlay markup on case-study.html triggers this; the frame
   is aria-hidden and the numbers are already announced in the hero. */
.hub-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(16px, 3vw, 40px);
  background: linear-gradient(
    180deg,
    rgba(21, 23, 22, 0.34) 0%,
    rgba(21, 23, 22, 0.1) 40%,
    rgba(21, 23, 22, 0.64) 100%
  );
  color: var(--qq-paper-0, #fffdf8);
  pointer-events: none;
}

.hub-media-kicker {
  margin: 0;
  font-family: var(--font-label);
  font-size: clamp(9px, 0.9vw, 11px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--metal, #c6b58b);
}

.hub-media-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(16px, 3.6vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-media-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-media-stats b {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--qq-paper-0, #fffdf8);
  text-shadow: 0 1px 26px rgba(0, 0, 0, 0.36);
}

.hub-media-stats span {
  font-family: var(--font-label);
  font-size: clamp(9px, 0.82vw, 11px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.78);
}

@media (max-width: 620px) {
  .hub-media-stats {
    gap: 12px 18px;
  }
  .hub-media-stats b {
    font-size: clamp(22px, 7.4vw, 32px);
  }
}

/* --- Staff portrait: clip-path wipe reveal ------------------------------
   The wrapping .section-pad is auto-observed by the engine and gains
   .is-visible on entry (~15% threshold); we key the wipe off that so no
   extra JS is required. */
.staff-profile .portrait img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.19, 0.9, 0.22, 1);
}

.section-pad.is-visible .staff-profile .portrait img {
  clip-path: inset(0);
}

/* --- Staff FOUNDER portrait: circular crop + overlap-proof layout ---------
   v3.1-7: the square portrait sat flush against the bio, and the text touched
   its right edge. The figure is now a sanctioned circle (radius 50%, spec
   §10-A-7) with a sand hairline ring; the profile grid gets a real gutter so
   the copy can never touch the photo at 1312 / 2000 / 390. The wipe reveal is
   kept — the circular wrapper clips it, so it uncovers a round image. */
.staff-profile .portrait {
  border-radius: 50%;
  border: 1px solid var(--qq-sand-300, #d9d1c3);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 621px) {
  .staff-profile {
    grid-template-columns: clamp(152px, 20vw, 216px) minmax(0, 1fr);
    gap: clamp(34px, 4.4vw, 64px);
    align-items: center;
  }
  .staff-profile .portrait {
    width: 100%;
    max-width: 216px;
  }
}

@media (max-width: 620px) {
  .staff-profile .portrait {
    width: min(210px, 58vw);
    margin: 0 auto;
  }
}

/* --- Staff TEAM: a prominent "not a solo practice" statement --------------
   v3.1-7: promote, in a heading-class block, that the founder is backed by
   instructors and specialist staff who run each engagement as a team. Copy
   stays within existing role names; no new headcounts or names are coined. */
.staff-team .staff-team-headline {
  max-width: 940px;
  margin: 0 auto clamp(34px, 5vw, 62px);
  text-align: center;
}

.staff-team .staff-team-headline .section-label {
  display: block;
  margin-bottom: 14px;
}

.staff-team .staff-team-headline h2 {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 4.8vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink, #151716);
}

.staff-team .staff-team-headline .lead {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Reduced motion: pin new scenes to their resolved, legible state ---- */
@media (prefers-reduced-motion: reduce) {
  .qq-hub-hero .qq-hero-video video,
  .hub-media-inner video {
    animation: none;
    transform: none;
  }
  .staff-profile .portrait img {
    clip-path: none;
    transition: none;
  }
}
