/* Nakshatr — site styles. One file for every page. */
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #05060A;
  --ink: #F4F1EA;
  --muted: #B9B3A7;
  --gold: #D4AF37;
  --gold-hi: #E6C866;
  --line: #2A2A33;
  --card: rgba(20, 21, 30, 0.72);
  --display: "Jost", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --pad: 32px;
  --gap-section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Night sky (fixed behind everything) ---------- */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(46,58,98,.30), transparent 70%),
    radial-gradient(1px 1px at 23px 41px, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 141px 97px, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 79px 163px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 171px 19px, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 37px 211px, rgba(230,236,255,.45), transparent),
    radial-gradient(1px 1px at 203px 61px, rgba(230,236,255,.5), transparent),
    radial-gradient(1px 1px at 259px 251px, rgba(230,236,255,.35), transparent),
    radial-gradient(1px 1px at 119px 139px, rgba(230,236,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 311px 83px, rgba(255,248,232,.6), transparent),
    radial-gradient(1.5px 1.5px at 97px 397px, rgba(255,248,232,.5), transparent),
    radial-gradient(1.5px 1.5px at 433px 301px, rgba(255,248,232,.45), transparent);
  background-size: 100% 100%,
    181px 181px, 181px 181px, 181px 181px, 181px 181px,
    293px 293px, 293px 293px, 293px 293px, 293px 293px,
    467px 467px, 467px 467px, 467px 467px;
}
body::after {
  background-image:
    radial-gradient(1.5px 1.5px at 131px 77px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 487px 233px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 301px 521px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 563px 431px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 41px 361px, rgba(255,255,255,.9), transparent);
  background-size: 613px 613px;
  opacity: .35;
  animation: nk-twinkle 9s ease-in-out infinite alternate;
}
body > * { position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--gap-section); }
.page-top { padding-top: 72px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { left: 16px; color: var(--bg); }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.h1 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 6vw, 68px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 760px; margin-top: 28px; }
.muted { color: var(--muted); }
.text { color: var(--muted); max-width: 640px; }

/* Justified body text (headings, labels and short lines stay left-aligned) */
main p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; text-wrap: pretty; }
main .eyebrow, main .for, .questions p, .channel p, .person p, .cycle-item p { text-align: left; -webkit-hyphens: manual; hyphens: manual; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-family: var(--body); font-size: 16px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s ease; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hi); color: var(--bg); transform: translateY(-1px); }
.btn-line { border-color: var(--gold); color: var(--ink); min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-line:hover { background: var(--gold); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 16px; }
.arrow-link { transition: color .35s ease; }
.arrow-link span { transition: transform .35s ease; }
.arrow-link:hover { color: var(--gold-hi); }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,6,10,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .3em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; padding: 12px 0; border-bottom: 2px solid transparent; transition: color .35s ease, border-color .35s ease; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); border-bottom-color: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }

/* ---------- Cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.card-lg { border-radius: 24px; padding: 56px 48px; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: center; gap: 48px; }
.hero .h1 { font-size: clamp(34px, 4.5vw, 64px); }
.hero .h1 span { display: block; }
@media (min-width: 961px) { .hero .h1 span { white-space: nowrap; } }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lead { margin-top: 0; font-size: 19px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 480px; overflow: visible; }

/* Steps (Notice / Explore / Connect) */
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-num { font-family: var(--display); font-size: 15px; letter-spacing: .1em; color: var(--gold); }

