:root {
  --bg: #070403;
  --bg-soft: #15100c;
  --text: #fff7ec;
  --muted: #c8b9a4;
  --line: rgba(226, 184, 92, 0.2);
  --accent: #23d7b0;
  --accent-2: #d83b2d;
  --accent-3: #e2b85c;
  --jade: #23d7b0;
  --cinnabar: #d83b2d;
  --gold: #e2b85c;
  --ink: #050302;
  --danger: #ff8ca3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --cursor-size: 44px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 59, 45, 0.22), transparent 23rem),
    radial-gradient(circle at 82% 6%, rgba(35, 215, 176, 0.16), transparent 26rem),
    radial-gradient(circle at 70% 72%, rgba(226, 184, 92, 0.1), transparent 24rem),
    linear-gradient(180deg, #070403 0%, #120b08 52%, #050302 100%);
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button,
input {
  font: inherit;
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: var(--cursor-size);
  height: var(--cursor-size);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition:
    width 0.18s ease,
    height 0.18s ease,
    opacity 0.18s ease;
  mix-blend-mode: difference;
}

.custom-cursor::before,
.custom-cursor::after {
  position: absolute;
  content: "";
  background: #ffffff;
  transition:
    width 0.18s ease,
    height 0.18s ease,
    background 0.18s ease;
}

.custom-cursor::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.custom-cursor::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor.is-hovering {
  --cursor-size: 24px;
}

.custom-cursor.is-hovering::before {
  height: 4px;
  background: var(--cinnabar);
}

.custom-cursor.is-hovering::after {
  width: 4px;
  background: var(--cinnabar);
}

.neo-frame {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.neo-frame::before,
.neo-frame::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(226, 184, 92, 0.14);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.neo-frame::before {
  top: 9%;
  right: -8%;
  width: 420px;
  height: 420px;
}

.neo-frame::after {
  bottom: -10%;
  left: -10%;
  width: 520px;
  height: 520px;
}

.neo-frame span {
  position: absolute;
  color: rgba(226, 184, 92, 0.12);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 6vw, 88px);
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 0.16em;
}

.neo-frame span:nth-child(1) {
  top: 16%;
  left: 18px;
}

.neo-frame span:nth-child(2) {
  right: 22px;
  bottom: 18%;
}

.neo-frame span:nth-child(3) {
  top: 42%;
  right: 9%;
  opacity: 0.6;
}

.neo-frame span:nth-child(4) {
  bottom: 10%;
  left: 9%;
  opacity: 0.5;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(216, 59, 45, 0.14), transparent 19rem),
    radial-gradient(circle at 50% 52%, rgba(35, 215, 176, 0.1), transparent 24rem),
    #020100;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
  animation: preloaderFailsafe 3.4s ease forwards;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-plus {
  position: absolute;
  top: 18%;
  left: 28%;
  width: 42px;
  height: 42px;
  animation: loaderPlus 2.2s ease-in-out infinite;
}

.preloader-plus::before,
.preloader-plus::after {
  position: absolute;
  content: "";
  background: var(--cinnabar);
}

.preloader-plus::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.preloader-plus::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.preloader-logo {
  display: grid;
  width: min(320px, 62vw);
  place-items: center;
  filter:
    drop-shadow(0 0 22px rgba(216, 59, 45, 0.34))
    drop-shadow(0 0 34px rgba(35, 215, 176, 0.16));
}

.preloader-logo svg {
  width: 100%;
  overflow: visible;
}

.logo-seal-ring {
  fill: rgba(5, 3, 2, 0.72);
  stroke: var(--cinnabar);
  stroke-width: 18;
}

.logo-gold-orbit {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 18 16;
  opacity: 0.58;
  transform-origin: 256px 256px;
  animation: sealOrbit 7s linear infinite;
}

.logo-dl-strokes {
  fill: none;
  stroke: #f7f8ff;
  stroke-width: 48;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-motion {
  fill: none;
  stroke: var(--jade);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-fill {
  stroke-width: 17;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: jadeStroke 2.35s ease-in-out infinite;
}

.motion-tail {
  stroke-width: 6;
  opacity: 0.75;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: jadeStroke 2.35s ease-in-out infinite 0.18s;
}

.motion-pearl {
  fill: rgba(35, 215, 176, 0);
  stroke: var(--jade);
  stroke-width: 3;
  transform-origin: 392px 226px;
}

.candle-fill {
  transition:
    fill 0.18s linear,
    stroke 0.18s linear,
    opacity 0.18s linear;
}

.logo-corners {
  fill: var(--cinnabar);
  opacity: 0.92;
}

.preloader-meta {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: min(320px, calc(100% - 48px));
  transform: translateX(-50%);
  text-align: center;
}

.preloader-meta p {
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.preloader-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.preloader-bar span {
  display: block;
  width: 1%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--jade));
  box-shadow: 0 0 24px rgba(216, 59, 45, 0.45);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: 1;
  background-image:
    linear-gradient(rgba(226, 184, 92, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 184, 92, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--jade));
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid rgba(226, 184, 92, 0.28);
  border-radius: 999px;
  background: rgba(7, 4, 3, 0.76);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #07100d;
  background: #000000;
  border: 1px solid rgba(226, 184, 92, 0.45);
}

.logo-mark {
  overflow: hidden;
  background: #000000;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav a {
  display: inline-flex;
  justify-content: center;
  min-width: 82px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 330px;
  justify-content: flex-end;
}

.header-agent-button,
.lang-toggle,
.button,
.chat-form button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.lang-toggle {
  display: inline-flex;
  width: 82px;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.lang-toggle span {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  transition:
    color 0.2s ease,
    font-size 0.2s ease,
    transform 0.2s ease;
}

.lang-toggle span.is-active {
  color: var(--text);
  font-size: 16px;
  transform: translateY(-0.5px);
}

.header-agent-button {
  min-width: 148px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff7ec;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cinnabar), #9e1e18);
  box-shadow: 0 0 28px rgba(216, 59, 45, 0.22);
}

main {
  position: relative;
  z-index: 2;
}

.hero,
.cases,
.agent-section,
.contact {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: 56px;
  min-height: 100vh;
  align-items: center;
  padding: 140px 0 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #fff7ec, var(--gold), var(--cinnabar));
  background-clip: text;
}

.red-seal {
  display: grid;
  width: 72px;
  height: 72px;
  margin: -8px 0 22px;
  place-items: center;
  border: 2px solid var(--cinnabar);
  color: var(--cinnabar);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-7deg);
  box-shadow: inset 0 0 0 4px rgba(216, 59, 45, 0.08);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.hero-text,
.stage-copy p,
.agent-section p,
.contact p {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  color: #fff7ec;
  background: linear-gradient(135deg, var(--cinnabar), #8f1713);
}

.button.secondary,
.button.ghost {
  border: 1px solid rgba(226, 184, 92, 0.24);
  color: var(--text);
  background: rgba(226, 184, 92, 0.06);
}

.button.ghost {
  color: var(--muted);
}

.hero-card {
  position: relative;
  min-height: 520px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(226, 184, 92, 0.24);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 59, 45, 0.18), transparent 16rem),
    linear-gradient(160deg, rgba(226, 184, 92, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(12, 6, 4, 0.72);
  box-shadow: var(--shadow);
}

.profile-orb {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 260px;
  height: 260px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  z-index: 1;
  --photo-beat-scale: 1;
}

.orb {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, transparent 10%),
    radial-gradient(circle at 50% 50%, var(--cinnabar), var(--jade));
  filter: blur(0.2px);
  opacity: 0;
  pointer-events: none;
  animation: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.agent-pulse {
  position: absolute;
  inset: -142px;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease;
}

.agent-pulse span {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(226, 184, 92, 0.26);
  border-radius: 50%;
  animation: photoWave 3.6s ease-out infinite;
}

.photo-frame {
  position: absolute;
  inset: -16px;
  display: block;
  overflow: hidden;
  border: 3px solid var(--cinnabar);
  border-radius: 38% 62% 42% 58% / 48% 42% 58% 52%;
  opacity: 1;
  transform: scale(var(--photo-beat-scale)) rotate(-2deg);
  transition:
    opacity 0.35s ease,
    transform 0.18s ease,
    box-shadow 0.28s ease;
  box-shadow:
    0 0 0 8px rgba(226, 184, 92, 0.12),
    0 0 0 12px rgba(216, 59, 45, 0.1),
    0 28px 90px rgba(0, 0, 0, 0.45);
}

.photo-frame::before,
.photo-frame::after {
  position: absolute;
  z-index: 2;
  content: "";
  width: 42px;
  height: 42px;
  border-color: var(--gold);
  border-style: solid;
}

.photo-frame::before {
  top: 14px;
  left: 14px;
  border-width: 2px 0 0 2px;
}

.photo-frame::after {
  right: 14px;
  bottom: 14px;
  border-width: 0 2px 2px 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-pulse span:nth-child(2) {
  animation-delay: 1.15s;
}

.agent-pulse span:nth-child(3) {
  animation-delay: 2.3s;
}

.profile-orb.is-music-playing .agent-pulse {
  filter: drop-shadow(0 0 18px rgba(35, 215, 176, 0.26));
}

.profile-orb.is-music-playing .agent-pulse span {
  border-color: rgba(35, 215, 176, 0.44);
  animation-duration: 1.75s;
}

.profile-orb.is-beating .photo-frame {
  box-shadow:
    0 0 0 10px rgba(226, 184, 92, 0.16),
    0 0 0 16px rgba(35, 215, 176, 0.1),
    0 34px 105px rgba(0, 0, 0, 0.52);
}

.music-control {
  position: relative;
  width: 190px;
  height: 104px;
  z-index: 7;
}

.hero-music-control {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 190px;
  height: 104px;
  z-index: 7;
}

.header-music-control {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.music-button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(226, 184, 92, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 248, 236, 0.16), transparent 35%),
    rgba(9, 5, 5, 0.76);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.music-icon {
  position: relative;
  width: 28px;
  height: 22px;
  background: transparent;
}

.music-icon::before,
.music-icon::after {
  position: absolute;
  content: "";
}

.music-icon::before {
  top: 50%;
  left: 0;
  width: 18px;
  height: 20px;
  background: var(--gold);
  clip-path: polygon(0 36%, 34% 36%, 76% 8%, 76% 92%, 34% 64%, 0 64%);
  transform: translateY(-50%);
}

.music-icon::after {
  top: 50%;
  left: 16px;
  width: 9px;
  height: 14px;
  border: 2px solid var(--gold);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  box-shadow: 5px 0 0 -2px rgba(226, 184, 92, 0.68);
  opacity: 0.82;
  transform: translateY(-50%);
}

.music-control.is-playing .music-button {
  border-color: rgba(35, 215, 176, 0.72);
  box-shadow:
    0 0 0 6px rgba(35, 215, 176, 0.08),
    0 18px 52px rgba(35, 215, 176, 0.16);
}

.volume-popover {
  position: absolute;
  top: 50px;
  right: 0;
  display: grid;
  grid-template-columns: auto 112px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 184, 92, 0.32);
  border-radius: 999px;
  background: rgba(8, 5, 5, 0.88);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.music-control:hover .volume-popover,
.music-control:focus-within .volume-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.header-music-control .volume-popover {
  top: 46px;
}

.volume-popover input {
  accent-color: var(--jade);
  width: 112px;
}

.youtube-player {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-9999px, -9999px);
}

.card-label,
.hero-card h2,
.hero-card ul {
  position: relative;
  z-index: 3;
}

.card-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card h2 {
  max-width: 360px;
  font-size: clamp(34px, 3.2vw, 42px);
  white-space: nowrap;
}

.hero-card ul {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(226, 184, 92, 0.22);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.36);
}

.hero-card li strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero-card li span {
  color: var(--muted);
  text-align: right;
}

.protocol-story {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  min-height: 260vh;
  margin: 0 auto;
  padding: 70px 0;
}

.protocol-sticky {
  position: sticky;
  top: 105px;
  min-height: 78vh;
  overflow: hidden;
  border: 1px solid rgba(226, 184, 92, 0.24);
  border-radius: 44px;
  background:
    radial-gradient(circle at 70% 28%, rgba(216, 59, 45, 0.26), transparent 18rem),
    radial-gradient(circle at 20% 80%, rgba(35, 215, 176, 0.12), transparent 22rem),
    #020308;
  box-shadow: var(--shadow);
}

.protocol-sticky::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(226, 184, 92, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 184, 92, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
}

.protocol-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: clamp(28px, 6vw, 64px);
}

.protocol-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.protocol-console {
  position: absolute;
  right: clamp(22px, 5vw, 62px);
  bottom: clamp(22px, 5vw, 54px);
  z-index: 3;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100% - 44px));
  padding: 14px;
  border: 1px solid rgba(140, 245, 210, 0.18);
  border-radius: 18px;
  color: #d7ffe9;
  background: rgba(0, 0, 0, 0.68);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  transform: translate3d(0, var(--console-y, 0), 0);
}

