@import "tailwindcss";

:root {
  --paper: #f1eee5;
  --paper-deep: #e7e1d3;
  --paper-light: #faf8f2;
  --ink: #1e201d;
  --ink-soft: #5f625c;
  --line: #c9c4b8;
  --line-dark: #7b7e76;
  --red: #b64b38;
  --red-dark: #873529;
  --blue: #416c7f;
  --green: #576d51;
  --yellow: #d1aa55;
  --display: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --body: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Liberation Mono", monospace;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(84px, 10vw, 144px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(30, 32, 29, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--paper-light);
  background: var(--red-dark);
}

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

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

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-shell {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.section-block {
  padding-block: var(--section);
}

.compact-section {
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--paper-light);
  background: var(--ink);
}

.site--dafei .button--primary {
  background: var(--red-dark);
}

.button--text {
  padding-inline: 4px;
  border-bottom: 1px solid var(--line-dark);
}

.button--paper {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--paper-light);
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
}

.status-stamp {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid currentColor;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-stamp--red {
  color: var(--red-dark);
}

.status-stamp--blue {
  color: var(--blue);
}

.status-stamp--green {
  color: var(--green);
}

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

.site-header__inner {
  display: grid;
  width: min(100% - (var(--gutter) * 2), var(--max));
  min-height: 88px;
  align-items: center;
  margin-inline: auto;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
}

.brand-lockup small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.site-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.site-mark--dafei {
  background: var(--red-dark);
  transform: rotate(-2deg);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2vw, 26px);
}

.desktop-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

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

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.site-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.site-switch span {
  padding: 2px 6px;
  color: var(--paper-light);
  background: var(--ink);
  font-family: var(--mono);
}

