:root {
  --void: #060a10;
  --teal: #0fb5ba;
  --cyan: #6ff6ff;
  --white: #eaf6ff;
  --haze: #8ba3b8;
}

* { box-sizing: border-box; }

html { background: var(--void); }
body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- loader ---- */
.loader {
  position: fixed; inset: 0; z-index: 60;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s ease;
}
.loader.done { opacity: 0; pointer-events: none; }
.loader__path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 1.5s cubic-bezier(0.6, 0, 0.2, 1) 0.2s forwards;
}
.loader__dot {
  opacity: 0;
  animation: dot 0.5s ease 1.55s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { to { opacity: 1; } }

/* ---- the cinema stage ---- */
.stage { position: fixed; inset: 0; z-index: 1; background: var(--void); }
.stage video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
}

/* ---- glue layers ---- */
.grade {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(15, 181, 186, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.25), transparent 22%, transparent 78%, rgba(6, 10, 16, 0.35));
  mix-blend-mode: normal;
}
#motes { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#grain { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0.55; }
.vignette {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(115% 115% at 50% 50%, transparent 58%, rgba(4, 7, 11, 0.55) 100%);
}

/* ---- copy overlays ---- */
.copy { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.beat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8vw;
  opacity: 0;
  will-change: opacity, transform;
}
.beat--center { align-items: center; text-align: center; }
.beat--right { align-items: flex-end; text-align: right; }

.beat .eyebrow {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px;
  text-shadow: 0 1px 18px rgba(4, 7, 11, 0.8);
}
.beat h2 {
  margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(38px, 5.4vw, 92px);
  max-width: 15ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(4, 7, 11, 0.75);
}
.beat--center h2, .beat--right h2 { max-width: 20ch; }
.beat p {
  margin: 22px 0 0; max-width: 44ch;
  font-size: clamp(15px, 1.15vw, 19px); line-height: 1.6;
  color: #c9dcea;
  text-shadow: 0 1px 6px rgba(4, 7, 11, 0.9), 0 2px 26px rgba(4, 7, 11, 0.9);
}
.beat .eyebrow { text-shadow: 0 1px 6px rgba(4, 7, 11, 0.9), 0 2px 22px rgba(4, 7, 11, 0.9); }
.cta {
  pointer-events: auto;
  margin-top: 38px;
  display: inline-flex; align-items: center;
  padding: 18px 36px;
  border: 1px solid rgba(111, 246, 255, 0.4); border-radius: 999px;
  color: var(--white);
  background: rgba(6, 10, 16, 0.35);
  backdrop-filter: blur(8px);
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.cta:hover { background: rgba(15, 181, 186, 0.25); border-color: var(--cyan); }

/* ---- chrome ---- */
.brand {
  position: fixed; top: 28px; left: 8vw; z-index: 20;
  display: flex; align-items: center; gap: 13px;
  font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase;
  opacity: 0.92;
}
.brand svg { flex: none; }
.rail {
  position: fixed; top: 50%; right: 26px; transform: translateY(-50%);
  width: 1px; height: 34vh; z-index: 20;
  background: rgba(139, 163, 184, 0.25);
}
.rail__fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(15, 181, 186, 0.8);
}
.railpct {
  position: fixed; top: calc(50% + 19vh); right: 18px; z-index: 20;
  font-size: 10px; letter-spacing: 0.2em; color: var(--haze);
}
.hint {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 20;
  font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--haze);
  animation: hint 2.6s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
.hint.gone { opacity: 0 !important; animation: none; }
@keyframes hint {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.85; transform: translateX(-50%) translateY(6px); }
}

/* ---- after the film: the ground floor ---- */
.post {
  position: relative; z-index: 8;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0) 0, var(--void) 16vh);
  padding-top: 20vh;
}
.post .eyebrow {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px;
}
.post h2 {
  margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(32px, 4.2vw, 68px); text-wrap: balance;
}
.post > section { padding: 12vh 8vw; }

.services__head { max-width: 60ch; margin-bottom: 9vh; }
.services__head p { color: var(--haze); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; margin: 20px 0 0; }
.services__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.svc {
  position: relative; overflow: hidden; border-radius: 12px;
  grid-column: span 3; height: 38vh; min-height: 280px;
  border: 1px solid rgba(111, 246, 255, 0.08);
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: calc(var(--i) * 70ms);
}
.svc--wide { grid-column: span 6; height: 48vh; min-height: 340px; }
.svc.in { opacity: 1; transform: none; }
.svc video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.svc:hover video { transform: scale(1.1); }
.svc--cool video { filter: hue-rotate(-18deg) saturate(0.82); }
.svc__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.1) 30%, rgba(7, 11, 16, 0.82) 100%),
    radial-gradient(120% 80% at 15% 100%, rgba(7, 11, 16, 0.55), transparent 55%);
}
.svc__copy {
  position: absolute; left: 30px; right: 30px; bottom: 28px;
}
.svc__copy span { font-size: 11px; letter-spacing: 0.3em; color: var(--cyan); }
.svc__copy h3 {
  margin: 12px 0 8px; font-size: clamp(21px, 1.9vw, 30px);
  font-weight: 350; letter-spacing: 0;
  text-shadow: 0 1px 14px rgba(4, 7, 11, 0.8);
}
.svc__copy p {
  margin: 0; font-size: 14px; line-height: 1.55; color: #b8cbda; max-width: 52ch;
  text-shadow: 0 1px 10px rgba(4, 7, 11, 0.9);
}

.contact { text-align: center; padding: 18vh 8vw !important; }
.contact p { color: var(--haze); max-width: 46ch; margin: 22px auto 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; }
.contact .cta { margin-top: 40px; text-transform: none; letter-spacing: 0.06em; font-size: 16px; }

.footer {
  border-top: 1px solid rgba(111, 246, 255, 0.09);
  padding: 7vh 8vw 9vh;
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; }
.footer__line { color: var(--haze); font-size: 13px; letter-spacing: 0.04em; }
.footer__meta { color: #55708a; font-size: 12px; }

@media (max-width: 720px) {
  .beat h2 { font-size: clamp(30px, 9vw, 44px); }
  .rail, .railpct { display: none; }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .svc, .svc--wide { grid-column: span 6; height: 34vh; min-height: 240px; }
  .svc__copy { left: 22px; right: 22px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hint { animation: none; }
}
