/* ═══════════════════════════════════════════
   AUNHER · 安合生物 — dark industrial biotech
   ═══════════════════════════════════════════ */

:root {
  --bg: #050505;
  --bg-elev: #0b0b0b;
  --fg: #f2f2f0;
  --muted: #8a8a84;
  --dim: #3a3a36;
  --line: rgba(242, 242, 240, 0.08);
  --line-strong: rgba(242, 242, 240, 0.16);
  --acid: #c8ff3d;
  --acid-dim: rgba(200, 255, 61, 0.12);
  --cyan: #5eead4;
  --danger: #ff4d4d;
  --serif: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  cursor: none;
  background: var(--bg);
  min-height: 100vh;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; color: var(--acid); font-weight: 400; }

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

.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor {
  width: 6px; height: 6px;
  background: #fff;
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.55);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
}

body.is-hover .cursor-ring {
  width: 56px; height: 56px;
  background: rgba(200, 255, 61, 0.12);
  border-color: var(--acid);
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(5,5,5,0.92), rgba(5,5,5,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  font-weight: 500;
}

.nav-mark {
  width: 10px; height: 10px;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--fg); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  border-color: var(--acid);
  color: var(--acid);
  background: var(--acid-dim);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.55;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) contrast(1.15) saturate(0.85);
  transform: scale(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 70% 40%, transparent 0%, rgba(5,5,5,0.55) 55%, var(--bg) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 45%),
    linear-gradient(to right, rgba(5,5,5,0.75) 0%, transparent 50%);
}

.hero-grid {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
}

.hero-meta {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(5,5,5,0.4);
  backdrop-filter: blur(6px);
}

.pill.mono { color: var(--acid); border-color: rgba(200,255,61,0.35); }

.hero-title {
  font-weight: 900;
  font-size: clamp(3.8rem, 14vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 34rem;
  margin-bottom: 3rem;
}

.hero-sub .en {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--acid);
}

.hero-sub .cn {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  background: var(--acid);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  box-shadow: 0 0 0 0 rgba(200,255,61,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,255,61,0.25);
}

.btn-primary.full { width: 100%; justify-content: center; margin-top: 0.5rem; }

.hero-stats {
  display: flex;
  gap: 2rem;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--acid);
  letter-spacing: 0.12em;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--acid), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s var(--ease) forwards;
}
.reveal.delay-1 { animation-delay: 0.12s; }
.reveal.delay-2 { animation-delay: 0.24s; }
.reveal.delay-3 { animation-delay: 0.36s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* MARQUEE */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elev);
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.marquee-track .dot { color: var(--acid); }

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

/* SECTIONS shared */
section {
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.section-label .num {
  color: var(--acid);
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}

.muted { color: var(--muted); }

/* MANIFESTO */
.manifesto {
  border-bottom: 1px solid var(--line);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  max-width: 1400px;
}

.manifesto-left h2 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.manifesto-right p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}

.manifesto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.manifesto-tags span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}

@media (max-width: 820px) {
  .manifesto-grid { grid-template-columns: 1fr; }
}

/* DOMAINS */
.domains-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  max-width: 1400px;
}

.domains-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.domain-list {
  max-width: 1400px;
  border-top: 1px solid var(--line);
}

.domain-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s, padding 0.35s var(--ease);
  cursor: pointer;
}

.domain-card:hover {
  background: linear-gradient(90deg, var(--acid-dim), transparent 60%);
  padding-left: 1rem;
  padding-right: 1rem;
}

.domain-index {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--acid);
  letter-spacing: 0.1em;
}

.domain-body h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.domain-body .en {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 0.65rem;
}

.domain-body p:last-child {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 40rem;
  font-size: 0.95rem;
}

.domain-status {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--acid);
  border: 1px solid rgba(200,255,61,0.3);
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  background: var(--acid-dim);
}

@media (max-width: 720px) {
  .domain-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .domain-status { justify-self: start; }
}

/* LAB */
.lab {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  padding: 0;
  max-width: none;
  min-height: 70vh;
}

.lab-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.lab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.lab-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, var(--bg) 100%);
}

.lab-float {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: rgba(5,5,5,0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lab-float .mono {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--acid);
}

.lab-float strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.lab-copy {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.lab-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.lab-copy > p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.lab-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lab-points li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.lab-points span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--acid);
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .lab { grid-template-columns: 1fr; }
  .lab-overlay { background: linear-gradient(to top, var(--bg), transparent 50%); }
  .lab-media { min-height: 320px; }
}

/* NUMBERS */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.num-item {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
}

.num-big {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--fg);
  font-style: italic;
}

.num-unit {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--acid);
  letter-spacing: 0.08em;
}

.num-item p {
  width: 100%;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
}

@media (max-width: 720px) {
  .numbers { grid-template-columns: 1fr 1fr; }
}

/* CONTACT */
.contact {
  max-width: 1400px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.contact-grid h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.contact-card {
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(200,255,61,0.04), transparent 50%), var(--bg-elev);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-row .label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.contact-row .value {
  font-size: 0.98rem;
}

.contact-row a {
  border-bottom: 1px solid rgba(200,255,61,0.4);
  transition: color 0.2s, border-color 0.2s;
}

.contact-row a:hover {
  color: var(--acid);
  border-color: var(--acid);
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
.footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  filter: grayscale(0.2) contrast(1.1);
}

.footer-brand strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-brand span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* selection */
::selection {
  background: var(--acid);
  color: #0a0a0a;
}
