/* 刀盾狗 · 土豆 — static site */

:root {
  --black: #0a0908;
  --black-soft: #14110e;
  --ink: #1a1612;
  --paper: #f3ecdf;
  --paper-dim: #d9d0c0;
  --bnb: #f0b90b;
  --bnb-hot: #ffd54a;
  --potato: #c47a2c;
  --potato-warm: #e09a45;
  --lacquer: #c41e1e;
  --lacquer-deep: #8e1212;
  --jade: #2f6b5a;
  --jade-soft: #3d8a74;
  --text: #f3ecdf;
  --text-mute: #b8ae9c;
  --line: rgba(243, 236, 223, 0.14);
  --max: 1180px;
  --pad: clamp(1rem, 3.5vw, 2rem);
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(240, 185, 11, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(196, 30, 30, 0.1), transparent 50%),
    linear-gradient(180deg, var(--black) 0%, var(--ink) 40%, var(--black-soft) 100%);
  background-color: var(--black);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--bnb);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bnb-hot);
}

:focus-visible {
  outline: 2px solid var(--bnb);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--bnb);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.section-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  letter-spacing: 0.16em;
  color: var(--bnb);
}

.section-title {
  margin: 0;
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: clamp(1.65rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-block: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  min-width: 0;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.35rem;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--bnb-hot);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.95rem;
  border: 2px solid transparent;
  border-radius: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.btn:active {
  transform: translateY(2px) scale(0.98);
}

.btn-buy {
  background: var(--bnb);
  color: var(--black);
  border-color: var(--bnb-hot);
  box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.25);
}

.btn-buy:hover {
  background: var(--bnb-hot);
  color: var(--black);
}

.btn-chart {
  background: transparent;
  color: var(--paper);
  border-color: var(--bnb);
}

.btn-chart:hover {
  background: rgba(240, 185, 11, 0.12);
  color: var(--bnb-hot);
}

.btn-x {
  background: var(--lacquer);
  color: var(--paper);
  border-color: var(--lacquer-deep);
}

.btn-x:hover {
  background: #e02828;
  color: #fff;
}

.btn-lg {
  min-height: 3rem;
  padding-inline: 1.25rem;
  font-size: 1.2rem;
}

.btn-copy {
  flex-shrink: 0;
  background: var(--jade);
  color: var(--paper);
  border-color: var(--jade-soft);
  font-size: 0.95rem;
}

.btn-copy:hover {
  background: var(--jade-soft);
  color: #fff;
}

.btn-copy.is-copied {
  background: var(--bnb);
  color: var(--black);
  border-color: var(--bnb-hot);
  animation: copy-pulse 0.45s var(--ease-out);
}

@keyframes copy-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero-grid {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-label {
  margin: 0 0 0.75rem;
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(240, 185, 11, 0.45);
  background: rgba(240, 185, 11, 0.08);
  color: var(--bnb);
  font-family: var(--font-zh);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 0;
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: clamp(3rem, 1.5rem + 6vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-shadow:
    3px 3px 0 rgba(196, 30, 30, 0.55),
    -1px 0 0 rgba(240, 185, 11, 0.35);
}

.hero-hook {
  margin: 0.85rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.35rem);
  letter-spacing: 0.06em;
  color: var(--bnb);
  line-height: 1.05;
}

.hero-ticker {
  margin: 0 0 1rem;
}

.ticker-chip {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--potato);
  color: var(--black);
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: 1.15rem;
  transform: rotate(-2deg);
}

.hero-lede {
  margin: 0 0 1.35rem;
  max-width: 36rem;
  color: var(--text-mute);
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem);
}

.hero-lede [lang="zh-Hans"] {
  color: var(--paper);
  font-family: var(--font-zh);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

/* CA module */
.ca-module {
  max-width: 100%;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(240, 185, 11, 0.4);
  background:
    linear-gradient(135deg, rgba(243, 236, 223, 0.06), transparent 60%),
    rgba(20, 17, 14, 0.85);
}

.ca-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.ca-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--bnb);
}

.ca-note {
  font-size: 0.78rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ca-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 0;
}

.ca-value {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1.05rem);
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.ca-live {
  min-height: 1.25rem;
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--jade-soft);
  font-weight: 600;
}

