/* ============================================================
   Legacy Labs — Brand stylesheet
   Aesthetic: archival, cinematic, calm. Black canvas, warm gold,
   restrained motion. Serif display + clean sans body.
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-2: #111111;
  --ink-3: #1a1a1a;
  --paper: #f4ede2;
  --paper-soft: #e9e0d0;
  --gold: #c9a96a;
  --gold-soft: #8e7745;
  --gold-bright: #e8c98a;
  --rule: rgba(201, 169, 106, 0.22);
  --rule-strong: rgba(201, 169, 106, 0.55);
  --mute: rgba(244, 237, 226, 0.62);
  --mute-strong: rgba(244, 237, 226, 0.82);
  --crimson: #a4503c;
  --serif: 'Cormorant Garamond', 'Source Han Serif SC', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { min-height: 100vh; }

a { color: var(--paper); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-bright); }

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

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

section { padding: 120px 0; position: relative; }
section + section { border-top: 1px solid var(--rule); }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.mono  { font-family: var(--mono); letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; color: var(--paper); }
h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: -0.015em; }
h2 { font-size: clamp(36px, 4.5vw, 60px); letter-spacing: -0.01em; }
h3 { font-size: clamp(24px, 2.4vw, 34px); }
h4 { font-size: 20px; }

p { color: var(--mute-strong); }
.lede { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; color: var(--paper); font-weight: 300; }

.gold { color: var(--gold); }
.gold-bright { color: var(--gold-bright); }
.subtle { color: var(--mute); }

.divider {
  width: 64px; height: 1px;
  background: var(--gold);
  margin: 32px 0;
}
.divider-center { margin: 32px auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand .mark {
  display: inline-block;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  position: relative;
  transform: rotate(45deg);
}
.nav-brand .mark::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--gold);
}
.nav-links {
  display: flex; gap: 36px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--mute-strong);
}
.nav-links a { color: inherit; }
.nav-links a.active { color: var(--gold-bright); }
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold-soft);
  color: var(--gold-bright);
  padding: 9px 18px;
  transition: all .25s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--rule-strong);
  padding: 4px 6px;
}
.lang-switch .lang-opt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  background: transparent;
  border: none;
  color: var(--mute);
  padding: 4px 8px;
  cursor: pointer;
  transition: color .2s, background .2s;
  line-height: 1.4;
}
.lang-switch .lang-opt:hover { color: var(--gold-bright); }
.lang-switch .lang-opt.active {
  color: var(--ink);
  background: var(--gold);
}
.lang-switch .lang-sep {
  color: var(--rule-strong);
  font-family: var(--mono);
  font-size: 12px;
  user-select: none;
}
@media (max-width: 720px) {
  .lang-switch { padding: 3px 4px; }
  .lang-switch .lang-opt { padding: 4px 6px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(201, 169, 106, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(164, 80, 60, 0.08), transparent 70%),
    linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
  z-index: -1;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 106, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 106, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  z-index: -1;
  opacity: 0.4;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  margin-top: 24px;
  font-size: clamp(56px, 8.5vw, 128px);
  line-height: 0.95;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lede {
  max-width: 720px;
  margin-top: 40px;
}
.hero .lede-zh {
  max-width: 680px;
  margin-top: 16px;
  color: var(--mute);
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-meta .item span { color: var(--gold-bright); display: block; margin-bottom: 4px; font-size: 11px; }
.hero-meta .item strong {
  display: block; font-weight: 400; font-family: var(--serif);
  font-size: 22px; text-transform: none; letter-spacing: 0;
  color: var(--paper);
  margin-top: 2px;
}

/* corner ornaments */
.ornament {
  position: absolute;
  width: 60px; height: 60px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}
.ornament.tl { top: 100px; left: 32px; border-right: none; border-bottom: none; }
.ornament.tr { top: 100px; right: 32px; border-left: none; border-bottom: none; }
.ornament.bl { bottom: 32px; left: 32px; border-right: none; border-top: none; }
.ornament.br { bottom: 32px; right: 32px; border-left: none; border-top: none; }