.site-switch a {
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.site-footer {
  padding: 80px var(--gutter) 24px;
  color: var(--paper-light);
  background: var(--ink);
}

.site-footer--dafei {
  background: var(--red-dark);
}

.site-footer__top,
.site-footer__bottom {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.site-footer__top {
  display: grid;
  align-items: end;
  padding-bottom: 64px;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.site-footer__top .eyebrow {
  color: var(--yellow);
}

.site-footer__top h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
}

.footer-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 18px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

/* Gateway */
.gateway {
  min-height: 100svh;
  padding: 0 var(--gutter);
  background:
    radial-gradient(circle at 78% 22%, rgba(65, 108, 127, 0.09), transparent 26%),
    radial-gradient(circle at 16% 68%, rgba(182, 75, 56, 0.08), transparent 28%),
    var(--paper);
}

.gateway__header {
  display: flex;
  width: min(100%, var(--max));
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.gateway__project {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.gateway__project span {
  margin-left: 12px;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
}

.status-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-link span {
  padding: 3px 7px;
  color: var(--paper-light);
  background: var(--red-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.gateway__intro {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0 56px;
}

.gateway__intro h1 {
  max-width: 920px;
  margin-bottom: 30px;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.98;
}

.gateway__intro > p:last-child {
  max-width: 670px;
  margin-left: min(20vw, 250px);
  color: var(--ink-soft);
  font-size: 17px;
}

.gateway__choices {
  display: grid;
  width: min(100%, var(--max));
  margin-inline: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  grid-template-columns: 1fr 1fr;
}

.gateway-card {
  position: relative;
  display: grid;
  min-height: 410px;
  padding: clamp(28px, 4vw, 50px);
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  transition: background 220ms ease, color 220ms ease;
}

.gateway-card:first-child {
  border-right: 1px solid var(--ink);
}

.gateway-card:hover {
  color: var(--paper-light);
  background: var(--ink);
}

.gateway-card--dafei:hover {
  background: var(--red-dark);
}

.gateway-card__number {
  font-family: var(--mono);
  font-size: 12px;
}

.gateway-card__body {
  align-self: center;
}

.gateway-card__body h2 {
  margin-bottom: 10px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1;
}

.gateway-card__body > p:last-child {
  color: var(--ink-soft);
  transition: color 220ms ease;
}

.gateway-card:hover .gateway-card__body > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.gateway-card__artifact {
  position: absolute;
  top: 45px;
  right: 42px;
  width: 190px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  background: var(--paper-light);
  box-shadow: 8px 8px 0 var(--paper-deep);
  color: var(--ink);
  transform: rotate(2deg);
  transition: transform 220ms ease;
}

.gateway-card:hover .gateway-card__artifact {
  transform: rotate(-1deg) translateY(-6px);
}

.gateway-card__artifact--notes {
  transform: rotate(-2deg);
}

.artifact-tab {
  display: inline-block;
  margin: -34px 0 20px;
  padding: 4px 8px;
  color: var(--paper-light);
  background: var(--blue);
  font-size: 10px;
}

.gateway-card__artifact--notes .artifact-tab {
  background: var(--red-dark);
}

.gateway-card__artifact strong,
.gateway-card__artifact em {
  display: block;
}

.gateway-card__artifact strong {
  margin-bottom: 16px;
  font-family: var(--display);
}

.gateway-card__artifact i {
  display: block;
  height: 1px;
  margin: 10px 0;
  background: var(--line);
}

.gateway-card__artifact em {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.gateway-card__action {
  font-size: 13px;
  font-weight: 700;
}

.gateway__footer {
  display: flex;
  width: min(100%, var(--max));
  justify-content: space-between;
  margin-inline: auto;
  padding: 24px 0 38px;
  color: var(--ink-soft);
  font-size: 10px;
}

/* Intros */
.page-intro {
  display: grid;
  padding-top: clamp(70px, 9vw, 124px);
  padding-bottom: clamp(54px, 7vw, 92px);
  border-bottom: 1px solid var(--ink);
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
  gap: 8vw;
}

.page-intro h1 {
  max-width: 920px;
  margin-bottom: 30px;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.02;
}

.page-lead {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}

.page-intro__aside {
  align-self: end;
  padding-left: 20px;
  border-left: 1px solid var(--line-dark);
}

.page-intro__aside p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(44px, 6vw, 76px);
  grid-template-columns: minmax(150px, 0.32fr) 1fr;
  gap: 32px;
}

.section-heading__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-heading__label > span {
  font-family: var(--mono);
  font-size: 11px;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.08;
}

.section-heading > div:last-child > p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

.section-action {
  margin-top: 34px;
  text-align: right;
}

.source-note {
  display: flex;
  margin: 36px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  gap: 10px;
}

.source-note span {
  color: var(--red-dark);
  font-weight: 700;
}

/* Company home */
.company-hero {
  display: grid;
  min-height: 720px;
  align-items: center;
  padding-block: clamp(76px, 9vw, 120px);
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  gap: clamp(50px, 7vw, 100px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-kicker > span {
  color: var(--ink-soft);
  font-size: 11px;
}

.company-hero h1,
.dafei-hero h1 {
  margin: 34px 0 28px;
  font-size: clamp(54px, 6.2vw, 88px);
  line-height: 1;
}

.company-hero h1 em,
.dafei-hero h1 em {
  position: relative;
  color: var(--red-dark);
  font-style: normal;
}

.company-hero h1 em::after,
.dafei-hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 7px;
  background: rgba(182, 75, 56, 0.16);
  content: "";
  transform: rotate(-1deg);
}

.company-hero__copy > p:not(.microcopy),
.dafei-hero__copy > p:not(.eyebrow, .microcopy) {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 36px;
  gap: 22px;
}

.microcopy {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.field-desk {
  position: relative;
  min-height: 520px;
  padding: 46px 40px 42px 54px;
  background:
    linear-gradient(90deg, transparent 31px, rgba(182, 75, 56, 0.25) 32px, transparent 33px),
    linear-gradient(var(--line) 1px, transparent 1px),
    #d8d2c5;
  background-size: auto, 100% 32px;
  box-shadow: 18px 20px 0 rgba(30, 32, 29, 0.08);
  transform: rotate(0.5deg);
}

.field-desk__ruler {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 26px;
  align-items: center;
  justify-content: space-around;
  border-bottom: 1px solid rgba(30, 32, 29, 0.25);
  font-family: var(--mono);
  font-size: 8px;
}

.field-sheet {
  position: absolute;
  background: var(--paper-light);
}

.field-sheet--back {
  top: 70px;
  right: 25px;
  bottom: 58px;
  left: 78px;
  border: 1px solid var(--line-dark);
  transform: rotate(4deg);
}

.field-sheet--back span {
  position: absolute;
  right: -14px;
  bottom: 50px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  transform: rotate(90deg);
}

.field-sheet--front {
  top: 54px;
  right: 52px;
  bottom: 76px;
  left: 46px;
  padding: 30px;
  border: 1px solid var(--ink);
  box-shadow: 6px 8px 0 rgba(30, 32, 29, 0.15);
}

.field-sheet--front header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
}

.field-sheet__question {
  margin-top: 30px;
}

.field-sheet small {
  display: block;
  margin-bottom: 6px;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.field-sheet__question strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.25;
}

.field-sheet__answer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-dark);
}

.field-sheet__answer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.field-sheet__boundary {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  display: flex;
  gap: 8px;
}

.field-sheet__boundary span {
  padding: 3px 6px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
}

.field-sheet__stamp {
  position: absolute;
  top: 64%;
  right: 24px;
  padding: 5px 8px;
  border: 2px solid rgba(182, 75, 56, 0.55);
  color: rgba(182, 75, 56, 0.64);
  font-family: var(--display);
  font-weight: 700;
  transform: rotate(-9deg);
}

.field-desk__caption {
  position: absolute;
  right: 20px;
  bottom: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
}

.fact-strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-deep);
}

.fact-strip__inner {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr 0.9fr;
}

.fact-strip__inner > div {
  min-height: 112px;
  padding: 24px 20px;
  border-right: 1px solid var(--line-dark);
}

.fact-strip__inner > div:first-child {
  padding-left: 0;
}

.fact-strip__inner > div:last-child {
  border: 0;
}

.fact-strip small,
.fact-strip strong {
  display: block;
}

.fact-strip small {
  color: var(--ink-soft);
  font-size: 10px;
}

.fact-strip strong {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 16px;
}

.topic-ledger {
  border-top: 1px solid var(--ink);
}

.topic-row {
  display: grid;
  min-height: 136px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 70px minmax(180px, 0.8fr) 1.3fr 150px;
  gap: 24px;
}

.topic-row__index {
  font-family: var(--mono);
  font-size: 11px;
}

.topic-row h3 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
}

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

.topic-row .status-stamp {
  justify-self: end;
}

.evidence-section {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #ded8cb;
}

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

.evidence-card {
  background: var(--paper-light);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.evidence-card:hover {
  box-shadow: 7px 8px 0 rgba(30, 32, 29, 0.15);
  transform: translateY(-5px);
}

.evidence-card__visual {
  position: relative;
  display: flex;
  min-height: 230px;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: #6f756f;
}

.evidence-card__visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 28, 24, 0.28) 0%, transparent 38%, rgba(24, 28, 24, 0.7) 100%),
    linear-gradient(90deg, rgba(24, 28, 24, 0.18), transparent 55%);
  content: "";
  pointer-events: none;
}

