:root {
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #000000;
  --border: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --accent: #ffffff;
  --accent-2: #bdbdbd;
  --radius: 14px;
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-accent: "EB Garamond", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Ambient animated background — sits between the black page background and the content */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.05);
  filter: blur(4px);
  transition: opacity 1.4s ease;
}
.bg-canvas.ready { opacity: 1; }

main, .site-footer { position: relative; z-index: 1; }

/* Demo banner */
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-icon {
  height: 24px;
  width: 24px;
  display: block;
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg-alt);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 0.66rem; }
.btn-lg { padding: 18px 34px; font-size: 0.78rem; }
.nav-cta { margin-left: 4px; }

/* Type */
.eyebrow {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
p { color: var(--text-dim); margin: 0; }
.section-sub {
  font-size: 1.05rem;
  max-width: 620px;
  margin-top: 14px;
}

/* Hero */
.hero { padding: 140px 0 120px; overflow: hidden; }
.hero-video {
  aspect-ratio: 16 / 9;
  max-width: 760px;
  margin: 0 auto 48px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-video span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-sub { font-size: 1.15rem; margin-top: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: 150px 0; }
.section-alt { background: var(--bg-alt); }
section[id] { scroll-margin-top: 90px; }

/* Grids */
.grid { display: grid; gap: 24px; margin-top: 48px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transform-style: preserve-3d;
  transition: border-color 0.2s ease, box-shadow 0.35s ease;
}
.card:hover { border-color: var(--accent); box-shadow: 0 20px 45px -22px rgba(201, 162, 75, 0.3); }
.card .icon {
  width: 44px; height: 44px;
  color: var(--accent);
  margin-bottom: 18px;
}
.card .icon svg { width: 100%; height: 100%; }
.card p { font-size: 0.95rem; }

.card-placeholder {
  border-style: dashed;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
}
.card-placeholder p { font-style: italic; }

/* Process */
.process-list {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dim);
}
.process-step p { margin-top: 6px; font-size: 1rem; max-width: 480px; }

/* Big statement */
.statement-section { text-align: center; }
.statement-line { padding: 36px 0; }
.statement-line h2 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 300;
  max-width: 18ch;
  margin: 0 auto;
}

/* FAQ */
.faq-list { margin-top: 48px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; font-size: 1rem; max-width: 640px; }

/* Work cards */
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transform-style: preserve-3d;
  transition: border-color 0.2s ease, box-shadow 0.35s ease;
}
.work-card:hover { border-color: var(--accent); box-shadow: 0 20px 45px -22px rgba(201, 162, 75, 0.35); }
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1) brightness(0.82); }
.work-card-body { padding: 22px; }
.tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.work-card-body p { font-size: 0.92rem; margin-top: 6px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: saturate(0.85) brightness(0.85);
}

/* CTA */
.cta-section { padding-bottom: 130px; }
.cta-inner {
  text-align: center;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta-inner .btn { margin-top: 10px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 0.88rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.82rem; color: var(--text-dim); width: 100%; order: 3; margin-top: 8px; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: perspective(1000px) translateY(26px) rotateX(6deg) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .work-card, .btn { transition: none !important; }
  .bg-canvas { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-panel { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav-panel {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .site-header.menu-open .nav-links {
    flex-direction: column;
    gap: 16px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 340px; }
  .section { padding: 72px 0; }
  .pin-spacer { height: 420vh; }
  .pin-steps { height: 300px; }
  .pin-step { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .header-inner { height: 64px; }
  .hero { padding-top: 56px; }
}