/* ---------- Marquee keywords ---------- */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 28px 0;
  background: rgba(20, 18, 14, 0.4);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--gold-soft);
}
.marquee-track span::after {
  content: '◈';
  margin-left: 56px;
  color: var(--gold);
  font-style: normal;
  font-size: 18px;
  vertical-align: middle;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  transition: all .3s;
}
.btn:hover {
  background: var(--gold);
  color: var(--ink);
}
.btn-solid {
  background: var(--gold);
  color: var(--ink);
}
.btn-solid:hover {
  background: var(--gold-bright);
  color: var(--ink);
}
.btn-ghost {
  border-color: var(--rule-strong);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold-bright);
}

.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 48px; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.two-col .col-left h2 { position: sticky; top: 120px; }

/* ---------- Services / Cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
}
.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.4) 100%);
  border: 1px solid var(--rule);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.service-card:hover {
  border-color: var(--gold-soft);
}
.service-card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 4px 12px;
}
.service-card h3 {
  margin-top: 24px;
  font-size: 42px;
}
.service-card .subtitle {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mute-strong);
  font-size: 18px;
  margin-top: 8px;
}
.service-card .list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--mute-strong);
}
.service-card .list .li {
  display: flex; align-items: baseline; gap: 8px;
}
.service-card .list .li::before {
  content: '·';
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}

/* ---------- Box / Product hero ---------- */
.product {
  background: linear-gradient(180deg, #060606, #0a0a0a);
}
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.box-visual {
  position: relative;
  aspect-ratio: 4/3;
  background:
    radial-gradient(ellipse 70% 50% at 50% 70%, rgba(201, 169, 106, 0.18), transparent 60%),
    linear-gradient(135deg, #1a1612 0%, #0a0907 100%);
  border: 1px solid var(--rule-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.box-visual::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid var(--rule);
}
.box-visual .device {
  width: 60%;
  aspect-ratio: 1.4/1;
  background: linear-gradient(160deg, #1c1812, #0f0d0a 80%);
  border: 1px solid var(--gold-soft);
  position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(201, 169, 106, 0.12),
    inset 0 1px 0 rgba(232, 201, 138, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}
.box-visual .device .logo {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 18px;
  letter-spacing: 0.06em;
}
.box-visual .device .logo::before {
  content: '◈ ';
  font-size: 14px;
}
.box-visual .device .led {
  position: absolute;
  right: 28px; top: 28px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.box-visual .device .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}
.box-visual .device .meta b { color: var(--gold-bright); font-weight: 400; }

/* ---------- Demo embed ---------- */
.demo {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 106, 0.08), transparent 70%),
    var(--ink);
}
.demo-header {
  text-align: center;
  margin-bottom: 64px;
}
.demo-header .lede { max-width: 720px; margin: 24px auto 0; }

.demo-frame {
  border: 1px solid var(--rule-strong);
  background: #000;
  position: relative;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(232, 201, 138, 0.05);
  overflow: hidden;
}
.demo-frame .chrome {
  background: #14110d;
  border-bottom: 1px solid var(--rule);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-frame .chrome .dots { display: flex; gap: 6px; }
.demo-frame .chrome .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-3);
  border: 1px solid var(--rule);
}
.demo-frame .chrome .url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  background: var(--ink);
  padding: 6px 14px;
  flex: 1;
  border: 1px solid var(--rule);
  letter-spacing: 0.04em;
}
.demo-frame .chrome .url::before { content: '🔒 '; }
.demo-frame .chrome .badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 4px 10px;
}

.demo-iframe-wrap {
  position: relative;
  width: 100%;
  height: 760px;
  background: #000;
}
.demo-iframe-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.demo-actions {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.demo-credentials {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.demo-credentials b { color: var(--gold-bright); font-weight: 400; }

/* ---------- Project / Pancho ---------- */
.project {
  background:
    linear-gradient(180deg, var(--ink) 0%, #0d0a07 100%);
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid var(--rule-strong);
  background: #000;
  overflow: hidden;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

.project-info .status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--gold-soft);
  padding: 6px 14px;
  margin-bottom: 24px;
}
.project-info .status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2.5s infinite;
}

/* ---------- Initiatives ---------- */
.initiatives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
}
.initiative {
  border: 1px solid var(--rule);
  padding: 56px 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
  position: relative;
}
.initiative .geo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.initiative h3 { margin-top: 8px; }
.initiative .desc { margin-top: 24px; color: var(--mute-strong); }
.initiative .partners {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 2;
}

