/* ==========================================================================
   Vitongue Technology — AI Creation Studio
   Public site stylesheet. No framework, no build step.

   Design tokens first; components after. The palette is deliberately narrow:
   near-black stage, warm paper text, one ember accent, one violet for depth.
   ========================================================================== */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/sora-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/sora-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC Web';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-sc-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC Web';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-sc-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC Web';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-sc-700.woff2') format('woff2');
}

:root {
  --ink: #08090f;
  --ink-soft: #0b0d15;
  --surface: #10131d;
  --surface-2: #151927;
  --paper: #f4f1e9;
  --text: #eef0f6;
  --muted: #9aa2b6;
  --muted-2: #6c7389;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ember: #ff6a2b;
  --ember-2: #ffb36b;
  --violet: #7c5cff;
  --mint: #2de2a6;
  --error: #ff5a5a;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --font-display: 'Sora', 'Noto Sans SC Web', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC Web', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--ember);
  color: #150a04;
}

:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ------------------------------------------------------------ primitives -- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-2);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px rgba(255, 106, 43, 0.9);
}

.eyebrow--hero {
  animation: fade-up 0.9s var(--ease) both;
}

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 160px);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(44px, 6vw, 76px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}

.section__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section__lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--muted);
  max-width: 60ch;
}

.section__lead--aside {
  max-width: 34rem;
  margin-top: 0;
  text-align: left;
}

.section__note-inline {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.section__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--muted-2);
}
.section__note svg {
  width: 18px;
  height: 18px;
  color: var(--ember);
  flex: none;
}

.prose p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}
.prose p:first-child {
  margin-top: 24px;
}

/* buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--primary {
  --btn-bg: var(--ember);
  --btn-fg: #180a03;
  --btn-border: transparent;
  box-shadow: 0 12px 34px -12px rgba(255, 106, 43, 0.65);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -12px rgba(255, 106, 43, 0.75);
  background: #ff7c43;
}
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.02);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn--sm {
  padding: 10px 18px;
  font-size: 0.8rem;
}
.btn--lg {
  padding: 18px 34px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ember-2);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}
.link-arrow:hover {
  gap: 13px;
  color: var(--ember);
}

/* media / image slots */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1229 0%, #241a3f 48%, #3a1f57 100%);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--empty {
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(124, 92, 255, 0.24), transparent 58%),
    radial-gradient(100% 80% at 85% 85%, rgba(255, 106, 43, 0.2), transparent 60%),
    linear-gradient(140deg, #120e1d 0%, #1b1430 60%, #241636 100%);
}
.media--empty::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 78%);
}
.media__empty-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}
.media__empty-mark::before,
.media__empty-mark::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.28);
}
.media__empty-mark::before {
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 1px;
}
.media__empty-mark::after {
  top: 50%;
  left: 12px;
  right: 12px;
  height: 1px;
}

.frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  position: relative;
}
.frame--3x2 {
  aspect-ratio: 3 / 2;
}
.frame-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 9, 15, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.frame-caption__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(45, 226, 166, 0.9);
}
.grid-2__media {
  position: relative;
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease),
    border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(8, 9, 15, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__mark {
  display: inline-flex;
  flex: none;
}
.brand__mark-media {
  width: 36px;
  height: 36px;
  background: none;
  flex: none;
}
.brand__mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
}
.brand__sub {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.brand--footer .brand__mark-media {
  width: 32px;
  height: 32px;
}
.brand--footer .brand__word {
  font-size: 0.94rem;
}

.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
}
.nav__link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(238, 240, 246, 0.76);
  transition: color 0.3s var(--ease);
  padding-block: 6px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover {
  color: var(--text);
}
.nav__link:hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch__link {
  color: var(--muted-2);
  transition: color 0.25s var(--ease);
}
.lang-switch__link.is-active,
.lang-switch__link:hover {
  color: var(--text);
}
.lang-switch__sep {
  color: rgba(255, 255, 255, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) {
  top: 15px;
}
.menu-toggle span:nth-child(2) {
  top: 20px;
}
.menu-toggle span:nth-child(3) {
  top: 25px;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image {
  position: absolute;
  inset: 0;
  background: #0a0b12;
}
.hero__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  scale: 1.04;
  animation: hero-drift 24s ease-in-out infinite alternate;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 18% 30%, rgba(8, 9, 15, 0.35), transparent 60%),
    linear-gradient(100deg, rgba(8, 9, 15, 0.94) 0%, rgba(8, 9, 15, 0.72) 45%, rgba(8, 9, 15, 0.5) 100%),
    linear-gradient(to top, var(--ink) 2%, transparent 42%);
}
.hero__glow {
  position: absolute;
  width: 52vw;
  height: 52vw;
  right: -12vw;
  top: -10vw;
  background: radial-gradient(circle, rgba(255, 106, 43, 0.24), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  animation: glow-breathe 12s ease-in-out infinite alternate;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 10%, transparent 72%);
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}

