:root {
  --paper: #f6f2e8;
  --paper-deep: #ebe4d2;
  --ink: #111111;
  --muted: #5a5a55;
  --cyan: #1bc7d1;
  --red: #d7342a;
  --line: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ready-tab {
  position: fixed;
  left: 0;
  top: 170px;
  z-index: 20;
  writing-mode: vertical-rl;
  padding: 10px 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 8px;
  border-bottom: var(--line);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-bottom: var(--line);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: clamp(20px, 3vw, 31px);
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: var(--line);
  background: var(--ink);
  color: var(--paper);
  transform: skew(-10deg);
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.nav a {
  border: 2px solid transparent;
  padding: 8px 9px;
  font-size: 13px;
  font-weight: 900;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.hero {
  padding: 26px 0 36px;
  border-bottom: var(--line);
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.hero-word,
.site-footer > div {
  margin: 0;
  font-family: Impact, "Arial Black", "Microsoft YaHei", sans-serif;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Microsoft YaHei", "PingFang SC", "Arial Black", sans-serif;
  font-size: clamp(46px, 7.8vw, 92px);
  line-height: 1.02;
}

.hero-lead {
  width: min(680px, 100%);
  margin: 14px 0 0;
  border: var(--line);
  padding: 18px;
  background: #fffdf6;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.75;
  font-weight: 800;
}

.hero-word {
  margin: 12px 0 16px;
  font-size: clamp(58px, 14vw, 158px);
  line-height: 0.82;
  font-style: italic;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.image-tile,
.lab-grid article,
.team-hero,
.member-grid article,
.profile-card,
.service-grid article,
.contact-panel,
.brief-form {
  border: var(--line);
  background: #fffdf6;
}

.image-tile {
  display: grid;
  grid-template-rows: auto minmax(76px, auto);
  min-width: 0;
  overflow: hidden;
}

.image-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-bottom: var(--line);
  background: #050628;
}

.image-tile div {
  min-width: 0;
  padding: 12px 14px;
  color: var(--ink);
}

.image-tile span,
.contact-panel span,
.service-grid span {
  display: block;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.image-tile strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding: 34px 0;
  border-bottom: var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading.compact {
  display: block;
}

.section-heading h2 {
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.92;
  font-style: italic;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr repeat(3, 1fr);
  gap: 16px;
}

.scoreboard {
  display: grid;
  align-content: center;
  gap: 16px;
}

.score-row span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 950;
}

.score-row i {
  display: block;
  height: 12px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(90deg, var(--ink) var(--value), transparent 0),
    #fffdf6;
}

.profile-card,
.service-grid article,
.member-grid article {
  padding: 18px;
}

.profile-card h3,
.service-grid h3,
.lab-grid h3,
.team-hero h3,
.member-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.profile-card p,
.service-grid p,
.lab-grid p,
.team-hero p,
.member-grid p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.service-grid article {
  min-height: 210px;
}

.service-grid span {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: var(--line);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  margin-top: 24px;
  border: var(--line);
  background: #fffdf6;
}

.feature-band img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.feature-copy {
  display: grid;
  align-content: center;
  padding: 28px;
  border-left: var(--line);
}

.feature-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.feature-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.lab-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: var(--line);
}

.archive-block {
  margin-top: 0;
  border: var(--line);
  background: #fffdf6;
}

.archive-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) 1fr;
  gap: 20px;
  align-items: end;
  padding: 22px;
  border-bottom: var(--line);
}

.archive-head h3 {
  grid-row: span 2;
  margin: 0;
  font-family: Impact, "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 0.95;
  font-style: italic;
  letter-spacing: 0;
}

.archive-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.visual-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px;
  background: var(--paper-deep);
}

.visual-work-card {
  min-width: 0;
  border: var(--line);
  background: #fffdf6;
  box-shadow: 5px 5px 0 var(--ink);
}

.visual-preview-trigger {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: var(--line);
  padding: 0;
  background: #050628;
  cursor: zoom-in;
}

.visual-preview-trigger:focus-visible {
  outline: 4px solid var(--red);
  outline-offset: -7px;
}

.visual-work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #050628;
}

.visual-work-card div {
  padding: 14px;
}

.visual-work-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.visual-work-card h4 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.visual-work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.has-visual-archive .fallback-archive {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.82);
}

.image-lightbox.is-open {
  display: grid;
}

