:root {
  color-scheme: light;
  --paper: #f3f3f0;
  --white: #fbfbf8;
  --ink: #141412;
  --ink-soft: #292925;
  --muted: #74746e;
  --line: #d2d2cc;
  --red: #8f1d19;
  --blue: #4b4c47;
  --yellow: #dfded8;
  --green: #44685b;
  --shell: 1360px;
  --header-height: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "MiSans", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

body.nav-open {
  overflow: hidden;
}

button,
a,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

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

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

::selection {
  color: var(--white);
  background: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 80px), var(--shell));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.page-progress {
  position: fixed;
  z-index: 1001;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 32px;
  background: rgba(247, 247, 243, 0.93);
  border-bottom: 1px solid var(--ink);
  transition: background-color 180ms ease, height 180ms ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  width: max-content;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--red);
  font-size: 16px;
  font-weight: 820;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, transform 220ms var(--ease);
}

.brand:hover .brand-seal {
  color: var(--white);
  background: var(--ink);
  transform: rotate(-6deg);
}

.brand-word {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease;
}

.site-nav a::before {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::before,
.site-nav a.is-active::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 24px;
  min-width: 132px;
  height: 40px;
  padding: 0 13px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 720;
  transition: color 170ms ease, background-color 170ms ease;
}

.header-cta:hover {
  color: var(--ink);
  background: var(--white);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
}

.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform 180ms ease;
}

.nav-toggle span:first-child { transform: translate(-50%, -4px); }
.nav-toggle span:last-child { transform: translate(-50%, 4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translate(-50%, 0) rotate(-45deg); }

.hero {
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--paper);
}

.hero-frame {
  display: flex;
  flex-direction: column;
  min-height: min(790px, 88svh);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 640;
}

.hero-meta span:nth-child(2) { justify-self: center; }
.hero-meta span:last-child { justify-self: end; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(370px, 0.68fr);
  flex: 1;
  min-height: 0;
}

.hero-identity {
  display: grid;
  grid-template-columns: 1fr 1fr 58px;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  border-right: 1px solid var(--ink);
}

.hero-identity > span {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
}

.identity-shi,
.identity-yuan {
  font-family: "FZLanTingHeiS-DB-GB", "STHeiti", "Microsoft YaHei UI", sans-serif;
  font-size: 286px;
  font-weight: 900;
  line-height: 1;
  transition: transform 480ms var(--ease);
}

.identity-shi {
  color: var(--ink);
  background: var(--white);
  border-right: 1px solid var(--ink);
  transform: translate(var(--shi-x, 0), var(--shi-y, 0));
}

.identity-shi::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 44px;
  height: 8px;
  background: var(--red);
  content: "";
}

.identity-yuan {
  color: var(--white);
  background: var(--red);
  transform: translate(var(--yuan-x, 0), var(--yuan-y, 0));
}

.identity-yuan::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.8);
  content: "";
}

.identity-yuan small {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 600;
}

.identity-tech {
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink-soft);
  font-size: 25px;
  font-weight: 820;
  line-height: 1;
  writing-mode: vertical-rl;
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 48px 42px;
  background: var(--paper);
}

.hero-index,
.section-label {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.3;
}

.hero-statement {
  margin-bottom: 28px;
  font-size: 48px;
  font-weight: 760;
  line-height: 1.25;
}

.hero-intro {
  max-width: 430px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-height: 42px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 720;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-action:hover {
  color: var(--red);
  border-color: var(--red);
}

.text-action-muted {
  color: var(--muted);
  border-color: var(--line);
}

.hero-verbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 62px;
  border-top: 1px solid var(--ink);
}

.hero-verbs span {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 680;
}

.hero-verbs span:last-child { border-right: 0; }
.hero-verbs i { color: var(--muted); font-size: 9px; font-style: normal; }

