:root {
  --bg: #05070c;
  --bg-2: #090d16;
  --panel: #0d1220;
  --panel-2: #121827;
  --text: #f4f7ff;
  --muted: rgba(244, 247, 255, 0.62);
  --line: rgba(244, 247, 255, 0.14);
  --cool: #f5f7ff;
  --ink: #090d16;
  --ink-muted: #667085;
  --blue: #2f6bff;
  --blue-2: #00b8ff;
  --acid: #c8ff00;
  --wine: #7b1232;
  --hot: #ff3d81;
  --tone: #2f6bff;
  --tone-2: #00b8ff;
  --tone-ink: #ffffff;
  --page-x: clamp(28px, 6.5vw, 104px);
  --page-x-mobile: 20px;
}

body[data-mode="interface"] {
  --tone: #2f6bff;
  --tone-2: #00e5ff;
  --tone-ink: #ffffff;
}

body[data-mode="brand"] {
  --tone: #c8ff00;
  --tone-2: #2f6bff;
  --tone-ink: #05070c;
}

body[data-mode="operation"] {
  --tone: #ff3d81;
  --tone-2: #2f6bff;
  --tone-ink: #ffffff;
}

body[data-mode="presentation"] {
  --tone: #00e5ff;
  --tone-2: #c8ff00;
  --tone-ink: #05070c;
}

body[data-mode="focus"] {
  --blue: #6d5cff;
  --blue-2: #ff3d81;
  --acid: #00ffd0;
  --wine: #31116f;
}

body[data-mode="order"] {
  --blue: #00a3ff;
  --blue-2: #5bffb8;
  --acid: #f7ff4a;
  --wine: #14213d;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 108px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.75;
}

body.modal-open {
  overflow: hidden;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(rgba(244, 247, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 255, 0.038) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

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

button {
  color: inherit;
  font: inherit;
}

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--acid), var(--hot));
}

.light {
  position: fixed;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.22), transparent 66%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.site-header {
  position: fixed;
  inset: 18px var(--page-x) auto;
  z-index: 70;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.62);
  color: var(--text);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 12, 0.9);
  border-color: rgba(244, 247, 255, 0.2);
}

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

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  font-size: 13px;
  font-weight: 950;
}

.brand strong {
  font-size: 14px;
  font-weight: 760;
}

.site-nav {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(244, 247, 255, 0.08);
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  color: rgba(244, 247, 255, 0.74);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--text);
  color: var(--bg);
  outline: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.menu-toggle span {
  grid-area: 1 / 1;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: clamp(48px, 7vw, 128px);
  align-items: center;
  padding: 118px var(--page-x) 38px;
  background:
    radial-gradient(circle at 74% 24%, color-mix(in srgb, var(--tone) 38%, transparent), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(200, 255, 0, 0.12), transparent 26%),
    radial-gradient(circle at 24% 78%, rgba(123, 18, 50, 0.55), transparent 34%),
    linear-gradient(135deg, #05070c 0%, #090d16 54%, #05070c 100%);
  color: var(--text);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 94px var(--page-x) 38px;
  border: 1px solid rgba(244, 247, 255, 0.1);
  pointer-events: none;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 660px;
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 1.1;
  font-weight: 950;
  text-align: left;
}

h2 {
  max-width: 980px;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.22;
  font-weight: 930;
  text-align: left;
}

h3 {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.18;
  font-weight: 930;
  text-align: left;
}

.lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.85;
}

