:root {
  color-scheme: light;
  --navy-950: #06152e;
  --navy-900: #071f42;
  --navy-800: #0a3470;
  --paper: #f5f1e8;
  --paper-deep: #eae3d5;
  --surface: #fffdf8;
  --surface-soft: #eee9df;
  --ink: #0b1e38;
  --ink-soft: #506077;
  --line: rgba(7, 31, 66, 0.18);
  --line-strong: rgba(7, 31, 66, 0.38);
  --accent: #795817;
  --accent-soft: rgba(184, 147, 69, 0.17);
  --shadow: 0 28px 70px rgba(7, 31, 66, 0.12);
  --radius-small: 8px;
  --radius: 16px;
  --page-width: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-height: 78px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #071325;
    --paper-deep: #0a1c35;
    --surface: #0d2340;
    --surface-soft: #102a4b;
    --ink: #eef3f9;
    --ink-soft: #aab9ca;
    --line: rgba(226, 235, 245, 0.16);
    --line-strong: rgba(226, 235, 245, 0.34);
    --accent: #d5b56a;
    --accent-soft: rgba(213, 181, 106, 0.14);
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #071325;
  --paper-deep: #0a1c35;
  --surface: #0d2340;
  --surface-soft: #102a4b;
  --ink: #eef3f9;
  --ink-soft: #aab9ca;
  --line: rgba(226, 235, 245, 0.16);
  --line-strong: rgba(226, 235, 245, 0.34);
  --accent: #d5b56a;
  --accent-soft: rgba(213, 181, 106, 0.14);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), var(--line) 1px) center top / min(24vw, 340px) 100% fixed,
    var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(100%, var(--page-width));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand-lockup,
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-lockup img,
.site-footer__brand img {
  width: 58px;
  height: 30px;
  object-fit: contain;
}

:root[data-theme="dark"] .brand-lockup img,
:root[data-theme="dark"] .site-footer__brand img {
  filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-lockup img,
  :root:not([data-theme="light"]) .site-footer__brand img {
    filter: brightness(0) invert(1);
  }
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(11px, 1.2vw, 22px);
  min-width: 0;
  margin-left: auto;
}

.global-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: var(--ink-soft);
  font-size: clamp(12px, 0.82vw, 14px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 180ms ease;
}

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

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav__login {
  color: var(--ink) !important;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  order: 3;
}

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 11px;
  font-size: 12px;
}

.theme-toggle__dot {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -3px -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 11px 10px;
}

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: clamp(48px, 8vw, 132px);
  align-items: center;
  width: min(100%, var(--page-width));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 148px) var(--gutter);
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.hero h1 {
  max-width: 920px;
  margin-bottom: 32px;
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(44px, 3.8vw, 54px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero__lead {
  max-width: 760px;
  margin-bottom: 38px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.72;
}

.primary-link,
.research-card__footer a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  border-bottom: 1px solid var(--accent);
}

.primary-link span,
.research-card__footer a span {
  color: var(--accent);
  font-size: 20px;
  transition: transform 160ms ease;
}

.primary-link:hover span,
.research-card__footer a:hover span {
  transform: translateX(4px);
}

.hero__folio {
  position: relative;
  overflow: hidden;
  min-height: 550px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 15%, var(--accent-soft), transparent 27%),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero__folio::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -115px;
  width: 340px;
  height: 340px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.45;
}

.hero__folio::after {
  content: "";
  position: absolute;
  top: 0;
  right: 30%;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.folio-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 42px;
}

