:root {
  --black: #000000;
  --white: #ffffff;
  --muted: #444;
  --subtle: #1c1c1c;
  --accent: #00C896;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp: cubic-bezier(0.43, 0.195, 0.02, 1);
}

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

html {
  background: var(--black);
}

/* Hide default cursor on desktop when custom cursor is active */
@media (hover: hover) {
  body, a { cursor: none; }
}

body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 5rem;
}

/* ─── Film grain ─────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: -150%;
  width: 400%;
  height: 400%;
  opacity: 0.045;
  pointer-events: none;
  z-index: 900;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10%       { transform: translate(-5%, -10%); }
  20%       { transform: translate(-15%, 5%); }
  30%       { transform: translate(7%, -25%); }
  40%       { transform: translate(-5%, 25%); }
  50%       { transform: translate(-15%, 10%); }
  60%       { transform: translate(15%, 0%); }
  70%       { transform: translate(0%, 15%); }
  80%       { transform: translate(3%, 35%); }
  90%       { transform: translate(-10%, 10%); }
}

/* ─── Vignette ───────────────────────────────────────────── */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 18%),
    linear-gradient(to top,    rgba(0,0,0,0.9) 0%, transparent 18%);
}

/* ─── Custom cursor ──────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--white);
  margin-left: -2px;
  margin-top: -2px;
  transition: opacity 0.3s ease, background 0.2s ease;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: -18px;
  margin-top: -18px;
  transition:
    width 0.4s var(--ease-smooth),
    height 0.4s var(--ease-smooth),
    margin 0.4s var(--ease-smooth),
    border-color 0.3s ease,
    opacity 0.3s ease;
}

.cursor-ring.is-hovering {
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  border-color: var(--accent);
}

.cursor-dot.is-hovering {
  background: var(--accent);
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─── Main content ───────────────────────────────────────── */
main {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 20;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-smooth) 0s both;
}

/* Status dot before eyebrow */
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.6em;
  vertical-align: middle;
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

h1 {
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-smooth) 0.1s both;
}

.tagline {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-smooth) 0.2s both;
}

.links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-smooth) 0.3s both;
}

.sep {
  color: var(--subtle);
  font-size: 0.85rem;
  user-select: none;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  position: relative;
  transition: color 0.25s ease;
}

.links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.35s var(--ease-smooth);
}

.links a:hover {
  color: var(--white);
}

.links a:hover::after {
  width: 100%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--subtle), transparent);
  margin: 2.5rem auto;
  opacity: 0;
  animation: fadeIn 1s var(--ease-smooth) 0.4s both;
}

/* ─── Stats ──────────────────────────────────────────────── */
.stats {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-smooth) 0.45s both;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-prefix,
.stat-suffix {
  color: var(--accent);
  font-size: 0.65em;
  font-weight: 500;
  vertical-align: super;
}

.stat-prefix {
  vertical-align: baseline;
  margin-right: 0.05em;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Expertise tags ─────────────────────────────────────── */
.expertise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-smooth) 0.55s both;
}

.expertise span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.expertise .dot {
  color: var(--subtle);
}

/* ─── Marquee ticker ─────────────────────────────────────── */
.marquee-wrap {
  position: fixed;
  top: 2.25rem;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  opacity: 0;
  animation: fadeIn 1s ease 0.6s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
}

.marquee-track .accent {
  color: var(--accent);
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