.hero-copy {
  padding-left: clamp(0px, 0.8vw, 14px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-proof span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(244, 247, 255, 0.06);
  color: rgba(244, 247, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.mode-switch {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 44px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 247, 255, 0.08);
  backdrop-filter: blur(12px);
}

.mode-switch button {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 247, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.mode-switch button:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.mode-switch button.is-active {
  background: var(--tone);
  color: var(--tone-ink);
}

.hero-art {
  position: relative;
  min-height: min(68vw, 640px);
  min-width: 0;
  perspective: 1500px;
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.seal {
  position: absolute;
  top: 10%;
  right: 4%;
  z-index: 9;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 18px;
  background: var(--acid);
  color: var(--bg);
  font-weight: 950;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
  transform: translateZ(190px) rotate(8deg);
  box-shadow: 0 18px 60px rgba(200, 255, 0, 0.22);
}

.hero-halo {
  position: absolute;
  inset: 10% 5%;
  border: 1px solid rgba(244, 247, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 247, 255, 0.12), transparent 34%),
    conic-gradient(from 70deg, transparent 0 15%, color-mix(in srgb, var(--tone) 42%, transparent) 15% 28%, transparent 28% 52%, color-mix(in srgb, var(--tone-2) 34%, transparent) 52% 64%, transparent 64% 100%);
  box-shadow: inset 0 0 88px rgba(244, 247, 255, 0.08);
  animation: hero-turn 24s linear infinite;
}

.hero-halo::before,
.hero-halo::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(244, 247, 255, 0.12);
  border-radius: 50%;
}

.hero-halo::after {
  inset: 34%;
  border-color: color-mix(in srgb, var(--tone) 44%, transparent);
}

.hero-screen {
  position: absolute;
  z-index: 3;
  left: 9%;
  top: 16%;
  width: 74%;
  min-height: 54%;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 255, 0.2);
  border-radius: clamp(28px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, color-mix(in srgb, var(--tone) 84%, #141a26), color-mix(in srgb, var(--tone-2) 30%, #07101c));
  background-size:
    34px 34px,
    34px 34px,
    auto;
  box-shadow:
    0 36px 130px color-mix(in srgb, var(--tone) 25%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateZ(88px);
}

.hero-screen::before {
  content: "";
  position: absolute;
  inset: -45% -30%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
  opacity: 0.42;
  transform: translateX(-40%);
  animation: hero-gloss 5.5s ease-in-out infinite;
}

.hero-screen span,
.hero-mode-card span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-screen strong {
  position: absolute;
  right: clamp(22px, 4vw, 42px);
  bottom: clamp(20px, 4vw, 38px);
  z-index: 2;
  color: #fff;
  font-size: clamp(68px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-wire {
  position: absolute;
  left: clamp(22px, 4vw, 42px);
  bottom: clamp(26px, 5vw, 54px);
  z-index: 2;
  width: min(220px, 42%);
  aspect-ratio: 1.45;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
}

.hero-wire i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-wire i:nth-child(1) {
  left: 14%;
  top: 20%;
  width: 28%;
  height: 12px;
  background: var(--acid);
}

.hero-wire i:nth-child(2) {
  left: 14%;
  top: 48%;
  width: 68%;
  height: 10px;
}

.hero-wire i:nth-child(3) {
  left: 14%;
  top: 67%;
  width: 46%;
  height: 10px;
}

.hero-scan {
  position: absolute;
  left: 12%;
  top: 13%;
  z-index: 6;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  box-shadow: 0 0 30px rgba(200, 255, 0, 0.66);
  transform: translateZ(170px);
  animation: hero-scan 4.2s ease-in-out infinite;
}

.hero-mode-card {
  position: absolute;
  right: 8%;
  top: 72%;
  z-index: 7;
  width: min(320px, 46%);
  border: 1px solid rgba(244, 247, 255, 0.16);
  border-radius: 999px;
  padding: 14px 18px;
  background: rgba(10, 15, 26, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
  transform: translateZ(142px);
}

.hero-mode-card strong {
  display: inline-block;
  margin: 0 10px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.hero-mode-card p {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hero-status {
  position: absolute;
  left: 5%;
  bottom: 9%;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(244, 247, 255, 0.16);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(10, 15, 26, 0.74);
  color: rgba(244, 247, 255, 0.7);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(18px);
  transform: translateZ(150px);
}

.hero-status b {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 22px color-mix(in srgb, var(--tone) 70%, transparent);
}

.paper {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 255, 0.16);
  border-radius: 18px;
  color: var(--text);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 247, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.48;
}

.paper span {
  position: relative;
  z-index: 2;
  color: rgba(244, 247, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.paper-main {
  inset: 0 11% auto 4%;
  min-height: 56%;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(0, 184, 255, 0.28)),
    rgba(244, 247, 255, 0.08);
}

.paper-main::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(244, 247, 255, 0.22);
  border-radius: 14px;
}

.paper-main strong {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  color: white;
  font-size: clamp(62px, 8vw, 110px);
  line-height: 1;
}

.project-frame {
  position: absolute;
  z-index: 2;
  left: 9%;
  top: 28%;
  width: 46%;
  min-height: 38%;
  border: 1px solid rgba(244, 247, 255, 0.22);
  border-radius: 16px;
  background: rgba(5, 7, 12, 0.12);
}

.project-frame i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(244, 247, 255, 0.28);
}

.project-frame i:nth-child(1) {
  left: 10%;
  top: 16%;
  width: 24%;
  height: 14px;
  background: var(--acid);
}

.project-frame i:nth-child(2) {
  right: 10%;
  top: 16%;
  width: 14%;
  height: 14px;
  background: var(--blue);
}

.project-frame i:nth-child(3) {
  left: 10%;
  top: 42%;
  width: 78%;
  height: 12px;
}

.project-frame i:nth-child(4) {
  left: 10%;
  top: 62%;
  width: 56%;
  height: 12px;
}

.project-frame i:nth-child(5) {
  right: 10%;
  bottom: 14%;
  width: 20px;
  height: 20px;
  background: var(--hot);
}

.project-frame i:nth-child(6) {
  left: 10%;
  bottom: 17%;
  width: 28%;
  height: 10px;
}

.measure-line {
  position: absolute;
  z-index: 2;
  top: 22%;
  right: 9%;
  width: 32%;
  height: 1px;
  background: rgba(244, 247, 255, 0.3);
}

.measure-line b {
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
}

.measure-line b:nth-child(1) {
  left: 0;
}

.measure-line b:nth-child(2) {
  left: 48%;
  background: var(--blue);
}

.measure-line b:nth-child(3) {
  right: 0;
  background: var(--text);
}

.paper-main strong,
.paper-brand strong,
.hero-screen strong,
.hero-mode-card strong,
.hero-mode-card p,
.hero-status span,
[data-hero-title],
[data-hero-lead],
[data-paper-label] {
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.is-switching [data-hero-title],
.is-switching [data-hero-lead],
.is-switching .hero-screen strong,
.is-switching .hero-mode-card strong,
.is-switching .hero-mode-card p,
.is-switching .hero-status span,
.is-switching [data-paper-label] {
  opacity: 0;
  transform: translateY(8px);
}

.paper-ui {
  left: 0;
  bottom: 0;
  width: 46%;
  min-height: 34%;
  padding: 18px;
  background: rgba(13, 18, 32, 0.82);
}

.paper-ui em {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 18px;
  color: rgba(244, 247, 255, 0.42);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.paper-ui i {
  position: relative;
  z-index: 2;
  display: block;
  height: 30px;
  margin-top: 14px;
  border-radius: 8px;
  background: rgba(244, 247, 255, 0.16);
}

.paper-ui i:first-of-type {
  width: 78%;
  height: 60px;
  background: var(--acid);
}

.paper-ui i:nth-of-type(2) {
  width: 92%;
}

.paper-ui i:nth-of-type(3) {
  width: 54%;
}

.ui-dots {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 7px;
}

.ui-dots b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(244, 247, 255, 0.32);
}

.ui-dots b:nth-child(1) {
  background: var(--acid);
}

.ui-dots b:nth-child(2) {
  background: var(--blue);
}

.ui-dots b:nth-child(3) {
  background: var(--hot);
}

.paper-brand {
  right: 0;
  bottom: 12%;
  width: 55%;
  min-height: 34%;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(123, 18, 50, 0.96), rgba(255, 61, 129, 0.18)),
    var(--wine);
}

.paper-brand strong {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 16px;
  color: white;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 1;
}

.scope-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.scope-tags b {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 247, 255, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(244, 247, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.scope-tags b:first-child {
  background: var(--acid);
  color: var(--bg);
  border-color: transparent;
}

.hero-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  border-top: 0;
  padding-top: 0;
  color: var(--muted);
  font-size: 14px;
}

.enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background:
    linear-gradient(90deg, rgba(244, 247, 255, 0.08), rgba(244, 247, 255, 0.03)),
    rgba(244, 247, 255, 0.08);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.34) 48%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 220ms ease,
    transform 520ms ease;
}

.enter::after {
  content: "";
  position: relative;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: transparent;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.enter:hover,
.enter:focus-visible {
  border-color: transparent;
  background: var(--acid);
  color: var(--bg);
  outline: 0;
  transform: translateY(-3px);
  box-shadow: 0 24px 80px rgba(200, 255, 0, 0.18);
}

.enter:hover::before,
.enter:focus-visible::before {
  opacity: 1;
  transform: translateX(120%);
}

.enter:hover::after,
.enter:focus-visible::after {
  transform: translateX(3px) rotate(45deg);
}

.hero-bottom > span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(244, 247, 255, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(244, 247, 255, 0.04);
}

.ticker {
  overflow: hidden;
  background: var(--acid);
  color: var(--bg);
}

.ticker div {
  display: flex;
  width: max-content;
  animation: ticker 20s linear infinite;
}

.ticker span {
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(32px, 6vw, 80px);
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 950;
  white-space: nowrap;
}

.ticker span:nth-child(2n) {
  color: var(--blue);
}

.work,
.logic,
.contact {
  position: relative;
  z-index: 1;
  padding: clamp(96px, 12vw, 168px) var(--page-x);
}

.section-title {
  display: block;
  margin-bottom: clamp(48px, 6vw, 84px);
  text-align: left;
}

.section-title h2 {
  max-width: 980px;
}

.work-wall {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr 1.08fr;
  gap: 20px;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  --mag-x: 0px;
  --mag-y: 0px;
  --card-hover: var(--cool);
  --card-hover-text: var(--ink);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 255, 0.14);
  border-radius: 18px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(244, 247, 255, 0.07), rgba(244, 247, 255, 0.025)),
    var(--panel);
  transform: translate(var(--mag-x), var(--mag-y)) translateZ(0);
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.work-card::before {
  content: "";
  position: absolute;
  right: -74px;
  bottom: -74px;
  width: 230px;
  height: 230px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.16;
  transition: transform 300ms ease;
}

.work-card::after {
  content: "查看作品";
  position: absolute;
  right: 28px;
  bottom: 28px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 247, 255, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.work-card:nth-child(2) {
  --card-hover: var(--acid);
  --card-hover-text: var(--ink);
  margin-top: 76px;
}

.work-card:nth-child(3) {
  --card-hover: var(--hot);
  --card-hover-text: var(--text);
  margin-top: 30px;
}

.work-card:nth-child(1) {
  --card-hover: var(--blue);
  --card-hover-text: var(--text);
}

.work-card:nth-child(4) {
  --card-hover: #00ffd0;
  --card-hover-text: var(--ink);
}

.work-card:hover,
.work-card:focus-visible {
  z-index: 2;
  background: var(--card-hover);
  color: var(--card-hover-text);
  border-color: transparent;
  outline: 0;
  transform: translate(var(--mag-x), calc(var(--mag-y) - 14px)) scale(1.018);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(244, 247, 255, 0.12) inset;
}

.work-card:hover::before,
.work-card:focus-visible::before {
  transform: scale(2.5);
}

.work-card:hover::after,
.work-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
  color: currentColor;
  border-color: currentColor;
}

.work-card span {
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
}

.work-card:hover span,
.work-card:focus-visible span {
  color: currentColor;
}

.card-icon {
  position: absolute;
  top: 70px;
  right: 34px;
  width: clamp(112px, 9vw, 170px);
  height: clamp(78px, 6.4vw, 112px);
  border: 1px solid rgba(244, 247, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(244, 247, 255, 0.1), rgba(244, 247, 255, 0.025)),
    rgba(5, 7, 12, 0.12);
  box-shadow: inset 0 1px 0 rgba(244, 247, 255, 0.12);
  transition:
    transform 260ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.card-icon::before,
.card-icon::after,
.card-icon i {
  content: "";
  position: absolute;
  display: block;
  transition:
    transform 260ms ease,
    opacity 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.work-card:hover .card-icon,
.work-card:focus-visible .card-icon {
  transform: translateY(-14px) scale(1.08);
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 22px 70px rgba(0, 0, 0, 0.2);
}

.icon-interface {
  background-image:
    linear-gradient(rgba(244, 247, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.icon-interface i {
  width: 26%;
  height: 20%;
  border-radius: 999px;
  background: var(--acid);
}

.icon-interface i:nth-child(1) {
  top: 18%;
  left: 12%;
}

.icon-interface i:nth-child(2) {
  top: 18%;
  right: 14%;
  width: 16%;
  background: var(--blue);
}

.icon-interface i:nth-child(3) {
  left: 12%;
  bottom: 18%;
  width: 54%;
  background: rgba(244, 247, 255, 0.28);
}

.icon-interface i:nth-child(4) {
  right: 14%;
  bottom: 18%;
  width: 16%;
  background: var(--hot);
}

.icon-brand::before {
  inset: 20%;
  border: 2px solid var(--acid);
  border-radius: 18px;
  transform: rotate(45deg);
}

.icon-brand::after {
  inset: 33%;
  border-radius: 50%;
  background: var(--blue);
}

.icon-brand i:nth-child(1),
.icon-brand i:nth-child(2),
.icon-brand i:nth-child(3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.58;
}

.icon-brand i:nth-child(1) {
  left: 18%;
  bottom: 18%;
}

.icon-brand i:nth-child(2) {
  right: 18%;
  top: 18%;
}

.icon-brand i:nth-child(3) {
  right: 18%;
  bottom: 18%;
}

.icon-operation::before {
  inset: 17% 24%;
  border: 2px solid rgba(244, 247, 255, 0.34);
  border-radius: 50%;
}

.icon-operation::after {
  width: 42px;
  height: 42px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: var(--hot);
  transform: translate(-50%, -50%);
}

.icon-operation i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--acid);
}

.icon-operation i:nth-child(1) {
  top: 18%;
  left: 28%;
}

.icon-operation i:nth-child(2) {
  right: 20%;
  top: 44%;
  background: var(--blue);
}

.icon-operation i:nth-child(3) {
  left: 24%;
  bottom: 18%;
}

.icon-presentation::before {
  left: 14%;
  right: 14%;
  bottom: 20%;
  height: 2px;
  background: rgba(244, 247, 255, 0.34);
}

.icon-presentation i {
  bottom: 22%;
  width: 13%;
  border-radius: 999px 999px 0 0;
  background: var(--acid);
}

.icon-presentation i:nth-child(1) {
  left: 18%;
  height: 34%;
}

.icon-presentation i:nth-child(2) {
  left: 38%;
  height: 54%;
  background: var(--blue);
}

.icon-presentation i:nth-child(3) {
  left: 58%;
  height: 42%;
  background: var(--hot);
}

.icon-presentation i:nth-child(4) {
  left: 78%;
  height: 66%;
}

.work-card:hover .icon-brand::before,
.work-card:focus-visible .icon-brand::before {
  transform: rotate(45deg) scale(1.12);
}

.work-card:hover .icon-operation::before,
.work-card:focus-visible .icon-operation::before {
  transform: rotate(18deg) scale(1.08);
}

.work-card:hover .icon-presentation i:nth-child(2),
.work-card:focus-visible .icon-presentation i:nth-child(2) {
  transform: translateY(-10px);
}

.work-card h3 {
  margin-top: 176px;
}

.work-card p {
  max-width: 300px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.work-card:hover p,
.work-card:focus-visible p {
  color: currentColor;
  opacity: 0.72;
}

.case-stage {
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(244, 247, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 72% 22%, rgba(200, 255, 0, 0.24), transparent 24%),
    linear-gradient(135deg, rgba(47, 107, 255, 0.58), rgba(9, 13, 22, 0.9));
  background-size:
    36px 36px,
    36px 36px,
    auto,
    auto;
  overflow: hidden;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.case-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.case-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 107, 255, 0.22), transparent 34%),
    rgba(5, 7, 12, 0.76);
  backdrop-filter: blur(24px);
}

.case-panel {
  position: relative;
  width: min(1320px, 100%);
  max-height: min(860px, calc(100svh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(244, 247, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(244, 247, 255, 0.1), rgba(244, 247, 255, 0.035)),
    var(--bg-2);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 260ms ease;
}

.case-modal[aria-hidden="false"] .case-panel {
  transform: translateY(0) scale(1);
}

.case-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3.6vw, 46px);
  border-bottom: 1px solid var(--line);
}

.case-panel-head h2 {
  max-width: 780px;
}

.case-close {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(244, 247, 255, 0.08);
  cursor: pointer;
}

.case-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.case-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.case-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.case-panel-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 3vw, 38px);
  padding: clamp(24px, 3.6vw, 46px);
  overflow: auto;
}

.case-detail {
  display: grid;
  align-content: start;
  gap: 24px;
}

.case-detail > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.8;
}

.screen {
  position: absolute;
  border: 1px solid rgba(244, 247, 255, 0.18);
  border-radius: 18px;
  background: rgba(5, 7, 12, 0.58);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.large-screen {
  inset: 12% 8% auto 10%;
  min-height: 52%;
  padding: 22px;
}

.small-screen {
  right: 12%;
  bottom: 10%;
  width: 44%;
  min-height: 34%;
  padding: 18px;
}

.screen i {
  display: block;
  height: 18px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(244, 247, 255, 0.2);
}

.screen i:first-child {
  width: 64%;
  height: 54px;
  background: var(--acid);
}

.screen i:nth-child(2) {
  width: 82%;
}

.screen i:nth-child(3) {
  width: 46%;
}

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

.case-notes article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 247, 255, 0.05);
}

.case-notes strong {
  color: var(--text);
  font-size: 18px;
}

.case-notes p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.case-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-slots span {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(244, 247, 255, 0.26);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.case-modal[data-case-style="brand"] .case-stage {
  background:
    radial-gradient(circle at 32% 42%, rgba(200, 255, 0, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(255, 61, 129, 0.4), rgba(9, 13, 22, 0.9));
}

.case-modal[data-case-style="operation"] .case-stage {
  background:
    radial-gradient(circle at 62% 32%, rgba(255, 61, 129, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(47, 107, 255, 0.36), rgba(9, 13, 22, 0.94));
}

.case-modal[data-case-style="presentation"] .case-stage {
  background:
    radial-gradient(circle at 74% 22%, rgba(0, 255, 208, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(200, 255, 0, 0.24), rgba(9, 13, 22, 0.94));
}

.logic {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: clamp(48px, 8vw, 120px);
  background: var(--cool);
  color: var(--ink);
}

.logic .eyebrow,
.contact .eyebrow {
  color: var(--blue);
}

.logic-head {
  position: sticky;
  top: 118px;
  align-self: start;
}

.logic-orbit {
  position: relative;
  width: min(420px, 76vw);
  aspect-ratio: 1.35;
  margin-top: clamp(44px, 6vw, 84px);
  border: 1px solid rgba(9, 13, 22, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 107, 255, 0.12), transparent 34%),
    linear-gradient(rgba(9, 13, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 13, 22, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.46);
  background-size:
    auto,
    28px 28px,
    28px 28px,
    auto;
  box-shadow: 0 28px 90px rgba(9, 13, 22, 0.08);
  overflow: hidden;
}

.logic-orbit::before,
.logic-orbit::after,
.logic-orbit span,
.logic-orbit i {
  content: "";
  position: absolute;
  display: block;
}

.logic-orbit::before {
  inset: 16%;
  border: 1px solid rgba(47, 107, 255, 0.28);
  border-radius: 50%;
  animation: logic-spin 16s linear infinite;
}

.logic-orbit::after {
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, var(--blue), rgba(47, 107, 255, 0.24)),
    var(--blue);
  box-shadow: 0 22px 70px rgba(47, 107, 255, 0.24);
  transform: translate(-50%, -50%) rotate(14deg);
}

.logic-orbit span {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 48px rgba(9, 13, 22, 0.12);
}

.logic-orbit span:nth-child(1) {
  left: 16%;
  top: 18%;
  background: var(--acid);
  animation: logic-float 5.4s ease-in-out infinite;
}

.logic-orbit span:nth-child(2) {
  right: 14%;
  top: 30%;
  background: var(--hot);
  animation: logic-float 6.2s ease-in-out infinite reverse;
}

.logic-orbit span:nth-child(3) {
  left: 38%;
  bottom: 13%;
  background: var(--text);
  animation: logic-float 5.8s ease-in-out infinite;
}

.logic-orbit i {
  right: 22%;
  bottom: 18%;
  width: 96px;
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.72;
  transform: rotate(-18deg);
}

.logic-flow {
  display: grid;
  gap: 18px;
}

.logic-step {
  min-height: 132px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(9, 13, 22, 0.12);
  border-radius: 18px;
  padding: 24px;
  background: white;
  box-shadow: 0 20px 70px rgba(9, 13, 22, 0.08);
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.logic-step:hover {
  transform: translateX(8px);
  background: var(--bg);
  color: var(--text);
  border-color: transparent;
}

.logic-step strong {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.logic-step:nth-child(2) strong {
  color: var(--hot);
}

.logic-step:nth-child(3) strong {
  color: var(--wine);
}

.logic-step:nth-child(4) strong {
  color: var(--acid);
}

.logic-step h3 {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.18;
}

.logic-step p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.75;
}

.logic-step:hover p {
  color: var(--muted);
}

.contact {
  background:
    radial-gradient(circle at 78% 12%, rgba(47, 107, 255, 0.2), transparent 30%),
    var(--bg);
  color: var(--text);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(420px, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(50px, 7vw, 92px);
}

.contact-copy {
  position: sticky;
  top: 118px;
}

.contact h2 {
  max-width: 560px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.2;
}

.contact-copy p:last-child {
  max-width: 460px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.contact-panel {
  display: grid;
  gap: 20px;
}

.diagnosis-card {
  position: relative;
  min-height: 250px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 255, 0.18);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 42px);
  background:
    radial-gradient(circle at 82% 18%, rgba(200, 255, 0, 0.28), transparent 30%),
    radial-gradient(circle at 18% 90%, rgba(47, 107, 255, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(9, 13, 22, 0.9));
  color: var(--text);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
  transform: translateZ(0);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    filter 260ms ease;
}

.diagnosis-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244, 247, 255, 0.18);
  border-radius: 18px;
  pointer-events: none;
  transition:
    border-color 260ms ease,
    transform 260ms ease;
}

.diagnosis-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(244, 247, 255, 0.18);
  border-radius: 50%;
  transition:
    transform 340ms ease,
    border-color 260ms ease,
    opacity 260ms ease;
}

.diagnosis-card > span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 52px;
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, var(--acid), transparent);
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.5);
  animation: cta-line 2.8s ease-in-out infinite;
}

.diagnosis-card:hover,
.diagnosis-card:focus-visible {
  border-color: rgba(200, 255, 0, 0.52);
  outline: 0;
  transform: translateY(-8px);
  box-shadow:
    0 40px 130px rgba(47, 107, 255, 0.25),
    0 0 0 1px rgba(200, 255, 0, 0.14) inset;
  filter: saturate(1.08);
}

.diagnosis-card:hover::before,
.diagnosis-card:focus-visible::before {
  border-color: rgba(244, 247, 255, 0.32);
  transform: scale(0.985);
}

.diagnosis-card:hover::after,
.diagnosis-card:focus-visible::after {
  transform: scale(1.25) translate(-16px, -16px);
  border-color: rgba(200, 255, 0, 0.3);
  opacity: 0.86;
}

.diagnosis-card span,
.qr-card span,
.contact-line span {
  display: block;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnosis-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 34px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
}

.diagnosis-card p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(244, 247, 255, 0.68);
  font-size: 16px;
  line-height: 1.75;
}

.diagnosis-card b {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--acid);
  color: var(--bg);
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 18px 54px rgba(200, 255, 0, 0.22);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.diagnosis-card b::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  animation: arrow-nudge 1.5s ease-in-out infinite;
}

.diagnosis-card:hover b,
.diagnosis-card:focus-visible b {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(200, 255, 0, 0.28);
}

.diagnosis-card:hover b::after,
.diagnosis-card:focus-visible b::after {
  animation-duration: 0.8s;
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(260px, 1fr);
  gap: 20px;
}

.qr-card,
.contact-line {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(244, 247, 255, 0.08), rgba(244, 247, 255, 0.03)),
    rgba(244, 247, 255, 0.04);
}

