:root {
  --paper: #f4f1e8;
  --paper-deep: #e9e4d8;
  --ink: #131514;
  --muted: #64665f;
  --acid: #c7f36b;
  --orange: #ff6739;
  --blue: #4f75ff;
  --line: rgba(19, 21, 20, 0.17);
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(19, 21, 20, 0.025) 50%, transparent 50.08%),
    var(--paper);
  background-size: 80px 80px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

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

svg {
  display: block;
}

.section-shell,
.site-header {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  color: var(--acid);
  background: var(--ink);
  place-items: center;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0;
  transform: rotate(-3deg);
}

.brand-name {
  font-size: 20px;
}

.brand-domain {
  align-self: flex-end;
  margin: 0 0 4px 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 34px;
}

.nav a {
  position: relative;
  color: #343733;
  font-size: 13px;
  font-weight: 600;
}

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

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

.header-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.header-link svg {
  width: 17px;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(30px, 6vw, 92px);
  min-height: 710px;
  padding: 106px 0 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-index {
  margin: 0 0 27px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 103, 57, 0.13);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(56px, 6.4vw, 92px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 1.04;
}

.scribble {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.scribble::after {
  position: absolute;
  right: -4px;
  bottom: 0.06em;
  left: 3px;
  z-index: -1;
  height: 0.24em;
  content: "";
  background: var(--acid);
  clip-path: polygon(0 34%, 100% 0, 98% 81%, 2% 100%);
}

.hero-intro {
  max-width: 570px;
  margin: 36px 0 0;
  color: #4f514c;
  font-size: 17px;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  min-width: 190px;
  min-height: 56px;
  padding: 0 10px 0 22px;
  color: white;
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--acid);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-primary:hover {
  box-shadow: 3px 3px 0 var(--acid);
  transform: translate(4px, 4px);
}

.button-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: auto;
  color: var(--ink);
  background: var(--acid);
  place-items: center;
  font-family: var(--mono);
  font-size: 17px;
}

.button-text {
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
}

.hero-art {
  position: relative;
  align-self: center;
  min-height: 455px;
}

.art-card {
  position: absolute;
  top: 45px;
  right: 32px;
  z-index: 2;
  width: min(100%, 470px);
  color: #f7f5ed;
  background: #151817;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 24px 28px 0 var(--blue);
  transform: rotate(2deg);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 50px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.terminal-top > span {
  width: 7px;
  height: 7px;
  background: #636864;
  border-radius: 50%;
}

.terminal-top > span:first-child {
  background: var(--orange);
}

.terminal-top em {
  margin-left: auto;
  color: #777c77;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.terminal-body {
  padding: 29px 26px 25px;
}

.terminal-body > p {
  display: grid;
  grid-template-columns: 25px 64px 1fr;
  align-items: center;
  min-height: 60px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.terminal-body > p i,
.terminal-body > p span,
.terminal-command small,
.terminal-command strong {
  font-family: var(--mono);
  font-style: normal;
}

.terminal-body > p i {
  color: #60655f;
  font-size: 10px;
}

.terminal-body > p span {
  color: var(--acid);
  font-size: 11px;
}

.terminal-body > p b {
  font-weight: 500;
}

.terminal-command {
  display: flex;
  align-items: center;
  margin-top: 32px;
  padding: 18px;
  background: #0b0d0c;
}

.terminal-command small {
  margin-right: 15px;
  color: var(--blue);
  font-size: 10px;
}

.terminal-command strong {
  color: #e8e9e4;
  font-size: 12px;
  font-weight: 400;
}

.cursor {
  width: 7px;
  height: 15px;
  margin-left: 7px;
  background: var(--acid);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(19, 21, 20, 0.18);
  border-radius: 50%;
}

.orbit-one {
  top: -5px;
  right: -20px;
  width: 380px;
  height: 380px;
}

.orbit-two {
  right: 160px;
  bottom: -20px;
  width: 205px;
  height: 205px;
}

.float-label {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 83px;
  height: 83px;
  border: 1px solid var(--ink);
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.label-open {
  top: 9px;
  right: -9px;
  background: var(--acid);
  transform: rotate(7deg);
}

.label-year {
  right: 25px;
  bottom: 3px;
  color: white;
  background: var(--orange);
  transform: rotate(-8deg);
}

.hero-arrow {
  position: absolute;
  bottom: -2px;
  left: -22px;
  width: 105px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.hero-foot {
  display: flex;
  grid-column: 1 / -1;
  align-self: end;
  justify-content: space-between;
  margin-top: 62px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #73756f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.projects {
  padding: 132px 0 60px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-index {
  color: var(--orange);
}

.section-heading h2,
.about h2,
.wechat h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.section-heading > p {
  justify-self: end;
  max-width: 475px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.project-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 580px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--ink);
}

.project-info {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 5vw, 62px);
  background: #f8f5ed;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-number {
  color: #898a83;
  font-family: var(--mono);
  font-size: 10px;
}

.project-logo {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.tunlite-logo span {
  color: #13ad8b;
}

.tunlite-logo i {
  width: 6px;
  height: 15px;
  margin-left: 3px;
  background: #13ad8b;
  animation: blink 1.1s step-end infinite;
}

.handmux-logo svg {
  width: 31px;
  margin-right: 7px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.handmux-logo span {
  color: var(--orange);
}

.project-kicker {
  margin: 60px 0 13px;
  color: #858780;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.project-info h3 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(29px, 3.1vw, 43px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.24;
}

.project-description {
  max-width: 470px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 410px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 10px 18px 10px 0;
  border-right: 1px solid var(--line);
}

.metric + .metric {
  padding-left: 18px;
  border-right: 0;
}

.metric svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.metric > b {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.08em;
}

.metric span {
  display: flex;
  flex-direction: column;
}

.metric strong {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.1;
}

.metric small {
  margin-top: 5px;
  color: #898b84;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.project-actions {
  display: flex;
  gap: 23px;
  margin-top: auto;
  padding-top: 42px;
}

.project-actions a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 150ms ease;
}

.project-actions a:hover {
  border-color: var(--ink);
}

.project-actions span {
  font-family: var(--mono);
}

.project-visual {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}

.tunnel-visual {
  color: #e7eee9;
  background: #101413;
}

.tunnel-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(199, 243, 107, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 243, 107, 0.1) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.tunnel-node {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 145px;
  height: 108px;
  padding: 20px;
  background: #181d1b;
  border: 1px solid rgba(199, 243, 107, 0.38);
  box-shadow: 0 0 40px rgba(49, 229, 190, 0.07);
  transform: translateY(-50%);
}

.node-local {
  left: 8%;
}

.node-remote {
  right: 8%;
}

.node-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(199, 243, 107, 0.08);
}

.tunnel-node small,
.tunnel-node strong,
.tunnel-status,
.tunnel-command,
.tunnel-line em {
  font-family: var(--mono);
}

.tunnel-node small {
  margin-bottom: 9px;
  color: #6f7972;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.tunnel-node strong {
  font-size: 10px;
  font-weight: 400;
}

.tunnel-line {
  position: absolute;
  top: 42%;
  right: calc(8% + 145px);
  left: calc(8% + 145px);
  height: 1px;
  background: rgba(199, 243, 107, 0.45);
}

.tunnel-line::before,
.tunnel-line::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--acid);
  border-radius: 50%;
}

.tunnel-line::before { left: -3px; }
.tunnel-line::after { right: -3px; }

.tunnel-line em {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  color: #788279;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-align: center;
}

.signal {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--acid);
  animation: transmit 2.4s linear infinite;
}

.signal-two { animation-delay: -0.8s; }
.signal-three { animation-delay: -1.6s; }

@keyframes transmit {
  from { left: 0; opacity: 0; }
  10%, 90% { opacity: 1; }
  to { left: calc(100% - 7px); opacity: 0; }
}

.tunnel-status {
  position: absolute;
  top: 52px;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #788279;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.tunnel-status span {
  width: 6px;
  height: 6px;
  background: var(--acid);
  border-radius: 50%;
}

.tunnel-command {
  position: absolute;
  right: 8%;
  bottom: 60px;
  left: 8%;
  padding: 20px 23px;
  color: #9da29e;
  background: #0a0d0c;
  border-left: 2px solid var(--acid);
  font-size: 11px;
}

.tunnel-command b {
  margin-right: 13px;
  color: var(--acid);
}

.handmux-visual {
  background: var(--orange);
}

.handmux-rays {
  position: absolute;
  inset: -50%;
  opacity: 0.18;
  background: repeating-conic-gradient(from -10deg at 50% 50%, transparent 0 8deg, #151817 8deg 11deg);
  animation: rotate 80s linear infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }

.phone {
  position: absolute;
  top: 54%;
  left: 48%;
  z-index: 2;
  width: 248px;
  height: 490px;
  padding: 10px;
  background: #0e100f;
  border: 2px solid #090a09;
  border-radius: 42px;
  box-shadow: 18px 22px 0 rgba(19, 21, 20, 0.2);
  transform: translate(-50%, -50%) rotate(-5deg);
}

.phone-speaker {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 3;
  width: 66px;
  height: 19px;
  background: #0e100f;
  border-radius: 20px;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  color: #eaece7;
  background: #181b1a;
  border: 1px solid #363a37;
  border-radius: 33px;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding: 21px 18px 0;
  border-bottom: 1px solid #303330;
  font-family: var(--mono);
  font-size: 11px;
}

.phone-bar i {
  width: 6px;
  height: 6px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--acid);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 16px;
}

.phone-status small {
  color: #818681;
  font-family: var(--mono);
  font-size: 7px;
}

.phone-status span {
  padding: 5px 7px;
  color: #171917;
  background: var(--acid);
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 500;
}

.phone-message {
  margin: 5px 14px 0;
  padding: 19px 15px;
  background: #222624;
  border: 1px solid #393e3a;
}

.phone-message em {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.phone-message p {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.phone-message code {
  display: block;
  margin-top: 8px;
  color: #cfd2cd;
  font-family: var(--mono);
  font-size: 9px;
}

.phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 11px 14px;
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.phone-actions span,
.phone-actions strong {
  padding: 12px;
  border: 1px solid #3d413e;
}

.phone-actions strong {
  color: #171917;
  background: var(--acid);
  border-color: var(--acid);
}

.phone-dock {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  padding: 20px 24px 27px;
  border-top: 1px solid #303330;
}

.phone-dock i {
  width: 16px;
  height: 3px;
  background: #525752;
}

.phone-dock i:first-child { background: var(--acid); }

.thumb-note {
  position: absolute;
  top: 85px;
  right: 42px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  transform: rotate(6deg);
}

.thumb-note b {
  color: white;
  font-size: 16px;
}

.phone-arrow {
  position: absolute;
  top: 125px;
  right: 80px;
  width: 90px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 2;
}

.about {
  padding: 112px 0 42px;
}

.about-panel {
  padding: clamp(34px, 6vw, 78px);
  color: #f3f0e8;
  background: var(--ink);
}

.about-panel .section-index {
  color: var(--acid);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 70px;
}

.about h2 span {
  color: var(--acid);
}

.about-copy {
  align-self: end;
}

.about-copy p {
  margin: 0 0 18px;
  color: #aeb1aa;
  font-size: 14px;
  line-height: 1.95;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 76px;
  border-top: 1px solid #363936;
  border-bottom: 1px solid #363936;
}

.principles div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 83px;
  padding: 0 28px;
  border-right: 1px solid #363936;
}

.principles div:first-child { padding-left: 0; }
.principles div:last-child { border-right: 0; }

.principles b {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
}

.principles span {
  font-size: 13px;
  font-weight: 600;
}

.wechat {
  padding: 70px 0 112px;
}

.wechat-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 315px;
  gap: 100px;
  align-items: center;
  min-height: 440px;
  padding: clamp(36px, 6vw, 80px);
  overflow: hidden;
  background: var(--acid);
  border: 1px solid var(--ink);
}

.wechat-card::before {
  position: absolute;
  top: -210px;
  left: 35%;
  width: 500px;
  height: 500px;
  content: "";
  border: 1px solid rgba(19, 21, 20, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(19, 21, 20, 0.025), 0 0 0 120px rgba(19, 21, 20, 0.025);
}

.wechat-copy {
  position: relative;
  z-index: 1;
}

.wechat-copy .section-index {
  color: var(--ink);
}

.wechat-copy > p:last-child {
  max-width: 490px;
  margin: 28px 0 0;
  color: #4c5241;
  font-size: 14px;
  line-height: 1.85;
}

.qr-placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
  color: #777a72;
  background: #f8f5ed;
  box-shadow: 14px 14px 0 var(--ink);
}

.qr-image {
  display: block;
  width: 174px;
  height: 174px;
  margin-bottom: 12px;
  object-fit: cover;
}

.qr-placeholder strong {
  color: #565953;
  font-size: 13px;
}

.qr-placeholder > span {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.qr-corners i {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #b5b7b0;
  border-style: solid;
}

.qr-corners i:nth-child(1) { top: 20px; left: 20px; border-width: 1px 0 0 1px; }
.qr-corners i:nth-child(2) { top: 20px; right: 20px; border-width: 1px 1px 0 0; }
.qr-corners i:nth-child(3) { right: 20px; bottom: 20px; border-width: 0 1px 1px 0; }
.qr-corners i:nth-child(4) { bottom: 20px; left: 20px; border-width: 0 0 1px 1px; }

.wechat-stamp {
  position: absolute;
  right: 350px;
  bottom: 31px;
  display: grid;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(19, 21, 20, 0.5);
  border-radius: 50%;
  place-items: center;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transform: rotate(8deg);
}

.site-footer {
  padding: 50px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 54px;
}

.footer-brand .brand-name {
  font-size: 24px;
}

.footer-main p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.footer-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #868880;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-meta > :last-child {
  justify-self: end;
}

.icp-link {
  justify-self: center;
  color: #666961;
}

.not-found-page {
  min-height: 100vh;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 150px);
  padding: 9vh 0 80px;
  place-items: center;
  text-align: center;
}