/* Hero stage / dog */
.hero-stage {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

.hero-stage-inner {
  position: absolute;
  inset: 8% 4% 12% 4%;
  z-index: 0;
  pointer-events: none;
}

.ink-stroke {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  filter: blur(0.5px);
  opacity: 0.55;
}

.ink-stroke-1 {
  width: 78%;
  height: 28%;
  left: 5%;
  bottom: 18%;
  background: linear-gradient(105deg, transparent, rgba(240, 185, 11, 0.35), rgba(196, 122, 44, 0.25), transparent);
  transform: rotate(-18deg);
}

.ink-stroke-2 {
  width: 55%;
  height: 18%;
  right: 0;
  top: 28%;
  background: linear-gradient(90deg, transparent, rgba(196, 30, 30, 0.35), transparent);
  transform: rotate(12deg);
}

.ink-stroke-3 {
  width: 40%;
  height: 22%;
  left: 12%;
  top: 12%;
  background: radial-gradient(ellipse, rgba(47, 107, 90, 0.35), transparent 70%);
}

.drift-trail {
  position: absolute;
  inset: 10% 0 5%;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.drift-path {
  fill: none;
  stroke: var(--bnb);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 12 10;
  animation: skid-dash 1.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(240, 185, 11, 0.45));
}

.drift-path-soft {
  stroke: var(--potato-warm);
  stroke-width: 2;
  opacity: 0.55;
  stroke-dasharray: 8 14;
  animation-duration: 2.4s;
  animation-direction: reverse;
}

@keyframes skid-dash {
  to { stroke-dashoffset: -44; }
}

.geo-mark {
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--bnb);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(240, 185, 11, 0.5);
}

.geo-1 { top: 18%; left: 8%; animation: geo-float 4s ease-in-out infinite; }
.geo-2 { top: 42%; right: 6%; width: 0.55rem; height: 0.55rem; animation: geo-float 5s ease-in-out infinite reverse; }
.geo-3 { bottom: 22%; left: 22%; width: 0.65rem; height: 0.65rem; background: var(--lacquer); animation: geo-float 3.5s ease-in-out infinite 0.5s; }

@keyframes geo-float {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-8px); }
}

.poster-stamp {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
  animation: stamp-spin 18s linear infinite;
}

.stamp-1 {
  top: 8%;
  right: 10%;
  color: var(--lacquer);
  animation-duration: 22s;
}

.stamp-2 {
  bottom: 28%;
  left: 2%;
  color: var(--bnb);
  font-family: var(--font-display);
  font-size: 0.95rem;
  animation-direction: reverse;
  animation-duration: 26s;
}

.stamp-3 {
  top: 48%;
  right: 0;
  color: var(--jade-soft);
  animation-duration: 20s;
}

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

.hero-dog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin-inline: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
  animation: dog-drift 3.8s ease-in-out infinite;
  transform-origin: 55% 85%;
}

@keyframes dog-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(6px, -4px) rotate(-1.2deg); }
  50% { transform: translate(2px, -8px) rotate(0.6deg); }
  75% { transform: translate(-4px, -3px) rotate(1deg); }
}

/* Hero entrance */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-enter 0.7s var(--ease-out) forwards;
}

.hero-label { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-hook { animation-delay: 0.28s; }
.hero-ticker { animation-delay: 0.38s; }
.hero-lede { animation-delay: 0.48s; }
.hero-actions { animation-delay: 0.58s; }
.ca-module { animation-delay: 0.7s; }

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Marquee ——— */
.marquee {
  position: relative;
  z-index: 1;
  border-block: 2px solid rgba(240, 185, 11, 0.35);
  background: linear-gradient(90deg, var(--bnb) 0%, var(--potato) 45%, var(--lacquer) 100%);
  color: var(--black);
  overflow: hidden;
  padding-block: 0.7rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.1rem;
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: marquee-x 32s linear infinite;
  will-change: transform;
}

@keyframes marquee-x {
  to { transform: translateX(-50%); }
}

/* ——— Story ——— */
.story {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.story-shell {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.story-intro {
  max-width: 34rem;
}

.story-lead {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem);
  letter-spacing: 0.04em;
  color: var(--potato-warm);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story-block {
  padding: 1.25rem 1.3rem 1.4rem;
  border-left: 3px solid var(--bnb);
  background:
    linear-gradient(160deg, rgba(243, 236, 223, 0.05), transparent 55%),
    var(--black-soft);
}

.story-block:nth-child(even) {
  border-left-color: var(--lacquer);
  transform: translateY(0.75rem);
}

.story-block:nth-child(3) {
  border-left-color: var(--jade);
}

.story-block h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-zh);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--paper);
}

