/* milosh — brand stylesheet
   Palette, type and spacing follow the brand guidelines. Questrial is display
   only (it has one weight — never fake a bold). Figtree does everything else.
   JetBrains Mono is technical data only. The gradient appears on the mark and
   once in the hero, and nowhere else. */

@font-face {
  font-family: 'Questrial';
  src: url('/assets/fonts/questrial-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree-var.woff2') format('woff2-variations');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2-variations');
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  --ink:   #140A1E;
  --deep:  #430C5E;
  --flare: #CF2B73;
  --glow:  #FF6FA8;
  --haze:  #F2EAF5;
  --paper: #FFFFFF;
  --body:  #4A3D53;
  --muted: #7A6B88;
  --rule:  #E4DCEA;
  --on-ink-body: #CFC3DA;

  --display: 'Questrial', 'Segoe UI', Arial, sans-serif;
  --sans: 'Figtree', 'Segoe UI', -apple-system, Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --wrap: 1120px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--flare); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 3px; }

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

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1rem var(--pad);
  background: var(--ink);
}
.brand { display: block; line-height: 0; }
.brand img { width: 130px; }
.site-head nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 1.9rem); }
.site-head nav a {
  color: var(--on-ink-body); text-decoration: none; font-size: .95rem; font-weight: 400;
}
.site-head nav a:hover { color: #fff; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.28); border-radius: 8px;
  padding: .45rem 1rem; color: #fff !important;
}
.nav-cta:hover { background: rgba(255,255,255,.1); }
@media (max-width: 720px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .site-head nav { flex-wrap: wrap; gap: .9rem 1.1rem; }
}

/* ---------- hero: the one place the nebula appears ---------- */
.hero { position: relative; background: var(--ink); overflow: hidden; color: #fff; }
.nebula { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); }
.b1 { width: 760px; height: 760px; background: var(--deep);  right: -160px; top: -280px; opacity: .78; }
.b2 { width: 520px; height: 520px; background: var(--flare); right: 40px;   top: 90px;   opacity: .42; }
.b3 { width: 260px; height: 260px; background: var(--glow);  right: 280px;  top: 180px;  opacity: .24; }
.hero-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(4rem, 12vw, 8.5rem) var(--pad) clamp(4rem, 10vw, 7rem);
}
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 5rem); line-height: 1.02;
  letter-spacing: -.025em; margin: 0 0 1.5rem; color: #fff;
}
.lead { font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.55; font-weight: 300;
  max-width: 34ch; color: var(--on-ink-body); margin: 0 0 2.25rem; }
.lead.narrow { max-width: 52ch; color: var(--body); font-weight: 400; }

