:root {
  --bg: #080b0a;
  --green: #34e39b;
  --green-deep: #1c8f60;
  --text: #eef3ef;
  --muted: #7c8b83;
  --muted-dim: #4a5b52;
  --line: #1a2521;
  --panel: #0a100d;
  --panel-2: #0d1712;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, 'Cascadia Code', Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(1200px 700px at 90% 8%, #0f231b 0%, transparent 55%);
}

.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;
}

/* Giant decorative slash — the \ of \n, sweeping down the right edge */
.slash {
  position: fixed; top: -8vh; right: 4vw; height: 116vh; width: 46vw;
  pointer-events: none; z-index: 0;
}
.slash svg { height: 100%; width: 100%; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.035;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px);
}

.wrap {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 0 auto; padding: 40px 48px 44px;
  min-height: 100vh; display: flex; flex-direction: column;
}

/* Header */
header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 40px; height: auto; filter: drop-shadow(0 0 12px #34e39b44); }
.brand b { font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; font-weight: 500; }
.brand b span { color: var(--green); }
nav { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
nav .chip { border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
nav .chip i { font-style: normal; color: var(--green); }

/* Hero */
.hero { margin-top: auto; margin-bottom: 8vh; max-width: 820px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--green);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--green); box-shadow: 0 0 8px #34e39b; }

h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(44px, 8.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h-lead { display: block; }

/* Rotating final word — a vertical "flip" to a new line */
.rotator {
  display: block;
  height: 1.28em;
  line-height: 1.28;
  overflow: hidden;
  font-weight: 600;
  font-style: italic;
  color: var(--green);
  text-shadow: 0 0 44px #34e39b3a;
}
.rotator__track {
  display: flex;
  flex-direction: column;
  animation: roll 11s infinite;
}
.rotator__track > span { height: 1.28em; line-height: 1.28; }

/* Five words + a repeat of the first, so the loop is seamless. */
@keyframes roll {
  0%, 15%   { transform: translateY(0); }
  20%, 35%  { transform: translateY(-1.28em); }
  40%, 55%  { transform: translateY(-2.56em); }
  60%, 75%  { transform: translateY(-3.84em); }
  80%, 95%  { transform: translateY(-5.12em); }
  100%      { transform: translateY(-6.4em); }
}

.lede { margin-top: 30px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 500px; }
.lede code {
  font-family: var(--mono); color: var(--green); font-size: 15px;
  background: #0f1a15; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line);
}

/* Project groups */
.group { margin-top: 4px; }
.group + .group { margin-top: 26px; }
.group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.group-name { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.group-name.dim { color: var(--muted); font-weight: 500; }
.group-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }
.group-meta.live { color: var(--green); }
.group-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* Placeholder for future groups — leaves room, signals broader scope */
.ghost {
  border: 1px dashed #24352d; border-radius: 16px;
  padding: 22px 26px; display: flex; align-items: center; gap: 14px;
  color: var(--muted-dim); font-size: 13.5px; line-height: 1.55;
}
.ghost .tick {
  flex: none; width: 8px; height: 16px; background: var(--green); opacity: 0.8;
  box-shadow: 0 0 10px #34e39b; animation: blink 1.15s steps(1) infinite;
}
.ghost b { color: var(--muted); font-weight: 500; }
@keyframes blink { 0%, 55% { opacity: 0.85; } 55.01%, 100% { opacity: 0.12; } }

.tools {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.card {
  background: var(--panel); padding: 30px 28px 26px; text-decoration: none; color: var(--text);
  position: relative; transition: background 0.2s;
}
.card:hover { background: var(--panel-2); }
.num { font-family: var(--mono); font-size: 12px; color: var(--green); opacity: 0.7; letter-spacing: 0.1em; }
.card h3 { font-family: var(--sans); font-weight: 500; font-size: 22px; margin: 14px 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 34ch; }
.card .arrow {
  font-family: var(--mono); font-size: 13px; color: var(--green); margin-top: 18px;
  display: inline-flex; align-items: center; gap: 7px; transition: gap 0.2s;
}
.card:hover .arrow { gap: 12px; }
.card::after {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--green); box-shadow: 0 0 12px #34e39b; transition: width 0.28s ease;
}
.card:hover::after { width: 100%; }

/* Footer */
footer {
  margin-top: 30px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted-dim);
}
footer .status i { font-style: normal; color: var(--green); }

/* Orchestrated load-in */
.reveal { opacity: 0; transform: translateY(10px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .tools { grid-template-columns: 1fr; }
  .wrap { padding: 28px 24px; }
  .slash { opacity: 0.5; }
  .hero { margin-bottom: 6vh; }
}

@media (prefers-reduced-motion: reduce) {
  .rotator__track { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
}