.manifesto {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.manifesto::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 24%;
  height: 18px;
  background: var(--red);
  content: "";
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 300px;
  align-items: end;
  gap: 54px;
  min-height: 520px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-label-light {
  color: rgba(255, 255, 255, 0.55);
}

.manifesto h2 {
  margin-bottom: 0;
  font-size: 62px;
  font-weight: 720;
  line-height: 1.25;
}

.manifesto h2 em {
  color: var(--red);
  font-style: normal;
}

.manifesto-note {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.9;
}

.services {
  padding: 130px 0 0;
  background: var(--paper);
}

.section-heading,
.portal-heading {
  display: grid;
  grid-template-columns: 180px minmax(440px, 1fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 54px;
  margin-bottom: 76px;
}

.section-heading h2,
.portal-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: 54px;
  font-weight: 730;
  line-height: 1.22;
}

.section-heading > p:last-child,
.portal-heading > p:last-child {
  max-width: 430px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

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

.service-row {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  transition: color 240ms ease, background-color 240ms ease;
}

.service-inner {
  display: grid;
  grid-template-columns: 54px minmax(270px, 0.85fr) minmax(340px, 1fr) 150px;
  align-items: center;
  gap: 28px;
  min-height: 156px;
  transition: min-height 300ms var(--ease), padding 300ms var(--ease);
}

.service-number {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.service-title h3 {
  margin-bottom: 5px;
  font-size: 27px;
  font-weight: 720;
  line-height: 1.3;
}

.service-title span {
  color: var(--muted);
  font-size: 10px;
}

.service-inner > p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.service-character {
  justify-self: end;
  color: var(--ink);
  font-size: 102px;
  font-weight: 900;
  line-height: 1;
  transition: transform 280ms var(--ease);
}

.service-row-red .service-character { color: var(--red); }
.service-row-yellow .service-character { color: #77776f; }
.service-row-blue .service-character { color: var(--ink-soft); }

.service-row:hover .service-inner {
  min-height: 176px;
}

.service-row:hover .service-character {
  transform: translateX(-10px) rotate(-6deg);
}

.service-row-red:hover { color: var(--white); background: var(--red); }
.service-row-yellow:hover { background: #e5e4df; }
.service-row-blue:hover { color: var(--white); background: var(--ink-soft); }
.service-row-black:hover { color: var(--white); background: var(--ink); }

.service-row:hover .service-number,
.service-row:hover .service-title span,
.service-row:hover .service-inner > p,
.service-row:hover .service-character {
  color: currentColor;
}

.name-story {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.name-panel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
}

.name-panel-shi {
  color: var(--white);
  background: var(--ink);
}

.name-panel-yuan {
  color: var(--white);
  background: var(--red);
}

.name-panel-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(280px, 1.1fr);
  align-items: end;
  gap: 28px;
  width: min(calc(100% - 64px), 680px);
  min-height: 610px;
  margin-inline: auto;
  padding: 64px 0;
}

.name-character {
  align-self: center;
  font-size: 280px;
  font-weight: 900;
  line-height: 1;
}

.name-panel-shi .name-character {
  color: var(--white);
  text-shadow: 16px 16px 0 #5e1815;
}

.name-panel-yuan .name-character {
  color: var(--white);
  text-shadow: 16px 16px 0 rgba(20, 20, 18, 0.3);
}

.name-panel h3 {
  margin-bottom: 24px;
  font-size: 44px;
  font-weight: 760;
  line-height: 1.25;
}

.name-panel p:last-child {
  max-width: 330px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.9;
}

.name-panel-yuan p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.name-panel-yuan .section-label {
  color: rgba(255, 255, 255, 0.56);
}

.method {
  padding: 132px 0 140px;
  background: var(--white);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  list-style: none;
}

.method-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 26px 24px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.method-list li:first-child { padding-left: 0; }
.method-list li:last-child { padding-right: 0; border-right: 0; }

.method-number {
  margin-bottom: 92px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.method-list h3 {
  margin-bottom: 18px;
  font-size: 31px;
  font-weight: 740;
}

.method-list p {
  max-width: 260px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.method-verb {
  position: absolute;
  right: 14px;
  bottom: -14px;
  color: rgba(15, 16, 14, 0.05);
  font-size: 50px;
  font-weight: 900;
  white-space: nowrap;
  transition: color 220ms ease, transform 260ms var(--ease);
}

.method-list li:hover .method-verb {
  color: var(--red);
  transform: translateY(-12px);
}

.portals {
  padding: 128px 0 136px;
  color: var(--white);
  background: var(--ink-soft);
}

.portals .portal-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.portal-list {
  border-top: 1px solid rgba(255, 255, 255, 0.75);
}

.portal-row {
  display: grid;
  grid-template-columns: 54px minmax(260px, 1fr) minmax(220px, 0.8fr) 120px 24px;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 116px;
  padding: 18px 0;
  color: var(--white);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: color 190ms ease, background-color 190ms ease, padding 220ms var(--ease);
}

.portal-row:hover,
.portal-row:focus-visible {
  padding-right: 18px;
  padding-left: 18px;
  color: var(--ink);
  background: var(--white);
}

.portal-index,
.portal-domain,
.portal-status {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 650;
}

.portal-title {
  display: flex;
  flex-direction: column;
  font-size: 24px;
  font-weight: 740;
  line-height: 1.35;
}

.portal-title small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 560;
}

.portal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.portal-status i {
  display: block;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.portal-row.is-available .portal-status i { background: #31d084; }

.portal-row:hover .portal-index,
.portal-row:hover .portal-domain,
.portal-row:hover .portal-status,
.portal-row:hover .portal-title small,
.portal-row:focus-visible .portal-index,
.portal-row:focus-visible .portal-domain,
.portal-row:focus-visible .portal-status,
.portal-row:focus-visible .portal-title small {
  color: rgba(15, 16, 14, 0.62);
}

.portal-arrow {
  justify-self: end;
  font-size: 20px;
  transition: transform 190ms var(--ease);
}

.portal-row:hover .portal-arrow,
.portal-row:focus-visible .portal-arrow {
  transform: translate(4px, -4px);
}

.contact {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 270px;
  align-items: center;
  gap: 54px;
  min-height: 610px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.contact h2 {
  margin-bottom: 26px;
  font-size: 62px;
}

.contact-grid > div > p {
  max-width: 470px;
  margin-bottom: 32px;
  color: rgba(15, 16, 14, 0.66);
  font-size: 13px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.contact-button:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.contact-seal {
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  justify-self: end;
  color: var(--white);
  background: var(--red);
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(5deg);
}

.site-footer {
  padding: 66px 0 24px;
  color: var(--white);
  background: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: 40px;
  padding-bottom: 52px;
}

.footer-brand .brand-seal {
  color: var(--white);
  background: var(--red);
}

.footer-main > p {
  max-width: 280px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.footer-main nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 28px;
}

.footer-main nav a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.footer-main nav a:hover { color: var(--white); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10px;
}

.footer-bottom span:nth-child(2) { justify-self: center; }
.footer-bottom span:last-child { justify-self: end; }

.site-toast {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 44px));
  padding: 13px 16px;
  color: var(--white);
  background: var(--ink);
  border-left: 5px solid var(--red);
  box-shadow: 0 16px 48px rgba(15, 16, 14, 0.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 220ms var(--ease);
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  z-index: 1200;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 12px;
  color: var(--white);
  text-align: center;
  background: var(--ink);
  font-size: 12px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .delay-1 { transition-delay: 70ms; }
.js .delay-2 { transition-delay: 140ms; }
.js .delay-3 { transition-delay: 210ms; }

.legal-page {
  min-height: 100svh;
  background: var(--white);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  padding: 0 30px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.legal-back {
  color: var(--muted);
  font-size: 12px;
}

.legal-back:hover { color: var(--red); }

.legal-main {
  width: min(calc(100% - 48px), 860px);
  margin-inline: auto;
  padding: 108px 0 132px;
}

.legal-main .section-label,
.legal-main .section-number { margin-bottom: 24px; }

.legal-main h1 {
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1.15;
}

.legal-updated {
  margin-bottom: 76px;
  color: var(--muted);
  font-size: 12px;
}

.legal-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 13px;
  font-size: 20px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.legal-section ul { padding-left: 20px; }

.error-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  color: var(--white);
  background: var(--red);
}

.error-content {
  max-width: 640px;
  text-align: center;
}

.error-code {
  display: block;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 112px;
  font-weight: 900;
  line-height: 1;
}

.error-content h1 {
  margin-bottom: 14px;
  font-size: 38px;
}

.error-content p {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
}

.button,
.button-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 146px;
  min-height: 46px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 720;
}

@media (max-width: 1120px) {
  .shell { width: min(calc(100% - 56px), var(--shell)); }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); }
  .identity-shi,
  .identity-yuan { font-size: 220px; }
  .hero-statement { font-size: 42px; }

  .manifesto-grid,
  .section-heading,
  .portal-heading,
  .contact-grid {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 40px;
  }

  .manifesto-note,
  .section-heading > p:last-child,
  .portal-heading > p:last-child {
    grid-column: 2;
    max-width: 560px;
  }

  .manifesto h2 { font-size: 52px; }
  .section-heading h2,
  .portal-heading h2,
  .contact h2 { font-size: 48px; }

  .service-inner { grid-template-columns: 44px minmax(230px, 0.8fr) minmax(300px, 1fr) 100px; }
  .service-character { font-size: 78px; }

  .name-panel-inner {
    grid-template-columns: 180px minmax(240px, 1fr);
    width: calc(100% - 44px);
  }

  .name-character { font-size: 210px; }
  .contact-seal { position: absolute; right: 0; width: 220px; height: 220px; }
  .contact-grid > div { grid-column: 2; padding-right: 200px; }
}

@media (max-width: 840px) {
  .shell { width: min(calc(100% - 36px), var(--shell)); }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 62px;
    padding: 0 12px 0 16px;
  }

  .site-header.is-scrolled { height: 58px; }
  .site-header.is-nav-open { height: 100svh; background: var(--paper); }
  .site-header .brand,
  .site-header .nav-toggle { position: relative; z-index: 3; align-self: start; margin-top: 9px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; justify-self: end; }

  .site-nav {
    position: absolute;
    top: 62px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding: 36px 28px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 200ms ease, transform 240ms var(--ease);
  }

  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }

  .site-nav a {
    justify-content: space-between;
    height: auto;
    padding: 18px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    font-size: 24px;
  }

  .site-nav a::before { display: none; }
  .site-nav a::after { content: "↗"; font-size: 18px; }

  .hero { padding-top: 62px; }
  .hero-frame { min-height: 0; border: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-identity { grid-template-columns: 1fr 1fr 46px; min-height: 300px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .identity-shi,
  .identity-yuan { font-size: 150px; }
  .identity-tech { font-size: 20px; }
  .hero-copy { min-height: 370px; padding: 44px 28px; }
  .hero-statement { font-size: 40px; }
  .hero-verbs { min-height: 56px; }
  .hero-verbs span { gap: 10px; padding: 0 10px; font-size: 10px; }

  .manifesto-grid,
  .section-heading,
  .portal-heading,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .manifesto-grid { min-height: 470px; padding-top: 78px; padding-bottom: 84px; }
  .manifesto-note,
  .section-heading > p:last-child,
  .portal-heading > p:last-child { grid-column: auto; }
  .manifesto h2 { font-size: 44px; }

  .services { padding-top: 92px; }
  .section-heading,
  .portal-heading { margin-bottom: 50px; }
  .section-heading h2,
  .portal-heading h2,
  .contact h2 { font-size: 42px; }

  .service-inner { grid-template-columns: 40px minmax(0, 1fr) 76px; gap: 16px; min-height: 130px; }
  .service-inner > p { display: none; }
  .service-title h3 { font-size: 21px; }
  .service-character { font-size: 62px; }
  .service-row:hover .service-inner { min-height: 140px; }

  .name-story { grid-template-columns: 1fr; }
  .name-panel,
  .name-panel-inner { min-height: 480px; }
  .name-panel-inner { grid-template-columns: 190px minmax(0, 1fr); width: min(calc(100% - 36px), 700px); }
  .name-character { font-size: 220px; }

  .method { padding: 94px 0 102px; }
  .method-list { grid-template-columns: repeat(2, 1fr); }
  .method-list li { min-height: 300px; border-bottom: 1px solid var(--line); }
  .method-list li:nth-child(2n) { border-right: 0; }
  .method-list li:nth-last-child(-n+2) { border-bottom: 0; }
  .method-list li:first-child,
  .method-list li:last-child { padding: 24px; }
  .method-number { margin-bottom: 58px; }

  .portals { padding: 94px 0 102px; }
  .portal-row { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 14px; min-height: 100px; }
  .portal-domain,
  .portal-status { display: none; }
  .portal-title { font-size: 20px; }
  .portal-row:hover,
  .portal-row:focus-visible { padding-right: 10px; padding-left: 10px; }

  .contact-grid { min-height: 570px; padding-top: 78px; padding-bottom: 84px; }
  .contact-grid > div { grid-column: auto; padding-right: 170px; }
  .contact-seal { right: -30px; bottom: 46px; width: 170px; height: 170px; font-size: 105px; }

  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-main nav { justify-content: start; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom span:nth-child(2),
  .footer-bottom span:last-child { justify-self: start; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .brand-word { font-size: 15px; }

  .hero-meta { grid-template-columns: 1fr auto; padding: 0 8px; }
  .hero-meta span:nth-child(2) { display: none; }
  .hero-meta span:last-child { justify-self: end; }
  .hero-identity { grid-template-columns: 1fr 1fr 38px; min-height: 232px; }
  .identity-shi,
  .identity-yuan { font-size: 112px; }
  .identity-shi::after { right: 8px; bottom: 8px; width: 25px; height: 5px; }
  .identity-yuan::before { top: 8px; left: 8px; width: 10px; height: 10px; }
  .identity-yuan small { right: 7px; bottom: 7px; font-size: 7px; }
  .identity-tech { font-size: 16px; }
  .hero-copy { min-height: 340px; padding: 36px 10px; }
  .hero-index { margin-bottom: 14px; }
  .hero-statement { margin-bottom: 18px; font-size: 34px; }
  .hero-intro { margin-bottom: 22px; font-size: 12px; line-height: 1.8; }
  .hero-actions { gap: 8px 18px; }
  .text-action { gap: 16px; font-size: 11px; }
  .hero-verbs { grid-template-columns: repeat(2, 1fr); }
  .hero-verbs span { min-height: 48px; border-bottom: 1px solid var(--line); }

  .manifesto-grid { min-height: 430px; padding-top: 64px; padding-bottom: 68px; }
  .manifesto h2 { font-size: 34px; }
  .manifesto-note { font-size: 12px; }

  .services { padding-top: 72px; }
  .section-heading,
  .portal-heading { margin-bottom: 38px; }
  .section-heading h2,
  .portal-heading h2,
  .contact h2 { font-size: 34px; }

  .service-inner { grid-template-columns: 28px minmax(0, 1fr) 48px; gap: 10px; min-height: 112px; }
  .service-title h3 { font-size: 18px; }
  .service-title span { font-size: 8px; }
  .service-character { font-size: 46px; }

  .name-panel,
  .name-panel-inner { min-height: 410px; }
  .name-panel-inner { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; width: calc(100% - 28px); padding: 44px 0; }
  .name-character { font-size: 138px; }
  .name-panel-shi .name-character,
  .name-panel-yuan .name-character { text-shadow: 9px 9px 0 #5e1815; }
  .name-panel-yuan .name-character { text-shadow: 9px 9px 0 rgba(20, 20, 18, 0.3); }
  .name-panel h3 { margin-bottom: 16px; font-size: 30px; }
  .name-panel p:last-child { font-size: 11px; }

  .method { padding: 76px 0 82px; }
  .method-list { grid-template-columns: 1fr; }
  .method-list li,
  .method-list li:first-child,
  .method-list li:last-child {
    min-height: 220px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .method-list li:last-child { border-bottom: 0; }
  .method-number { margin-bottom: 32px; }
  .method-list h3 { margin-bottom: 12px; font-size: 25px; }
  .method-verb { font-size: 40px; }

  .portals { padding: 76px 0 82px; }
  .portal-row { grid-template-columns: 28px minmax(0, 1fr) 18px; min-height: 90px; }
  .portal-title { font-size: 17px; }

  .contact-grid { min-height: 520px; padding-top: 64px; padding-bottom: 70px; }
  .contact-grid > div { padding-right: 70px; }
  .contact h2 { font-size: 34px; }
  .contact-grid > div > p { font-size: 11px; }
  .contact-seal { right: -56px; bottom: 28px; width: 130px; height: 130px; font-size: 78px; }

  .footer-main nav { grid-template-columns: 1fr 1fr; }
  .legal-header { padding: 0 16px; }
  .legal-main { width: min(calc(100% - 28px), 860px); padding-top: 76px; }
  .legal-main h1 { font-size: 40px; }
  .error-code { font-size: 82px; }
  .error-content h1 { font-size: 30px; }
}

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

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