/* =========================================================
   ELEPHANT GOOSE 内容组
   Dark broadcast editorial system
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a0908;
  --ink-2: #0f0d0b;
  --panel: #151210;
  --paper: #f2ede3;
  --paper-dim: #c7c0b4;
  --muted: #8f877b;
  --line: rgba(242, 237, 227, 0.16);
  --line-soft: rgba(242, 237, 227, 0.08);
  --accent: #ff4a1c;
  --accent-ink: #140703;
  --shell: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --sans: "Archivo", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Microsoft YaHei", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2b2621; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #443b33; }

img { max-width: 100%; }

a { color: inherit; }

button { font: inherit; }

h1, h2, h3, p, figure, dl, dd { margin: 0; }

h1, h2, h3 {
  font-weight: 700;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-solid:hover { background: #ff653d; border-color: #ff653d; transform: translateY(-2px); }

.btn-ghost,
.btn-outline {
  border-color: rgba(242, 237, 227, 0.32);
  color: var(--paper);
}
.btn-ghost:hover,
.btn-outline:hover { border-color: var(--paper); background: rgba(242, 237, 227, 0.06); }

.btn-sm { height: 38px; padding: 0 18px; font-size: 12.5px; }
.btn-lg { height: 58px; padding: 0 36px; font-size: 15px; }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(10, 9, 8, 0.84);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 74, 28, 0.14);
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.brand-text em {
  margin-top: 5px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.nav > a,
.nav-drop > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 0;
  color: rgba(242, 237, 227, 0.72);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.nav > a::after,
.nav-drop > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav > a:hover,
.nav-drop > a:hover,
.nav > a[aria-current="true"],
.nav-drop > a[aria-current="true"] { color: var(--paper); }

.nav > a:hover::after,
.nav-drop > a:hover::after,
.nav > a[aria-current="true"]::after,
.nav-drop > a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav-drop { position: relative; }

.chev {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  margin-bottom: 3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.nav-drop:hover .chev { transform: rotate(225deg) translate(-2px, -2px); }

.drop-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 200px;
  padding: 6px;
  background: #12100e;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.drop-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.drop-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  color: var(--paper-dim);
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.drop-panel a:hover { background: rgba(242, 237, 227, 0.05); color: var(--paper); }
.drop-panel em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--paper);
}
.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------------- Mobile menu ---------------- */

.mobile-menu[hidden] { display: none; }
.mobile-menu:not(.is-open) { pointer-events: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 36px) var(--gutter) 40px;
  background: var(--ink);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }

.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--paper);
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu nav a span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.mobile-menu nav a:hover { color: var(--accent); }

.mobile-menu-foot { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
.mobile-menu-foot p { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 44px) 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.06);
  animation: hero-rise 2.6s var(--ease) 0.1s forwards;
}

@keyframes hero-rise {
  from { transform: scale(1.06); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.97) 0%, rgba(10, 9, 8, 0.9) 20%, rgba(10, 9, 8, 0.55) 46%, rgba(10, 9, 8, 0.08) 74%, rgba(10, 9, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.72) 0%, rgba(10, 9, 8, 0) 30%, rgba(10, 9, 8, 0) 58%, rgba(10, 9, 8, 0.9) 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 820px; }

.hero h1 {
  margin: 0;
  font-size: clamp(60px, 9vw, 148px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--paper);
}
.hero h1 span { color: var(--accent); }

.hero-sub {
  max-width: 44em;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.85;
  color: rgba(242, 237, 227, 0.8);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 44px);
}

/* ---------------- Stats ---------------- */

.stats { padding: 60px 0 68px; border-bottom: 1px solid var(--line-soft); }

.stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.stats-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.stats-head p {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.stat {
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }

.stat-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.stat-num .unit { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--accent); }
.stat-label { margin-top: 14px; font-size: 13.5px; color: var(--paper); }
.stat-note { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

/* ---------------- Section base ---------------- */

.section {
  padding: clamp(92px, 10vw, 148px) 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-head { max-width: 920px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 {
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.section-head p {
  max-width: 44em;
  margin-top: 20px;
  font-size: clamp(14.5px, 1.2vw, 17px);
  line-height: 1.85;
  color: var(--paper-dim);
}

.media { position: relative; overflow: hidden; }
.media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #141210;
}
figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.05em;
  color: var(--muted);
}
figcaption strong { color: var(--paper); font-weight: 500; }

/* ---------------- AI ---------------- */

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.3fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}

.ai-copy { padding-top: 6px; }

.lead {
  max-width: 22em;
  margin-bottom: 38px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
  color: var(--paper);
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec-list span { font-size: 14.5px; color: var(--paper); }
.spec-list em { font-style: normal; font-size: 12px; line-height: 1.6; color: var(--muted); }

.metric-inline {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.metric-inline strong {
  margin-right: 5px;
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.metric-inline i {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 14px;
  background: var(--line);
  vertical-align: middle;
}

.ai-media {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.86fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.ai-media .media-result img { aspect-ratio: 4 / 5; }
.ai-media .media-process { margin-top: clamp(48px, 7vw, 92px); }
.ai-media .media-process img { aspect-ratio: 4 / 5; }

/* ---------------- Shoot ---------------- */

.shoot-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 92px);
  margin-bottom: clamp(32px, 4vw, 54px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}
.shoot-metrics div { display: flex; flex-direction: column; gap: 5px; }
.shoot-metrics strong {
  font-size: clamp(25px, 2.7vw, 36px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.shoot-metrics span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.shoot-media {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.shoot-media .media:first-child img { aspect-ratio: 4 / 5; }
.shoot-media .media:last-child { margin-top: clamp(44px, 8vw, 116px); }
.shoot-media .media:last-child img { aspect-ratio: 3 / 4; }

/* ---------------- Live ---------------- */

.live-wide img { aspect-ratio: 2.35 / 1; }

/* workflow */

.live-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(64px, 8vw, 104px);
}

.live-flow-aside { position: sticky; top: calc(var(--header-h) + 36px); }

.flow-branch {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.live-flow-aside h3 {
  margin-top: 16px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.live-flow-aside > p {
  max-width: 24em;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.live-flow-meta {
  display: flex;
  gap: 36px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.live-flow-meta dt {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.live-flow-meta dd {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.live-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.live-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 46px 30px;
}
.live-step:last-child { padding-bottom: 0; }
.live-step::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}
.live-step:hover::before { transform: scale(1.6); }

.step-index {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step-content h4 {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}
.live-step:hover .step-content h4 { color: var(--accent); }
.step-content > p {
  max-width: 42em;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.step-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.step-list li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-dim);
}
.step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--accent);
  opacity: 0.9;
}
.step-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.step-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.step-group h5 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.step-group .step-list { grid-template-columns: 1fr; margin-top: 10px; }
.step-group .step-list li:last-child:nth-child(odd) { grid-column: auto; }

/* build support */

.build-support {
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #14110e 0%, #0f0d0b 100%);
}

.build-support-head { display: block; }
.build-support-head h3 {
  margin-top: 14px;
  font-size: clamp(25px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.build-support-desc {
  max-width: 44em;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.build-support-head h3 span { display: inline; }

.build-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.build-rail li { padding-top: 16px; }
.build-rail span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.build-rail strong {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.build-loop {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.build-loop span { display: inline-block; margin-right: 8px; color: var(--accent); }

.build-reqs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.build-reqs h4 { font-size: 12px; font-weight: 600; }
.build-reqs p { margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--muted); }

/* scale */

.live-scale { margin-top: clamp(64px, 8vw, 104px); }

.live-subhead { display: block; }
.live-subhead h3 {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.live-subhead p { max-width: 44em; margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--muted); }

.live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 30px;
}
.live-stat { padding: 20px 0 28px; border-top: 1px solid var(--line); }
.live-num {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.live-num span { margin-left: 6px; font-size: 13px; letter-spacing: 0; color: var(--accent); }
.live-stat h4 { margin-top: 12px; font-size: 13px; font-weight: 500; }
.live-stat .live-desc { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--muted); }

.live-scale-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.live-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 14px;
}
.live-role { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.live-role span { display: block; font-size: 13px; color: var(--paper); }
.live-role p { margin-top: 5px; font-size: 12px; color: var(--muted); }

/* gallery */

.live-gallery { margin-top: clamp(64px, 8vw, 104px); }

.live-styles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: 28px;
}
.live-styles img { aspect-ratio: 4 / 3; }

/* ---------------- Clips ---------------- */

.clips-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding: clamp(26px, 5vw, 68px);
  background: linear-gradient(180deg, #161311 0%, #100e0c 100%);
  border: 1px solid var(--line);
}

.clips-copy h2 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.04em; }
.clips-lead { max-width: 24em; margin-top: 18px; font-size: 14.5px; line-height: 1.85; color: var(--paper-dim); }

.clips-big {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 34px;
  font-size: clamp(54px, 6.6vw, 86px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.clips-big .unit { font-size: 17px; letter-spacing: 0; color: var(--accent); padding-bottom: 4px; }
.clips-big em {
  flex-basis: 100%;
  margin-top: 14px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.clips-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.clips-facts div { display: flex; flex-direction: column; gap: 4px; }
.clips-facts dt { font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clips-facts dd { margin: 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--muted); }

.clips-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.clips-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  align-items: start;
}

.clips-swipe {
  display: none;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.phone:nth-child(2) { margin-top: clamp(18px, 3vw, 38px); }
.phone:nth-child(3) { margin-top: clamp(36px, 6vw, 76px); }
.phone img { aspect-ratio: 9 / 16; border: 1px solid rgba(242, 237, 227, 0.16); }
.phone figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; letter-spacing: 0; }
.phone figcaption strong { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--paper); }

/* ---------------- Projects ---------------- */

.filters {
  display: flex;
  gap: 30px;
  margin-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.filter {
  position: relative;
  padding: 0 0 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.filter span {
  margin-left: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  vertical-align: 2px;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.filter:hover { color: var(--paper); }
.filter.is-active { color: var(--paper); }
.filter.is-active::after { transform: scaleX(1); transform-origin: left; }
.filter.is-active span { color: var(--accent); }

.project-link { display: block; color: inherit; text-decoration: none; }
.project-feature { margin-bottom: clamp(30px, 4vw, 52px); }
.project-feature .media img { aspect-ratio: 2.35 / 1; }
.project-feature.is-out { display: none; }

.project-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.project-caption h3 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}
.project-caption p { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.project-meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}
.project-meta span:first-child { color: var(--accent); }
.project-link:hover h3 { color: var(--accent); }
.project-link:hover .media img { transform: scale(1.035); }
.project-link .media img { transition: transform 0.9s var(--ease); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 52px) clamp(20px, 2.6vw, 36px);
}
.project-card .media img { aspect-ratio: 4 / 3; }
.project-card.is-out { display: none; }

.projects-empty {
  margin-top: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.project-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.project-more-kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.project-more h3 {
  margin-top: 10px;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.3;
}
/* ---------------- Contact ---------------- */

.section-contact {
  position: relative;
  padding: clamp(100px, 12vw, 176px) 0;
  border-bottom: 0;
  overflow: hidden;
}
.section-contact::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -40%;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(255, 74, 28, 0.12) 0%, rgba(255, 74, 28, 0) 62%);
  pointer-events: none;
}

.contact-inner { position: relative; z-index: 1; }
.contact-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.contact-inner h2 {
  margin-top: 18px;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.contact-lead { margin-top: 24px; font-size: 14.5px; color: var(--paper-dim); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
}
.contact-mail {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- Footer ---------------- */

.site-footer {
  padding: 56px 0 30px;
  border-top: 1px solid var(--line);
  background: #0b0a09;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand strong { display: block; font-size: 15px; }
.footer-brand em {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.footer-line { max-width: 32em; font-size: 11.5px; line-height: 1.9; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: 12px; }
.footer-links a { color: var(--paper-dim); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* ---------------- Dialog ---------------- */

.contact-dialog {
  width: min(540px, calc(100% - 40px));
  max-width: 540px;
  padding: 0;
  border: 1px solid var(--line);
  background: #13100e;
  color: var(--paper);
}
.contact-dialog::backdrop {
  background: rgba(5, 4, 3, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dialog-inner { position: relative; padding: clamp(28px, 4vw, 46px); }
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.dialog-close:hover { background: rgba(242, 237, 227, 0.06); border-color: var(--paper); }
.dialog-kicker { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--accent); }
.dialog-inner h2 { margin-top: 14px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; line-height: 1.1; }
.dialog-lead { margin-top: 12px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.contact-rows { margin-top: 26px; border-top: 1px solid var(--line); }
.contact-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-row span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); }
.contact-row strong,
.contact-row a {
  overflow-wrap: anywhere;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
}
.contact-row a:hover { color: var(--accent); }
.contact-row button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.contact-row button:hover { color: var(--paper); border-color: var(--paper); }
.dialog-note { margin-top: 18px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--muted); }

/* ---------------- Reveal motion ---------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1180px) {
  .nav { gap: 22px; font-size: 13px; }
  .header-inner { gap: 16px; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-actions .btn-outline { display: none; }

  .ai-grid { grid-template-columns: 1fr; gap: 42px; }
  .ai-media { max-width: 760px; }
  .clips-panel { grid-template-columns: 1fr; align-items: start; }
  .clips-media { max-width: 720px; }

  .live-flow { grid-template-columns: 1fr; gap: 40px; }
  .live-flow-aside { position: static; max-width: 38em; }
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 0 24px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line-soft); }
  .stat:nth-child(even) { padding-left: 20px; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }

  .shoot-media { grid-template-columns: 1fr; }
  .shoot-media .media:last-child { margin-top: 0; max-width: 78%; margin-left: auto; }

  .build-support-head { grid-template-columns: 1fr; align-items: start; }
  .build-rail { grid-template-columns: 1fr; gap: 0; margin-top: 24px; border-top: 0; }
  .build-rail li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
  }
  .build-rail strong { margin-top: 0; }
  .build-reqs { grid-template-columns: 1fr; gap: 18px; }

  .live-stats { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .live-roles { grid-template-columns: 1fr 1fr; gap: 0 24px; }

  .live-wide img { aspect-ratio: 4 / 3; object-position: 50% 55%; }

  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-feature .media img { aspect-ratio: 16 / 9; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-line { grid-column: 1 / -1; order: 3; }
  .footer-links { justify-content: flex-end; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }

  .hero { min-height: 100svh; padding-top: calc(var(--header-h) + 52px); padding-bottom: 64px; }
  .hero-media img { object-position: 62% 50%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(10, 9, 8, 0.96) 0%, rgba(10, 9, 8, 0.82) 42%, rgba(10, 9, 8, 0.2) 100%),
      linear-gradient(180deg, rgba(10, 9, 8, 0.7) 0%, rgba(10, 9, 8, 0.1) 35%, rgba(10, 9, 8, 0.92) 100%);
  }
  .hero h1 { font-size: clamp(50px, 16.5vw, 82px); }
  .hero-sub { font-size: 14.5px; line-height: 1.8; }
  .hero-cta .btn { flex: 1 1 auto; }

  .stats { padding: 44px 0 50px; }
  .stats-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat-num { font-size: 38px; }
  .stat-label { font-size: 12.5px; }
  .stat-note { font-size: 10.5px; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(38px, 11vw, 56px); }
  .section-head p { font-size: 14px; margin-top: 16px; }

  .ai-media { grid-template-columns: 1.2fr 0.8fr; }
  .ai-media .media-process { margin-top: 38px; }
  .spec-list li { grid-template-columns: 96px 1fr; gap: 12px; }

  .shoot-metrics { gap: 28px 40px; padding: 20px 0; }
  .shoot-metrics strong { font-size: 25px; }
  .shoot-media .media:last-child { max-width: 88%; }

  .live-flow { grid-template-columns: 1fr; gap: 34px; margin-top: 56px; }
  .live-flow-aside { position: static; }
  .live-flow-aside h3 { font-size: clamp(30px, 9vw, 40px); }
  .live-step { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 0 0 36px 22px; }
  .step-list { grid-template-columns: 1fr; }
  .step-list li:last-child:nth-child(odd) { grid-column: auto; }
  .step-groups { grid-template-columns: 1fr; gap: 18px; }
  .build-support { padding: 24px 18px; }
  .build-support-head { gap: 16px; }
  .build-support-head h3 span { display: block; }
  .build-loop { display: block; }
  .live-subhead { display: block; }
  .live-subhead p { margin-top: 10px; }
  .live-num { font-size: 36px; }
  .live-scale, .live-gallery { margin-top: 56px; }

  .live-wide img { object-position: 50% 55%; }
  .live-styles { grid-template-columns: 1fr; }

  .clips-panel { padding: 24px 18px 28px; }
  .clips-media {
    display: flex;
    gap: 12px;
    margin: 26px -18px 0;
    padding: 0 18px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .clips-media .phone { flex: 0 0 56%; scroll-snap-align: start; }
  .clips-media .phone:nth-child(2),
  .clips-media .phone:nth-child(3) { margin-top: 0; }
  .clips-swipe { display: block; }
  .clips-facts { gap: 18px; }

  .project-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-feature .media img { aspect-ratio: 4 / 3; }
  .project-caption { flex-direction: column; gap: 8px; }
  .project-more { flex-direction: column; align-items: flex-start; }
  .project-more .btn { width: 100%; }

  .contact-inner h2 { font-size: clamp(40px, 12vw, 64px); }
  .contact-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact-actions .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .live-roles { grid-template-columns: 1fr; }
  .ai-media { grid-template-columns: 1fr; }
  .ai-media .media-process { margin-top: 18px; max-width: 70%; }
  .clips-media .phone { flex-basis: 64%; }
  .phone figcaption strong { font-size: 13px; }
}

/* ---------------- Reduced motion ---------------- */

@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;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-stagger] > * { opacity: 1; transform: none; }
}