.protocol-console code {
  color: var(--muted);
}

.artifact {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: 190px;
  padding: 18px;
  border: 1px solid rgba(226, 184, 92, 0.22);
  border-radius: 22px;
  background: rgba(20, 10, 7, 0.58);
  backdrop-filter: blur(14px);
  transform: translate3d(0, var(--artifact-y, 0), 0) rotate(var(--artifact-r, 0deg));
}

.artifact span {
  color: var(--jade);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.artifact strong {
  font-size: 24px;
  letter-spacing: -0.05em;
}

.artifact-a {
  top: 18%;
  right: 18%;
  --artifact-r: 8deg;
}

.artifact-b {
  right: 36%;
  bottom: 14%;
  --artifact-r: -6deg;
}

.artifact-c {
  top: 48%;
  right: 7%;
  --artifact-r: 12deg;
}

.protocol-scene-rail {
  position: sticky;
  top: 44vh;
  z-index: 4;
  height: 0;
  pointer-events: none;
}

.protocol-scene {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(560px, 92%);
  min-height: 235px;
  padding: 30px;
  border: 1px solid rgba(226, 184, 92, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(216, 59, 45, 0.12), transparent 42%),
    rgba(5, 3, 2, 0.78);
  backdrop-filter: blur(18px);
  opacity: var(--scene-opacity, 0);
  transform: translate3d(var(--scene-x, 120vw), var(--scene-y, 0), 0) rotate(var(--scene-rotate, 0deg));
  will-change: transform, opacity;
}

.protocol-scene span {
  color: var(--accent);
  font-weight: 900;
}

.protocol-scene p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.protocol-scene h3 {
  font-size: clamp(30px, 3vw, 42px);
}

.story {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  min-height: 260vh;
  margin: 0 auto;
  padding: 80px 0;
}

.sticky-stage {
  position: sticky;
  top: 110px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 48px;
  min-height: 70vh;
  align-items: center;
}

.stage-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(226, 184, 92, 0.24);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 59, 45, 0.28), transparent 9rem),
    radial-gradient(circle at 30% 25%, rgba(35, 215, 176, 0.14), transparent 18rem),
    radial-gradient(circle at 70% 70%, rgba(226, 184, 92, 0.14), transparent 20rem),
    rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.world-orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 280px;
  height: 280px;
  animation: spinOrbit 18s linear infinite;
}

