:root {
  --red: #ef4f4f;
  --red-deep: #d63f3f;
  --ink: #161616;
  --muted: #6b6b6b;
  --line: rgba(22, 22, 22, 0.08);
  --bg: #f7f4f1;
  --paper: #fffdfb;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.wrap.narrow {
  width: min(720px, calc(100% - 48px));
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-full {
  /* 与原先 36px 方标同高，不按原图像素原样放大 */
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.nav-links a {
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.18) 0%, rgba(12, 12, 12, 0.28) 45%, rgba(12, 12, 12, 0.78) 100%),
    linear-gradient(90deg, rgba(239, 79, 79, 0.18), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 12vh;
}

.hero-brand {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 28em;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
}

.scroll-hint span {
  display: block;
  width: 3px;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: #fff;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* intro */
.intro {
  padding: 120px 0 40px;
}

.intro-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink);
}

/* services */
.services {
  padding: 100px 0 40px;
}

.section-head {
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.section-desc {
  margin: 16px 0 0;
  max-width: 28em;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s ease, background 0.35s ease;
}

.service-item:hover {
  padding-left: 12px;
}

.service-item .idx {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--red);
  letter-spacing: 0.08em;
}

.service-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.service-item p {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
}

/* products */
.products {
  padding: 120px 0;
}

.product {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-tag {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.product-copy h3 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.product-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  max-width: 34em;
}

.product-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  background: var(--paper);
  overflow: hidden;
}

.product-visual .orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8a8a, var(--red) 55%, #8a1f1f);
  filter: blur(2px);
  animation: orbFloat 7s ease-in-out infinite;
}

.product-visual span {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 42px;
  color: #fff;
  letter-spacing: 0.2em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.04); }
}

/* contact */
.contact {
  padding: 100px 0 120px;
  text-align: center;
}

.contact .section-head {
  margin-bottom: 28px;
}

.contact-line {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.04em;
}

.contact-line a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-line a:hover {
  color: var(--red);
  border-color: var(--red);
}

.contact-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  background: #f1ece7;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
}

.footer-mark {
  border-radius: 7px;
  display: block;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer-meta a:hover {
  color: var(--red);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  transition-delay: 0s;
}

.hero .reveal.delay-1 { transition-delay: 0.12s; }
.hero .reveal.delay-2 { transition-delay: 0.24s; }
.hero .reveal.delay-3 { transition-delay: 0.4s; }

.hero .reveal.is-in {
  /* hero uses class on load */
}

@media (max-width: 800px) {
  .nav {
    padding: 16px 18px;
  }

  .nav-links {
    gap: 16px;
    font-size: 12px;
  }

  .brand-full {
    height: 30px;
  }

  .intro,
  .services,
  .products,
  .contact {
    padding-left: 0;
    padding-right: 0;
  }

  .intro {
    padding-top: 80px;
  }

  .service-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-visual {
    min-height: 220px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img,
  .product-visual .orb,
  .scroll-hint span {
    animation: none;
  }
}
