:root {
  --bg: #050b14;
  --bg2: #081221;
  --ink: #f4f7fb;
  --muted: #8a97a8;
  --blue: #4da8ff;
  --blue2: #1d6fe0;
  --line: rgba(255, 255, 255, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path d='M4 2l16 8-7 2-2 7z' fill='%234da8ff' stroke='white' stroke-width='1.2'/></svg>") 4 2, auto;
  font-family: "Helvetica Neue", -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 70% 45% at 50% 108%, rgba(29, 111, 224, 0.28), transparent),
    radial-gradient(ellipse 50% 35% at 85% -10%, rgba(29, 111, 224, 0.12), transparent),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- nav ---------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: rgba(5, 11, 20, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand svg { display: block; }

nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 0.25s;
}

nav a:hover { color: var(--ink); }

/* ---------- hero brand frame ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 6vw 5rem;
}

.corner {
  position: absolute;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.corner.tl { top: 6.5rem; left: 6vw; }
.corner.tc { top: 6.5rem; left: 50%; transform: translateX(-50%); }
.corner.tr { top: 6.5rem; right: 6vw; }
.corner.bl { bottom: 2.2rem; left: 6vw; }
.corner.br { bottom: 2.2rem; right: 6vw; }

.logo-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.logo-row .mark {
  width: clamp(64px, 9vw, 110px);
  height: auto;
  animation: flyIn 1.8s cubic-bezier(0.45, 0.05, 0.3, 1) both;
}

/* fly in from top-left corner, grow, loop around the slot, drop in */
@keyframes flyIn {
  0%   { transform: translate(-46vw, -40vh) rotate(0deg) scale(0.15); }
  40%  { transform: translate(16vw, -20vh) rotate(190deg) scale(0.65); }
  70%  { transform: translate(-11vw, 9vh) rotate(310deg) scale(1.2); }
  88%  { transform: translate(2.5vw, -1.5vh) rotate(352deg) scale(0.94); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.masthead {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  animation: rise 0.7s 1.55s ease both;
}

.masthead-sub {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--muted);
  animation: rise 0.7s 1.75s ease both;
}

.cta-row {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  animation: rise 0.7s 1.95s ease both;
}

.btn {
  padding: 0.85rem 1.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-gold {
  background: linear-gradient(120deg, var(--blue), var(--blue2));
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(29, 111, 224, 0.35);
}

/* ---------- sections ---------- */
section {
  padding: 6rem 6vw;
  max-width: 1100px;
  margin: 0 auto;
}

.kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--blue);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.7rem 0 1rem;
}

section > p { color: var(--muted); max-width: 62ch; }

.cards {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 168, 255, 0.45);
  box-shadow: 0 14px 40px rgba(29, 111, 224, 0.18);
}

/* services: open blocks, no boxes; scroll-driven spiral entry via .swoop */
#services .card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

#services .card:hover { transform: none; box-shadow: none; }

.card .icon { margin-bottom: 1rem; }

.card .icon svg { stroke: var(--blue); }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p { color: var(--muted); font-size: 0.94rem; }

.feats {
  margin-top: 1rem;
  list-style: none;
}

.feats li {
  color: var(--muted);
  font-size: 0.88rem;
  padding-left: 1.2rem;
  position: relative;
  margin-top: 0.45rem;
}

.feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 2px;
  background: var(--blue);
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.line { margin-top: 0.7rem; color: var(--muted); max-width: 62ch; }

/* left-to-right wipe reveal, progress driven by --p (mouse-led, auto-sweeps) */
.wipe {
  --p: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) * 120% - 10%), transparent calc(var(--p) * 120% + 8%));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) * 120% - 10%), transparent calc(var(--p) * 120% + 8%));
}

/* ---------- contact ---------- */
.contact-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.contact-grid a { color: var(--blue); text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 6vw;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

footer a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.legal {
  padding: 9rem 6vw 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.legal .date { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); margin-top: 0.7rem; }
.legal ul { padding-left: 1.4rem; }
.legal a { color: var(--blue) !important; }

/* orbs retired */
.orb { display: none; }

a, button, .btn {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path d='M4 2l16 8-7 2-2 7z' fill='%231d6fe0' stroke='white' stroke-width='1.2'/></svg>") 4 2, pointer;
}

/* ---------- animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .wipe { -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 640px) {
  nav ul { gap: 1.1rem; }
  .cta-row { flex-direction: column; align-items: center; }
  .corner.tc { display: none; }
}
