/* ============================================
   KieloLab — Core Stylesheet
   Minimal, premium, neutral palette.
   ============================================ */

:root {
  /* Neutral, product-agnostic palette */
  --bg:          #0a0a0b;
  --bg-soft:     #101012;
  --surface:     #16161a;
  --surface-2:   #1d1d22;
  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text:        #f5f5f7;
  --text-dim:    #a1a1aa;
  --text-faint:  #6b6b74;
  --accent:      #e8e8ea;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

.accent { color: var(--text-faint); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav__name {
  font-family: 'Michroma', var(--font);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: 38px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.nav__links a { transition: color .25s var(--ease); position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 24px; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .08em; }
.lang__btn {
  color: var(--text-faint);
  font-weight: 500;
  padding: 2px 2px;
  transition: color .25s var(--ease);
}
.lang__btn.is-active, .lang__btn:hover { color: var(--text); }
.lang__sep { color: var(--line-strong); }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span {
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 40px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255,255,255,0.055) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 78% 18%, rgba(160,180,255,0.03) 0%, transparent 65%),
    var(--bg);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, black 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, black 10%, transparent 78%);
}
.hero__content {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.32em;
  color: var(--text-faint);
  margin-bottom: 32px;
}
.hero__title {
  font-size: clamp(56px, 11vw, 152px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin-bottom: 36px;
}
.hero__title .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.42);
}
.hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-dim);
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 999px;
  transition: all .3s var(--ease);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--text);
  color: #0a0a0b;
}
.btn--primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.14);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text-dim);
}
.btn--ghost:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-1px);
}
.btn--sm { padding: 11px 22px; font-size: 12.5px; }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .35; transform: scaleY(.55); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee__track {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  animation: marquee 78s linear infinite;
  width: max-content;
}
.marquee__track .dot { color: var(--line-strong); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECTION ============ */
.section { padding: 130px 0; position: relative; }
.section--dark { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { margin-bottom: 70px; max-width: 620px; }
.section__index {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.section__title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 20px;
}
.section__desc {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.7;
}

/* ============ CATEGORY LABEL ============ */
.cat-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cat-label:not(:first-of-type) { margin-top: 72px; }

/* ============ GRID ============ */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ============ PRODUCT CARD ============ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.card__media {
  position: relative;
  aspect-ratio: 7 / 6;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 10px;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: transform .7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

/* CSS placeholder (used until real photos arrive) */
.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform .7s var(--ease);
}
.card:hover .ph { transform: scale(1.04); }
.ph__inner {
  width: 62%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.ph__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.16) 50%, transparent 62%);
}
.ph__label {
  position: absolute;
  bottom: 14px; right: 16px;
  font-size: 9px;
  letter-spacing: .22em;
  color: rgba(255,255,255,0.3);
}

.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
}
.card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.card__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dim);
  transition: color .3s var(--ease);
}
.card:hover .card__name { color: var(--text); }
.card__meta {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.card__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card__price {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
}
.card__link {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.card__link:hover { color: var(--text); gap: 9px; }

/* ============ FEATURES ============ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.feature {
  background: var(--bg-soft);
  padding: 40px 32px 44px;
  transition: background .4s var(--ease);
}
.feature:hover { background: var(--surface); }
.feature__num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: 40px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.72;
}

/* ============ STORY ============ */
.story { max-width: 780px; }
.story__title { margin-bottom: 26px; }
.story__lead {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 560px;
  margin-bottom: 64px;
}
.story__body p {
  font-size: 15.5px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 660px;
}
.story__body p:last-child { margin-bottom: 0; }
.story__closing {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  max-width: 660px;
}

/* ============ LINEUP / ROADMAP ============ */
.lineup { border-top: 1px solid var(--line); }
.lineup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.lineup__row:hover { padding-left: 14px; }
.lineup__name {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
}
.lineup__status {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.lineup__status.is-live { color: var(--text); border-color: var(--line-strong); }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contact__desc {
  font-size: 15.5px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.75;
  max-width: 380px;
  margin-top: 20px;
}
.contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease), border-color .35s var(--ease);
}
.contact__row:first-child { border-top: 1px solid var(--line); }
.contact__row:hover { padding-left: 14px; border-bottom-color: var(--line-strong); }
.contact__label { font-size: 16px; font-weight: 400; letter-spacing: -0.01em; }
.contact__arrow { color: var(--text-faint); font-size: 18px; transition: transform .35s var(--ease), color .35s var(--ease); }
.contact__row:hover .contact__arrow { transform: translate(3px,-3px); color: var(--text); }

/* ============ FOOTER ============ */
.footer {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand { font-size: 14px; font-weight: 600; letter-spacing: 0.18em; }
.footer__copy, .footer__made { font-size: 12px; color: var(--text-faint); letter-spacing: 0.02em; }

/* ============ SOCIAL ICONS ============ */
.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), transform .3s var(--ease);
}
.social-icon svg { width: 17px; height: 17px; display: block; }
.social-icon:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-2px);
}
.social-icon:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