.hero__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8.4vw, 7.6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  animation: fade-up 1s var(--ease) 0.08s both;
}
.hero__title-line {
  display: block;
}
.hero__title-line--accent {
  background: linear-gradient(96deg, #ffd9b8 0%, var(--ember-2) 34%, var(--ember) 78%, #ff4d6d 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 44px rgba(255, 106, 43, 0.26));
}

.hero__lede {
  margin-top: clamp(22px, 3vw, 34px);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  animation: fade-up 1s var(--ease) 0.16s both;
}
.hero__desc {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  animation: fade-up 1s var(--ease) 0.24s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 40px);
  animation: fade-up 1s var(--ease) 0.32s both;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  animation: fade-up 1s var(--ease) 0.4s both;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(238, 240, 246, 0.62);
}
.hero__badges li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 179, 107, 0.8);
}

/* hero card — an impression of the studio workbench */
.studio-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(22, 25, 39, 0.86), rgba(11, 13, 21, 0.92));
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: fade-up 1.1s var(--ease) 0.36s both;
}
.studio-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 179, 107, 0.5), rgba(124, 92, 255, 0.18) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.studio-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.studio-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(45, 226, 166, 0.1);
  color: var(--mint);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.studio-card__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(45, 226, 166, 0.9);
  animation: pulse 2.4s ease-in-out infinite;
}
.studio-card__project {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.studio-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
}
.studio-card__progress-value {
  font-family: var(--font-display);
  color: var(--ember-2);
}
.studio-card__bar {
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.studio-card__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--ember));
  box-shadow: 0 0 14px rgba(255, 106, 43, 0.55);
}
.studio-card__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.studio-card__step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.studio-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  flex: none;
}
.studio-card__step[data-state='done'] {
  color: var(--muted);
}
.studio-card__step[data-state='done'] .studio-card__dot {
  background: var(--mint);
  border-color: transparent;
  box-shadow: 0 0 8px rgba(45, 226, 166, 0.6);
}
.studio-card__step[data-state='active'] {
  color: var(--text);
}
.studio-card__step[data-state='active'] .studio-card__dot {
  background: var(--ember);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(255, 106, 43, 0.8);
  animation: pulse 2s ease-in-out infinite;
}
.studio-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.studio-card__foot span {
  color: var(--violet);
}

/* --------------------------------------------------------------- marquee -- */

.marquee {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 16px;
  background: rgba(255, 255, 255, 0.014);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.marquee__item i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0.7;
}

/* ---------------------------------------------------------------- studio -- */

.section--studio {
  padding-top: clamp(80px, 10vw, 140px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.grid-2--reverse .grid-2__body {
  order: 1;
}
.grid-2--reverse .grid-2__media {
  order: 2;
}

.highlight-list {
  margin-top: 38px;
  display: grid;
  gap: 22px;
}
.highlight {
  display: flex;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.highlight__index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ember);
  padding-top: 3px;
  letter-spacing: 0.06em;
}
.highlight__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.highlight__desc {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- pipeline -- */

.section--pipeline {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(124, 92, 255, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%);
  border-block: 1px solid var(--line);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(10, 12, 19, 0.5);
}
.step {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.step:nth-child(4n) {
  border-right: 0;
}
.step:nth-child(n + 5) {
  border-bottom: 0;
}
.step:hover {
  background: rgba(255, 255, 255, 0.03);
}
.step__num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  transition: -webkit-text-stroke-color 0.4s var(--ease), color 0.4s var(--ease);
}
.step:hover .step__num {
  color: var(--ember);
  -webkit-text-stroke-color: transparent;
}
.step__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.step__title-en {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.step__desc {
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}
.step__line {
  position: absolute;
  left: clamp(24px, 2.6vw, 34px);
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), transparent);
  transition: width 0.5s var(--ease);
}
.step:hover .step__line {
  width: 40%;
}

/* ------------------------------------------------------------------ work -- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.work {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.work__media {
  aspect-ratio: 4 / 3;
}
.work__media > img {
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.work:hover .work__media > img {
  transform: scale(1.045);
  filter: saturate(1.1);
}
.work__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(8, 9, 15, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0.92;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  transform: translateY(6px);
}
.work:hover .work__caption {
  transform: translateY(0);
  opacity: 1;
}
.work__index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ember-2);
}
.work__name {
  font-size: 0.82rem;
  color: var(--text);
}
.work__corner {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0.7;
}

/* -------------------------------------------------------------- products -- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), rgba(10, 12, 19, 0.6));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.product:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 107, 0.34);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}
.product__media-wrap {
  position: relative;
}
.product__media {
  aspect-ratio: 3 / 2;
}
.product__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 9, 15, 0.7);
  border: 1px solid rgba(255, 179, 107, 0.4);
  color: var(--ember-2);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  backdrop-filter: blur(8px);
}
.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 2.4vw, 30px);
}
.product__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.product__desc {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}
.product__points {
  margin-top: 20px;
  display: grid;
  gap: 9px;
}
.product__points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: rgba(238, 240, 246, 0.78);
}
.product__points svg {
  width: 14px;
  height: 14px;
  color: var(--mint);
  flex: none;
}
.product__body .link-arrow {
  margin-top: auto;
  padding-top: 22px;
}

/* ----------------------------------------------------------------- about -- */

.section--about {
  border-top: 1px solid var(--line);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.fact__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.fact__value {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(56px, 7vw, 92px);
}
.value {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.value__mark {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ember);
  margin-bottom: 18px;
}
.value__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.value__desc {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------- contact -- */

.section--contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact__image {
  position: absolute;
  inset: 0;
}
.contact__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.contact__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 15% 20%, rgba(255, 106, 43, 0.14), transparent 60%),
    linear-gradient(100deg, rgba(8, 9, 15, 0.96) 0%, rgba(8, 9, 15, 0.88) 50%, rgba(8, 9, 15, 0.72) 100%);
}
.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.contact__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.contact__lead {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
}
.contact__copy .btn {
  margin-top: 32px;
}
.contact__note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.contact-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(21, 25, 39, 0.9), rgba(10, 12, 19, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.contact-card__row {
  display: flex;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-card__row:first-child {
  padding-top: 0;
}
.contact-card__row:last-of-type {
  border-bottom: 0;
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ember-2);
}
.contact-card__icon svg {
  width: 18px;
  height: 18px;
}
.contact-card__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.contact-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s var(--ease);
  word-break: break-word;
}
a.contact-card__value:hover {
  color: var(--ember-2);
}
.contact-card__wechat-id {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text);
}
.contact-card__wechat-empty {
  font-size: 0.85rem;
  color: var(--muted-2);
}
.contact__qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.contact__qr-media {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  flex: none;
}
.contact__qr-hint {
  font-size: 0.78rem;
  color: var(--muted-2);
  max-width: 18ch;
}
.contact-card__legal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #06070c;
  padding-top: clamp(56px, 7vw, 84px);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer__tagline {
  margin-top: 20px;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted);
}
.footer__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer__list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer__list a {
  transition: color 0.25s var(--ease);
}
.footer__list a:hover {
  color: var(--ember-2);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted-2);
}
.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.footer__meta a {
  transition: color 0.25s var(--ease);
}
.footer__meta a:hover {
  color: var(--text);
}
.footer__admin {
  opacity: 0.7;
}

