/* ==========================================================
   Bottle Tech — site styles
   ========================================================== */

:root {
  --bg: #06070a;
  --bg-2: #0b0d12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #9aa3b2;
  --dim: #5d6573;
  --aqua: #7cf5e3;
  --violet: #a58bff;
  --grad: linear-gradient(110deg, var(--aqua) 0%, #8fd3ff 45%, var(--violet) 100%);

  --font: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(124, 245, 227, 0.3); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

html[lang="zh"] em { font-style: normal; font-family: var(--font); font-weight: inherit; white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* film grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------------- Buttons ---------------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.4s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  color: #05070a;
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 10px 40px -10px rgba(124, 245, 227, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 18px 50px -12px rgba(165, 139, 255, 0.7); }

.btn-ghost {
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }

.btn-small {
  --h: 40px;
  padding: 0 18px;
  font-size: 14px;
  color: #05070a;
  background: var(--text);
}
.btn-small:hover { background: #fff; transform: translateY(-1px); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 var(--gutter);
  transition: background 0.4s, border-color 0.4s, height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand-name span { color: var(--muted); font-weight: 400; margin-left: 1px; }

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font: 500 13px var(--mono);
  cursor: pointer;
  transition: border-color 0.25s;
}
.lang-toggle:hover { border-color: var(--line-2); }
.lang-toggle .sep { opacity: 0.5; }
.lang-toggle [data-lang] { transition: color 0.25s; }
html[lang="en"] .lang-toggle [data-lang="en"],
html[lang="zh"] .lang-toggle [data-lang="zh"] { color: var(--text); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
body.menu-open .menu-toggle span:first-child { top: 19px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--gutter);
  background: rgba(6, 7, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu a {
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open .mobile-menu a { transform: none; opacity: 1; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.15s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-glow {
  position: absolute;
  right: 4%;
  top: 50%;
  width: min(60vw, 760px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background:
    radial-gradient(closest-side, rgba(124, 245, 227, 0.16), transparent 70%),
    radial-gradient(closest-side at 60% 70%, rgba(165, 139, 255, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 500 12.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(124, 245, 227, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 245, 227, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(124, 245, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 245, 227, 0); }
}

.hero-title {
  margin-top: 28px;
  max-width: 9.4em;
  font-size: clamp(44px, 6vw, 90px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.hero-title em { font-size: 1.08em; line-height: 0.8; }
html[lang="zh"] .hero-title { line-height: 1.14; letter-spacing: -0.02em; max-width: 9em; }
html[lang="zh"] .hero-title em { font-size: 1em; }

.hero-sub {
  margin-top: 30px;
  max-width: 34em;
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.65;
}

.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 500 11px var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-cue i {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--dim), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--aqua);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 110%; } }

/* ---------------- Marquee ---------------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track b { color: var(--aqua); font-weight: 400; font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */
.section { position: relative; padding: clamp(88px, 11vw, 150px) 0; }

.section-head { max-width: 920px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 12.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.kicker .num {
  color: var(--aqua);
  padding-right: 14px;
  border-right: 1px solid var(--line-2);
}

.section-title {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.04em;
}
html[lang="zh"] .section-title { line-height: 1.22; letter-spacing: -0.01em; }

.section-lede {
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 32em;
}

/* ---------------- Cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 34px 30px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 245, 227, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(165, 139, 255, 0.7), rgba(124, 245, 227, 0.4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { transform: translateY(-4px); }

.card-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(124,245,227,0.12), rgba(165,139,255,0.08));
  border: 1px solid var(--line);
  margin-bottom: 44px;
}
.card-icon svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--aqua);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon svg .dim { stroke: var(--violet); opacity: 0.8; }

.card h3 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.card-tag {
  margin-top: auto;
  padding-top: 28px;
  font: 400 12px var(--mono);
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* ---------------- Manifesto ---------------- */
.manifesto {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0;
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.manifesto-text {
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 19em;
}
html[lang="zh"] .manifesto-text { line-height: 1.4; letter-spacing: 0; max-width: 16em; }
.manifesto-text .w {
  color: rgba(238, 241, 246, 0.14);
  transition: color 0.35s ease-out;
}
.manifesto-text .w.on { color: var(--text); }
.manifesto-text .w.hl.on {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Steps ---------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: var(--progress, 0%);
  background: var(--grad);
  transition: width 0.2s linear;
}
.step {
  padding: 36px 28px 0 0;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step.lit::before {
  background: var(--aqua);
  border-color: var(--aqua);
  box-shadow: 0 0 16px rgba(124, 245, 227, 0.8);
}
.step-num {
  font: 500 13px var(--mono);
  color: var(--dim);
}
.step h3 {
  margin: 18px 0 12px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.step p { color: var(--muted); font-size: 15.5px; max-width: 18em; }

/* ---------------- Lab ---------------- */
.lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, #000, transparent 75%);
  pointer-events: none;
}
.lab-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.lab-copy .section-lede { margin-top: 26px; }

.checks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}
.checks li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3L17 9' fill='none' stroke='%2306070a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--grad);
}

.terminal {
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(17, 20, 27, 0.92), rgba(9, 11, 15, 0.96));
  box-shadow: 0 40px 120px -30px rgba(124, 245, 227, 0.22), 0 0 0 1px rgba(0,0,0,0.6);
  overflow: hidden;
  min-width: 0;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3a; }
.terminal-bar span {
  margin-left: auto; margin-right: auto;
  transform: translateX(-28px);
  font: 400 12px var(--mono);
  color: var(--dim);
}
.terminal-body {
  margin: 0;
  padding: 24px 24px 28px;
  min-height: 360px;
  font: 400 13.5px/1.9 var(--mono);
  color: var(--muted);
  white-space: pre-wrap;
  overflow-x: auto;
}
.terminal-body .p { color: var(--aqua); }
.terminal-body .a { color: var(--violet); }
.terminal-body .ok { color: #6ee7a0; }
.terminal-body .hi { color: var(--text); }
.terminal-body .fin {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}
.terminal-body .cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  vertical-align: -3px;
  background: var(--aqua);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- Principles ---------------- */
.principles { padding-top: 0; padding-bottom: clamp(88px, 10vw, 140px); }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.principle {
  padding: 40px 30px 36px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.principle:last-child { border-right: 0; }
.principle-big {
  display: block;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.principle p { color: var(--muted); font-size: 15px; }

/* ---------------- Contact ---------------- */
.contact {
  position: relative;
  padding: clamp(120px, 16vw, 220px) 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-orb {
  position: absolute;
  left: 50%; top: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(124,245,227,0.25), rgba(165,139,255,0.3), rgba(143,211,255,0.2), rgba(124,245,227,0.25));
  filter: blur(120px);
  opacity: 0.55;
  animation: spin 24s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact .kicker { justify-content: center; }
.contact-title {
  font-size: clamp(52px, 10vw, 148px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.055em;
}
html[lang="zh"] .contact-title { line-height: 1.15; letter-spacing: -0.02em; }
.contact-sub {
  margin-top: 30px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(16.5px, 1.5vw, 19px);
}
.contact-mail {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 30px 20px 34px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(6, 7, 10, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
  max-width: 100%;
}
.contact-mail span { overflow: hidden; text-overflow: ellipsis; }
.contact-mail svg {
  flex: none;
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--grad);
  color: #05070a;
  transition: transform 0.4s var(--ease);
}
.contact-mail:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.contact-mail:hover svg { transform: rotate(45deg); }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 56px;
  overflow: hidden;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
  align-items: start;
}
.footer-brand p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  grid-column: 1 / -1;
  font: 400 12.5px var(--mono);
  color: var(--dim);
}
.footer-word {
  margin-top: 40px;
  text-align: center;
  font-size: clamp(36px, 14.5vw, 220px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.75;
  white-space: nowrap;
  background: linear-gradient(to bottom, rgba(255,255,255,0.09), rgba(255,255,255,0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  transform: translateY(8%);
}

/* ---------------- Reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover { transform: translateY(-4px); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lab-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav, .btn-small { display: none; }
  .menu-toggle { display: block; }
  .section-head.split { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0; }
  .steps::before { display: none; }
  .step { border-top: 1px solid var(--line); padding-bottom: 40px; }
  .hero-glow { right: 50%; transform: translate(50%, -40%); width: 110vw; }
  .hero { align-items: flex-end; padding: 96px 0 96px; }
  .hero-canvas { opacity: 0.6; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { height: 64px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-icon { margin-bottom: 30px; }
  .steps { grid-template-columns: 1fr; }
  .step p { max-width: none; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  .terminal-body { font-size: 12px; padding: 18px 16px 22px; min-height: 320px; }
  .contact-mail { padding: 14px 16px 14px 22px; font-size: 17px; }
  .footer-inner { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

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