.evidence-card__image {
  z-index: 0;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
  filter: saturate(0.78) contrast(1.04);
}

.evidence-card:hover .evidence-card__image {
  transform: scale(1.025);
  filter: saturate(0.9) contrast(1.06);
}

.evidence-card__visual span {
  position: relative;
  z-index: 2;
  height: fit-content;
  padding: 3px 7px;
  color: var(--paper-light);
  background: rgba(30, 32, 29, 0.75);
  font-size: 10px;
}

.evidence-card__content {
  min-height: 190px;
  padding: 24px;
}

.evidence-card__content p {
  margin-bottom: 12px;
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 700;
}

.evidence-card__content h3 {
  min-height: 64px;
  margin-bottom: 28px;
  font-size: 23px;
  line-height: 1.28;
}

.evidence-card__content span {
  font-size: 11px;
  font-weight: 700;
}

.evidence-disclaimer {
  max-width: 760px;
  margin: 28px 0 0 auto;
  color: var(--ink-soft);
  font-size: 11px;
}

.process-line {
  display: grid;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  grid-template-columns: repeat(5, 1fr);
}

.process-step {
  min-height: 240px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border: 0;
}

.process-step span {
  display: block;
  margin-bottom: 56px;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.process-step h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 12px;
}

.cross-site-panel,
.company-bridge {
  color: var(--paper-light);
  background: var(--ink);
}

.cross-site-panel__inner,
.company-bridge__inner {
  display: grid;
  align-items: end;
  padding-block: clamp(74px, 9vw, 120px);
  grid-template-columns: 1fr auto;
  gap: 60px;
}

.cross-site-panel .eyebrow,
.company-bridge .eyebrow {
  color: var(--yellow);
}

.cross-site-panel h2,
.company-bridge h2 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
}

.cross-site-panel p,
.company-bridge p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.68);
}

/* Inner company pages */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
}

.fact-table {
  border-top: 2px solid var(--ink);
}

.fact-table__row {
  display: grid;
  min-height: 110px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 170px 1fr 130px;
  gap: 22px;
}

.fact-table__row span {
  font-size: 12px;
}

.fact-table__row strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.fact-table__row em {
  justify-self: end;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.margin-note {
  height: fit-content;
  padding: 26px;
  border: 1px solid var(--red-dark);
  color: var(--red-dark);
  transform: rotate(1deg);
}

.margin-note > span {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.margin-note h3 {
  margin: 28px 0 14px;
  font-size: 26px;
}

.margin-note p {
  margin: 0;
  font-size: 13px;
}

.boundary-list {
  border-top: 1px solid var(--ink);
}

.boundary-list > div {
  display: grid;
  min-height: 96px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 70px 1fr;
}

.boundary-list span {
  font-family: var(--mono);
  font-size: 10px;
}

.boundary-list p {
  margin: 0;
}

.dark-paper {
  padding-block: var(--section);
  color: var(--paper-light);
  background: var(--ink);
}

.dark-paper__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.dark-paper .eyebrow {
  color: var(--yellow);
}

.dark-paper h2 {
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.08;
}

.dark-paper ol,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.dark-paper ol li,
.plain-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  counter-increment: item;
}

.dark-paper ol li::before {
  margin-right: 16px;
  color: var(--yellow);
  content: "0" counter(item);
  font-family: var(--mono);
  font-size: 9px;
}

.evidence-list {
  border-top: 1px solid var(--ink);
}

.evidence-list__row {
  display: grid;
  min-height: 180px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 70px 1fr 1fr 30px;
  gap: 28px;
  transition: padding 180ms ease, background 180ms ease;
}

.evidence-list__row:hover {
  padding-inline: 18px;
  background: var(--paper-deep);
}

.evidence-list__number {
  font-family: var(--mono);
  font-size: 10px;
}

.evidence-list__row > div p {
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 10px;
}

.evidence-list__row h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.16;
}

.evidence-list__row > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.evidence-list__arrow {
  font-size: 20px;
}

.warning-panel {
  display: grid;
  align-items: start;
  padding: 36px;
  border: 1px solid var(--red-dark);
  color: var(--red-dark);
  grid-template-columns: 70px 1fr;
  gap: 28px;
}

.warning-panel__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--red-dark);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
}

.warning-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
}

.warning-panel p:last-child {
  max-width: 760px;
  margin: 0;
}

.timeline {
  border-top: 1px solid var(--ink);
}

.timeline article {
  display: grid;
  min-height: 140px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 90px 0.6fr 1fr;
  gap: 30px;
}

.timeline article > span {
  font-family: var(--mono);
  font-size: 10px;
}

.timeline h2 {
  margin: 0;
  font-size: 30px;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
}

.budget-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
}

.budget-equation {
  display: grid;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 10px 12px 0 var(--paper-deep);
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
}

.budget-equation span {
  font-family: var(--display);
  font-size: 42px;
}

.budget-equation b {
  color: var(--red-dark);
  font-family: var(--mono);
}