.orbit-two {
  width: 420px;
  height: 420px;
  border-style: dashed;
  animation: spinOrbit 28s linear infinite reverse;
}

.career-core {
  display: none;
}

.pulse-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.pulse-core span {
  position: absolute;
  width: calc(120px + var(--pulse-size, 0px));
  height: calc(120px + var(--pulse-size, 0px));
  border: 1px solid rgba(140, 245, 210, 0.42);
  border-radius: 50%;
  opacity: var(--pulse-opacity, 0.8);
  transform: scale(var(--pulse-scale, 1));
}

.pulse-core span:nth-child(1) {
  --pulse-size: 0px;
}

.pulse-core span:nth-child(2) {
  --pulse-size: 170px;
  border-color: rgba(0, 56, 255, 0.34);
}

.pulse-core span:nth-child(3) {
  --pulse-size: 330px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
}

.protocol-panel {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(226, 184, 92, 0.22);
  border-radius: 16px;
  color: #d7ffe9;
  background: rgba(5, 3, 2, 0.62);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 0 30px rgba(216, 59, 45, 0.08);
}

.vertical-note {
  position: absolute;
  top: 42px;
  right: 34px;
  color: rgba(226, 184, 92, 0.38);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
}

.protocol-panel code {
  color: var(--muted);
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  transform: translate(-50%, -50%) rotate(-28deg);
}

