/* 杰斯的AI实验室 — night lab / teal-amber */

:root {
  --ink: #0b100e;
  --panel: #121a16;
  --panel-soft: #18221c;
  --line: rgba(232, 239, 232, 0.1);
  --text: #e7efe8;
  --muted: #8fa098;
  --dim: #5f7168;
  --teal: #3ecfba;
  --teal-deep: #1f9f8d;
  --amber: #e8a54b;
  --radius: 4px;
  --ease: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(11, 16, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}

.header.scrolled {
  background: rgba(11, 16, 14, 0.92);
  border-bottom-color: var(--line);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--ease);
}

.nav a:hover { color: var(--teal); }

/* Hero — full-bleed */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(20px, 4vw, 48px) clamp(48px, 8vh, 96px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 16, 14, 0.35) 0%, rgba(11, 16, 14, 0.55) 40%, rgba(11, 16, 14, 0.92) 100%),
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(62, 207, 186, 0.18), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.brand {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.1s forwards;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin-bottom: 14px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.25s forwards;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--teal);
  color: #06221d;
}

.btn-primary:hover {
  background: #5fe0cd;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(18, 26, 22, 0.45);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

/* Sections */
.section {
  padding: clamp(72px, 12vh, 120px) clamp(20px, 4vw, 48px);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 36em;
}

.section-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Work — image + copy rows */
.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 88px);
}

.work-item {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.work-item:nth-child(even) .work-figure { order: 2; }
.work-item:nth-child(even) .work-copy { order: 1; }

.work-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  aspect-ratio: 4 / 3;
}

.work-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-item:hover .work-figure img {
  transform: scale(1.04);
}

.work-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.work-copy h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.work-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28em;
}

/* Craft */
.section-craft {
  background:
    linear-gradient(180deg, var(--panel) 0%, var(--ink) 100%),
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(62, 207, 186, 0.08), transparent 50%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.craft-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.craft-list li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.craft-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.craft-desc {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Contact */
.contact-section {
  text-align: center;
}

.contact-inner {
  max-width: 480px;
}

.contact-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-inner p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-mails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.footer {
  padding: 32px clamp(20px, 4vw, 48px) 48px;
  text-align: center;
  color: var(--dim);
  font-size: 0.85rem;
}

.footer .beian {
  margin-top: 10px;
}

.footer .beian a {
  color: var(--dim);
  transition: color var(--ease);
}

.footer .beian a:hover {
  color: var(--teal);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  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;
  }

  .hero-media img { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .work-item,
  .work-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .work-item:nth-child(even) .work-figure,
  .work-item:nth-child(even) .work-copy {
    order: unset;
  }

  .craft-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav a { font-size: 0.82rem; }
  .logo { font-size: 0.92rem; }
}