.budget-equation div {
  padding: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.budget-notes {
  padding-top: 20px;
}

.budget-notes h2 {
  font-size: 32px;
}

.budget-notes li {
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.contact-board {
  border-top: 2px solid var(--ink);
}

.contact-board__row {
  display: grid;
  min-height: 124px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.contact-board__row span {
  font-size: 12px;
}

.contact-board__row strong {
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 30px;
}

.contact-board__row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.demo-form {
  display: grid;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line-dark);
  background: var(--paper-deep);
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.demo-form h2 {
  font-size: 38px;
}

.demo-form__fields {
  display: grid;
  gap: 10px;
}

.demo-form__fields span,
.demo-form__fields button {
  padding: 15px 18px;
  border: 1px solid var(--line-dark);
  color: var(--ink-soft);
  background: var(--paper-light);
  font-size: 12px;
}

.demo-form__fields button {
  color: var(--paper-light);
  background: var(--ink-soft);
  cursor: not-allowed;
}

/* Dafei */
.site--dafei {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(30, 32, 29, 0.025) 32px),
    var(--paper);
}

.dafei-hero {
  display: grid;
  min-height: 760px;
  align-items: center;
  padding-block: clamp(76px, 9vw, 120px);
  grid-template-columns: minmax(0, 1.14fr) minmax(370px, 0.86fr);
  gap: clamp(52px, 8vw, 120px);
}

.dafei-portrait-card {
  position: relative;
  width: min(100%, 430px);
  margin: 0 0 0 auto;
  padding: 14px 14px 20px;
  border: 1px solid var(--ink);
  background: #f8f3e6;
  box-shadow: 14px 16px 0 #d0c5b3;
  transform: rotate(0.8deg);
}

.dafei-portrait-card::before {
  position: absolute;
  z-index: 2;
  top: -18px;
  left: 50%;
  width: 74px;
  height: 34px;
  background: rgba(209, 170, 85, 0.68);
  content: "";
  transform: translateX(-50%) rotate(-3deg);
}

.dafei-portrait-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 6 / 7;
  background: #c9c2b5;
}

.dafei-portrait-card__image img,
.profile-portrait__image img {
  object-fit: cover;
  object-position: 50% 31%;
  filter: saturate(0.9) contrast(1.02);
}

.dafei-portrait-card__image::after,
.profile-portrait__image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(248, 243, 230, 0.4);
  box-shadow: inset 0 0 60px rgba(30, 32, 29, 0.12);
  content: "";
  pointer-events: none;
}

.dafei-portrait-card__stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(248, 243, 230, 0.72);
  color: var(--paper-light);
  background: rgba(30, 32, 29, 0.74);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.dafei-portrait-card figcaption {
  display: grid;
  margin-top: 16px;
  gap: 4px;
}

.dafei-portrait-card figcaption span {
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.dafei-portrait-card figcaption strong {
  font-family: var(--display);
  font-size: 22px;
}

.dafei-portrait-card figcaption small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.dafei-portrait-card__tape {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: 62px;
  padding: 9px 18px;
  color: var(--red-dark);
  background: rgba(209, 170, 85, 0.86);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-5deg);
}

.notebook-stack {
  position: relative;
  min-height: 510px;
}

.notebook {
  position: absolute;
  inset: 30px 16px 0 0;
  padding: 38px 34px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 43px, rgba(182, 75, 56, 0.2) 44px, transparent 45px),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(65, 108, 127, 0.19) 32px),
    #f8f3e6;
  box-shadow: 14px 16px 0 #d0c5b3;
  transform: rotate(1.2deg);
}

.notebook::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  border-left: 1px dashed rgba(30, 32, 29, 0.3);
  content: "";
}