.floating-chip {
  position: absolute;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 17, 0.66);
  backdrop-filter: blur(14px);
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: translate3d(var(--chip-x, 0), var(--chip-y, 0), 0) rotate(var(--chip-r, 0deg));
  will-change: transform;
}

.chip-one {
  top: 25%;
  left: 14%;
}

.chip-two {
  top: 45%;
  right: 12%;
}

.chip-three {
  bottom: 22%;
  left: 30%;
}

.story-flight-rail {
  position: sticky;
  top: 58vh;
  z-index: 12;
  height: 0;
  pointer-events: none;
}

.story-step {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(540px, 92vw);
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(7, 8, 17, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: var(--flight-opacity, 1);
  transform: translate3d(var(--flight-x, calc(-50% + 0vw)), var(--flight-y, 0), 0) rotate(var(--flight-r, 0deg));
  will-change: transform, opacity;
}

.story-step:nth-of-type(even) {
  --flight-y: -42px;
}

.story-step span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
}

.story-step p,
.case-card span {
  color: var(--muted);
  line-height: 1.7;
}

.cases,
.resume-world,
.why-hire,
.china-edge,
.agent-section,
.contact {
  padding: 110px 0;
}

.resume-world {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.world-header {
  max-width: 820px;
  margin-bottom: 42px;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.world-card {
  min-height: 330px;
  padding: 22px;
  border: 1px solid rgba(226, 184, 92, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(216, 59, 45, 0.14), transparent 42%),
    rgba(20, 10, 7, 0.5);
  transform: translateY(var(--world-offset, 0));
}

.world-card:nth-child(2) {
  --world-offset: 36px;
}

.world-card:nth-child(3) {
  --world-offset: -22px;
}

.world-card:nth-child(4) {
  --world-offset: 18px;
}

.world-card code {
  color: var(--accent);
  font-size: 12px;
}

.world-card h3 {
  margin-top: 72px;
}

.world-card p {
  color: var(--muted);
  line-height: 1.7;
}

.why-hire,
.china-edge,
.role-fit,
.thirty-days,
.work-method {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why-grid article {
  min-height: 280px;
  padding: 22px;
  border: 1px solid rgba(226, 184, 92, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 59, 45, 0.16), transparent 10rem),
    rgba(20, 10, 7, 0.54);
}

.why-grid span {
  color: rgba(226, 184, 92, 0.34);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 42px;
  font-weight: 900;
}

.why-grid h3 {
  margin-top: 54px;
}

.why-grid p,
.china-copy p,
.role-grid p,
.thirty-grid p,
.work-method p,
.role-note {
  color: var(--muted);
  line-height: 1.75;
}

.role-grid,
.thirty-grid {
  display: grid;
  gap: 16px;
}

.role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thirty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-grid article,
.thirty-grid article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(226, 184, 92, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(35, 215, 176, 0.075), transparent 42%),
    rgba(20, 10, 7, 0.54);
}

.role-grid span,
.thirty-grid code {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role-grid h3,
.thirty-grid h3 {
  margin-top: 54px;
}

.role-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(216, 59, 45, 0.24);
  border-radius: 20px;
  background: rgba(216, 59, 45, 0.07);
}

.work-method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(226, 184, 92, 0.24);
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 22%, rgba(216, 59, 45, 0.14), transparent 14rem),
    linear-gradient(135deg, rgba(35, 215, 176, 0.08), transparent 46%),
    rgba(20, 10, 7, 0.56);
}