.lightbox-frame {
  width: min(1180px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  margin: 0;
  border: var(--line);
  background: #fffdf6;
  box-shadow: var(--shadow);
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  background: #050628;
  border-bottom: var(--line);
}

.lightbox-frame figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 18px 16px;
}

.lightbox-frame span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
}

.lightbox-frame strong {
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.15;
}

.lightbox-frame p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: var(--line);
  background: #fffdf6;
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--red);
  color: #fffdf6;
  outline: none;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.archive-grid article {
  min-width: 0;
  padding: 18px;
  border-right: var(--line);
  border-bottom: var(--line);
}

.archive-grid article:nth-child(3n) {
  border-right: 0;
}

.archive-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.archive-grid h4 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: var(--line);
  font-size: 22px;
}

.archive-grid ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-grid li {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 6px solid var(--ink);
}

.archive-grid strong {
  font-size: 15px;
  line-height: 1.35;
}

.archive-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lab-grid article {
  padding: 0 0 18px;
}

.lab-grid h3,
.lab-grid p {
  padding: 0 18px;
}

.lab-grid h3 {
  margin-top: 16px;
}

.team-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.team-hero img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  border-right: var(--line);
}

.team-hero div {
  display: grid;
  align-content: center;
  padding: 28px;
}

.team-hero h3 {
  font-size: clamp(26px, 4.5vw, 54px);
  line-height: 1.04;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 18px;
}

.brief-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.brief-form label {
  display: grid;
  gap: 6px;
}

.brief-form label:nth-of-type(3),
.brief-form label:nth-of-type(4),
.brief-form button,
.form-status {
  grid-column: 1 / -1;
}

.brief-form span {
  font-size: 12px;
  font-weight: 950;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: #fffdf6;
  padding: 11px 12px;
  color: var(--ink);
}

.brief-form textarea {
  resize: vertical;
}

.brief-form button {
  justify-self: start;
  border: var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  font-weight: 950;
  cursor: pointer;
}

.brief-form button:hover,
.brief-form button:focus-visible {
  background: var(--cyan);
  color: var(--ink);
  outline: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.contact-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 0;
  background: var(--paper-deep);
}

.contact-panel div {
  padding: 18px;
  border-bottom: var(--line);
  background: #fffdf6;
}

.contact-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  line-height: 1.15;
}

.contact-panel p {
  padding: 18px;
  font-weight: 800;
}

.site-footer {
  padding: 32px 0 22px;
}

.site-footer > div {
  font-size: clamp(52px, 13vw, 148px);
  line-height: 0.9;
  font-style: italic;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 950;
}

@media (max-width: 980px) {
  .hero-copy,
  .section-heading,
  .profile-layout,
  .service-grid,
  .archive-grid,
  .visual-archive-grid,
  .lab-grid,
  .member-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-head {
    grid-template-columns: 1fr;
  }

  .archive-head h3 {
    grid-row: auto;
  }

  .archive-grid article:nth-child(3n) {
    border-right: var(--line);
  }

  .archive-grid article:nth-child(2n) {
    border-right: 0;
  }

  .archive-grid article:nth-last-child(-n + 3) {
    border-bottom: var(--line);
  }

  .archive-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .hero-word {
    white-space: normal;
  }

  .hero-grid,
  .feature-band,
  .team-hero {
    grid-template-columns: 1fr;
  }

  .feature-copy,
  .team-hero img {
    border-left: 0;
    border-right: 0;
  }

  .team-hero img {
    border-bottom: var(--line);
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .ready-tab {
    display: none;
  }

  .top-strip,
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-grid,
  .profile-layout,
  .service-grid,
  .archive-grid,
  .visual-archive-grid,
  .lab-grid,
  .member-grid,
  .contact-grid,
  .brief-form {
    grid-template-columns: 1fr;
  }

  .archive-grid article,
  .archive-grid article:nth-child(2n),
  .archive-grid article:nth-child(3n) {
    border-right: 0;
  }

  .archive-grid article:nth-last-child(-n + 2) {
    border-bottom: var(--line);
  }

  .archive-grid article:last-child {
    border-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(46px, 16vw, 74px);
  }

  .hero-word,
  .section-heading h2,
  .site-footer > div {
    overflow-wrap: anywhere;
  }

  .image-lightbox {
    padding: 12px;
  }

  .lightbox-frame {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .lightbox-frame img {
    max-height: calc(100vh - 190px);
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

}
