:root {
  --bg: #eef2f7;
  --ink: #0c1222;
  --ink-dim: #44506e;
  --ink-faint: #79839e;
  --line: rgba(20, 40, 80, 0.12);
  --accent-a: #e23636; /* crimson — the single accent */
  --accent-b: #b91c1c; /* deep red */
  --accent-c: #f15a5a; /* bright red */
  /* Light "glow" used behind text instead of the dark halo of dark mode. */
  --halo: rgba(238, 242, 247, 0.92);
  --scrim: 238, 242, 247;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { height: 100%; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- ASCII canvas ---------- */
#ascii {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(var(--scrim), 0.35) 100%);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 56px);
}
/* Soft top scrim so the logo/tag stay readable over the digit field. */
.nav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 150px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--scrim), 0.78), rgba(var(--scrim), 0.35) 45%, transparent 100%);
  backdrop-filter: blur(3px) saturate(0.3);
  -webkit-backdrop-filter: blur(3px) saturate(0.3);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent-c), var(--accent-a), var(--accent-b), var(--accent-c));
  box-shadow: 0 0 18px rgba(226, 54, 54, 0.55);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.brand-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  text-shadow: 0 2px 18px var(--halo);
}

.nav-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  font-weight: 600;
  text-shadow: 0 2px 18px var(--halo);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 5vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  align-self: flex-start;
}
/* Soft, masked blur field behind the copy for legibility over the digits. */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -480px -920px;
  z-index: -1;
  pointer-events: none;
  /* border-radius clips the backdrop-filter to an ellipse (works in all
     browsers, unlike masking a backdrop-filter), so it's never a rectangle. */
  border-radius: 50%;
  /* Gentle blur, spread over a large radius that fades out gradually.
     saturate() pulls the color out of the blurred field so the frosted area
     reads neutral instead of picking up the green digits behind it. */
  backdrop-filter: blur(7px) saturate(0.3);
  -webkit-backdrop-filter: blur(7px) saturate(0.3);
  background: radial-gradient(closest-side, rgba(var(--scrim), 0.45), transparent 100%);
  /* Hold strength through the center, then a long, gradual fade to the edge. */
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
  text-shadow: 0 2px 24px var(--halo);
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 30px;
  text-shadow: 0 4px 80px var(--halo);
}

.grad {
  background: linear-gradient(110deg, var(--accent-c), var(--accent-a) 45%, var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  color: var(--ink-dim);
  max-width: none;
  white-space: nowrap;
  font-weight: 300;
  text-shadow: 0 2px 40px var(--halo);
}

/* ---------- Footer ---------- */
.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  color: var(--ink-dim);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px var(--halo);
}
/* Soft bottom scrim mirroring the nav, for footer legibility. */
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(var(--scrim), 0.78), rgba(var(--scrim), 0.35) 45%, transparent 100%);
  backdrop-filter: blur(3px) saturate(0.3);
  -webkit-backdrop-filter: blur(3px) saturate(0.3);
  -webkit-mask-image: linear-gradient(0deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 45%, transparent 100%);
}

.contact {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.contact:hover { color: var(--ink); }


@media (max-width: 760px) {
  .nav-tag { display: none; }
  /* Scale the headline down so each line fits without orphaned words. */
  .hero-title { font-size: clamp(1.55rem, 7.5vw, 3.4rem); }
  .eyebrow { font-size: 0.95rem; margin-bottom: 18px; }
  /* Let the sub wrap, and balance the lines instead of one long + one short. */
  .hero-sub {
    white-space: normal;
    text-wrap: balance;
    max-width: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark { animation: none; }
  .eyebrow, .hero-title, .hero-sub { opacity: 1; filter: none; animation: none; }
}