/* Venture card (white) */
.venture { background: #fff; color: #2F3340; border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.venture-body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.venture-body p { font-size: 18px; line-height: 1.6; max-width: 560px; }
.venture-logo { width: 300px; max-width: 100%; height: auto; }
.venture-word { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: .02em; color: #14151E; line-height: 1; }
.venture-word small { display: block; margin-top: 6px; font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: .32em; color: #5B6070; }
.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid #8A8F9C; font-size: 15px; }
.pill-link { color: #2F3340; text-decoration: none; gap: 8px; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.pill-link:hover { background: #14151E; border-color: #14151E; color: #fff; }
.pill-dark { min-height: 0; padding: 6px 14px; border-color: var(--line); color: var(--muted); font-size: 13px; align-self: flex-start; }

/* Mark row */
.mark-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.mark-row > img { flex: none; height: auto; }
.mark-row .stack { flex: 999 1 420px; min-width: 0; gap: 16px; }
.mark-row .big { font-size: clamp(17px, 1.7vw, 20px); max-width: 640px; }

/* CTA band */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta .h2 { flex: 999 1 480px; min-width: 0; }

/* What we do — area cards */
.area { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; border-radius: 20px; padding: 40px; }
.area-main { display: flex; flex-direction: column; gap: 14px; }
.area-main .for { font-size: 15px; }
.area-main .text { font-size: 17px; max-width: 620px; }
.area-gives { display: flex; flex-direction: column; gap: 12px; }
.area-gives ul { padding-left: 18px; }
.area-gives li { margin-bottom: 8px; line-height: 1.5; }
.area-gives li::marker { color: var(--gold); }

/* Cycle */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; counter-reset: c; }
.cycle-item { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cycle-item p { font-size: 15px; color: var(--muted); }
.cycle-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: var(--display); font-size: 18px; background: var(--bg); position: relative; z-index: 1; }
.cycle-item:not(:last-child)::before { content: ""; position: absolute; top: 22px; left: 44px; right: -28px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--line)); opacity: .6; }

/* Approach */
.belief { border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.belief::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.phase { display: grid; grid-template-columns: 64px minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.phase-num { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--gold); }
.phase-body { display: flex; flex-direction: column; gap: 10px; }
.phase-body p { color: var(--muted); max-width: 680px; }
.phase-get { display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.questions { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; margin-top: 16px; }
.questions p { padding: 24px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(19px, 1.9vw, 22px); line-height: 1.35; }

/* About */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person { padding: 28px 0; border-top: 1px solid var(--line); }
.person p { margin-top: 8px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form { border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: #3d3d4a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .err { color: #F0A49B; font-size: 13px; min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: #F0A49B; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.form-status.ok { display: block; border: 1px solid rgba(212,175,55,.6); background: rgba(212,175,55,.08); }
.form-status.bad { display: block; border: 1px solid rgba(240,164,155,.6); background: rgba(240,164,155,.08); }
.form .btn { align-self: flex-start; }
.channels { display: flex; flex-direction: column; gap: 28px; }
.channel { display: flex; flex-direction: column; gap: 6px; }
.channel .eyebrow { margin: 0; }
.channel a.big, .channel p:not(.eyebrow) { color: var(--ink); font-size: 18px; text-decoration: none; }
.channel a.big:hover { color: var(--gold-hi); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--gap-section); font-size: 14px; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col:first-child { flex: 1 1 280px; gap: 12px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--gold-hi); }
.site-footer .brand-logo { height: 34px; }
.site-footer .brand-name { font-size: 16px; }
.footer-legal { padding-bottom: 32px; font-size: 13px; color: var(--muted); }

/* ---------- Motion ---------- */
@keyframes nk-twinkle { from { opacity: .2 } to { opacity: .8 } }
@keyframes nk-draw { to { stroke-dashoffset: 0 } }
@keyframes nk-in { from { opacity: 0; transform: scale(.3) } to { opacity: 1; transform: scale(1) } }
@keyframes nk-halo { 0%, 100% { opacity: .12 } 50% { opacity: .5 } }
@keyframes nk-ring { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.2); opacity: .65 } }
.nk-line { stroke-dasharray: 650; stroke-dashoffset: 650; animation: nk-draw 2.2s cubic-bezier(.65,0,.35,1) .5s forwards; }
.nk-ext { stroke-dasharray: 100; stroke-dashoffset: 100; animation: nk-draw .9s ease-out 2.9s forwards; }
.nk-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: nk-in .6s ease-out forwards; }
.nk-halo { opacity: 0; animation: nk-halo 4.5s ease-in-out infinite; }
.nk-ring { opacity: 0; transform-box: fill-box; transform-origin: center; animation: nk-in .6s ease-out 3.6s forwards, nk-ring 4s ease-in-out 4.4s infinite; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Page-to-page: a soft cross-fade instead of a flash */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: nk-page-out .3s ease both; }
::view-transition-new(root) { animation: nk-page-in .55s ease both; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: .01s; }
@keyframes nk-page-out { to { opacity: 0 } }
@keyframes nk-page-in { from { opacity: 0 } }
@keyframes nk-rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
main { animation: nk-rise .8s cubic-bezier(.22,.61,.36,1) both; transition: opacity .25s ease; }
html.is-leaving main, html.is-leaving .site-footer { opacity: 0; }
.site-footer { transition: opacity .25s ease; }
.card { transition: border-color .4s ease, background .4s ease; }
a.card:hover { border-color: rgba(212,175,55,.45); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  main { animation: none; transition: none; }
  html { scroll-behavior: auto; }
  .nk-line, .nk-ext { animation: none; stroke-dashoffset: 0; }
  .nk-dot, .nk-ring, .nk-halo { animation: none; opacity: 1; }
  .nk-halo { opacity: .3; }
  body::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .arrow-link span { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --gap-section: 72px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 260px; }
  .hero .h1 { font-size: clamp(26px, 7.4vw, 56px); }
  .grid-3 { grid-template-columns: 1fr; }
  .area, .contact { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .cycle-item::before { display: none; }
  .phase { grid-template-columns: 56px minmax(0, 1fr); }
  .phase-get { grid-column: 2; }

  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; background: rgba(5,6,10,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--line); color: var(--gold); }
  .nav .btn { margin-top: 20px; min-height: 48px; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; --gap-section: 64px; }
  .page-top { padding-top: 48px; }
  .grid-2, .team, .questions, .cycle { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card-lg, .venture, .area, .form { padding: 28px 22px; }
  .mark-row { gap: 28px; }
  .mark-row > img { width: 104px; }
  .brand-logo { height: 34px; }
  .hero-actions { gap: 12px 24px; }
  .phase { grid-template-columns: 1fr; gap: 12px; }
  .phase-get { grid-column: 1; }
  .phase-num { font-size: 32px; }
  .form .btn, .cta .btn { align-self: stretch; width: 100%; }
}
