/* Hero figure layout adapted from 8B Sillage (MIT). */
:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --ink: #152136;
  --muted: #4e5b70;
  --line: #c9ced4;
  --blue: #1947d1;
  --tint: #e9edf5;
  --gutter: clamp(28px, 4vw, 64px);
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px 16px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.eyebrow { font: 600 12px/1.5 var(--mono); letter-spacing: .085em; }
.label-divider { display: inline-block; width: 20px; height: 1px; background: currentColor; opacity: .55; vertical-align: middle; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-width: 0; min-height: 44px; font-size: 17px; font-weight: 800; letter-spacing: -.035em; line-height: 1.3; }
.brand img { flex: none; }
.brand span { overflow-wrap: anywhere; }
.site-nav { display: flex; gap: clamp(14px, 3.4vw, 52px); align-items: center; }
.site-nav a, .header-link, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.site-nav a:hover, .header-link:hover { color: var(--blue); }
.header-link { justify-self: end; gap: 13px; padding: 0 13px; border: 1px solid var(--line); }
.header-link svg { width: 16px; height: 16px; }

.hero { padding-top: clamp(36px, 5.15vw, 78px); }
.hero-masthead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .33fr); gap: clamp(28px, 6vw, 100px); align-items: end; padding-bottom: clamp(22px, 3.2vw, 48px); }
.hero-kicker { color: var(--blue); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(16px, 2vw, 28px); }
.kicker-mark { display: inline-block; width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); }
.hero h1 {
  font-size: clamp(48px, 7.1vw, 110px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
}
.hero h1 span { display: block; color: var(--blue); }
.hero-context { padding-bottom: 5px; }
.hero-context > p { margin-bottom: 24px; font-size: clamp(15px, 1.35vw, 20px); line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.hero-link { display: flex; align-items: center; justify-content: space-between; min-height: 50px; gap: 12px; font-weight: 750; border-top: 1px solid var(--line); padding-top: 10px; }
.arrow-round { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); transition: background-color .18s, color .18s; }
.hero-link:hover .arrow-round { background: var(--blue); color: white; }
.hero__media { position: relative; overflow: hidden; background: #d5dbe0; }
.hero__media img { width: 100%; height: auto; aspect-ratio: 3.1 / 1; object-fit: cover; object-position: 50% 60%; }
.hero__caption { position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; background: var(--paper); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.hero__caption span { width: 14px; height: 1px; background: var(--line); }
.hero-index { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--muted); }
.hero-index > span { display: inline-flex; align-items: center; gap: 9px; }
#index-counts { display: flex; gap: 22px; }
#index-counts b { color: var(--blue); font-size: 14px; }

.notice { margin-top: 25px; color: var(--muted); }
.retry { min-height: 44px; margin-top: 8px; padding: 0 14px; background: none; color: var(--blue); border: 1px solid var(--blue); }
.directory { padding-block: clamp(66px, 8vw, 126px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 4vw, 55px); }
.section-label { display: flex; gap: 9px; align-items: center; color: var(--blue); margin-bottom: 14px; }
.section-heading h2, .contact h2 { font-size: clamp(39px, 5.2vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.section-heading > p, .contact p:not(.eyebrow) { max-width: 25ch; color: var(--muted); font-size: 15px; line-height: 1.75; }

.services-grid, .team-grid { border-top: 1px solid var(--line); min-width: 0; }
.service-card, .member-card { border-bottom: 1px solid var(--line); }
.service-card:target, .member-card:target { background: #dde6ff; }
.service-summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(100px, .3fr) 40px;
  gap: clamp(12px, 2.4vw, 34px);
  align-items: center;
  list-style: none;
  min-height: 101px;
  padding: 18px 12px;
  cursor: pointer;
  transition: background-color .18s;
}
.service-summary::-webkit-details-marker { display: none; }
.service-summary:hover, .service-details[open] > .service-summary { background: #e9edf7; }
.service-ordinal, .member-ordinal { font: 650 13px/1.3 var(--mono); letter-spacing: .1em; color: var(--blue); }
.service-copy, .service-owner { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.service-title { font-size: clamp(20px, 2.25vw, 33px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.service-description, .member-bio, .member-role { color: var(--muted); font-size: 14px; }
.owner-label, .member-services > p { font-size: 12px; color: var(--muted); }
.service-owner strong { font-size: 15px; }
.service-toggle { position: relative; display: block; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); }
.service-toggle::before, .service-toggle::after { position: absolute; content: ""; width: 13px; height: 1px; background: currentColor; inset: 0; margin: auto; }
.service-toggle::after { transform: rotate(90deg); }
.service-details[open] .service-toggle { color: #fff; background: var(--blue); border-color: var(--blue); }
.service-details[open] .service-toggle::after { display: none; }
.service-expanded {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(100px, .3fr) 40px;
  gap: clamp(12px, 2.4vw, 34px);
  align-items: start;
  padding: 6px 12px 23px;
  background: #e9edf7;
}
.service-symbol { color: var(--blue); }
.service-detail-copy { color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.responsible { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; color: var(--blue); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.responsible svg { flex: none; width: 16px; height: 16px; }

.team-section { background: var(--tint); border-block: 1px solid #dbe1ec; }
.team-layout { display: grid; grid-template-columns: minmax(225px, .6fr) minmax(0, 1.4fr); align-items: start; gap: clamp(28px, 6vw, 90px); }
.team-heading { display: grid; align-content: start; margin: 0; }
.member-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(120px, .6fr); gap: 7px 16px; align-items: start; padding: 23px 10px; }
.member-ordinal { align-self: start; padding-top: 8px; }
.member-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.member-identity { min-width: 0; overflow-wrap: anywhere; }
.member-head h3 { font-size: clamp(20px, 2vw, 27px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.member-role { margin-top: 4px; }
.avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 8px; font-size: 21px; font-weight: 800; background: #dde2eb; color: #27344d; }
.avatar[data-theme="violet"] { background: #e4ddf5; color: #563897; }
.avatar[data-theme="rose"] { background: #f0dbe4; color: #8e2853; }
.avatar[data-theme="amber"] { background: #eee2c7; color: #7d5009; }
.avatar[data-theme="blue"] { background: #d8e3ff; color: #1842ae; }
.member-bio { grid-column: 2; grid-row: 2; overflow-wrap: anywhere; white-space: pre-wrap; }
.member-services { grid-column: 3; grid-row: 1 / span 2; overflow-wrap: anywhere; }
.member-services ul { margin: 3px 0 0; padding: 0; list-style: none; }
.member-services a { display: inline-flex; align-items: center; min-height: 32px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; font-weight: 650; }
.member-services a:hover, .responsible:hover { text-decoration-thickness: 2px; }
.empty { padding-block: 25px; color: var(--muted); }

.contact { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-block: clamp(55px, 7vw, 98px); }
.contact h2 { margin-bottom: 13px; }
.contact-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-link svg { flex: none; }
.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { min-height: 102px; padding-block: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px clamp(14px, 3vw, 35px); }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: #dbe6ff; }
.footer-admin { gap: 5px; }
.footer-admin svg { width: 15px; height: 15px; }

@media (max-width: 960px) {
  .hero__media img { aspect-ratio: 2.6 / 1; }
  .team-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 77px; }
  .header-inner { min-height: 61px; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .header-inner .brand { font-size: 15px; gap: 8px; }
  .header-inner .brand img { width: 29px; height: 29px; }
  .site-nav { gap: clamp(8px, 3vw, 16px); }
  .site-nav a { font-size: 12px; white-space: nowrap; }
  .header-link { display: none; }
  .hero { padding-top: 34px; }
  .hero-masthead { grid-template-columns: minmax(0, 1fr); gap: 17px; padding-bottom: 23px; }
  .hero h1 { font-size: clamp(43px, 11.5vw, 67px); }
  .hero-kicker { margin-bottom: 18px; }
  .hero-context { padding-bottom: 0; }
  .hero-context > p { margin-bottom: 13px; font-size: 15px; }
  .hero-link { max-width: 300px; }
  .hero__media img { aspect-ratio: 1.42 / 1; object-position: 55% 60%; }
  .hero__caption { left: 9px; bottom: 9px; }
  .hero-index { flex-wrap: wrap; padding-block: 9px; gap: 3px 12px; }
  .hero-index .label-divider, .hero-index > span { font-size: 10px; }
  #index-counts { gap: 12px; }
  .section-heading { display: grid; align-items: start; gap: 12px; }
  .section-heading > p { max-width: none; }
  .service-summary {
    grid-template-columns: 24px minmax(0, 1fr) 33px;
    padding: 15px 3px;
    gap: 7px 10px;
    min-height: 98px;
  }
  .service-ordinal { align-self: start; padding-top: 4px; }
  .service-toggle { width: 33px; height: 33px; grid-column: 3; grid-row: 1 / span 2; }
  .service-owner { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
  .service-owner strong { font-size: 13px; }
  .service-expanded { grid-template-columns: 24px minmax(0, 1fr); padding: 3px 7px 14px 3px; gap: 8px 10px; }
  .service-expanded .responsible { grid-column: 2; min-height: 44px; }
  .service-detail-copy { font-size: 14px; }
  .member-card { grid-template-columns: 24px minmax(0, 1fr); gap: 9px 10px; padding: 18px 3px; }
  .member-services { grid-column: 2; grid-row: auto; }
  .member-services ul { display: flex; flex-wrap: wrap; gap: 2px 13px; }
  .member-services a { min-height: 44px; }
  .contact { display: grid; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