.story-block p {
  margin: 0;
  color: var(--text-mute);
}

.story-block a {
  font-weight: 600;
}

/* ——— Origin ——— */
.origin {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background:
    linear-gradient(180deg, transparent, rgba(240, 185, 11, 0.04), transparent);
}

.origin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.origin-visual {
  position: relative;
  min-width: 0;
}

.origin-visual > img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(240, 185, 11, 0.35);
  box-shadow: 10px 10px 0 rgba(196, 30, 30, 0.35);
}

.hairpin {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  width: min(55%, 260px);
  padding: 0.5rem;
  background: rgba(10, 9, 8, 0.72);
  border: 1px solid rgba(240, 185, 11, 0.3);
  pointer-events: none;
}

.hairpin svg {
  width: 100%;
  height: auto;
  display: block;
}

.hairpin-line {
  stroke: var(--bnb);
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
  fill: none;
  animation: skid-dash 2s linear infinite;
}

.corner-dot {
  fill: var(--lacquer);
}

.corner-markers {
  display: flex;
  justify-content: space-between;
  margin: 0.25rem 0 0;
  padding: 0 0.5rem;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--bnb);
}

.origin-copy {
  min-width: 0;
}

.origin-points {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.origin-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.stamp-mini {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--lacquer);
  border-radius: 0.15rem;
  color: var(--lacquer);
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: 0.85rem;
  transform: rotate(-8deg);
  flex-shrink: 0;
}

.origin-points li:nth-child(2) .stamp-mini {
  border-color: var(--bnb);
  color: var(--bnb);
  transform: rotate(6deg);
}

.origin-points li:nth-child(3) .stamp-mini {
  border-color: var(--jade);
  color: var(--jade-soft);
  font-family: var(--font-display);
  font-size: 0.75rem;
  transform: rotate(-4deg);
}

.origin-points strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  font-weight: 400;
}

.origin-points p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.95rem;
}

.origin-points code {
  font-size: 0.9em;
  color: var(--bnb);
}

/* ——— Links ——— */
.links {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.links-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(240, 185, 11, 0.28);
  background:
    linear-gradient(120deg, rgba(240, 185, 11, 0.08), transparent 45%),
    var(--black-soft);
}

.links-note {
  margin: 0.75rem 0 0;
  color: var(--text-mute);
  max-width: 28rem;
}

.links-note code {
  color: var(--bnb);
}

.links-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.link-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.85rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
}

.link-tile:active {
  transform: translateY(2px);
}

.link-tile-label {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.link-tile-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}

.link-buy {
  background: var(--bnb);
  color: var(--black);
  border-color: var(--bnb-hot);
}

.link-buy:hover {
  color: var(--black);
  background: var(--bnb-hot);
}

.link-chart {
  background: transparent;
  color: var(--paper);
  border-color: var(--bnb);
}

.link-chart:hover {
  color: var(--bnb-hot);
  background: rgba(240, 185, 11, 0.1);
}

.link-x {
  background: var(--lacquer);
  color: var(--paper);
  border-color: var(--lacquer-deep);
}

.link-x:hover {
  color: #fff;
  background: #e02828;
}

/* ——— Final CTA ——— */
.final-cta {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.final-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(145deg, rgba(196, 30, 30, 0.18), transparent 40%),
    linear-gradient(325deg, rgba(240, 185, 11, 0.12), transparent 45%),
    var(--ink);
  border-top: 3px solid var(--bnb);
}

.final-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: 1rem;
  color: var(--bnb);
  letter-spacing: 0.12em;
}

.final-title {
  margin: 0;
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1.15;
}

