/* Fonts are self-hosted (no third-party requests), same as arkspecstudy.com */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/outfit-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/outfit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/outfit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --line: #1f1f1f;
  --card: #0a0a0a;
  --trace: #444444;
  --max: 1100px;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 400; letter-spacing: 0.02em; }
.brand em { font-style: normal; color: var(--muted); }
.nav nav { display: flex; gap: 24px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--fg); }

/* hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid; place-items: center;
  padding: 80px 16px;
  text-align: center;
}
.traces { position: absolute; top: 0; height: 100%; width: min(36vw, 420px); }
.traces.left { left: 0; }
.traces.right { right: 0; }
.traces .t path { fill: none; stroke: var(--trace); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s ease-out forwards; }
.traces .t path:nth-child(2n) { animation-delay: .3s; }
.traces .t path:nth-child(3n) { animation-delay: .6s; }
.traces .p circle { fill: var(--bg); stroke: var(--trace); stroke-width: 2; opacity: 0; animation: fade .6s ease-out 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.hero-inner { position: relative; max-width: 760px; }
.wordmark { width: min(620px, 82vw); height: auto; margin: 0 auto; }
h1 { margin: 0; }
.lede { margin: 36px auto 0; max-width: 520px; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); }
.cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border: 1px solid #3a3a3a; border-radius: 999px;
  text-decoration: none; font-size: 16px; font-weight: 400; transition: border-color .2s, background .2s, color .2s;
}
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary:hover { background: #d9d9d9; }

/* sections */
.section { scroll-margin-top: 40px; max-width: var(--max); margin: 0 auto; padding: 96px 16px; border-top: 1px solid var(--line); }
.label { font-weight: 500; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 12px; text-transform: uppercase; }
h2 { font-weight: 300; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 40px; letter-spacing: -0.01em; }
h3 { font-weight: 400; font-size: 21px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; transition: border-color .2s; }
.card:hover { border-color: #3a3a3a; }
.card p { color: var(--muted); margin: 14px 0 0; }
.card .meta { font-weight: 500; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag { font-weight: 500; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border: 1px solid #333; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.tag.live { color: var(--fg); border-color: var(--fg); }
.link { margin-top: auto; padding-top: 24px; text-decoration: none; font-weight: 400; }
.link span { display: inline-block; transition: transform .2s; }
.link:hover span { transform: translateX(4px); }
.card.soon { border-style: dashed; }

.about { color: var(--muted); max-width: 640px; margin: 0 0 40px; font-size: 20px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.values li { border-top: 1px solid #333; padding-top: 20px; }
.values p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

.email { display: inline-block; font-size: clamp(22px, 4vw, 34px); font-weight: 300; text-decoration: none; border-bottom: 1px solid #444; padding-bottom: 4px; word-break: break-all; }
.email:hover { border-color: var(--fg); }
.socials { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 24px; flex-wrap: wrap; }
.socials a { color: var(--muted); text-decoration: none; font-size: 16px; }
.socials a:hover { color: var(--fg); }

.footer { border-top: 1px solid var(--line); padding: 32px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--faint); font-size: 14px; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav nav { gap: 16px; }
  .brand span { display: none; }
  .section { padding: 72px 16px; }
  .hero { min-height: 78vh; }
  .traces { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .traces .t path { animation: none; stroke-dashoffset: 0; }
  .traces .p circle { animation: none; opacity: 1; }
}