/* ---------- Vision ---------- */
.vision {
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201, 169, 106, 0.06), transparent 70%);
}
.vision h2 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.15;
}
.vision h2 .accent { color: var(--gold); font-style: italic; }

/* ---------- Contact / Footer ---------- */
.contact {
  background: #060606;
  padding: 120px 0 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding-bottom: 96px;
}
.contact h2 { font-size: clamp(48px, 6vw, 80px); }
.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.contact-form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
  padding: 10px 0;
  transition: border-color .25s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 0;
  border-bottom-color: var(--gold-bright);
}
.contact-form textarea { resize: vertical; min-height: 100px; font-size: 17px; line-height: 1.5; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-meta { font-size: 14px; line-height: 1.9; color: var(--mute-strong); }
.contact-meta .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  margin-top: 24px;
}
.contact-meta .label:first-child { margin-top: 0; }
.contact-meta .val { color: var(--paper); font-family: var(--serif); font-size: 22px; }

.footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}
.footer a { color: var(--mute); }
.footer a:hover { color: var(--gold-bright); }

/* ---------- About / Manifesto ---------- */
.manifesto {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201, 169, 106, 0.05), transparent 70%),
    var(--ink);
}
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.5;
  max-width: 880px;
  font-weight: 300;
  color: var(--paper);
}
.manifesto-text p { color: inherit; margin: 0 0 28px; }
.manifesto-text .quiet { color: var(--mute-strong); }
.manifesto-text .accent { color: var(--gold); font-style: italic; }

/* ---------- Focus pills ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 10px 18px;
  transition: all .25s;
}
.pill:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ---------- Pipeline strip (numbered process) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--rule);
}
.step {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
}
.step h4 {
  margin-top: 18px;
  font-size: 22px;
}
.step p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--mute-strong);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: 56px; }
.sec-head h2 { margin-top: 18px; max-width: 880px; }
.sec-head .sub { max-width: 720px; margin-top: 24px; color: var(--mute-strong); font-family: var(--serif); font-size: 22px; font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .two-col, .product-hero, .project-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-grid, .initiatives-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .two-col .col-left h2 { position: static; }
}
@media (max-width: 720px) {
  section { padding: 80px 0; }
  .container, .container-wide { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; gap: 14px; }
  .nav-links { display: none; }
  .nav-brand { font-size: 18px; }
  .nav-cta { padding: 7px 14px; font-size: 11px; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .ornament { display: none; }
  .service-card { padding: 36px 28px; }
  .service-card .list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: 0; }
  .initiative { padding: 36px 28px; }
  .demo-iframe-wrap { height: 540px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 20px; }
  .hero-meta { gap: 28px; }
  h1 { font-size: 56px !important; }
}

/* ---------- Selection ---------- */
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   Lumen-style interaction layer
   (gallery feel: smooth scroll, parallax, tilt, custom cursor,
    magnetic buttons, cinematic reveals) — content unchanged.
   ============================================================ */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 9997;
  pointer-events: none;
}

/* ---- Custom cursor ---- */
.lumen-cursor {
  position: fixed; left: 0; top: 0;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(244, 237, 226, 0.55);
  border-radius: 50%;
  pointer-events: none; z-index: 9998;
  mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: width .4s cubic-bezier(.16,1,.3,1), height .4s cubic-bezier(.16,1,.3,1),
              background .4s ease, border-color .4s ease, opacity .35s ease;
}
.lumen-cursor.ready { opacity: 1; }
.lumen-cursor .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-bright);
  opacity: 0; transition: opacity .3s ease;
}
.lumen-cursor-dot {
  position: fixed; left: 0; top: 0;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: var(--paper);
  pointer-events: none; z-index: 9999;
  mix-blend-mode: difference; opacity: 0;
  transition: opacity .35s ease;
}
.lumen-cursor-dot.ready { opacity: 1; }
.lumen-cursor.hover { width: 62px; height: 62px; border-color: rgba(244,237,226,.9); }
.lumen-cursor.view {
  width: 98px; height: 98px;
  background: rgba(201,169,106,.16);
  border-color: rgba(201,169,106,.6);
  mix-blend-mode: normal;
}
.lumen-cursor.view .lbl { opacity: 1; }
body.cursor-none, body.cursor-none * { cursor: none !important; }

