/* Scoped team/contact sections. Load after style.css. */
#works[hidden],
#people[hidden] { display: none !important; }

.team-section,
.contact-section {
  --team-accent: var(--ai, #d7ff3e);
  --team-line: rgba(255, 255, 255, .17);
  --team-muted: rgba(255, 255, 255, .62);
  position: relative;
  color: var(--fg, #fff);
  font-family: var(--sans, "Noto Sans SC", "Microsoft YaHei", sans-serif);
  scroll-margin-top: 100px;
}
.team-section *,
.contact-section * { box-sizing: border-box; }
.team-wrap,
.contact-wrap {
  width: 100%;
  max-width: var(--max, 1760px);
  margin-inline: auto;
  padding-inline: clamp(20px, 3.4vw, 64px);
}
.team-section { padding-block: clamp(60px, 6.4vw, 104px); background: var(--ink, #0a0a0c); }

/* 01 — head */
.team-kicker { display: inline-flex; align-items: center; gap: 9px; font: 400 10px/1.6 var(--mono, monospace); letter-spacing: .18em; color: var(--team-muted); }
.team-kicker::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; background: var(--team-accent); }
.team-title { margin-top: 14px; font-size: clamp(34px, 3.6vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
.team-sub { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 32px; margin-top: 18px; }
.team-lead { max-width: 40em; color: var(--team-muted); font-size: 12.5px; line-height: 1.8; }
.team-stat { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.team-stat__label { color: var(--team-muted); font-size: 11px; letter-spacing: .06em; }
.team-stat__value { color: var(--team-accent); font: 500 clamp(30px, 2.6vw, 40px)/1 var(--latin, sans-serif); letter-spacing: -.05em; font-variant-numeric: lining-nums tabular-nums; }
.team-stat__unit { margin-left: 6px; color: var(--team-muted); font: 400 11px/1 var(--sans, sans-serif); letter-spacing: .04em; }

/* 02 — shared label */
.team-label { display: flex; align-items: baseline; gap: 12px; margin-top: clamp(52px, 5.2vw, 76px); font-size: 11px; font-weight: 400; letter-spacing: .16em; color: var(--team-muted); }
.team-label i { font: 400 10px/1 var(--mono, monospace); font-style: normal; letter-spacing: .08em; color: var(--team-accent); }
.team-label::after { content: ""; flex: 1; height: 1px; align-self: center; background: var(--team-line); }

/* 03 — core people */
.team-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 52px); row-gap: 40px; margin-top: 26px; }
.team-people.team-people--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: clamp(12px, 1.6vw, 28px);
  row-gap: 44px;
  align-items: start;
}
.team-person__row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 14px; }
.team-person__name { position: relative; min-width: 0; font-size: clamp(23px, 2.1vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; transition: transform .45s var(--ease-out, ease); }
.team-person__name::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--team-accent); transition: width .45s var(--ease-out, ease); }
.team-person:hover .team-person__name { transform: translateX(5px); }
.team-person:hover .team-person__name::after { width: 100%; }
.team-person__role { color: var(--team-muted); font-size: 10.5px; line-height: 1.5; letter-spacing: .05em; white-space: nowrap; transition: color .3s var(--ease, ease); }
.team-person:hover .team-person__role { color: var(--team-accent); }
.team-person__cv { margin-top: 12px; min-height: 3.4em; color: var(--team-muted); font-size: 10.5px; line-height: 1.7; text-wrap: pretty; word-break: auto-phrase; line-break: strict; transition: color .3s var(--ease, ease); }
.team-person:hover .team-person__cv { color: rgba(255, 255, 255, .78); }
.team-person__cv.is-empty { opacity: .38; }

/* 03b — 竖排姓名（六列核心人员） */
.team-people--6 .team-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  row-gap: 14px;
  min-width: 0;
}
.team-people--6 .team-person::before { content: none; }
.team-people--6 .team-person__row { display: contents; }
.team-people--6 .team-person__role {
  grid-column: 1 / -1; grid-row: 1;
  justify-self: end; text-align: right;
  color: var(--team-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: normal;
}
.team-people--6 .team-person__name {
  grid-column: 2; grid-row: 2;
  writing-mode: vertical-rl;
  justify-self: end; align-self: start;
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: .1em;
}
.team-person__reading {
  margin-inline-start: .25em;
  color: var(--team-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.team-people--6 .team-person__reading {
  /* Use the existing gap beside the vertical name without widening the card. */
  position: absolute;
  inset-block-end: calc(100% + 2px);
  inset-inline-start: 0;
  margin-inline-start: 0;
}
.team-people--6 .team-person__name::after { display: none; }
.team-people--6 .team-person:hover .team-person__name { transform: none; }
.team-people--6 .team-person__cv {
  grid-column: 1; grid-row: 2;
  margin-top: 0;
  min-height: 0;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
  align-self: start;
}


/* 04 — production units: one equal row, no order implied */
.pipe { --gap: clamp(14px, 1.8vw, 30px); margin-top: 24px; }
.pipe__items { display: grid; column-gap: var(--gap); }
.pipe__items--4 { width: calc(80% - var(--gap) / 5); margin-inline: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pipe__items--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 30px; }
.pipe__item { position: relative; }
.pipe__name { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; line-height: 1.4; transition: color .3s var(--ease); }
.pipe__name::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.34); transition: background .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease-out), box-shadow .3s var(--ease); }
.pipe__item.is-live .pipe__name { color: var(--team-accent); }
.pipe__item.is-live .pipe__name::before { background: var(--team-accent); border-color: var(--team-accent); box-shadow: 0 0 10px rgba(215,255,62,.35); }
.pipe__item:hover .pipe__name { color: var(--team-accent); }
.pipe__item:hover .pipe__name::before { background: var(--team-accent); border-color: var(--team-accent); transform: scale(1.35); }
:lang(ja) .pipe__name { font-size: 11px; letter-spacing: -.01em; }
.pipe__lead { display: block; margin-top: 5px; font-style: normal; color: var(--team-muted); font-size: 10.5px; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; }
.pipe__duty { display: block; margin-top: 8px; color: rgba(255,255,255,.45); font-size: 10px; line-height: 1.65; text-wrap: pretty; }

