:root {
  --ink: #0a0e09;
  --muted: #3d5248;
  --dino: #74ae5c;
  --dino-deep: #548246;
  --panel: #18352a;
  --accent: #f59e0b;
  --mint-0: #eefbf4;
  --mint-1: #c8f3dd;
  --mint-2: #8ed9bf;
  --glass: rgba(255, 255, 255, 0.38);
  --glass-2: rgba(255, 255, 255, 0.16);
  --stroke: rgba(255, 255, 255, 0.62);
  --shadow: 0 18px 50px rgba(24, 53, 42, 0.12);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Fraunces", "Noto Serif SC", serif;
  --spot-x: 50%;
  --spot-y: 30%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #d7f4e8;
  font-family: var(--sans);
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
.btn,
.chip,
.linkish {
  font: inherit;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 18% -10%, #f7fff8 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 10%, #b7edd8 0%, transparent 50%),
    linear-gradient(180deg, #d9f6ea 0%, #c3edd9 42%, #e7f8ef 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(116, 174, 92, 0.18));
  animation: floaty 14s ease-in-out infinite;
}

.orb-a {
  width: 280px;
  height: 280px;
  left: -40px;
  top: 18%;
}

.orb-b {
  width: 180px;
  height: 180px;
  right: 8%;
  top: 8%;
  animation-delay: -4s;
}

.orb-c {
  width: 220px;
  height: 220px;
  right: 18%;
  bottom: 8%;
  animation-delay: -8s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(16px, -22px, 0);
  }
}

.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(236, 255, 245, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -10px 18px rgba(24, 53, 42, 0.06);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  backdrop-filter: url("#liquid-glass") blur(14px) saturate(170%);
  -webkit-backdrop-filter: url("#liquid-glass") blur(14px) saturate(170%);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(220px 140px at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.55), transparent 52%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.42) 0%, transparent 34%, transparent 70%, rgba(255, 255, 255, 0.12) 100%);
  mix-blend-mode: screen;
}

.glass > * {
  position: relative;
  z-index: 2;
}

.nav,
main,
.site-foot {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.1;
}

.brand em {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  color: var(--dino-deep);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a,
.linkish {
  border: 0;
  background: transparent;
  color: var(--panel);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.nav a:hover,
.linkish:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 72px);
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-copy {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  width: min(640px, calc(100% - 36px));
  transform: translateX(-50%);
  padding: 16px 20px 14px;
  text-align: center;
  border-radius: 28px;
}

.hero-copy h1 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.hero-copy h1 i {
  font-family: var(--display);
  font-style: italic;
  color: var(--dino-deep);
}

.eyebrow {
  margin: 0;
  color: var(--dino-deep);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glass-chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.lede {
  max-width: 34em;
  margin: 0 auto 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.btn-solid {
  background: var(--panel);
  color: #e8f5e2;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--panel);
  backdrop-filter: blur(16px);
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ip-space {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ip-rig {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(780px, 96vw);
  height: min(88svh, 860px);
  transform: translate(-50%, -50%);
}

.ip-spin {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 28px 36px rgba(24, 53, 42, 0.18));
  -webkit-mask-image: radial-gradient(ellipse 56% 64% at 50% 42%, #000 38%, transparent 70%);
  mask-image: radial-gradient(ellipse 56% 64% at 50% 42%, #000 38%, transparent 70%);
}

.ip-glow {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 14%;
  height: 24%;
  background: radial-gradient(ellipse at center, rgba(142, 217, 191, 0.9), transparent 72%);
  filter: blur(18px);
}

.ip-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 42%;
  pointer-events: none;
  user-select: none;
}

.ip-spin-canvas {
  opacity: 1;
}

.ip-spin-fallback {
  opacity: 1;
}

.section {
  width: min(1120px, calc(100% - 28px));
  margin: 72px auto 0;
  scroll-margin-top: 96px;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.section-head p:last-child {
  max-width: 38em;
  color: var(--muted);
  line-height: 1.7;
}

.pack-grid,
.works-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pack-card,
.work-card {
  padding: 20px;
  border-radius: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pack-card:hover,
.work-card:hover {
  transform: translateY(-4px);
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dino-deep);
}

.pack-card h3,
.work-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
}

.pack-card p,
.work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(24, 53, 42, 0.08);
  color: var(--panel);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.card-actions a,
.card-actions button {
  border: 0;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
}

.view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.chip.is-on {
  background: var(--panel);
  color: #e8f5e2;
  border-color: var(--panel);
}

.site-foot {
  width: min(1120px, calc(100% - 28px));
  margin: 80px auto 32px;
}

.foot-qr {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 28px;
  cursor: pointer;
}

.foot-qr img {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  background: #fff;
}

.foot-qr strong {
  font-family: var(--serif);
  font-size: 22px;
}

.foot-qr p {
  margin: 6px 0 0;
  color: var(--muted);
}

.colophon {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.wechat-sheet,
.pack-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 14, 9, 0.28);
  backdrop-filter: blur(10px);
}

.wechat-sheet[hidden],
.pack-modal[hidden] {
  display: none;
}

.wechat-card,
.pack-modal-card {
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 32px;
}

.pack-modal-card {
  width: min(640px, 100%);
}

.sheet-qr {
  width: min(240px, 70%);
  display: block;
  margin: 16px auto;
  background: #fff;
  border-radius: 18px;
}

.sheet-close {
  float: right;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.sheet-reasons {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero-copy {
    bottom: 14px;
    padding: 14px 14px 12px;
  }

  .lede,
  .hero-note {
    display: none;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .ip-rig {
    width: min(640px, 120vw);
    height: 78svh;
  }

  .pack-grid,
  .works-board {
    grid-template-columns: 1fr;
  }

  .nav nav a:not(:last-child) {
    display: none;
  }
}