/* ------------------------------------------------------------------- 404 -- */

.error-page {
  min-height: 78svh;
  display: grid;
  place-items: center;
  padding-top: var(--header-h);
}
.error-page__inner {
  text-align: center;
  max-width: 620px;
}
.error-page__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.error-page__text {
  margin-top: 18px;
  color: var(--muted);
}
.error-page .btn {
  margin-top: 30px;
}

/* ------------------------------------------------------------- animation -- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.11) translate3d(-1.5%, -1.2%, 0);
  }
}
@keyframes glow-breathe {
  from {
    opacity: 0.7;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(-3%, 4%, 0) scale(1.12);
  }
}
@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.reveal-pending {
  opacity: 0;
  transform: translateY(20px);
}
.reveal-in {
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
  .hero__image > img,
  .hero__glow,
  .marquee__track,
  .studio-card__status i,
  .studio-card__step[data-state='active'] .studio-card__dot {
    animation: none !important;
  }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1080px) {
  .pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step:nth-child(2n) {
    border-right: 0;
  }
  .step:nth-child(n + 5) {
    border-bottom: 1px solid var(--line);
  }
  .step:nth-child(n + 7) {
    border-bottom: 0;
  }
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero {
    min-height: 0;
  }
  .studio-card {
    max-width: 560px;
  }
  .nav {
    display: none;
  }
  .header__cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-nav {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 8px);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(11, 13, 21, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }
  .mobile-nav[hidden] {
    display: none;
  }
  .mobile-nav__list {
    display: grid;
    gap: 4px;
  }
  .mobile-nav__list a {
    display: block;
    padding: 10px 4px;
    font-family: var(--font-display);
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav__cta {
    margin-top: 18px;
    width: 100%;
  }
  .mobile-nav__lang {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--muted-2);
  }
  .mobile-nav__lang .is-active {
    color: var(--text);
  }
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-2--reverse .grid-2__body {
    order: 2;
  }
  .grid-2--reverse .grid-2__media {
    order: 1;
  }
  .section__head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .section__lead--aside {
    margin-top: 0;
  }
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 64px;
  }
  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }
  .hero__title {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .studio-card {
    padding: 18px;
  }
  .studio-card__steps {
    grid-template-columns: 1fr;
  }
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .step:last-child {
    border-bottom: 0 !important;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__legal {
    flex-direction: column;
  }
  .contact__qr {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand__mark-media {
    width: 30px;
    height: 30px;
  }
  .brand__word {
    font-size: 0.9rem;
  }
  .brand__sub {
    font-size: 0.44rem;
  }
  .header__actions {
    gap: 10px;
  }
  .lang-switch {
    display: none;
  }
}