/* ============ CONTACT SOCIAL ============ */
.contact__social {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contact__social-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

/* ============ SIGNATURE / PACKAGE NOTE ============ */
.signature {
  padding: 130px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.signature__inner { max-width: 560px; margin: 0 auto; }
.signature__line1 {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.signature__line2 {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.35;
  color: var(--text);
}
.signature__mark {
  margin-top: 44px;
}
.signature__mark::before {
  content: '';
  display: block;
  width: 1px;
  height: 34px;
  background: var(--line-strong);
  margin: 0 auto;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ PRODUCTS PAGE ============ */
.page-head {
  padding: 170px 40px 70px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.page-head__eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.page-head__title {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 22px;
}
.page-head__desc {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
}

/* Detail page */
.detail { padding: 130px 0 60px; }
.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}
.detail__grid > * { min-width: 0; }
.detail__media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4/3;
  position: relative;
  display: grid;
  place-items: center;
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.detail__name {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.detail__price {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 30px;
  font-weight: 300;
}
.detail__desc {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 36px;
}
.detail__specs { border-top: 1px solid var(--line); margin-bottom: 36px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.spec-row dt { color: var(--text-faint); letter-spacing: 0.02em; }
.spec-row dd { color: var(--text); text-align: right; }
.detail__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Packaging & Extras */
.detail__extras {
  margin-top: 70px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.detail__extras-title {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 26px;
}
.detail__extras-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}
.detail__extras-row dt { color: var(--text-faint); letter-spacing: 0.02em; }
.detail__extras-row dd { color: var(--text-dim); }

.detail__extras-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}
.detail__extras-media figure { margin: 0; }
.detail__extras-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.detail__extras-media figcaption {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

/* ============ IMAGE GALLERY ============ */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__stage {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__kind {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.82);
}
.gallery__count {
  position: absolute;
  bottom: 14px; right: 16px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.45);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10,10,11,0.55);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.gallery__nav:hover {
  background: rgba(10,10,11,0.85);
  border-color: rgba(255,255,255,0.35);
}
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.gallery__thumb {
  flex: none;
  width: 76px; height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  opacity: .55;
  transition: opacity .25s var(--ease), border-color .25s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--line-strong); }

.detail__sig {
  margin-top: 90px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  padding: 9px 18px 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color .25s var(--ease), gap .25s var(--ease),
              border-color .25s var(--ease), background .25s var(--ease);
}
.back-link:hover {
  color: var(--text);
  gap: 11px;
  border-color: var(--text-faint);
  background: var(--surface);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 50px; }
  .detail__grid { grid-template-columns: 1fr; gap: 44px; }
  .detail__extras-row { grid-template-columns: 1fr; gap: 6px; }
  .detail__extras-media { grid-template-columns: 1fr; }
  .nav__links { gap: 26px; font-size: 12.5px; }
}

@media (max-width: 760px) {
  .container, .nav__inner, .page-head { padding-left: 22px; padding-right: 22px; }
  .hero { padding: 120px 22px 70px; min-height: 92vh; }
  .section { padding: 88px 0; }
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,11,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px 26px;
    font-size: 15px;
    transform: translateY(-130%);
    transition: transform .45s var(--ease);
    z-index: 99;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__burger { display: flex; }
  .lang { gap: 4px; }
  .hero__title { font-size: clamp(46px, 13vw, 74px); }
  .section__head { margin-bottom: 46px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .gallery__nav { width: 36px; height: 36px; font-size: 18px; }
  .gallery__nav--prev { left: 10px; }
  .gallery__nav--next { right: 10px; }
  .gallery__thumb { width: 64px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ QQ GROUP MODAL ============ */
.qq-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.qq-modal.is-open { display: flex; }

.qq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.qq-modal__card {
  position: relative;
  width: min(338px, 92vw);
  padding: 28px 24px 24px;
  background: #111114;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.qq-modal.is-open .qq-modal__card { opacity: 1; transform: none; }

.qq-modal__close {
  position: absolute;
  top: 8px; right: 10px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: var(--text-faint);
  border-radius: 50%;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.qq-modal__close:hover { color: var(--text); background: rgba(255,255,255,.06); }

.qq-modal__eyebrow {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.qq-modal__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.qq-modal__qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #26262e;
}
.qq-modal__num {
  margin: 16px 0 14px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: .02em;
}
.qq-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qq-modal__open {
  font-size: 12.5px;
  color: var(--text-faint);
  transition: color .2s var(--ease);
}
.qq-modal__open:hover { color: var(--text); }

html.qq-locked, html.qq-locked body { overflow: hidden; }
/* ============ SUBPAGE TEXTURE ============ */
/* 仅用于内页（产品列表 / 详情）。首页保持纯黑，因为开场动画需要绝对的暗场。 */
body[data-page="list"],
body[data-page="detail"] {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -6%, rgba(255, 255, 255, .055), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .010) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .010) 1px, transparent 1px);
  background-size: 100% 820px, 96px 96px, 96px 96px;
  background-repeat: no-repeat, repeat, repeat;
  background-attachment: scroll, fixed, fixed;
  background-position: top center, 0 0, 0 0;
}

/* 纹理上的内容需要轻微提亮，避免细线压字 */
body[data-page="list"] .page-head,
body[data-page="detail"] .detail {
  position: relative;
}
/* ============ HOME SECTION TEXTURES ============ */
/* 首页只在 02 工艺 / 03 品牌 / 04 联系 三个区块铺底纹；
   hero 保持纯黑，因为开场动画需要绝对的暗场。 */

/* 02 工艺：技术网格 + 顶部微光 */
#tech {
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, .05), transparent 72%),
    linear-gradient(rgba(255, 255, 255, .021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .021) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  background-position: top center, 0 0, 0 0;
}

/* 03 品牌：竖向发丝线，节奏更慢 */
#story {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .019) 1px, transparent 1px),
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(255, 255, 255, .022), transparent 75%);
  background-size: 128px 100%, 100% 100%;
  background-position: 0 0, center;
}

/* 04 联系：点阵，密度更高但更淡 */
#contact {
  background-image:
    radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 255, 255, .04), transparent 70%);
  background-size: 26px 26px, 100% 100%;
  background-position: 0 0, bottom center;
}

/* 内页底纹整体提亮一点，之前太看不见 */
body[data-page="list"],
body[data-page="detail"] {
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -6%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
}
/* ============ PAGE TRANSITIONS ============ */
/* 浏览器原生跨页过渡：点击链接 → 旧页淡出 → 新页淡入。
   不支持的浏览器自动退回普通跳转，没有副作用。 */
@view-transition {
  navigation: auto;
}

/* 导航栏保持单一实例，避免交叉淡入时出现重影；
   首页播放开场动画时取消命名，否则导航会浮在黑幕之上 */
.nav { view-transition-name: site-nav; }
html.intro-run .nav { view-transition-name: none; }

::view-transition-old(site-nav) {
  animation: vt-fade-out .2s var(--ease) both;
}
::view-transition-new(site-nav) {
  animation: vt-fade-in .26s var(--ease) both;
}
::view-transition-old(root) {
  animation: vt-fade-out .26s var(--ease) both;
}
::view-transition-new(root) {
  animation: vt-fade-in .34s var(--ease) both;
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}
@keyframes vt-fade-in {
  from { opacity: 0; }
}


@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}