:root {
  --bg: #090705;
  --bg-soft: #15100b;
  --text: #fff8ed;
  --muted: rgba(255, 248, 237, 0.68);
  --line: rgba(255, 210, 150, 0.16);
  --amber: #f4b15e;
  --amber-soft: rgba(244, 177, 94, 0.18);
  --glass: rgba(20, 14, 9, 0.44);
  --max: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--bg); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 70% 10%, rgba(244, 177, 94, .14), transparent 34rem),
    linear-gradient(180deg, #050403 0%, var(--bg) 45%, #120d08 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 42rem;
  height: 42rem;
  z-index: 2;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244,177,94,.15), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  filter: blur(10px);
  opacity: .75;
}

.hero-scroll { height: 520vh; position: relative; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: #050403;
}

.video-camera {
  --cam-scale: 1.055;
  --cam-x: 0px;
  --cam-y: 0px;
  --cam-rotate: 0deg;
  --cam-blur: 0px;
  position: absolute;
  inset: -2.5%;
  z-index: 0;
  overflow: hidden;
  transform:
    translate3d(var(--cam-x), var(--cam-y), 0)
    scale(var(--cam-scale))
    rotate(var(--cam-rotate));
  transform-origin: 50% 50%;
  will-change: transform, filter;
  backface-visibility: hidden;
  filter: blur(var(--cam-blur));
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0,0,0) scale(1.01);
  will-change: transform, filter;
  backface-visibility: hidden;
  filter: saturate(1.1) contrast(1.07) brightness(.82);
}

.video-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 64% 42%, transparent 0 26%, rgba(5,4,3,.34) 58%, rgba(5,4,3,.92) 100%),
    linear-gradient(90deg, rgba(5,4,3,.88), rgba(5,4,3,.18) 44%, rgba(5,4,3,.74)),
    linear-gradient(180deg, rgba(5,4,3,.78), transparent 28%, rgba(5,4,3,.92));
}

.particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: .78; }

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 34px) clamp(18px, 5vw, 72px);
}
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 700; letter-spacing: -.03em; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 24px rgba(244,177,94,.12), 0 10px 30px rgba(0,0,0,.22);
}
.brand-name { font-size: 15px; }
.nav { display: flex; gap: 24px; color: var(--muted); font-size: 13px; }
.nav a { transition: color .35s var(--ease); }
.nav a:hover { color: var(--text); }

.hero-content {
  position: relative;
  z-index: 6;
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5vh;
}
.eyebrow, .section-kicker {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 700;
}
.hero-title {
  max-width: 890px;
  margin: 18px 0 0;
  font-size: clamp(52px, 8.8vw, 132px);
  line-height: .88;
  letter-spacing: -.085em;
  text-wrap: balance;
  text-shadow: 0 18px 80px rgba(0,0,0,.45);
}
.hero-copy {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: #170f07; background: linear-gradient(135deg, #ffd9a0, var(--amber)); box-shadow: 0 20px 60px rgba(244,177,94,.22); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.055); backdrop-filter: blur(18px); }

.chapter-indicator {
  position: absolute;
  z-index: 7;
  right: clamp(18px, 4vw, 54px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 13px;
}
.chapter {
  width: 7px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.chapter.active { background: var(--amber); transform: scaleY(1.15); box-shadow: 0 0 28px rgba(244,177,94,.44); }
.scroll-hint {
  position: absolute;
  z-index: 7;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,248,237,.56);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scroll-hint span { width: 7px; height: 28px; border: 1px solid rgba(255,255,255,.24); border-radius: 99px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 3px; border-radius: 50%; background: var(--amber); transform: translateX(-50%); animation: wheel 1.5s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%,0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,13px); } }

.content-section, .process-section, .contact-section { padding: clamp(90px, 15vw, 180px) 20px; }
.section-inner { width: min(860px, 100%); margin: 0 auto; text-align: center; }
.section-inner h2, .contact-card h2 { margin: 16px 0 0; font-size: clamp(38px, 6vw, 82px); line-height: .98; letter-spacing: -.06em; }
.section-inner p:not(.section-kicker), .contact-card p:not(.section-kicker) { color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.55; }

.services-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 30px 0 120px;
}
.service-card {
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 30px 90px rgba(0,0,0,.2);
  backdrop-filter: blur(22px);
  transform: translateZ(0);
}
.service-card span { color: var(--amber); font-weight: 800; }
.service-card h3 { margin-top: 90px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.service-card p { color: var(--muted); line-height: 1.55; }
.contact-card {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 82px);
  text-align: center;
  border-radius: 38px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(244,177,94,.18), transparent 34rem),
    rgba(255,255,255,.045);
}
.contact-card .btn { margin-top: 28px; }
.reveal-up { opacity: 0; transform: translateY(44px); }

@media (max-width: 900px) {
  .hero-sticky { min-height: 100svh; }
  .site-header { align-items: flex-start; }
  .nav { display: none; }
  .hero-content { justify-content: flex-end; padding-bottom: 110px; }
  .hero-title { font-size: clamp(48px, 16vw, 76px); }
  .hero-copy { max-width: 92%; font-size: 17px; }
  .chapter-indicator { display: none; }
  .services-grid { grid-template-columns: 1fr; padding-bottom: 70px; }
  .service-card { min-height: 250px; border-radius: 26px; }
  .service-card h3 { margin-top: 56px; }
  .cursor-glow { display: none; }
}

@media (max-width: 520px) {
  .hero-scroll { height: 360vh; }
  .video-camera { inset: -4%; --cam-scale: 1.09; }
  .hero-video { transform: translateZ(0) scale(1.01); }
  .video-vignette {
    background:
      linear-gradient(180deg, rgba(5,4,3,.58), rgba(5,4,3,.12) 34%, rgba(5,4,3,.94)),
      radial-gradient(circle at 50% 38%, transparent 0 22%, rgba(5,4,3,.55) 75%, rgba(5,4,3,.98));
  }
  .brand-name { font-size: 14px; }
  .hero-content { width: calc(100% - 32px); padding-bottom: 96px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .scroll-hint { bottom: 18px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-scroll { height: 120vh; }
}