.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 9px;
  background: var(--flare); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 1rem; border: 1px solid var(--flare);
  transition: background .18s ease;
}
.btn:hover { background: #B92464; border-color: #B92464; }
.btn.ghost {
  background: transparent; border-color: rgba(255,255,255,.3); color: #fff;
  font-family: var(--mono); font-size: .95rem;
}
.btn.ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- bands ---------- */
.band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band.tint { background: var(--haze); }
.eyebrow {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em;
  color: var(--flare); margin: 0 0 1rem;
}
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.12;
  letter-spacing: -.018em; color: var(--ink); margin: 0 0 2.5rem;
}
h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid article p { font-size: .97rem; color: var(--body); }
.six   { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.four  { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.sectors h2 { margin-bottom: 1.5rem; }
.straight { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* ---------- portals ---------- */
.portal {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.6rem 1.5rem; transition: border-color .18s ease, transform .18s ease;
}
.portal:hover { border-color: var(--flare); transform: translateY(-2px); }
.portal p { font-size: .95rem; margin-bottom: 1rem; }
.go { font-family: var(--mono); font-size: .82rem; color: var(--flare); }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  color: var(--muted); margin: 0 0 .4rem;
}
.contact .label { color: #9A8CA8; }
.big { font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 500; margin: 0; }
.big a { color: #fff; text-decoration: none; }
.big a:hover { color: var(--glow); }
.fine { font-size: .84rem; line-height: 1.6; color: var(--muted); margin-top: 1.5rem; }
.contact .fine { color: #8B7C9A; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--on-ink-body); padding: 3.5rem 0 1.75rem;
  border-top: 1px solid rgba(255,255,255,.1); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.5rem; }
.foot-grid .fine { color: #8B7C9A; margin-top: .75rem; }
.foot-grid .label { color: #9A8CA8; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: .45rem; }
.plain a { color: var(--on-ink-body); text-decoration: none; font-size: .9rem; }
.plain a:hover { color: var(--glow); }
.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; color: #7A6B88;
}
.mono { font-family: var(--mono); }

/* ---------- statement band ---------- */
.statement { padding-block: clamp(4rem, 9vw, 7rem); }
.statement .wrap {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.big-statement {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08;
  letter-spacing: -.022em; color: var(--ink); margin: 0;
}
.statement-body p { font-size: 1.05rem; color: var(--body); }
@media (max-width: 800px) { .statement .wrap { grid-template-columns: 1fr; } }

/* ---------- services as a divided list, not cards ---------- */
.services { margin: 0; }
.svc {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.55fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.5rem 0; border-top: 1px solid var(--rule);
}
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc dt { font-family: var(--display); font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
.svc dd { margin: 0; font-size: 1rem; color: var(--body); }
@media (max-width: 720px) {
  .svc { grid-template-columns: 1fr; gap: .4rem; }
  .svc dt { font-size: 1.2rem; }
}
.aside {
  margin-top: 2rem; font-size: .97rem; color: var(--muted);
  border-left: 2px solid var(--flare); padding-left: 1.1rem; border-radius: 0;
  max-width: 62ch;
}

/* ---------- traits ---------- */
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 2.25rem; }
.traits h3 {
  font-family: var(--display); font-size: 1.45rem; font-weight: 400;
  color: var(--ink); margin-bottom: .6rem;
}
.traits p { font-size: .98rem; }
.cost { font-size: .88rem; color: var(--flare); margin-top: .9rem; }

/* ---------- straight answers ---------- */
.answers { list-style: none; padding: 0; margin: 0; max-width: 74ch; }
.answers li {
  padding: 1.15rem 0 1.15rem 2.1rem; border-bottom: 1px solid var(--rule);
  position: relative; font-size: 1rem;
}
.answers li::before {
  content: ""; position: absolute; left: 0; top: 1.65rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--flare);
}
.answers li:first-child { border-top: 1px solid var(--rule); }
.answers strong { color: var(--ink); font-weight: 600; }

/* ---------- launch placeholder ---------- */
.todo { background: rgba(207,43,115,.22); color: #FFB7D4; padding: 0 .3em; border-radius: 3px; }

/* ---------- credentials list ---------- */
.creds { list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: 76ch; }
.creds li {
  display: grid; grid-template-columns: minmax(0,150px) minmax(0,1fr);
  gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--rule); font-size: .95rem;
}
.creds li:last-child { border-bottom: 1px solid var(--rule); }
.creds .k { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); padding-top: .18rem; }
.creds .v { color: var(--body); }
@media (max-width: 620px) { .creds li { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- funding band ---------- */
.funding { background: var(--ink); color: var(--on-ink-body); }
.funding h2 { color: #fff; }
.fund-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.fund-grid p { font-size: 1rem; color: var(--on-ink-body); }

/* ---------- funding options ---------- */
.lead.narrow.on-dark { color: var(--on-ink-body); margin-bottom: 2.5rem; }
.fund-opt h3 {
  font-family: var(--display); font-size: 1.4rem; font-weight: 400;
  color: #fff; margin-bottom: .75rem;
}
.fund-opt { border-top: 2px solid var(--flare); padding-top: 1.25rem; border-radius: 0; }
