/* ============================================================
   CodeSpace Studio — Global Styles
   Tokens follow SPEC.md §5
   ============================================================ */

:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-tertiary: #1A1A24;
  --text-primary: #E8E8ED;
  --text-secondary: #6B6B7B;
  --text-tertiary: #44444F;
  --accent: #4F7AFF;
  --accent-glow: #4F7AFF33;
  --accent-soft: #4F7AFF14;
  --line: #FFFFFF0F;
  --line-strong: #FFFFFF1F;

  --font-heading: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-body: 'Inter', 'Noto Sans TC', sans-serif;
  --font-zh: 'Noto Sans TC', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration-fast: 200ms;
  --duration-med: 500ms;
  --duration-slow: 1200ms;

  --section-pad: 160px;
  --content-max: 1200px;
}

@media (max-width: 768px) {
  :root {
    --section-pad: 96px;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}

body { min-height: 100vh; }

::selection { background: var(--accent); color: var(--bg-primary); }

/* Subtle perpetual grain — gives the dark background tactile depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== Type ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

.font-mono { font-family: var(--font-mono); }
.font-zh { font-family: var(--font-zh); font-weight: 350; letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--text-secondary);
  display: inline-block;
}

/* ===== Layout ===== */
.section { position: relative; padding: var(--section-pad) 32px; }
.section-inner { max-width: var(--content-max); margin: 0 auto; position: relative; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.nav-logo svg { width: 22px; height: 22px; }
.nav-logo .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s var(--ease-smooth) infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 1; transform: scale(1.4); }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-secondary);
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color var(--duration-fast) var(--ease-smooth);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a .num { color: var(--text-tertiary); margin-right: 8px; }
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10,10,15,0.4);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.06em;
}
.nav-lang button {
  background: none; border: none; color: inherit; cursor: pointer;
  font: inherit; padding: 2px 6px; border-radius: 999px;
}
.nav-lang button.active { background: var(--text-primary); color: var(--bg-primary); }

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links a:not(.nav-lang) { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, var(--bg-primary) 85%),
    radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-soft), transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.2s forwards;
}
.hero-title {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out-expo) 0.4s forwards;
}
.hero-title .accent { color: var(--accent); font-style: italic; font-weight: 300; }
.hero-sub {
  font-family: var(--font-zh);
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--text-secondary);
  font-weight: 350;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out-expo) 0.7s forwards;
}
.hero-sub-en {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out-expo) 0.9s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1.6s var(--ease-out-expo) 1.4s forwards;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--text-secondary), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: scrollDown 2.4s var(--ease-smooth) infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

.hero-ticker {
  position: absolute;
  bottom: 40px;
  left: 32px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: fadeUp 1.6s var(--ease-out-expo) 1.6s forwards;
}
.hero-ticker .label { color: var(--text-tertiary); font-size: 10px; letter-spacing: 0.2em; }
.hero-ticker .val { letter-spacing: 0.04em; }
.hero-ticker .val .dot-live { color: var(--accent); }

.hero-meta {
  position: absolute;
  bottom: 40px;
  right: 32px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: fadeUp 1.6s var(--ease-out-expo) 1.6s forwards;
}
.hero-meta .label { color: var(--text-tertiary); font-size: 10px; letter-spacing: 0.2em; }

@media (max-width: 768px) {
  .hero-ticker, .hero-meta { display: none; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

/* ===== Philosophy ===== */
.philosophy {
  background: var(--bg-primary);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .philosophy-grid { grid-template-columns: 1fr; gap: 48px; } }

.philosophy-side {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.philosophy-side .index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
}
.philosophy-side h3 {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.philosophy-text {
  font-family: var(--font-zh);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.5;
  font-weight: 350;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}
.philosophy-text p { margin-bottom: 1.5em; }
.philosophy-text p:last-child { margin-bottom: 0; }
.philosophy-text .dim { color: var(--text-secondary); }
.philosophy-text .accent { color: var(--accent); }
.philosophy-text em {
  font-style: normal;
  position: relative;
  background: linear-gradient(to right, var(--accent), var(--accent)) no-repeat;
  background-size: 0% 1px;
  background-position: left 90%;
}

.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.reveal-line.in { opacity: 1; transform: translateY(0); }

/* ===== Spectrum ===== */
.spectrum {
  background: var(--bg-primary);
  position: relative;
}
.spectrum-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 32px;
}
.spectrum-header h2 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.spectrum-header h2 .accent { color: var(--accent); font-style: italic; font-weight: 300; }
.spectrum-header p {
  font-family: var(--font-zh);
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 380px;
  line-height: 1.7;
  font-weight: 350;
}

.spectrum-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(79,122,255,0.04), transparent 70%),
    var(--bg-secondary);
  overflow: hidden;
}

.spectrum-stage::before,
.spectrum-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
/* corner crosshairs */
.spectrum-stage::before {
  inset: 16px;
  border: 1px dashed var(--line);
  border-radius: 2px;
}