/* ---- Tilt / parallax / zoom primitives ---- */
.lumen-tilt { will-change: transform; }
.lumen-parallax { will-change: transform; }
.lumen-zoom { overflow: hidden; }
.lumen-zoom > iframe,
.lumen-zoom .device,
.lumen-zoom img {
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.lumen-zoom:hover > iframe,
.lumen-zoom:hover .device,
.lumen-zoom:hover img { transform: scale(1.06); }
[data-mag] { will-change: transform; }

/* ---- Cinematic reveal (overrides the basic one above) ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(7px);
  transition: opacity 1.1s cubic-bezier(.16,1,.3,1) var(--d, 0s),
              transform 1.1s cubic-bezier(.16,1,.3,1) var(--d, 0s),
              filter 1.1s ease var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ---- Staggered children ---- */
.js-anim .stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1)  { transition-delay: .04s; }
.stagger.in > *:nth-child(2)  { transition-delay: .09s; }
.stagger.in > *:nth-child(3)  { transition-delay: .14s; }
.stagger.in > *:nth-child(4)  { transition-delay: .19s; }
.stagger.in > *:nth-child(5)  { transition-delay: .24s; }
.stagger.in > *:nth-child(6)  { transition-delay: .29s; }
.stagger.in > *:nth-child(7)  { transition-delay: .34s; }
.stagger.in > *:nth-child(8)  { transition-delay: .39s; }
.stagger.in > *:nth-child(9)  { transition-delay: .44s; }
.stagger.in > *:nth-child(10) { transition-delay: .49s; }
.stagger.in > *:nth-child(n+11) { transition-delay: .54s; }

/* ---- Hero intro: video plays first, then text reveals (body.hero-ready) ---- */
.js-anim .hero .eyebrow,
.js-anim .hero h1,
.js-anim .hero .hero-intro,
.js-anim .hero .cta-row {
  opacity: 0; transform: translateY(34px);
  transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1);
}
body.hero-ready .hero .eyebrow    { opacity: 1; transform: none; transition-delay: .10s; }
body.hero-ready .hero h1          { opacity: 1; transform: none; transition-delay: .24s; }
body.hero-ready .hero .hero-intro { opacity: 1; transform: none; transition-delay: .44s; }
body.hero-ready .hero .cta-row    { opacity: 1; transform: none; transition-delay: .60s; }

/* ---- Hero video background ---- */
.hero-video-mode { align-items: flex-end; padding-bottom: 9vh; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #060606; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* start a touch larger, settle to 1 once revealed → "big video, then background" */
  transform: scale(1.06); transform-origin: center;
  transition: transform 2.4s cubic-bezier(.16,1,.3,1);
}
body.hero-ready .hero-video { transform: scale(1); }
.hero-video-overlay {
  position: absolute; inset: 0;
  /* even transparent-black wash (a touch darker at the bottom for the buttons) */
  background: linear-gradient(180deg, rgba(6,6,6,.80) 0%, rgba(6,6,6,.74) 45%, rgba(6,6,6,.93) 100%);
  opacity: .12; /* video plays clearly first … */
  transition: opacity 1.3s ease;
}
body.hero-ready .hero-video-overlay { opacity: 1; } /* … then a transparent black drops in with the text */
.hero-video-mode .hero-content { position: relative; z-index: 2; }
.hero-intro {
  max-width: 560px; margin-top: 30px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(19px, 1.7vw, 26px); line-height: 1.45;
  color: var(--paper);
}
@media (max-width: 720px) {
  .hero-video-mode { padding-bottom: 12vh; min-height: 92vh; }
  .hero-intro { font-size: 18px; }
}