.team-note { margin-top: 34px; color: var(--team-muted); font-size: 10.5px; line-height: 1.6; opacity: .5; }

@media (max-width: 980px) {
  .team-people { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .pipe__items--4, .pipe__items--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .pipe__items--4 { width: 100%; margin-inline: 0; }
  .pipe__items--5 { margin-top: 26px; }
}

/* 05 — contact */
.contact-eyebrow { display: flex; align-items: center; gap: 10px; font: 400 10px/1.4 var(--mono, monospace); letter-spacing: .16em; color: var(--team-accent); }
.contact-eyebrow > span { width: 7px; height: 7px; background: var(--team-accent); display: inline-block; }
.contact-section { padding-block: clamp(44px, 5.2vw, 84px) 26px; background: #101012; border-top: 1px solid var(--team-line); }
.contact-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 22px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.contact-title { font-size: clamp(34px, 4.6vw, 74px); line-height: 1.2; font-weight: 500; letter-spacing: -.065em; }
.contact-title > span { color: var(--team-accent); }
.contact-title--en { letter-spacing: -.03em; line-height: 1.1; font-size: clamp(38px, 5vw, 84px); }
.contact-mark { color: var(--team-accent); font: 300 clamp(56px, 7.5vw, 112px)/.85 var(--latin, sans-serif); }
.contact-email { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; border-block: 1px solid var(--team-line); color: #fff; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.contact-email__address { min-width: 0; font: 400 clamp(17px, 2.6vw, 38px)/1.35 var(--latin, sans-serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.contact-email__arrow { flex: 0 0 auto; color: var(--team-accent); font: 400 clamp(18px, 2.4vw, 30px)/1 var(--latin, sans-serif); transition: transform .2s ease; }
.contact-email:hover { color: var(--team-accent); border-color: var(--team-accent); }
.contact-email:hover .contact-email__arrow { transform: translate(3px, -3px); }
.contact-email:focus-visible { outline: 2px solid var(--team-accent); outline-offset: 6px; }
.contact-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; color: var(--team-muted); font-size: 12px; }
.contact-footer > span { font-family: var(--mono, monospace); font-size: 10px; letter-spacing: .1em; }

@media (max-width: 1080px) {
  .team-roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .team-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .team-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-department__name { white-space: normal; }
  .contact-heading-row { margin-top: 20px; }
  .contact-title { font-size: clamp(32px, 9vw, 52px); }
  .contact-mark { font-size: clamp(44px, 12vw, 74px); }
  .contact-email { gap: 12px; padding-block: 12px; }
  .contact-email__address { font-size: clamp(16px, 4.6vw, 30px); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-email, .contact-email__arrow { transition: none; }
}
/* 03b — 制作团队：分布地图 */
.pmap__meta { margin-top: 10px; font: 400 9.5px/1.6 var(--mono, monospace); letter-spacing: .16em; color: var(--team-muted); }
.pmap { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: clamp(18px, 2.2vw, 36px); margin: 20px 0 0; align-items: stretch; }
.pmap__teams { display: flex; flex-direction: column; justify-content: center; }
.pmap__team { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; padding: 11px 0; border-top: 1px solid var(--team-line); align-items: baseline; transition: opacity .25s ease; }
.pmap__team:last-child { border-bottom: 1px solid var(--team-line); }
.pmap__team:focus-visible { outline: 2px solid var(--team-accent); outline-offset: 4px; }
.pmap__name { font-size: 19px; font-weight: 500; letter-spacing: -.01em; transition: color .25s ease; }
.pmap__num { font: 400 22px/1 var(--mono, monospace); color: var(--team-accent); letter-spacing: -.03em; justify-self: end; }
.pmap__num small { font-size: 10px; color: var(--team-muted); margin-left: 3px; letter-spacing: .12em; }
.pmap__loc { grid-column: 1 / -1; font: 400 10.5px/1.65 var(--mono, monospace); color: var(--team-muted); letter-spacing: .04em; }
.pmap__duty { grid-column: 1 / -1; font-size: 12px; line-height: 1.65; color: rgba(255,255,255,.45); }
.pmap__team.is-focus .pmap__name { color: var(--team-accent); }
.pmap__side { min-width: 0; }
.pmap__svg { display: block; width: 100%; height: auto; overflow: hidden; }
.pmap__land { fill: url(#pmLand); stroke: rgba(215,255,62,.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pmap__land--jp { fill: rgba(215,255,62,.10); }
.pmap__prov { fill: none; stroke: rgba(215,255,62,.26); stroke-width: .6; vector-effect: non-scaling-stroke; }
.pmap__city { transition: opacity .25s ease; }
.pmap__dot { fill: var(--team-accent); }
.pmap__ring { fill: none; stroke: rgba(215,255,62,.45); stroke-width: 1.2; }
.pmap__label { fill: rgba(255,255,255,.82); font: 400 11.5px var(--sans, sans-serif); letter-spacing: .06em; }
.pmap__city.is-dim { opacity: .18; }
.pmap__city.is-on .pmap__dot { fill: #fff; }
.pmap__city.is-on .pmap__ring { stroke: var(--team-accent); stroke-width: 2; }
.pmap__legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font: 400 9px/1.6 var(--mono, monospace); color: var(--team-muted); letter-spacing: .1em; }
.pmap__legend b { color: var(--team-accent); font-weight: 400; }
.pmap__note { margin-top: 10px; font: 400 9px/1.7 var(--mono, monospace); color: rgba(255,255,255,.3); letter-spacing: .06em; }
@media (max-width: 1180px) { .pmap { grid-template-columns: 1fr; } .pmap__side { order: 1; } .pmap__teams { order: 2; justify-content: flex-start; } }

.pmap__team--mid { cursor: pointer; }
.pmap__toggle { grid-column: 1 / -1; justify-self: start; margin-top: 2px; padding: 0; background: none; border: 0; color: var(--team-accent); font: 400 10px/1.6 var(--mono, monospace); letter-spacing: .12em; cursor: pointer; }
.pmap__toggle::after { content: " +"; }
.pmap__team.is-open .pmap__toggle::after { content: " −"; }
.pmap__sub { grid-column: 1 / -1; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.pmap__team.is-open .pmap__sub { max-height: 300px; }
.pmap__subin { padding: 4px 0 2px; display: flex; flex-direction: column; gap: 5px; }
.pmap__subrow { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 2px 10px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); align-items: baseline; }
.pmap__subrow b { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.75); }
.pmap__subrow span { font: 400 11px/1.4 var(--mono, monospace); color: var(--team-accent); }
.pmap__subrow em { grid-column: 3; font-style: normal; font: 400 9.5px/1.5 var(--mono, monospace); color: var(--team-muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