.final-sub {
  margin: 0.85rem 0 1.35rem;
  color: var(--text-mute);
  max-width: 32rem;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.final-mark {
  position: relative;
  justify-self: end;
  width: min(100%, 280px);
}

.final-mark img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 2px solid rgba(240, 185, 11, 0.35);
}

.final-stamp {
  position: absolute;
  right: -0.35rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 3px solid var(--lacquer);
  border-radius: 50%;
  color: var(--lacquer);
  font-family: var(--font-zh);
  font-weight: 900;
  background: rgba(10, 9, 8, 0.75);
  transform: rotate(12deg);
}

/* ——— Footer ——— */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: var(--black);
}

.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-mute);
}

.footer-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.3rem;
}

.footer-brand strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-zh);
  font-size: 1.05rem;
}

.footer-note {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.88rem;
  max-width: 36rem;
}

.footer-note code {
  color: var(--bnb);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.footer-nav a {
  color: var(--paper);
  text-decoration: none;
}

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

/* ——— Ink reveal (scroll) ——— */
/* Visible by default so the page stays readable without JS */
.js .ink-reveal {
  opacity: 0;
  transform: translateX(-16px) skewX(-2deg);
  filter: blur(2px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
}

.js .ink-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.js .ink-reveal:nth-child(even) {
  transform: translateX(16px) skewX(2deg);
}

.js .ink-reveal.is-in:nth-child(even) {
  transform: none;
}

/* ——— Corner arrow accents ——— */
.hero::after,
.origin::before {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-right: 2px solid var(--bnb);
  border-bottom: 2px solid var(--bnb);
  opacity: 0.5;
  pointer-events: none;
  animation: corner-nudge 2.5s ease-in-out infinite;
}

.hero::after {
  right: var(--pad);
  bottom: 1rem;
  transform: rotate(-45deg);
}

.origin::before {
  left: var(--pad);
  top: 1.5rem;
  transform: rotate(135deg);
  animation-delay: 0.6s;
}

@keyframes corner-nudge {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 1.2rem + 5vw, 4.5rem);
  }

  .origin-shell,
  .links-shell,
  .final-shell {
    grid-template-columns: 1fr;
  }

  .final-mark {
    justify-self: start;
  }

  .story-block:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    align-items: flex-start;
  }

  .header-nav {
    width: 100%;
  }

  .header-nav .btn {
    flex: 1 1 auto;
    min-width: 4.5rem;
  }

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

  .hero-stage {
    order: -1;
  }

  .hero-dog {
    width: min(100%, 380px);
    animation-duration: 5.5s;
  }

  .poster-stamp,
  .geo-mark,
  .ink-stroke-3 {
    opacity: 0.4;
  }

  .stamp-3 {
    display: none;
  }

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

  .links-actions {
    grid-template-columns: 1fr;
  }

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

  .hairpin {
    width: min(70%, 220px);
  }
}

@media (max-width: 430px) {
  .brand span {
    font-size: 1rem;
  }

  .brand img {
    width: 2.1rem;
    height: 2.1rem;
  }

  .btn {
    min-height: 2.35rem;
    padding-inline: 0.7rem;
    font-size: 0.95rem;
  }

  .btn-lg {
    min-height: 2.75rem;
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .hero-hook {
    font-size: 1.2rem;
  }

  .ca-row {
    flex-direction: column;
  }

  .btn-copy {
    width: 100%;
  }

  .poster-stamp.stamp-1 {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 0.65rem;
  }

  .final-stamp {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .header-nav .btn {
    padding-inline: 0.5rem;
    letter-spacing: 0.04em;
  }

  .hero-lede {
    font-size: 0.95rem;
  }
}

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

  .reveal-item,
  .js .ink-reveal,
  .js .ink-reveal:nth-child(even) {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }

  .hero-dog,
  .drift-path,
  .drift-path-soft,
  .hairpin-line,
  .marquee-track,
  .poster-stamp,
  .geo-mark,
  .hero::after,
  .origin::before,
  .btn-copy.is-copied {
    animation: none !important;
  }

  .marquee-track {
    transform: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    white-space: normal;
    row-gap: 0.35rem;
  }

  .btn:active,
  .link-tile:active {
    transform: none;
  }
}