/* ---- Lenis smooth-scroll housekeeping ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- Reduced motion: opt out of all of the above ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > *,
  .js-anim .hero .eyebrow, .js-anim .hero h1, .js-anim .hero .hero-intro,
  .js-anim .hero .cta-row {
    opacity: 1 !important; transform: none !important; filter: none !important;
    transition: none !important;
  }
  .hero-video { display: none !important; }
  .hero-video-wrap { background: linear-gradient(180deg, #0a0a0a, #060606); }
  .hero-video-overlay { opacity: 1 !important; }
  .lumen-cursor, .lumen-cursor-dot, .scroll-progress { display: none !important; }
  .lumen-zoom:hover > iframe, .lumen-zoom:hover .device, .lumen-zoom:hover img { transform: none; }
}

/* ---- Touch / coarse pointers: no cursor, no native-hide ---- */
@media (hover: none), (pointer: coarse) {
  .lumen-cursor, .lumen-cursor-dot { display: none !important; }
  body.cursor-none, body.cursor-none * { cursor: auto !important; }
}

/* ============================================================
   Heritage imagery (scattered gallery, hero floats, film strip)
   ============================================================ */

/* ---- Hero floating images ---- */
.hero-floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero-float {
  position: absolute; overflow: hidden;
  border: 1px solid var(--rule-strong);
  pointer-events: auto; box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.hero-float img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.18) brightness(.86) contrast(1.02);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1), filter .6s ease;
}
.hero-float:hover img { transform: scale(1.07); filter: grayscale(0) brightness(1); }
.hero-float.f1 { width: 240px; height: 320px; top: 16%; right: 5%; }
.hero-float.f2 { width: 190px; height: 240px; bottom: 12%; right: 20%; }
@media (max-width: 1200px) { .hero-floats { display: none; } }

/* ---- The Archive: scattered masonry gallery ---- */
.archive { padding: 120px 0; position: relative; }
.archive-head { max-width: 720px; margin: 0 0 64px; }
.archive-head h2 { margin-top: 18px; }
.archive-head p {
  margin-top: 28px; max-width: 600px;
  color: var(--mute-strong); font-size: 17px;
}
.archive-grid {
  column-count: 3; column-gap: 26px;
}
.archive-fig {
  break-inside: avoid; margin: 0 0 26px;
  overflow: hidden; position: relative;
  border: 1px solid rgba(201,169,106,.14);
}
.archive-fig img {
  width: 100%; height: auto; display: block;
  filter: grayscale(.22) brightness(.9);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1), filter .7s ease;
}
.archive-fig:hover img { transform: scale(1.07); filter: grayscale(0) brightness(1.02); }
.archive-fig::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,.55));
  opacity: .8; transition: opacity .6s ease; pointer-events: none;
}
.archive-fig:hover::after { opacity: .35; }
@media (max-width: 1024px) { .archive-grid { column-count: 2; } }
@media (max-width: 600px)  { .archive-grid { column-count: 1; } }

/* ---- Magnetic circle link (lumen "About Us" style) ---- */
.circle-link {
  display: inline-flex; align-items: center; gap: 20px;
  margin-top: 44px; color: var(--paper);
}
.circle-link .circle {
  width: 86px; height: 86px; flex: 0 0 auto;
  border: 1px solid var(--rule-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--gold-bright);
  transition: background .45s cubic-bezier(.16,1,.3,1), color .45s, border-color .45s;
}
.circle-link:hover .circle { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.circle-link .circle .arrow { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.circle-link:hover .circle .arrow { transform: translate(3px,-3px); }
.circle-link .circle-label { font-size: 15px; letter-spacing: .02em; color: var(--mute-strong); }

/* ---- Section background images (vision / initiatives) ---- */
.has-bg { position: relative; overflow: hidden; }
.section-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-bg img { width: 100%; height: 120%; object-fit: cover; }
.vision .section-bg img { opacity: .16; filter: grayscale(.4) brightness(.8); }
.vision .section-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,.45), var(--ink) 72%);
}
.vision .container { position: relative; z-index: 1; }