.work-method .section-heading {
  margin-bottom: 0;
}

.work-formula {
  padding: 24px;
  border: 1px solid rgba(140, 245, 210, 0.24);
  border-radius: 24px;
  color: #dffdf0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.22);
}

.china-edge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: stretch;
}

.china-copy {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(226, 184, 92, 0.24);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(216, 59, 45, 0.12), transparent 45%),
    rgba(20, 10, 7, 0.56);
}

.china-stamp {
  display: grid;
  place-items: center;
  border: 2px solid var(--cinnabar);
  border-radius: 36px;
  color: var(--cinnabar);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 54px;
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 0.16em;
  background: rgba(216, 59, 45, 0.045);
  box-shadow:
    inset 0 0 0 8px rgba(216, 59, 45, 0.06),
    0 26px 80px rgba(0, 0, 0, 0.28);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(226, 184, 92, 0.22);
  border-radius: 30px;
  background: rgba(20, 10, 7, 0.5);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
  cursor: none;
}

.case-card:hover {
  border-color: rgba(140, 245, 210, 0.55);
  transform: translateY(-8px);
}

.case-card.is-open {
  border-color: rgba(35, 215, 176, 0.5);
  transform: translateY(-8px);
}

.case-details {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 16px;
  overflow: hidden;
  transition: grid-template-rows 0.28s ease;
}