.notebook header {
  display: flex;
  justify-content: space-between;
  margin-left: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.notebook header b {
  font-family: var(--display);
  font-size: 30px;
}

.notebook header span {
  align-self: end;
  font-family: var(--mono);
  font-size: 9px;
}

.notebook__line {
  display: grid;
  min-height: 92px;
  align-items: center;
  margin-left: 18px;
  grid-template-columns: 42px 1fr;
}

.notebook__line span {
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.notebook__line p {
  margin: 0;
  font-size: 13px;
}

.notebook footer {
  margin: 20px 0 0 18px;
  padding: 14px;
  border: 1px solid var(--red-dark);
  color: var(--red-dark);
  transform: rotate(-1deg);
}

.notebook footer span,
.notebook footer strong {
  display: block;
  font-size: 11px;
}

.notebook__clip {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  width: 28px;
  height: 76px;
  border: 4px solid var(--ink-soft);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  transform: rotate(5deg);
}

.notebook__tape {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: 54px;
  padding: 10px 24px;
  color: var(--red-dark);
  background: rgba(209, 170, 85, 0.72);
  font-family: var(--display);
  font-weight: 700;
  transform: rotate(-5deg);
}

.dafei-principles {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--red-dark);
  color: var(--paper-light);
}

.dafei-principles .section-shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.dafei-principles article {
  min-height: 180px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.dafei-principles article:first-child {
  padding-left: 0;
}

.dafei-principles article:last-child {
  border: 0;
}

.dafei-principles span {
  font-family: var(--mono);
  font-size: 10px;
}

.dafei-principles h2 {
  margin: 32px 0 8px;
  font-size: 28px;
}

.dafei-principles p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.method-gates {
  display: grid;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  grid-template-columns: repeat(3, 1fr);
}

.method-gates article {
  min-height: 300px;
  padding: 30px;
  border-right: 1px solid var(--line-dark);
}

.method-gates article:last-child {
  border: 0;
}

.method-gates span {
  display: inline-block;
  padding: 2px 6px;
  color: var(--paper-light);
  background: var(--red-dark);
  font-family: var(--mono);
  font-size: 9px;
}

.method-gates h3 {
  margin: 80px 0 12px;
  font-size: 38px;
}

.method-gates p {
  max-width: 240px;
  color: var(--ink-soft);
}

.notes-wall {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(182, 75, 56, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(65, 108, 127, 0.08) 1px, transparent 1px),
    #ddd6c7;
  background-size: 32px 32px;
}

.notes-list {
  display: grid;
  gap: 12px;
}

.note-ticket {
  display: grid;
  min-height: 120px;
  align-items: center;
  padding: 22px 28px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 5px 0 rgba(30, 32, 29, 0.13);
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  transition: transform 180ms ease;
}

.note-ticket:hover {
  transform: translateX(5px) rotate(-0.2deg);
}

.note-ticket__number {
  font-family: var(--mono);
  font-size: 10px;
}

.note-ticket p {
  margin: 0 0 5px;
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 700;
}

.note-ticket h3 {
  margin: 0;
  font-size: 25px;
}

.note-ticket__action {
  font-size: 12px;
  font-weight: 700;
}

.quote-panel {
  padding: clamp(36px, 6vw, 78px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.quote-panel p {
  max-width: 990px;
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.2;
}

.quote-panel span {
  color: var(--ink-soft);
  font-size: 11px;
}

.company-bridge {
  background: var(--blue);
}

/* Dafei inner pages */
.about-dafei .page-intro {
  padding-top: clamp(56px, 6vw, 84px);
  padding-bottom: clamp(40px, 4vw, 60px);
}

.about-dafei .page-intro h1 {
  max-width: 840px;
  font-size: clamp(48px, 5.4vw, 76px);
}

.about-dafei .profile-layout {
  padding-top: clamp(48px, 5vw, 72px);
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
}

.profile-portrait {
  margin: 0;
}

.profile-portrait__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink);
  background: #c9c2b5;
  box-shadow: 10px 12px 0 #d0c5b3;
}

.profile-portrait__image span {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 7px;
  color: var(--paper-light);
  background: rgba(30, 32, 29, 0.72);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.profile-portrait figcaption {
  display: grid;
  margin-top: 22px;
  gap: 6px;
}

.profile-portrait figcaption strong {
  font-family: var(--display);
  font-size: 24px;
}

.profile-portrait figcaption span,
.profile-portrait figcaption a,
.profile-portrait figcaption small {
  color: var(--ink-soft);
  font-size: 10px;
}

.profile-portrait figcaption a {
  width: fit-content;
  margin-top: 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.profile-portrait figcaption small {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-dark);
}

.profile-facts {
  border-top: 1px solid var(--ink);
}

.profile-facts > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.profile-facts span {
  color: var(--red-dark);
  font-size: 10px;
}

.profile-facts h2 {
  margin: 10px 0 4px;
  font-size: 30px;
}

.profile-facts p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.method-steps {
  border-top: 1px solid var(--ink);
}

.method-steps article {
  display: grid;
  min-height: 160px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 100px 1fr;
}

.method-steps article > span {
  font-family: var(--mono);
  font-size: 10px;
}

.method-steps h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.method-steps p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
}

.field-index {
  border-top: 1px solid var(--ink);
}

.field-index__item {
  display: grid;
  min-height: 200px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 120px 1fr 40px;
  gap: 30px;
}

.field-index__meta span,
.field-index__meta p {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
}

.field-index__meta p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.field-index__item h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 46px);
}

.field-index__item > div:nth-child(2) > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.field-index__arrow {
  font-size: 22px;
}

.field-note-detail__header {
  display: grid;
  padding-top: clamp(70px, 9vw, 120px);
  padding-bottom: 70px;
  grid-template-columns: 1fr 220px;
  gap: 70px;
}

.field-note-detail__header h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 1.02;
}

.field-note-detail__id {
  align-self: end;
  padding-left: 20px;
  border-left: 1px solid var(--line-dark);
}

.field-note-detail__id > span,
.field-note-detail__id > strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
}

.direct-answer {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--red-dark);
  color: var(--paper-light);
}

.direct-answer__inner {
  display: grid;
  padding-block: clamp(36px, 5vw, 60px);
  grid-template-columns: 180px 1fr;
  gap: 40px;
}

.direct-answer span {
  font-family: var(--mono);
  font-size: 10px;
}

.direct-answer p {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.45;
}

.field-note-grid {
  display: grid;
  padding-block: var(--section);
  grid-template-columns: 1fr 300px;
  gap: 90px;
}

.field-note-main > section {
  margin-bottom: 70px;
}

.field-note-main h2 {
  display: flex;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 34px;
  gap: 16px;
}

.field-note-main h2 span {
  font-family: var(--mono);
  font-size: 9px;
}

.field-note-main li {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.boundary-box {
  padding: 28px;
  border: 1px solid var(--red-dark);
  color: var(--red-dark);
  transform: rotate(-0.3deg);
}

.boundary-box h2 {
  border-color: var(--red-dark);
}

.boundary-box li {
  color: var(--red-dark);
}

.faq-stack details,
.faq-page details {
  border-bottom: 1px solid var(--line-dark);
}

.faq-stack summary,
.faq-page summary {
  padding: 20px 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.faq-stack p,
.faq-page details > p {
  max-width: 760px;
  padding-bottom: 20px;
  color: var(--ink-soft);
}

.field-note-sidebar {
  align-self: start;
}

.photo-proof {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #747a74;
  color: var(--paper-light);
}

.photo-proof__image {
  z-index: 0;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04);
}

.photo-proof__caption {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: right;
}

.source-card {
  display: grid;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line-dark);
  grid-template-columns: 80px 1fr;
  gap: 12px;
}