.folio-heading span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.folio-heading strong {
  color: var(--accent);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.folio-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.folio-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.folio-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.folio-list__number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.folio-list li > span:nth-child(2) {
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  font-weight: 600;
}

.folio-list small {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.folio-note {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.index-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, var(--page-width));
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.index-meta div {
  padding: 24px var(--gutter);
  border-right: 1px solid var(--line);
}

.index-meta div:last-child {
  border-right: 0;
}

.index-meta span,
.index-meta strong {
  display: block;
}

.index-meta span {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.index-meta strong {
  font-size: 14px;
}

.continuity-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
}

.continuity-strip[hidden] {
  display: none;
}

.continuity-strip span {
  color: var(--ink-soft);
}

.continuity-strip a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.system-section,
.research-section,
.method-section,
.boundary-note,
.site-footer {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.system-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 8vw, 128px);
  padding-top: clamp(100px, 11vw, 170px);
  padding-bottom: clamp(100px, 11vw, 170px);
  border-bottom: 1px solid var(--line-strong);
}

.system-intro {
  align-self: start;
}

.system-intro h2 {
  margin-bottom: 26px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.system-intro > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.system-reference {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
}

.system-reference a {
  color: var(--ink);
  text-underline-offset: 4px;
}

.system-layers {
  display: grid;
  align-content: start;
  gap: 12px;
}

.system-layer {
  display: grid;
  grid-template-columns: minmax(168px, 0.46fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.system-layer--research {
  margin-right: 4%;
  margin-left: 4%;
}

.system-layer--apps {
  margin-right: 8%;
  margin-left: 8%;
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 58%),
    var(--surface);
}

.system-layer--services {
  margin-right: 12%;
  margin-left: 12%;
}

.system-layer__label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.system-layer__label strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.system-layer__label span {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.system-layer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.system-continuity {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-top: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
}

.system-continuity > p {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 24px 28px;
  color: var(--ink);
  font-weight: 800;
}

.system-continuity ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-continuity li {
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}

.system-continuity strong,
.system-continuity span {
  display: block;
}

.system-continuity strong {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
}

.system-continuity span {
  color: var(--ink-soft);
  font-size: 13px;
}

.research-section {
  padding-top: clamp(100px, 11vw, 170px);
  padding-bottom: clamp(110px, 12vw, 190px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  column-gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(54px, 7vw, 96px);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.method-intro h2,
.boundary-note h2 {
  margin-bottom: 0;
  font-family: "Songti SC", "STSong", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 62px);
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.research-card {
  display: flex;
  flex-direction: column;
  min-height: 660px;
  background: var(--surface);
}

.research-card:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.research-card:last-child {
  border-left: 1px solid var(--line-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.research-card--friend {
  background:
    linear-gradient(145deg, rgba(10, 52, 112, 0.08), transparent 55%),
    var(--surface);
}

.research-card__topline,
.research-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(24px, 3.5vw, 52px);
}

.research-card__topline {
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.status-chip {
  padding: 5px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.research-card__body {
  flex: 1;
  padding: clamp(44px, 5vw, 76px) clamp(24px, 3.5vw, 52px);
}

.research-card__context {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.research-card h3 {
  max-width: 640px;
  margin-bottom: 28px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 3.7vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.research-card__body > p:not(.research-card__context) {
  max-width: 610px;
  color: var(--ink-soft);
  font-size: 16px;
}

.research-card__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 62px 0 0;
  padding: 0;
  list-style: none;
}

.research-card__facts li {
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.research-card__facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.research-card__facts strong,
.research-card__facts span {
  display: block;
}

.research-card__facts strong {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.research-card__facts span {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 12px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 55px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.flow-list li::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -50%;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
}

.flow-list li:last-child::after {
  display: none;
}

.flow-list span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: 0 auto 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-family: Georgia, serif;
}

.research-card__footer {
  align-items: flex-end;
  border-top: 1px solid var(--line);
}

.research-card__footer > span {
  max-width: 205px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 8vw, 128px);
  padding-top: clamp(90px, 10vw, 150px);
  padding-bottom: clamp(90px, 10vw, 150px);
  border-top: 1px solid var(--line-strong);
}

.method-intro h2 {
  font-size: clamp(34px, 3.8vw, 58px);
}

.method-intro > p {
  max-width: 38em;
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.method-grid {
  counter-reset: method;
}

.method-grid article {
  display: grid;
  grid-template-columns: 58px minmax(120px, 0.55fr) minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.method-grid article:last-child {
  border-bottom: 1px solid var(--line);
}

.method-grid span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 13px;
}

.method-grid h3 {
  margin-bottom: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 600;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.boundary-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 8vw, 120px);
  margin-top: 32px;
  margin-bottom: clamp(100px, 12vw, 180px);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.boundary-note h2 {
  font-size: clamp(30px, 3vw, 46px);
}

.boundary-list {
  align-self: center;
  margin: 0;
  color: var(--ink-soft);
}

.boundary-list div {
  display: grid;
  grid-template-columns: minmax(148px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.boundary-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.boundary-list dt {
  color: var(--ink);
  font-weight: 800;
}

.boundary-list dd {
  margin: 0;
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-top: 38px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line-strong);
}

.site-footer p {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
}

.site-footer__links a {
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--ink);
}

@media (max-width: 1220px) {
  .site-header__inner {
    gap: 20px;
  }

  .global-nav {
    gap: 13px;
  }

  .global-nav a:nth-child(6),
  .global-nav a:nth-child(7) {
    display: none;
  }

  .theme-toggle span:last-child {
    display: none;
  }

  .research-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-card__footer > span {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 68px;
  }

  body {
    background: var(--paper);
  }

  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--gutter);
    left: var(--gutter);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0 solid var(--line-strong);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: max-height 240ms ease, opacity 160ms ease, border-width 160ms ease;
  }

  .site-header[data-menu-open="true"] .global-nav {
    max-height: 520px;
    border-width: 0 1px 1px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .global-nav a,
  .global-nav a:nth-child(6),
  .global-nav a:nth-child(7) {
    display: block;
    padding: 17px 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .global-nav a:nth-child(3n) {
    border-right: 0;
  }

  .global-nav a::after {
    display: none;
  }

  .site-header[data-menu-open="true"] .nav-toggle__line:first-child {
    transform: translateY(2.5px) rotate(45deg);
  }

  .site-header[data-menu-open="true"] .nav-toggle__line:last-of-type {
    transform: translateY(-2.5px) rotate(-45deg);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 96px;
  }

  .hero__copy {
    max-width: 820px;
  }

  .hero__folio {
    min-height: 460px;
  }

  .index-meta {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 var(--gutter);
  }

  .index-meta div {
    padding-right: 20px;
    padding-left: 20px;
    border-bottom: 1px solid var(--line);
  }

  .index-meta div:nth-child(2) {
    border-right: 0;
  }

  .index-meta div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .section-heading,
  .system-section,
  .method-section,
  .boundary-note {
    grid-template-columns: 1fr;
  }

  .system-section {
    gap: 56px;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > p:last-child {
    max-width: 720px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    min-height: 610px;
  }

  .research-card:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .research-card:last-child {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .method-section {
    gap: 48px;
  }

  .boundary-note {
    gap: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .brand-lockup {
    gap: 8px;
    font-size: 11px;
  }

  .brand-lockup img {
    width: 48px;
    height: 25px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .global-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .global-nav a:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .global-nav a:nth-child(2n) {
    border-right: 0;
  }

  .hero {
    gap: 48px;
    padding-top: 68px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(42px, 13.8vw, 62px);
    line-height: 1.06;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__folio {
    min-height: auto;
    padding: 26px 22px;
  }

  .folio-heading {
    padding-bottom: 52px;
  }

  .folio-heading strong {
    font-size: 34px;
  }

  .folio-list li {
    grid-template-columns: 28px 1fr;
  }

  .folio-list small {
    grid-column: 2;
  }

  .folio-note {
    margin-top: 22px;
  }

  .system-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .system-intro h2 {
    font-size: 38px;
  }

  .system-layer,
  .system-layer--research,
  .system-layer--apps,
  .system-layer--services {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-right: 0;
    margin-left: 0;
    padding: 22px 20px;
  }

  .system-continuity {
    grid-template-columns: 1fr;
  }

  .system-continuity > p {
    padding-bottom: 14px;
  }

  .system-continuity ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-continuity li:nth-child(odd) {
    border-left: 0;
  }

  .system-continuity li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .index-meta {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .index-meta div,
  .index-meta div:nth-child(n + 3) {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .index-meta div:last-child {
    border-bottom: 0;
  }

  .continuity-strip {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .research-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .research-card {
    min-height: auto;
  }

  .research-card__topline,
  .research-card__footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .research-card__body {
    padding: 46px 20px 54px;
  }

  .research-card h3 {
    font-size: 39px;
  }

  .research-card__facts {
    margin-top: 48px;
  }

  .research-card__facts li {
    padding: 0 10px;
  }

  .research-card__facts strong {
    font-size: 31px;
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
    margin-top: 44px;
  }

  .flow-list li:nth-child(2)::after,
  .flow-list li:last-child::after {
    display: none;
  }

  .method-grid article {
    grid-template-columns: 38px 1fr;
    gap: 13px;
  }

  .method-grid p {
    grid-column: 2;
  }

  .boundary-note {
    margin-bottom: 100px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .boundary-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer p {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer__links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .theme-toggle,
  .nav-toggle,
  .primary-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero {
    min-height: auto;
  }

  .research-card,
  .hero__folio,
  .boundary-note {
    box-shadow: none;
    break-inside: avoid;
  }
}