.case-card.is-open .case-details {
  grid-template-rows: 1fr;
}

.case-details dl {
  min-height: 0;
  margin: 0;
}

.case-details dt {
  margin-top: 10px;
  color: var(--jade);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.case-details dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.case-card p {
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: 48px;
  align-items: center;
}

.agent-demo,
.drawer-panel {
  border: 1px solid rgba(226, 184, 92, 0.22);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(216, 59, 45, 0.08), transparent 36%),
    #090503;
  box-shadow: var(--shadow);
}

.agent-demo {
  padding: 18px;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 0 4px 0 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  scrollbar-color: rgba(140, 245, 210, 0.42) transparent;
}

.compact-chat {
  height: 360px;
}

.drawer-chat {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: 100%;
}

.message {
  width: fit-content;
  max-width: 88%;
  padding: 13px 15px;
  border-radius: 6px;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
}

.message.agent {
  align-self: flex-start;
  color: var(--text);
  border: 1px solid rgba(226, 184, 92, 0.18);
  background: rgba(226, 184, 92, 0.055);
}

.message.user {
  align-self: flex-end;
  color: #e8fff8;
  border: 1px solid rgba(216, 59, 45, 0.34);
  background: rgba(216, 59, 45, 0.22);
}

.message.muted {
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}

.chat-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.chat-form input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: #d7ffe9;
  background: #05070a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.chat-form input:focus {
  border-color: rgba(140, 245, 210, 0.7);
}

.chat-form button {
  padding: 0 18px;
  border-radius: 8px;
  color: #fff7ec;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cinnabar), #8f1713);
}

.terminal-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(16px);
}

.terminal-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-topbar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-topbar span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-topbar span:nth-child(3) {
  background: #28c840;
}

.terminal-topbar code {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.terminal-prefix {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  text-align: left;
}

.message-copy {
  display: block;
  color: inherit;
  text-align: left;
  white-space: pre-wrap;
}

.job-upload {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(140, 245, 210, 0.42);
  border-radius: 14px;
  color: var(--text);
  background: rgba(140, 245, 210, 0.055);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  cursor: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.job-upload:hover {
  border-color: var(--accent);
  background: rgba(140, 245, 210, 0.09);
}

.job-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.job-upload span {
  color: var(--accent);
  font-weight: 800;
}

.job-upload small {
  color: var(--muted);
}

.match-result {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(140, 245, 210, 0.2);
  border-radius: 12px;
  color: #d7ffe9;
  background: #05070a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
  white-space: normal;
}

.contact {
  min-height: 60vh;
  text-align: center;
}

.contact .eyebrow,
.contact h2,
.contact-actions {
  justify-content: center;
}

.contact h2 {
  max-width: 850px;
  margin-inline: auto;
}

.agent-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.agent-drawer.is-open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.42);
}