.qr-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 190px;
  padding: 24px;
}

.qr-card img {
  width: 148px;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  border: 10px solid var(--text);
  border-radius: 18px;
  background: white;
}

.qr-card strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.1;
}

.qr-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.contact-list {
  display: grid;
  gap: 20px;
}

.contact-line {
  min-height: 85px;
  display: grid;
  align-content: center;
  padding: 20px 24px;
  color: var(--text);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.contact-line:hover,
.contact-line:focus-visible {
  border-color: rgba(244, 247, 255, 0.28);
  outline: 0;
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(244, 247, 255, 0.12), rgba(244, 247, 255, 0.04)),
    rgba(244, 247, 255, 0.06);
}

.contact-line strong {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button.primary {
  background: var(--blue);
  color: white;
}

.button.ghost {
  border-color: var(--line);
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

@keyframes logic-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes hero-gloss {
  0%,
  42% {
    transform: translateX(-55%);
  }
  72%,
  100% {
    transform: translateX(55%);
  }
}

@keyframes hero-scan {
  0%,
  100% {
    transform: translateZ(170px) translateY(0);
    opacity: 0.24;
  }
  50% {
    transform: translateZ(170px) translateY(330px);
    opacity: 0.95;
  }
}

@keyframes arrow-nudge {
  0%,
  100% {
    transform: translateX(0) rotate(45deg);
  }
  50% {
    transform: translateX(4px) rotate(45deg);
  }
}

@keyframes cta-line {
  0%,
  100% {
    opacity: 0.38;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-bottom: 42px;
  }

  .hero-art {
    min-height: 540px;
  }

  .hero-bottom {
    position: relative;
    inset: auto;
    grid-column: 1;
    margin-top: 8px;
  }

  .work-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card,
  .work-card:nth-child(2),
  .work-card:nth-child(3) {
    min-height: 360px;
    margin-top: 0;
  }

  .work-card h3 {
    margin-top: 108px;
  }

  .card-icon {
    top: 58px;
    right: 28px;
    width: clamp(118px, 20vw, 170px);
    height: clamp(82px, 14vw, 112px);
  }

  .logic,
  .contact-inner,
  .section-title {
    grid-template-columns: 1fr;
  }

  .case-panel-body,
  .case-notes {
    grid-template-columns: 1fr;
  }

  .contact h2 {
    max-width: 760px;
  }

  .contact-copy {
    position: static;
  }

  .logic-head {
    position: static;
  }

  .logic-orbit {
    width: min(360px, 100%);
    margin-top: 34px;
  }

  .actions {
    justify-content: flex-start;
  }
}

@media (hover: none), (pointer: coarse) {
  .enter:active,
  .diagnosis-card:active,
  .contact-line:active {
    transform: scale(0.985);
  }

  .work-card::after {
    opacity: 1;
    transform: translateY(0);
  }

  .work-card:active {
    background: var(--card-hover);
    color: var(--card-hover-text);
    border-color: transparent;
    transform: translateY(-6px) scale(0.99);
  }

  .work-card:active span,
  .work-card:active p {
    color: currentColor;
  }

  .work-card:active .card-icon {
    transform: translateY(-8px) scale(1.04);
  }
}

@media (max-width: 680px) {
  .site-header {
    inset: 12px 12px auto;
    border-radius: 26px;
  }

  .brand strong {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 7, 12, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

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

  .site-nav a {
    min-height: 48px;
  }

  .hero {
    min-height: auto;
    padding: 96px var(--page-x-mobile) 42px;
  }

  .hero::after {
    inset: 90px 12px 24px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.24;
  }

  h3 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .lead {
    max-width: none;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-art {
    min-height: 430px;
  }

  .seal {
    top: 5%;
    right: 5%;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 13px;
  }

  .hero-screen {
    left: 3%;
    top: 13%;
    width: 84%;
    min-height: 56%;
    border-radius: 26px;
  }

  .hero-screen strong {
    font-size: 62px;
  }

  .hero-wire {
    width: min(180px, 42%);
  }

  .hero-mode-card {
    right: 3%;
    top: 75%;
    width: 86%;
    padding: 13px 15px;
    border-radius: 999px;
  }

  .hero-mode-card p {
    display: inline;
  }

  .hero-status {
    display: none;
  }

  .hero-scan {
    width: 76%;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .work,
  .logic,
  .contact {
    padding: 72px var(--page-x-mobile);
  }

  .work-wall,
  .case-notes,
  .logic-flow,
  .contact-main {
    grid-template-columns: 1fr;
  }

  .case-modal {
    padding: 10px;
  }

  .case-panel {
    width: 100%;
    height: calc(100svh - 20px);
    max-height: none;
    border-radius: 22px;
  }

  .case-panel-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .case-panel-head {
    padding: 20px;
  }

  .case-panel-head h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .case-stage {
    min-height: 280px;
  }

  .small-screen {
    width: 58%;
  }

  .case-slots {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 300px;
    padding: 26px;
  }

  .work-card h3 {
    margin-top: 102px;
  }

  .work-card::after {
    right: 22px;
    bottom: 22px;
  }

  .card-icon {
    top: 58px;
    right: 22px;
    width: 128px;
    height: 88px;
  }

  .logic-step {
    min-height: 148px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 28px;
  }

  .logic-orbit {
    aspect-ratio: 1.65;
  }

  .diagnosis-card {
    min-height: 230px;
    padding: 28px;
  }

  .diagnosis-card strong {
    margin-top: 28px;
    font-size: clamp(30px, 8vw, 42px);
  }

  .qr-card {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 170px;
    padding: 22px;
  }

  .qr-card img {
    width: 132px;
    border-width: 8px;
  }

  .contact-line {
    min-height: 76px;
    padding: 18px 22px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .mode-switch {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 24px;
  }

  .mode-switch button {
    min-height: 40px;
  }
}

@media (max-width: 420px) {
  .site-header {
    min-height: 54px;
    padding: 6px 6px 6px 10px;
  }

  .brand span {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 44px);
  }

  .mode-switch {
    margin-top: 30px;
  }

  .hero-art {
    min-height: 390px;
  }

  .hero-screen {
    min-height: 52%;
  }

  .seal {
    right: 5%;
  }

  .hero-wire {
    display: none;
  }

  .hero-mode-card {
    width: 92%;
  }

  .ticker span {
    min-height: 58px;
    padding: 0 28px;
    font-size: 30px;
  }

  .work-card {
    min-height: 270px;
  }

  .diagnosis-card {
    min-height: 220px;
    border-radius: 20px;
    padding: 24px;
  }

  .diagnosis-card p {
    font-size: 15px;
  }

  .qr-card {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: start;
  }

  .qr-card img {
    width: min(220px, 100%);
  }

  .qr-card strong {
    margin-top: 12px;
  }

  .card-icon {
    width: 116px;
    height: 78px;
  }

  .logic-orbit {
    margin-top: 28px;
  }

  .case-stage {
    min-height: 220px;
  }
}

@media (max-width: 360px) {
  .hero-art {
    min-height: 340px;
  }

  .hero {
    padding-bottom: 44px;
  }

  .hero-screen strong {
    font-size: 52px;
  }

  .hero-mode-card {
    top: 72%;
  }

  .hero-status {
    font-size: 12px;
    padding: 10px 12px;
  }

  .diagnosis-card strong {
    font-size: 30px;
  }

  .contact-line strong {
    font-size: 20px;
  }

  .work-card {
    min-height: 250px;
  }

  .work-card h3 {
    margin-top: 88px;
  }

  .card-icon {
    width: 104px;
    height: 72px;
  }

  .case-panel-head {
    gap: 12px;
  }

  .case-close {
    width: 42px;
    height: 42px;
  }
}

@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;
  }

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