.spectrum-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.spectrum-svg .link {
  stroke: var(--line-strong);
  stroke-width: 1;
  fill: none;
  transition: stroke 0.4s var(--ease-smooth);
}
.spectrum-svg .link.lit { stroke: var(--accent); opacity: 0.6; }

.spectrum-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  opacity: 0.5;
  pointer-events: none;
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.node-disc {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--line-strong);
  position: relative;
  display: grid;
  place-items: center;
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}
.node-disc::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent-glow), transparent 30%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.node:hover .node-disc {
  transform: scale(1.15);
  border-color: var(--accent);
  box-shadow: 0 0 60px var(--accent-glow), inset 0 0 24px var(--accent-soft);
}
.node:hover .node-disc::before { opacity: 1; }

.node-art {
  width: 60px;
  height: 60px;
  position: relative;
  display: grid;
  place-items: center;
}
.node-art svg, .node-art canvas { width: 100%; height: 100%; }

.node-label {
  margin-top: 14px;
  font-family: var(--font-zh);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  font-weight: 400;
  text-align: center;
  transition: color 0.3s var(--ease-smooth);
}
.node-en {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
}
.node:hover .node-label { color: var(--text-primary); }

.node-tooltip {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-primary);
  border: 1px solid var(--accent);
  padding: 10px 14px;
  font-family: var(--font-zh);
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 0 40px var(--accent-glow);
  z-index: 5;
}
.node-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--bg-primary);
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.node:hover .node-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.node-id {
  position: absolute;
  top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
}

/* mobile spectrum cards */
@media (max-width: 900px) {
  .spectrum-stage { display: none; }
  .spectrum-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
.spectrum-mobile { display: none; }
.spectrum-card {
  border: 1px solid var(--line);
  background: var(--bg-secondary);
  padding: 24px 18px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}
.spectrum-card .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
}
.spectrum-card .title { font-family: var(--font-zh); font-size: 18px; color: var(--text-primary); }
.spectrum-card .desc { font-family: var(--font-zh); font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* ===== Craft ===== */
.craft {
  background: var(--bg-secondary);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.craft-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 120px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .craft-stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }
@media (max-width: 900px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(56px, 6.5vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-primary);
}
.stat-num .suffix { font-size: 0.5em; color: var(--accent); font-weight: 400; }
.stat-label {
  margin-top: 16px;
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 350;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.stat-en {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  margin-top: 6px;
  text-transform: uppercase;
}

.craft-domains-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.craft-domains-header h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.craft-domains-header p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tag-cloud {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.tag-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.tag-track:nth-child(2) {
  animation-direction: reverse;
  animation-duration: 80s;
}
.tag-cloud:hover .tag-track { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tag {
  font-family: var(--font-zh);
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--line-strong);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.3s var(--ease-smooth);
  background: rgba(255,255,255,0.02);
  cursor: default;
}
.tag.dim { opacity: 0.5; }
.tag:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-soft);
  opacity: 1;
}

/* ===== Contact ===== */
.contact {
  background: var(--bg-primary);
  text-align: left;
  padding-bottom: 0;
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 56px; } }

.contact-lead { font-family: var(--font-zh); font-size: clamp(28px, 3.6vw, 56px); line-height: 1.4; font-weight: 300; color: var(--text-primary); margin-bottom: 16px; letter-spacing: -0.01em;}
.contact-lead .dim { color: var(--text-secondary); }

.contact-email {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 56px 0 24px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  user-select: none;
}
.contact-email .at, .contact-email .dot { color: var(--accent); }
.contact-email::after {
  content: attr(data-copy);
  position: absolute;
  top: -22px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  text-transform: uppercase;
}
.contact-email:hover::after { opacity: 1; }
.contact-email.copied::after { content: "COPIED ✓"; opacity: 1; }

.contact-secondary {
  font-family: var(--font-zh);
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 350;
  line-height: 1.7;
}
.contact-secondary a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--text-tertiary);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease-smooth);
}
.contact-secondary a:hover { border-color: var(--accent); }

/* form */
.form {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  background: var(--bg-secondary);
}
.form-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-title .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.form-title .pill .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s var(--ease-smooth) infinite;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  color: var(--text-primary);
  font-family: var(--font-zh);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s var(--ease-smooth);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: none; min-height: 96px; line-height: 1.6; }

.submit {
  width: 100%;
  margin-top: 12px;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.submit:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}
.submit .arrow { transition: transform 0.3s var(--ease-smooth); }
.submit:hover .arrow { transform: translateX(4px); }
.submit.sent { background: var(--accent); border-color: var(--accent); color: var(--bg-primary); }

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.06em;
}
.footer-l, .footer-r { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .sep { color: var(--text-tertiary); opacity: 0.4; }
.footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--text-primary); }

/* ===== reveal utility ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