.not-found-inner {
  width: min(100%, 760px);
}

.not-found-code {
  display: block;
  color: var(--orange);
  font-family: var(--mono);
  font-size: clamp(90px, 20vw, 220px);
  font-weight: 500;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.not-found h1 {
  margin: 48px 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  letter-spacing: -0.06em;
}

.not-found p {
  margin: 0 auto 36px;
  color: var(--muted);
  line-height: 1.8;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 75px; }
  .hero-copy { max-width: 760px; }
  .hero-art { width: min(100%, 650px); margin: 15px auto 0; }
  .art-card { right: 60px; left: 45px; width: auto; }
  .project-card { grid-template-columns: 1fr; }
  .project-info { min-height: 520px; }
  .project-visual { min-height: 540px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-copy { max-width: 620px; }
  .wechat-card { gap: 50px; grid-template-columns: 1fr 260px; }
  .qr-placeholder { width: 240px; height: 240px; }
  .wechat-stamp { display: none; }
}

@media (max-width: 700px) {
  .section-shell,
  .site-header { width: min(calc(100% - 36px), var(--max)); }
  .site-header { min-height: 72px; }
  .header-link { font-size: 0; }
  .header-link svg { width: 20px; }
  .header-link span { font-size: 14px; }
  .hero { min-height: auto; padding: 68px 0 35px; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .hero-art { min-height: 410px; margin-top: 25px; }
  .art-card { top: 44px; right: 18px; left: 7px; box-shadow: 13px 16px 0 var(--blue); }
  .terminal-body { padding: 20px 16px; }
  .terminal-body > p { grid-template-columns: 21px 52px 1fr; font-size: 12px; }
  .label-open { right: -3px; width: 68px; height: 68px; }
  .label-year { display: none; }
  .hero-arrow { display: none; }
  .hero-foot { flex-wrap: wrap; gap: 13px 28px; margin-top: 34px; }
  .projects { padding-top: 90px; }
  .section-heading { grid-template-columns: 1fr; gap: 23px; }
  .section-heading > p { justify-self: start; }
  .project-card { margin-top: 18px; }
  .project-info { min-height: 520px; }
  .project-kicker { margin-top: 42px; }
  .project-actions { flex-wrap: wrap; }
  .project-visual { min-height: 440px; }
  .tunnel-node { width: 118px; height: 92px; padding: 14px; }
  .node-local { left: 4%; }
  .node-remote { right: 4%; }
  .tunnel-line { right: calc(4% + 118px); left: calc(4% + 118px); }
  .tunnel-status { top: 38px; left: 5%; }
  .tunnel-command { right: 5%; bottom: 35px; left: 5%; }
  .phone { left: 48%; width: 210px; height: 415px; border-radius: 35px; }
  .phone-screen { border-radius: 27px; }
  .phone-bar { height: 58px; }
  .thumb-note { top: 50px; right: 16px; }
  .phone-arrow { top: 92px; right: 48px; width: 75px; }
  .about { padding-top: 80px; }
  .about h2 { font-size: 39px; }
  .principles { grid-template-columns: 1fr; }
  .principles div,
  .principles div:first-child { min-height: 65px; padding: 0; border-right: 0; border-bottom: 1px solid #363936; }
  .principles div:last-child { border-bottom: 0; }
  .wechat { padding: 45px 0 80px; }
  .wechat-card { grid-template-columns: 1fr; gap: 45px; }
  .wechat h2 { font-size: 42px; }
  .qr-placeholder { justify-self: center; }
  .footer-main { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; }
  .footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px 25px; }
  .icp-link { order: 3; width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