.source-card span {
  color: var(--ink-soft);
  font-size: 9px;
}

.source-card strong {
  font-size: 10px;
}

.faq-page {
  border-top: 1px solid var(--ink);
}

.faq-page summary {
  display: grid;
  min-height: 96px;
  align-items: center;
  font-size: clamp(22px, 3vw, 32px);
  grid-template-columns: 80px 1fr;
}

.faq-page summary span {
  font-family: var(--mono);
  font-size: 10px;
}

.faq-page details > p {
  margin-left: 80px;
  padding-bottom: 32px;
}

.account-table {
  border-top: 1px solid var(--ink);
}

.account-table article {
  display: grid;
  min-height: 160px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 90px 1fr 0.7fr 1fr;
  gap: 28px;
}

.account-platform {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 10px;
}

.account-table article > div p {
  margin-bottom: 4px;
  color: var(--red-dark);
  font-size: 9px;
}

.account-table h2 {
  margin: 0;
  font-size: 27px;
}

.account-table article > div span,
.account-table article > div strong {
  display: block;
  font-size: 10px;
}

.account-table article > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.relationship-map {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 260px 1fr;
  gap: 24px;
}

.relationship-node {
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
}

.relationship-node--person {
  box-shadow: 8px 9px 0 var(--red-dark);
}

.relationship-node--company {
  box-shadow: 8px 9px 0 var(--blue);
}

.relationship-node > span {
  font-family: var(--mono);
  font-size: 9px;
}

.relationship-node h2 {
  margin: 65px 0 12px;
  font-size: 32px;
}

.relationship-node p {
  color: var(--ink-soft);
  font-size: 12px;
}

.relationship-line {
  text-align: center;
}

.relationship-line::before,
.relationship-line::after {
  display: block;
  height: 1px;
  margin: 12px 0;
  background: var(--ink);
  content: "";
}

.relationship-line strong,
.relationship-line span {
  display: block;
}

.relationship-line strong {
  font-size: 11px;
}

.relationship-line span {
  color: var(--ink-soft);
  font-size: 9px;
}

/* Internal status and 404 */
.status-page {
  min-height: 100svh;
  padding: 0 var(--gutter);
  color: var(--paper-light);
  background: var(--ink);
}

.status-page__header {
  display: flex;
  width: min(100%, var(--max));
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 10px;
}

.status-page__intro {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 90px 0 70px;
}

.status-page .eyebrow {
  color: var(--yellow);
}

.status-page__intro h1 {
  max-width: 1000px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.02;
}

.status-page__intro > p:last-child {
  max-width: 720px;
  margin-left: 25%;
  color: rgba(255, 255, 255, 0.62);
}