.drawer-panel {
  display: flex;
  width: min(680px, 100%);
  max-height: calc(100vh - 32px);
  min-height: calc(100vh - 32px);
  padding: 20px;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(110%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.agent-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.drawer-header h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.drawer-panel .terminal-topbar,
.drawer-panel .job-upload,
.drawer-panel .chat-form {
  flex: 0 0 auto;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  font-size: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.section-observed {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.section-observed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(-10px) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) translateY(16px) scale(1.05);
  }
}

@keyframes orbBreathe {
  0%,
  100% {
    transform: translateY(-8px) scale(1);
  }
  50% {
    transform: translateY(12px) scale(1.045);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes photoWave {
  0% {
    opacity: 0;
    transform: scale(0.62);
  }

  12% {
    opacity: 0.58;
  }

  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes drawLogo {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes logoBreathe {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(0, 56, 255, 0));
  }
  50% {
    transform: scale(1.045);
    filter: drop-shadow(0 0 18px rgba(0, 56, 255, 0.72));
  }
}

@keyframes loaderPlus {
  0%,
  100% {
    opacity: 0.55;
    transform: rotate(0deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotate(90deg) scale(1.18);
  }
}

@keyframes candleFill {
  0% {
    fill: rgba(0, 56, 255, 0);
  }
  100% {
    fill: #0038ff;
  }
}

@keyframes sealOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes jadeStroke {
  0% {
    stroke-dashoffset: 180;
    opacity: 0.25;
  }
  45%,
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -180;
    opacity: 0.25;
  }
}

@keyframes spinOrbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes preloaderFailsafe {
  0%,
  78% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 28px;
  }

  .nav {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-agent-button {
    display: none;
  }

  .hero,
  .sticky-stage,
  .agent-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-card {
    min-height: 460px;
  }

  .story {
    min-height: auto;
  }

  .sticky-stage {
    position: relative;
    top: auto;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .world-grid {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .china-edge,
  .role-grid,
  .thirty-grid,
  .work-method {
    grid-template-columns: 1fr;
  }

  .world-card {
    min-height: 240px;
    transform: none;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: clamp(48px, 13vw, 76px);
    letter-spacing: -0.07em;
  }

  .hero-card {
    width: 100%;
  }

  .hero-card h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .profile-orb {
    width: clamp(210px, 54vw, 260px);
    height: clamp(210px, 54vw, 260px);
  }

  .agent-pulse {
    inset: -88px;
  }

  .protocol-story,
  .story {
    width: min(100% - 24px, 1120px);
  }

  .protocol-sticky {
    position: relative;
    top: auto;
    min-height: auto;
    padding-bottom: 0;
  }

  .protocol-scene-rail {
    position: relative;
    top: auto;
    display: grid;
    gap: 14px;
    height: auto;
    margin: 22px;
    pointer-events: auto;
  }

  .protocol-scene {
    position: relative;
    left: auto;
    width: 100%;
    min-height: 0;
    opacity: 1 !important;
    transform: none !important;
  }

  .stage-visual {
    min-height: 420px;
  }

  .agent-demo,
  .drawer-panel {
    border-radius: 24px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 18px);
    padding: 8px;
  }

  .brand span {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    min-width: 0;
    gap: 6px;
  }

  .header-music-control {
    display: none;
  }

  .lang-toggle {
    width: 74px;
    height: 34px;
    padding: 0 10px;
  }

  .hero,
  .cases,
  .agent-section,
  .contact,
  .story,
  .protocol-story {
    width: min(100% - 18px, 1120px);
  }

  .hero {
    gap: 28px;
    padding: 112px 0 56px;
  }

  h1 {
    font-size: clamp(42px, 17vw, 66px);
    line-height: 0.96;
  }

  .hero-text,
  .stage-copy p,
  .agent-section p,
  .contact p {
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions,
  .contact-actions,
  .chat-form {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .chat-form button {
    width: 100%;
    min-height: 48px;
  }

  .hero-card {
    min-height: 520px;
    padding: 22px;
    border-radius: 30px;
  }

  .card-label {
    font-size: 10px;
  }

  .hero-card h2 {
    max-width: 100%;
    font-size: clamp(30px, 11vw, 40px);
  }

  .hero-card ul {
    right: 16px;
    bottom: 18px;
    left: 16px;
    gap: 10px;
  }

  .hero-card li {
    gap: 10px;
    padding: 13px 14px;
  }

  .hero-card li span {
    max-width: 58%;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .protocol-copy {
    padding: 28px 22px 0;
  }

  .protocol-copy h2,
  .stage-copy h2,
  .agent-section h2,
  .contact h2 {
    font-size: clamp(34px, 13vw, 52px);
  }

  .artifact {
    display: none;
  }

  .stage-visual {
    min-height: 360px;
    border-radius: 30px;
  }

  .floating-word {
    font-size: 13px;
  }

  .case-card,
  .role-card,
  .why-card,
  .china-card,
  .thirty-card,
  .work-card {
    padding: 22px;
    border-radius: 24px;
  }

  .message {
    max-width: 100%;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .compact-chat {
    height: 420px;
  }

  .drawer-panel {
    width: min(100% - 18px, 640px);
    max-height: calc(100vh - 20px);
    min-height: calc(100vh - 20px);
    padding: 20px;
  }

  .drawer-chat {
    max-height: none;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .cursor-cross,
  .custom-cursor {
    display: none;
  }

  .red-seal {
    width: 58px;
    height: 58px;
    margin: 0 0 20px;
    font-size: 12px;
    transform: rotate(-4deg);
  }

  .vertical-note,
  .artifact,
  .story-chip,
  .floating-word {
    display: none !important;
  }

  .protocol-story,
  .story {
    min-height: auto;
    padding: 42px 0;
  }

  .protocol-sticky,
  .sticky-stage {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    overflow: visible;
  }

  .protocol-copy,
  .stage-copy {
    max-width: 100%;
    padding: 28px 18px 0;
  }

  .protocol-console,
  .protocol-panel {
    width: 100%;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .protocol-scene-rail,
  .story-flight-rail {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    gap: 14px;
    height: auto;
    margin: 20px 18px 0;
    pointer-events: auto;
  }

  .protocol-scene,
  .story-step {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 0;
    padding: 22px;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .protocol-scene h3,
  .story-step h3 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .protocol-scene p,
  .story-step p {
    font-size: 15px;
    line-height: 1.6;
  }

  .stage-visual {
    min-height: 300px;
  }

  .world-grid,
  .role-grid,
  .case-grid,
  .why-grid,
  .thirty-grid {
    grid-template-columns: 1fr !important;
  }

  .world-card,
  .case-card,
  .role-grid article {
    min-height: auto;
    transform: none !important;
  }

  .world-card h3 {
    margin-top: 24px;
  }

  .case-card:hover,
  .case-card.is-open {
    transform: none;
  }

  .case-details dd {
    overflow-wrap: anywhere;
  }

  .agent-section,
  .cases,
  .resume-world,
  .why-hire,
  .china-edge,
  .contact {
    padding: 58px 0;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand span {
    max-width: 108px;
  }

  .hero-card {
    min-height: 500px;
  }

  .profile-orb {
    top: 44%;
    width: 210px;
    height: 210px;
  }

  .agent-pulse {
    inset: -62px;
  }

  .hero-card li strong,
  .hero-card li span {
    font-size: 13px;
  }

  .protocol-scene {
    padding: 22px;
  }
}

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