/* RPNE Technologies, single-screen site over a filtered looping video. No build step, no external requests. */

:root {
  --ink: #0b141c;
  --text: #eef2f4;
  --muted: #a9b7c2;
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(11, 20, 28, .45);
  --accent: #e98a52;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Background video plus heavy tint. The blur and desaturation are baked into the video file. */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink) url("../video/hero-poster.webp") center / cover no-repeat; }
.bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: brightness(.75) contrast(1.05); }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,20,28,.94) 0%, rgba(11,20,28,.78) 45%, rgba(11,20,28,.45) 100%),
    linear-gradient(0deg, rgba(11,20,28,.85) 0%, transparent 35%),
    radial-gradient(60% 60% at 85% 20%, rgba(233,138,82,.18), transparent 70%);
}

/* Layout: one screen */
.page {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  width: min(100% - 32px, 1120px); margin-inline: auto;
  padding: 22px 0 20px;
}

.top { display: flex; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-light { font-weight: 400; color: var(--muted); }

.main { align-self: center; max-width: 720px; padding: 40px 0; }
.eyebrow { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 16px; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 750; letter-spacing: -.02em; }
.lede { margin-top: 16px; font-size: 1.12rem; color: var(--muted); }

.services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.services li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .92rem;
}
.services .mono { color: var(--accent); font-size: .7rem; }

.work { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.work h2 { font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; margin-bottom: 12px; }
.work ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work li { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--muted); }
.work h3 { color: var(--text); font-weight: 650; font-size: .96rem; line-height: 1.4; letter-spacing: 0; }
.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; }
.lede a { color: var(--accent); }

.bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.contact { display: flex; flex-direction: column; gap: 2px; }
.contact .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.email { font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.email:hover { color: var(--accent); }
.meta { display: flex; align-items: center; gap: 16px; font-size: .82rem; color: var(--muted); }
.motion { font: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.motion:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 760px) {
  .page { padding-top: 16px; }
  .main { padding: 32px 0; }
  .work ul { grid-template-columns: 1fr; gap: 12px; }
  .bg::after { background: linear-gradient(0deg, rgba(11,20,28,.92), rgba(11,20,28,.72)); }
}
