@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #141a33;
  --bg-deep: #0d1124;
  --surface: #1a2142;
  --line: rgba(207, 214, 255, .10);
  --line-strong: rgba(207, 214, 255, .2);
  --text: #f1ede2;
  --muted: #aeb4cf;
  --porch: #f4c95d;
  --porch-soft: rgba(244, 201, 93, .14);
  --porch-ink: #1c1606;
  --moss: #8cc37a;
  --sans: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0; }

p { margin: 0; }

a { color: var(--porch); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffdf8e; }

:focus-visible { outline: 2px solid var(--porch); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--porch);
  color: var(--porch-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--porch-ink); }

main:focus { outline: none; }

[id] { scroll-margin-top: 80px; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 36, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.08rem;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; flex: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--text); }

.eyebrow {
  margin-bottom: 14px;
  color: var(--moss);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lede { color: var(--muted); font-size: clamp(1.08rem, .9rem + .6vw, 1.25rem); line-height: 1.6; max-width: 32rem; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn--p { background: var(--porch); color: var(--porch-ink); }
.btn--p:hover { background: #ffd977; color: var(--porch-ink); transform: translateY(-1px); }
.btn--o { border-color: var(--line-strong); color: var(--text); }
.btn--o:hover { border-color: var(--porch); color: var(--text); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--porch-soft);
  color: var(--porch);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .02em;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 1.8rem + 6vw, 6.2rem); font-weight: 790; letter-spacing: -.05em; line-height: .9; margin-bottom: 22px; }
.hero .lede { margin-bottom: 20px; }
.hero__chip { margin-bottom: 28px; }

.stage {
  position: relative;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(55% 45% at 50% 78%, rgba(244, 201, 93, .24), transparent 70%),
    radial-gradient(30% 30% at 22% 18%, rgba(246, 231, 184, .12), transparent 70%),
    linear-gradient(180deg, #232c5a 0%, #182044 60%, #121836 100%);
  box-shadow: var(--shadow);
}
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(180deg, #11162e, #0a0d1c);
  border-top: 1px solid rgba(207, 214, 255, .08);
}
.stage__moon {
  position: absolute;
  left: 16%;
  top: 12%;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff6d6, #f1dfa6 70%);
  box-shadow: 0 0 40px 8px rgba(246, 231, 184, .18);
}
.star { position: absolute; width: 3px; height: 3px; border-radius: 1px; background: #dfe4ff; opacity: .55; }
.s1 { left: 9%; top: 34%; }
.s2 { left: 38%; top: 9%; }
.s3 { left: 62%; top: 18%; }
.s4 { left: 84%; top: 10%; }
.s5 { left: 78%; top: 34%; }
.stage__drawer {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 1;
  width: 62%;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
}
.stage__drawer .float { transform-box: fill-box; transform-origin: center bottom; }

.band { padding: 80px 0; }
.band--deep { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.about { display: grid; }
.about h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 20px; }
.about__text { color: var(--muted); max-width: 38rem; font-size: 1.1rem; }

.contact { padding: 72px 0 64px; }
.contact__card {
  display: grid;
  gap: 16px;
  padding: 32px 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(244, 201, 93, .12), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.contact__card h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); letter-spacing: -.03em; }
.contact__card p { color: var(--muted); }
.contact__mail { font-size: clamp(1.02rem, .8rem + 1.3vw, 1.6rem); font-weight: 650; overflow-wrap: anywhere; }

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

.doc { padding: 48px 0 72px; }
.doc__grid { display: grid; gap: 40px; }
.doc h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); letter-spacing: -.04em; font-weight: 760; margin-bottom: 10px; }
.doc .updated { color: var(--muted); margin-bottom: 28px; }
.doc__body > p, .doc__body li { max-width: 68ch; }
.doc__body h2 { margin: 48px 0 12px; font-size: 1.6rem; letter-spacing: -.02em; scroll-margin-top: 88px; }
.doc__body h3 { margin: 26px 0 6px; font-size: 1.1rem; letter-spacing: -.01em; }
.doc__body p { margin-bottom: 12px; }
.doc__body ul { padding-left: 22px; margin: 0 0 12px; }
.doc__body li { margin-bottom: 8px; }
.doc__body li::marker { color: var(--porch); }
.short {
  padding: 22px 24px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.toc { display: none; }
.toc p { margin-bottom: 10px; color: var(--muted); font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .93rem; text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--porch); }

.lost { padding: 72px 0 96px; }
.lost .wrap { display: grid; gap: 16px; justify-items: start; }
.lost svg { width: 96px; height: 96px; margin-bottom: 8px; }
.lost h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); letter-spacing: -.04em; font-weight: 760; }
.lost p { color: var(--muted); max-width: 32rem; }

@media (min-width: 860px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 88px 0 104px; }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
  .band { padding: 104px 0; }
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: center; }
  .about__label { grid-column: 1; grid-row: 1; }
  .about h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .about__text { grid-column: 2; grid-row: 2; }
  .contact__card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 48px; }
  .contact__card > div { display: grid; gap: 10px; }
  .doc__grid { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
  .toc { display: block; position: sticky; top: 96px; align-self: start; }
}

@media (max-width: 440px) {
  .brand span { font-size: 1rem; }
  .nav a { padding: 8px 9px; font-size: .9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage__drawer .float { animation: jiggle 3.2s ease-in-out infinite; }
  .stage__drawer .f2 { animation-delay: .8s; }
  .stage__drawer .f3 { animation-delay: 1.6s; }
  .stage__drawer .f4 { animation-delay: 2.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

@keyframes jiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4%) rotate(-3deg); }
}