.status-board {
  width: min(100%, var(--max));
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.status-board article {
  display: grid;
  min-height: 136px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
  grid-template-columns: 60px 70px 1fr auto;
  gap: 24px;
}

.status-board article > span {
  width: fit-content;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 9px;
}

.status-board .is-p0 {
  background: var(--red);
}

.status-board .is-p1 {
  color: var(--ink);
  background: var(--yellow);
}

.status-board article > strong {
  font-family: var(--mono);
  font-size: 10px;
}

.status-board h2 {
  margin: 0 0 6px;
  font-size: 27px;
}

.status-board p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.status-board em {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.status-page__footer {
  display: flex;
  width: min(100%, var(--max));
  justify-content: flex-end;
  margin-inline: auto;
  padding: 44px 0 70px;
  gap: 30px;
  font-size: 12px;
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-content: center;
  padding: 30px;
  text-align: center;
}

.not-found > span {
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.not-found h1 {
  margin: 24px 0 10px;
  font-size: clamp(48px, 8vw, 90px);
}

.not-found p {
  color: var(--ink-soft);
}

.not-found .button {
  justify-self: center;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

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

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    padding: 7px 10px;
    border: 1px solid var(--ink);
    font-size: 11px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: 43px;
    right: 0;
    display: grid;
    width: 220px;
    padding: 12px;
    border: 1px solid var(--ink);
    background: var(--paper-light);
    box-shadow: 8px 8px 0 rgba(30, 32, 29, 0.14);
  }

  .mobile-menu nav a {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .mobile-menu nav a:last-child {
    border: 0;
  }

  .company-hero,
  .dafei-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 50px;
  }

  .company-hero h1,
  .dafei-hero h1 {
    font-size: clamp(48px, 7vw, 76px);
  }

  .field-desk {
    min-height: 470px;
  }

  .notebook-stack {
    min-height: 470px;
  }

  .evidence-list__row {
    grid-template-columns: 60px 1fr 0.8fr 24px;
  }
}

@media (max-width: 860px) {
  :root {
    --section: 84px;
  }

  .gateway__choices,
  .company-hero,
  .dafei-hero,
  .page-intro,
  .section-heading,
  .cross-site-panel__inner,
  .company-bridge__inner,
  .dark-paper__grid,
  .page-grid,
  .budget-layout,
  .demo-form,
  .profile-layout,
  .field-note-detail__header,
  .field-note-grid {
    grid-template-columns: 1fr;
  }

  .gateway-card:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .gateway-card {
    min-height: 370px;
  }

  .gateway__intro > p:last-child,
  .status-page__intro > p:last-child {
    margin-left: 0;
  }

  .gateway-card__artifact {
    right: 28px;
  }

  .page-intro {
    gap: 35px;
  }

  .page-intro__aside {
    max-width: 430px;
    align-self: auto;
  }

  .company-hero,
  .dafei-hero {
    padding-bottom: 80px;
  }

  .company-hero__copy,
  .dafei-hero__copy {
    max-width: 700px;
  }

  .field-desk,
  .notebook-stack,
  .dafei-portrait-card {
    width: min(100%, 620px);
    min-height: 500px;
    margin-inline: auto;
  }

  .dafei-portrait-card {
    width: min(100%, 430px);
    min-height: 0;
  }

  .dafei-portrait-card__tape {
    right: 10px;
  }

  .about-dafei .profile-layout {
    padding-top: 52px;
  }

  .fact-strip__inner {
    grid-template-columns: 1fr 1fr;
  }

  .fact-strip__inner > div {
    border-bottom: 1px solid var(--line-dark);
  }

  .fact-strip__inner > div:first-child {
    padding-left: 20px;
  }

  .topic-row {
    grid-template-columns: 50px 1fr 140px;
  }

  .topic-row p {
    grid-column: 2 / -1;
    padding-bottom: 20px;
  }

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

  .evidence-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .evidence-card__visual {
    min-height: 260px;
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }

  .evidence-card__content h3 {
    min-height: auto;
  }

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

  .process-step:nth-child(3) {
    border-right: 0;
  }

  .process-step:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .cross-site-panel__inner,
  .company-bridge__inner {
    align-items: start;
  }

  .cross-site-panel__inner .button,
  .company-bridge__inner .button {
    justify-self: start;
  }

  .fact-table__row {
    grid-template-columns: 140px 1fr;
  }

  .fact-table__row em {
    grid-column: 2;
    justify-self: start;
    padding-bottom: 14px;
  }

  .margin-note {
    max-width: 500px;
  }

  .evidence-list__row {
    min-height: 220px;
    grid-template-columns: 50px 1fr 24px;
  }

  .evidence-list__row > p {
    grid-column: 2 / -1;
    padding-bottom: 22px;
  }

  .timeline article {
    grid-template-columns: 70px 0.7fr 1fr;
  }

  .budget-equation {
    min-height: 420px;
  }

  .method-gates {
    grid-template-columns: 1fr;
  }

  .method-gates article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .method-gates article:last-child {
    border-bottom: 0;
  }

  .method-gates h3 {
    margin-top: 48px;
  }

  .field-note-grid {
    gap: 10px;
  }

  .field-note-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .photo-proof {
    min-height: 280px;
  }

  .relationship-map {
    grid-template-columns: 1fr;
  }

  .relationship-line {
    max-width: 400px;
    margin-inline: auto;
  }

  .relationship-line::before,
  .relationship-line::after {
    width: 1px;
    height: 38px;
    margin-inline: auto;
  }

  .account-table article {
    grid-template-columns: 70px 1fr 1fr;
  }

  .account-table article > p {
    grid-column: 2 / -1;
    padding-bottom: 20px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
    --section: 66px;
  }

  body {
    background-size: 100% 28px;
  }

  .site-header__inner {
    min-height: 74px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-switch {
    display: none;
  }

  .brand-lockup small {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-mark {
    width: 36px;
    height: 36px;
  }

  .site-footer {
    padding: 60px var(--gutter) 20px;
  }

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

  .site-footer__top h2 {
    font-size: 38px;
  }

  .footer-actions {
    align-items: flex-start;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .gateway__header {
    min-height: 74px;
  }

  .gateway__project span {
    display: none;
  }

  .status-link {
    font-size: 0;
  }

  .status-link span {
    font-size: 9px;
  }

  .gateway__intro {
    padding: 62px 0 40px;
  }

  .gateway__intro h1 {
    font-size: clamp(45px, 14vw, 62px);
  }

  .gateway__intro > p:last-child {
    font-size: 15px;
  }

  .gateway-card {
    min-height: 420px;
    padding: 26px 22px;
  }

  .gateway-card__body {
    align-self: end;
    margin-bottom: 34px;
  }

  .gateway-card__body h2 {
    font-size: 54px;
  }

  .gateway-card__artifact {
    top: 55px;
    right: 20px;
    width: 164px;
  }

  .gateway__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .page-intro {
    padding-top: 58px;
    padding-bottom: 50px;
  }

  .page-intro h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .page-lead {
    font-size: 16px;
  }

  .section-heading {
    gap: 14px;
  }

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

  .company-hero,
  .dafei-hero {
    padding-top: 56px;
    gap: 46px;
  }

  .dafei-hero {
    padding-top: 44px;
    gap: 24px;
  }

  .dafei-hero__copy .microcopy {
    display: none;
  }

  .dafei-portrait-card__image img {
    object-position: 50% 50%;
    transform: scale(1.04);
  }

  .dafei-hero .hero-actions {
    margin-top: 28px;
  }

  .about-dafei .page-intro h1 {
    font-size: clamp(40px, 11vw, 48px);
  }

  .company-hero h1,
  .dafei-hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .dafei-hero h1 {
    font-size: clamp(42px, 12vw, 50px);
  }

  .company-hero__copy > p:not(.microcopy),
  .dafei-hero__copy > p:not(.eyebrow, .microcopy) {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .button--text {
    justify-content: flex-start;
  }

  .field-desk {
    min-height: 420px;
    padding: 30px;
    box-shadow: 9px 10px 0 rgba(30, 32, 29, 0.08);
  }

  .field-sheet--back {
    top: 56px;
    right: 12px;
    bottom: 42px;
    left: 56px;
  }

  .field-sheet--front {
    top: 46px;
    right: 28px;
    bottom: 58px;
    left: 28px;
    padding: 24px 20px;
  }

  .field-sheet__question strong {
    font-size: 24px;
  }

  .field-sheet__answer p {
    font-size: 11px;
  }

  .field-sheet__boundary {
    right: 18px;
    bottom: 20px;
    left: 18px;
  }

  .field-sheet__stamp {
    display: none;
  }

  .fact-strip__inner {
    grid-template-columns: 1fr;
  }

  .fact-strip__inner > div {
    min-height: 86px;
    padding: 18px 0;
    border-right: 0;
  }

  .fact-strip__inner > div:first-child {
    padding-left: 0;
  }

  .topic-row {
    min-height: 0;
    padding: 24px 0;
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .topic-row .status-stamp {
    grid-column: 2;
    justify-self: start;
  }

  .topic-row p {
    grid-column: 2;
  }

  .evidence-card {
    display: block;
  }

  .evidence-card__visual {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .process-line {
    grid-template-columns: 1fr;
  }

  .process-step {
    display: grid;
    min-height: 132px;
    align-items: center;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 52px 0.8fr 1fr;
    gap: 10px;
  }

  .process-step:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .process-step span {
    margin: 0;
  }

  .process-step h3,
  .process-step p {
    margin: 0;
  }

  .process-step h3 {
    font-size: 21px;
  }

  .cross-site-panel h2,
  .company-bridge h2 {
    font-size: 38px;
  }

  .fact-table__row {
    align-items: start;
    padding: 20px 0;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fact-table__row em {
    grid-column: 1;
  }

  .boundary-list > div {
    grid-template-columns: 44px 1fr;
  }

  .dark-paper__grid {
    gap: 36px;
  }

  .evidence-list__row {
    padding: 22px 0;
    grid-template-columns: 38px 1fr 20px;
    gap: 12px;
  }

  .evidence-list__row h2 {
    font-size: 27px;
  }

  .warning-panel {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .timeline article {
    align-items: start;
    padding: 22px 0;
    grid-template-columns: 40px 1fr;
    gap: 8px;
  }

  .timeline p {
    grid-column: 2;
  }

  .budget-equation {
    min-height: 0;
    padding: 24px;
    grid-template-columns: 1fr auto;
  }

  .budget-equation span {
    font-size: 34px;
  }

  .budget-equation div {
    grid-column: 1;
  }

  .contact-board__row {
    align-items: start;
    padding: 24px 0;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .demo-form {
    padding: 24px;
    gap: 28px;
  }

  .notebook-stack {
    min-height: 450px;
  }

  .notebook {
    inset: 24px 8px 0 0;
    padding: 26px 20px 26px 38px;
  }

  .notebook header {
    margin-left: 6px;
  }

  .notebook header b {
    font-size: 25px;
  }

  .notebook__line {
    min-height: 88px;
    margin-left: 6px;
    grid-template-columns: 34px 1fr;
  }

  .notebook__line p {
    font-size: 12px;
  }

  .notebook footer {
    margin-left: 6px;
  }

  .notebook__tape {
    right: -2px;
  }

  .dafei-principles .section-shell {
    grid-template-columns: 1fr;
  }

  .dafei-principles article {
    min-height: 130px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .dafei-principles h2 {
    margin-top: 18px;
  }

  .method-gates article {
    min-height: 200px;
    padding: 24px 0;
  }

  .note-ticket {
    min-height: 140px;
    padding: 18px;
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .note-ticket__action {
    grid-column: 2;
  }

  .quote-panel {
    padding-inline: 0;
  }

  .profile-layout {
    gap: 40px;
  }

  .method-steps article {
    min-height: 0;
    padding: 24px 0;
    grid-template-columns: 40px 1fr;
    gap: 8px;
  }

  .method-steps h2 {
    font-size: 27px;
  }

  .field-index__item {
    padding: 24px 0;
    grid-template-columns: 1fr 24px;
    gap: 14px;
  }

  .field-index__meta {
    grid-column: 1;
  }

  .field-index__item > div:nth-child(2) {
    grid-column: 1;
  }

  .field-index__arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .field-note-detail__header {
    padding-top: 58px;
    gap: 30px;
  }

  .field-note-detail__header h1 {
    font-size: 47px;
  }

  .field-note-detail__id {
    max-width: 300px;
  }

  .direct-answer__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .direct-answer p {
    font-size: 24px;
  }

  .field-note-main h2 {
    font-size: 28px;
  }

  .field-note-sidebar {
    grid-template-columns: 1fr;
  }

  .faq-page summary {
    grid-template-columns: 44px 1fr;
  }

  .faq-page details > p {
    margin-left: 44px;
  }

  .account-table article {
    align-items: start;
    padding: 24px 0;
    grid-template-columns: 58px 1fr;
    gap: 10px;
  }

  .account-table article > div:nth-child(3),
  .account-table article > p {
    grid-column: 2;
  }

  .relationship-node {
    min-height: 230px;
    padding: 26px;
  }

  .relationship-node h2 {
    margin-top: 48px;
  }

  .status-page__intro {
    padding: 64px 0 50px;
  }

  .status-page__intro h1 {
    font-size: 46px;
  }

  .status-board article {
    align-items: start;
    padding: 24px 0;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
  }

  .status-board article > strong {
    display: none;
  }

  .status-board article > div {
    grid-column: 2 / -1;
  }

  .status-board h2 {
    font-size: 24px;
  }

  .status-page__footer {
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
