/* =============================================
   雯兮工作室官网 · Mist Ink
   墨色文字 + 青瓷点缀 + 晨雾底色
   ============================================= */

:root {
  --paper: #e6eeea;
  --paper-2: #d5e0db;
  --ink: #14201c;
  --ink-2: #3a4a44;
  --muted: #5e7168;
  --jade: #1a6b52;
  --jade-deep: #0f4a39;
  --jade-soft: #c8ddd3;
  --line: rgba(20, 32, 28, 0.12);
  --line-strong: rgba(20, 32, 28, 0.22);
  --white: #f5f9f7;
  --shadow: 0 18px 50px rgba(20, 32, 28, 0.12);

  --font-brand: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font-body: 'ZCOOL XiaoWei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-ui: 'ZCOOL XiaoWei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.studio-home {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-ui);
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 12vw, 120px) 0;
}

.section-intro {
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 36rem;
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--jade);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: var(--jade-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(245, 249, 247, 0.35);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(245, 249, 247, 0.65);
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(230, 238, 234, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
}

.logo-text {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink-2);
  padding: 8px 14px;
  transition: color 0.2s ease;
}

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

.nav-cta {
  margin-left: 8px !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 4px;
  padding: 9px 16px !important;
}

.nav-cta:hover {
  background: var(--jade-deep) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: rgba(230, 238, 234, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  padding: 12px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* =============================================
   Hero — mist atmosphere + product plane + brand
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 56px;
  overflow: hidden;
  color: var(--ink);
}

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

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 78% 42%, rgba(26, 107, 82, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 12% 80%, rgba(197, 221, 210, 0.9), transparent 50%),
    radial-gradient(ellipse 50% 40% at 40% 10%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(165deg, #d8e6e0 0%, #e6eeea 42%, #cfdcd5 100%);
}

.hero-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 32, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 28, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, black 20%, transparent 75%);
}

.hero-product {
  position: absolute;
  top: 8%;
  right: -4%;
  bottom: 0;
  width: min(52vw, 640px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  animation: product-rise 1.4s 0.2s var(--ease) both;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 18%;
  mask-image:
    linear-gradient(90deg, transparent 0%, black 22%, black 100%),
    linear-gradient(180deg, black 70%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, black 22%, black 100%),
    linear-gradient(180deg, black 70%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  filter: saturate(0.9) contrast(1.03);
}

@keyframes product-rise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  max-width: 34rem;
  padding-right: min(36vw, 280px);
}

.hero-brand {
  font-family: var(--font-brand);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--ink);
  white-space: nowrap;
  animation: rise 1s 0.1s var(--ease) both;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  margin-bottom: 14px;
  color: var(--ink-2);
  animation: rise 1s 0.25s var(--ease) both;
}

.hero-lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 26rem;
  animation: rise 1s 0.4s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 1s 0.55s var(--ease) both;
}

.hero .btn-ghost {
  background: rgba(245, 249, 247, 0.55);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   Products
   ============================================= */
.products {
  background: var(--white);
}

.feature-product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 72px);
}

.feature-visual {
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.1s var(--ease);
}

.feature-product:hover .feature-visual img {
  transform: scale(1.04);
}

.feature-kicker {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--jade);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature-copy h3 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.feature-copy p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 28rem;
}

.feature-cta {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--jade);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.feature-product:hover .feature-cta {
  color: var(--jade-deep);
}

.product-list {
  border-top: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding-left 0.25s var(--ease);
}

.product-row:hover {
  background: rgba(26, 107, 82, 0.04);
  padding-left: 8px;
}

.product-row-name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.product-row-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.product-row-go {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jade);
}

/* =============================================
   Mission
   ============================================= */
.mission {
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(200, 221, 211, 0.7), transparent 55%),
    var(--paper);
}

.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 80px);
  align-items: start;
}

.mission-lead blockquote {
  margin: 28px 0 20px;
}

.mission-lead blockquote p {
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--jade-deep);
}

.mission-sub {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 28rem;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.value-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.value-num {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  color: var(--jade);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.value-list h3 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.value-list p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* =============================================
   Craft strip
   ============================================= */
.craft {
  padding: 48px 0;
  background: var(--ink);
  color: var(--paper);
}

.craft-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  font-family: var(--font-brand);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.12em;
  text-align: center;
}

.craft-line span {
  opacity: 0.88;
}

/* =============================================
   Team
   ============================================= */
.team {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.team-person {
  max-width: 22rem;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--tone) 18%, var(--paper));
}

.team-avatar svg {
  width: 100%;
  height: 100%;
}

.team-person h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--jade);
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

.join-band {
  margin-top: 64px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.join-band p {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* =============================================
   Contact
   ============================================= */
.contact {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  text-align: center;
}

.contact-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.contact .section-desc {
  margin: 0 auto 28px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--ink);
  color: rgba(230, 238, 234, 0.78);
  padding: 64px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(230, 238, 234, 0.12);
}

.footer-name {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.7;
}

.footer-cols {
  display: flex;
  gap: clamp(32px, 6vw, 64px);
}

.footer-cols h4 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(230, 238, 234, 0.45);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-cols a {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-cols a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.85rem;
  opacity: 0.55;
}

.footer-bottom a:hover {
  opacity: 1;
  color: var(--paper);
}

/* =============================================
   Back to top
   ============================================= */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--jade);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .feature-product {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    max-height: 420px;
    aspect-ratio: 16 / 11;
  }

  .mission-layout {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hamburger {
    display: flex;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 48px;
    min-height: 92vh;
  }

  .hero-content {
    padding-right: 0;
    max-width: 100%;
  }

  .hero-product {
    top: auto;
    right: -18%;
    bottom: 28%;
    width: min(78vw, 360px);
    height: 42vh;
    opacity: 0.55;
  }

  .hero-product img {
    mask-image: linear-gradient(180deg, black 40%, transparent 100%),
      linear-gradient(90deg, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(180deg, black 40%, transparent 100%),
      linear-gradient(90deg, transparent 0%, black 30%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
  }

  .hero-brand {
    letter-spacing: 0.06em;
  }

  .product-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .product-row-name {
    grid-column: 1;
  }

  .product-row-go {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .product-row-desc {
    grid-column: 1;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-container,
  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-brand {
    white-space: normal;
    font-size: clamp(2.35rem, 11vw, 2.9rem);
    letter-spacing: 0.04em;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1;
    justify-content: center;
  }

  .feature-visual {
    max-height: 320px;
  }
}

/* Active nav highlight helper (set via JS inline color fallback) */
.nav-links a.is-active {
  color: var(--ink);
}