.initiative { position: relative; overflow: hidden; }
.initiative .init-bg { position: absolute; inset: 0; z-index: 0; opacity: .15; transition: opacity .6s ease; }
.initiative .init-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.3) brightness(.7); transition: transform 1.3s cubic-bezier(.16,1,.3,1);
}
.initiative:hover .init-bg { opacity: .28; }
.initiative:hover .init-bg img { transform: scale(1.06); }
.initiative > *:not(.init-bg) { position: relative; z-index: 1; }

/* ---- Archival film-strip marquee ---- */
.img-marquee {
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
}
.img-marquee-track {
  display: flex; gap: 20px; width: max-content;
  animation: imgmarq 70s linear infinite;
}
.img-marquee:hover .img-marquee-track { animation-play-state: paused; }
.img-marquee figure {
  flex: 0 0 auto; width: 300px; height: 190px; margin: 0;
  overflow: hidden; border: 1px solid rgba(201,169,106,.12);
}
.img-marquee img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25) brightness(.85); transition: filter .6s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
}
.img-marquee figure:hover img { filter: grayscale(0) brightness(1.02); transform: scale(1.05); }
@keyframes imgmarq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .img-marquee-track { animation: none; } }
@media (max-width: 720px) { .img-marquee figure { width: 220px; height: 150px; } }

/* ============================================================
   About — scattered "ms-stage" composition (lumen intro feel)
   Images wipe in left→right on scroll, then copy reveals.
   ============================================================ */
.ms-stage { position: relative; }
.ms-title { margin: 14px 0 0; }
.ms-copy { font-size: clamp(19px, 1.7vw, 26px); line-height: 1.5; }
.ms-copy p { margin: 0 0 22px; }
.ms-img { margin: 0; overflow: hidden; position: relative; border: 1px solid rgba(201,169,106,.16); }
.ms-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,.45));
}

/* Desktop — compact asymmetric grid (tight, no big voids) */
@media (min-width: 1025px) {
  .ms-stage {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
    row-gap: 40px;
    align-items: start;
  }
  .ms-head  { grid-column: 1 / 7;  grid-row: 1; align-self: end; }
  .ms-img-b { grid-column: 8 / 13; grid-row: 1 / 3; align-self: stretch; min-height: 460px; }
  .ms-copy  { grid-column: 1 / 7;  grid-row: 2; }
  .ms-img-a { grid-column: 1 / 5;  grid-row: 3; height: 340px; }
  .ms-img-c { grid-column: 5 / 9;  grid-row: 3; height: 340px; }
  .ms-pills { grid-column: 9 / 13; grid-row: 3; align-self: center; }
}

/* Tablet / mobile: clean stacked flow */
@media (max-width: 1024px) {
  .ms-stage { display: flex; flex-direction: column; gap: 28px; }
  .ms-img-a, .ms-img-b, .ms-img-c { width: 100%; height: 320px; }
  .ms-copy { order: 3; } .ms-pills { order: 9; }
}
@media (max-width: 600px) {
  .ms-img-a, .ms-img-b, .ms-img-c { height: 240px; }
}

/* ---- Left→right wipe reveal + copy reveal (gated by .js-anim) ---- */
.ms-stage .wipe { transition: clip-path 1.15s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.ms-stage .wipe img { transition: transform 1.5s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.js-anim .ms-stage .wipe { clip-path: inset(0 100% 0 0); }
.js-anim .ms-stage .wipe img { transform: scale(1.28); }
.ms-stage.in .wipe { clip-path: inset(0 0 0 0); }
.ms-stage.in .wipe img { transform: scale(1); }

.ms-stage .ms-reveal {
  transition: opacity 1s cubic-bezier(.16,1,.3,1) var(--d, 0s),
              transform 1s cubic-bezier(.16,1,.3,1) var(--d, 0s),
              filter 1s ease var(--d, 0s);
}
.js-anim .ms-stage .ms-reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); }
.ms-stage.in .ms-reveal { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .ms-stage .wipe { clip-path: none !important; }
  .ms-stage .wipe img { transform: none !important; }
  .ms-stage .ms-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
