/* =========================================================
   Numen Designs · Coming soon
   Tokens follow Brand Guidelines 2026
   ========================================================= */
:root {
  --bg: #0E0E0E;
  --surface: #1A1A1A;
  --border: #2A2A2A;
  --border-strong: #3A3A3A;
  --text: #F5F5F5;
  --text-2: #BDBDBD;
  --muted: #8E8E8E;
  --dim: #5A5A5A;
  --accent: #C6FF3D;
  --accent-hover: #D4FF66;
  --accent-press: #A8E01F;
  --on-accent: #0E0E0E;
  --error: #FF6B6B;

  --cut: 41.5deg;
  --gutter: clamp(16px, 5vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.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; }
.accent { color: var(--accent); }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
}
.bg__spot {
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(198,255,61,.06), transparent 60%);
  transition: background .2s linear;
}
.bg__noise {
  position: absolute; inset: -50%;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* The cut, as a beam of light sweeping across the page */
.bg__beam {
  position: absolute;
  left: -20vmax; top: 50%;
  width: 160vmax; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 45%, var(--accent) 55%, transparent);
  box-shadow: 0 0 18px 2px rgba(198,255,61,.35);
  transform-origin: center;
  transform: translateY(-50%) rotate(var(--cut)) translateX(-120%);
  opacity: 0;
  animation: beam 9s var(--ease-out) 1.2s infinite;
}
@keyframes beam {
  0%   { transform: translateY(-50%) rotate(var(--cut)) translateX(-110%); opacity: 0; }
  8%   { opacity: .9; }
  30%  { transform: translateY(-50%) rotate(var(--cut)) translateX(110%); opacity: 0; }
  100% { transform: translateY(-50%) rotate(var(--cut)) translateX(110%); opacity: 0; }
}

/* ---------- Header ---------- */
.top, .hero, .foot { position: relative; z-index: 1; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--gutter);
}
.top__logo { display: block; width: clamp(128px, 14vw, 168px); color: var(--text); }
.top__logo svg { display: block; width: 100%; height: auto; }
.top__meta { display: flex; align-items: center; gap: 24px; }
.top__services { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
  background: rgba(26,26,26,.6); backdrop-filter: blur(8px);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198,255,61,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198,255,61,.55); } 70% { box-shadow: 0 0 0 10px rgba(198,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(198,255,61,0); } }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(24px, 6vh, 80px) var(--gutter);
  max-width: 1600px; width: 100%; margin: 0 auto;
}
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
  font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 5.9vw, 112px);
  line-height: .94;
  letter-spacing: -.045em;
}
.title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.title .line > .reveal { display: inline-block; }
.lead {
  margin: 32px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: #A9A9A9;
}

/* ---------- Links ---------- */
.links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.links a {
  position: relative;
  font-size: 15px; color: var(--text-2); text-decoration: none;
  padding-bottom: 4px;
}
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.links a:hover { color: var(--text); }
.links a:hover::after { transform: scaleX(1); }

/* ---------- Mark (animated monogram) ---------- */
.mark { position: relative; display: flex; justify-content: center; }
.mark__svg { width: 100%; max-width: 620px; height: auto; overflow: visible; animation: settle 1.2s ease 2s forwards; }
/* After the reveal, the mark steps back to 20% */
@keyframes settle { to { opacity: .2; } }
.mark__n, .mark__d { fill: var(--text); }
.mark__n { animation: slideN 1.6s var(--ease-out) .3s both; }
.mark__d { animation: slideD 1.6s var(--ease-out) .3s both; }
/* vector along the 41.5° cut: (cos, sin) ≈ (.749, .663) */
@keyframes slideN { from { transform: translate(-45px, -40px); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes slideD { from { transform: translate(45px, 40px); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
.mark__cut, .mark__cut-glow { fill: var(--accent); opacity: 0; }
.mark__cut { animation: cut 6s ease-in-out 1.7s infinite; }
.mark__cut-glow { animation: cutGlow 6s ease-in-out 1.7s infinite; }
@keyframes cut     { 0%, 100% { opacity: 0; } 12%, 26% { opacity: 1; } 42% { opacity: 0; } }
@keyframes cutGlow { 0%, 100% { opacity: 0; } 12%, 26% { opacity: .8; } 42% { opacity: 0; } }

/* ---------- Footer ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid rgba(42,42,42,.6);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}

/* ---------- Entrance ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.is-ready .reveal { animation: rise 1s var(--ease-out) var(--d, 0s) forwards; }
.title .reveal { transform: translateY(105%); }
.is-ready .title .reveal { animation-name: riseLine; animation-duration: 1.1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes riseLine { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; align-content: center; }
  .title { font-size: clamp(44px, 11vw, 96px); }
  .mark { display: none; }
  .top__services { display: none; }
}
@media (max-width: 520px) {
  .foot { flex-direction: column; gap: 6px; }
  .foot__mid { display: none; }
  .lead { margin-top: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .title .reveal { opacity: 1; transform: none; }
  .bg__beam { display: none; }
  .mark__svg { opacity: .2; }
}
