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

:root {
  --bg: #07090E;
  --text: #EDF1F8;
  --muted: #8D98AB;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --gold: #F5B33C;

  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 60px);
  --gap: clamp(72px, 10vw, 160px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
iframe { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: #07090E;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.stuck {
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 86px;
}

.brand {
  margin-right: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand::after {
  content: "_";
  color: var(--gold);
}

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--muted);
  font-size: 17px;
  padding: 12px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 32px;
  font-size: 18px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
}

.btn-solid { background: var(--gold); color: #07090E; }
.btn-solid:hover { background: #FFC757; }

.btn-line { border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  min-height: 46px;
  padding: 0 20px;
  font-size: 16px;
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 10vw, 130px);
  padding-bottom: clamp(36px, 4vw, 64px);
}

.aurora {
  position: absolute;
  inset: -180px 0 -120px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 8% 18%, rgba(245, 179, 60, 0.15), transparent 62%),
    radial-gradient(52% 48% at 92% 10%, rgba(59, 110, 246, 0.22), transparent 64%),
    radial-gradient(46% 44% at 62% 96%, rgba(79, 216, 232, 0.11), transparent 66%);
  background-size: 190% 190%;
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { background-position: 0% 0%, 100% 0%, 60% 100%; }
  to   { background-position: 24% 26%, 74% 22%, 34% 74%; }
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}

.hero h1 {
  font-size: clamp(3.2rem, 9.4vw, 8.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin-bottom: 44px;
}

.lead {
  max-width: 56ch;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--muted);
  margin-bottom: 48px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin: clamp(60px, 8vw, 110px) 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-meta dd {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- sections ---------- */

.section { padding-block: var(--gap); }

.head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 60px;
}
.idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  color: var(--gold);
}
.head h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }

.section-note {
  max-width: 50ch;
  font-size: 21px;
  color: var(--muted);
  margin-top: -28px;
  margin-bottom: 60px;
}
.section-note strong { color: var(--text); font-weight: 600; }

/* ---------- what I do ---------- */

.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 72px minmax(160px, 1fr) 2.1fr;
  gap: 32px;
  align-items: start;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
}
.row-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: var(--gold);
  padding-top: 8px;
}
.row h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.row p { color: var(--muted); font-size: 19px; max-width: 60ch; }

/* ---------- store link ---------- */

.store-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px 32px;
  margin-top: 72px;
  padding-block: clamp(32px, 4vw, 52px);
  border-block: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease);
}
.store-meta {
  grid-column: 1 / -1;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.store-title {
  font-size: clamp(28px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  transition: color 0.3s var(--ease);
}
.store-arrow {
  width: clamp(28px, 4vw, 46px);
  height: clamp(28px, 4vw, 46px);
  fill: none; stroke: currentColor; stroke-width: 1.4;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.store-link:hover { border-color: var(--gold); }
.store-link:hover .store-title { color: var(--gold); }
.store-link:hover .store-arrow { transform: translate(6px, -6px); color: var(--gold); }

/* ---------- licenses ---------- */

.licenses { border-top: 1px solid var(--line); }

.lic {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(330px, 480px);
  gap: 32px;
  align-items: center;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.lic:hover { background: rgba(255, 255, 255, 0.022); }
.lic-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: var(--gold);
  align-self: start;
  padding-top: 8px;
}
.lic-copy h3 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.lic-copy p { color: var(--muted); font-size: 19px; max-width: 40ch; }

.embed iframe {
  width: 100%;
  height: 132px;
  border: none;
}

.fineprint {
  margin-top: 44px;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- about ---------- */

.about-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 64ch;
  font-size: clamp(21px, 2.4vw, 29px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.about-body p + p { color: var(--muted); }

/* ---------- contact ---------- */

.contact { padding-bottom: clamp(80px, 10vw, 160px); }

.tg {
  display: inline-block;
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  transition: color 0.25s var(--ease);
}
.tg:hover { color: var(--gold); }

.contact-note {
  margin-top: 36px;
  max-width: 46ch;
  font-size: 21px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-block: 42px;
}
.footer-links {
  display: flex;
  gap: 30px;
  margin-inline: auto;
  font-size: 17px;
}
.footer-links a {
  color: var(--muted);
  padding-block: 10px;
  transition: color 0.25s var(--ease);
}
.footer-links a:hover { color: var(--gold); }

/* ---------- reveal ---------- */

.reveal, .stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .row { grid-template-columns: 56px 1fr; }
  .row p { grid-column: 2; }
  .lic { grid-template-columns: 56px 1fr; }
  .embed { grid-column: 2; max-width: 480px; }
}

@media (max-width: 820px) {
  body { font-size: 18px; }
  .nav-links { display: none; }
  .nav-inner { height: 74px; }
  .footer-links { margin-inline: 0; width: 100%; order: 3; }
  .store-link { grid-template-columns: 1fr; }
  .store-arrow { justify-self: start; }
}

@media (max-width: 700px) {
  .row, .lic {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 36px;
  }
  .row p, .lic .embed, .lic-copy { grid-column: 1; }
  .row-num, .lic-num { padding-top: 0; }
  .lic .embed { max-width: none; margin-top: 8px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .head { gap: 16px; margin-bottom: 44px; }
  .section-note { margin-top: -20px; margin-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora { animation: none; }
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .store-link:hover .store-arrow { transform: none; }
}
