/* ==========================================================================
   Krignal — network edition
   Krignal's own palette and typefaces, sampled from the live site, on a
   layout built around the one idea the product actually is: a graph of
   people and opportunities, and the edges struck between them.
   ========================================================================== */

/* ---------- 1. The real Krignal system ----------------------------------- */
.theme-net {
  --bg:        #0a0a0d;   /* oklch(0.145 0.006 280) */
  --surface:   #131420;
  --surface-2: #1d1e29;   /* oklch(0.24 0.02 280)   */
  --surface-3: #262735;
  --cream:     #f5f1ec;   /* oklch(0.96 0.008 80)   */
  --gold:      #d59739;   /* oklch(0.72 0.13 74)    */
  --gold-hi:   #e6c88a;
  --gold-mid:  #cea86b;
  --gold-deep: #a76c12;   /* oklch(0.58 0.12 70)    */

  --paper:     var(--bg);
  --paper-2:   var(--surface);
  --paper-3:   var(--surface-2);
  --canvas:    var(--bg);
  --canvas-2:  var(--surface);
  --ink:       var(--cream);
  --ink-2:     rgba(245, 241, 236, .74);
  --ink-3:     rgba(245, 241, 236, .5);
  --ink-inv:   var(--cream);
  --night:     #08080b;
  --night-2:   var(--surface);
  --line:      rgba(245, 241, 236, .12);
  --line-inv:  rgba(245, 241, 236, .12);
  --gold-lt:   var(--gold-hi);
  --gold-dk:   var(--gold);
  --sky-deep:  var(--bg);

  --serif: "Fraunces", "Lora", Georgia, serif;
  --sans:  "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
  --shadow-s: none;
  --shadow:   0 24px 60px -30px rgba(0, 0, 0, .9);
  --shadow-l: 0 40px 90px -40px rgba(0, 0, 0, 1);
}

.theme-net body { background: var(--bg); color: var(--cream); }

/* Fraunces is a variable face; let it set its own optical size. */
.theme-net .h-sec,
.theme-net .h-display,
.theme-net .hero__word { font-variation-settings: "SOFT" 0, "WONK" 0; font-weight: 300; }
.theme-net .h-card { font-weight: 400; }

/* ---------- 2. Hero: the graph ------------------------------------------- */
.theme-net .hero {
  background:
    radial-gradient(120% 90% at 50% 0%, #16121a 0%, var(--bg) 62%);
  min-height: 100svh;
  align-items: center;
  padding-bottom: clamp(56px, 8vw, 110px);
}
.theme-net .hero__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.netcanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Holds the copy's ground without hiding the field behind it. */
.net__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(58% 46% at 28% 52%, rgba(10, 10, 13, .92) 0%, rgba(10, 10, 13, .55) 46%, rgba(10, 10, 13, 0) 78%),
    radial-gradient(120% 100% at 50% 50%, rgba(10, 10, 13, 0) 40%, rgba(10, 10, 13, .78) 100%);
}
.theme-net .hero__grain { z-index: 2; opacity: .3; }
.theme-net .hero__in { z-index: 3; }

.theme-net .hero__badge {
  background: rgba(213, 151, 57, .08);
  border: 1px solid rgba(213, 151, 57, .4);
  color: var(--gold-hi);
  border-radius: 999px;
  font-weight: 500;
}
.theme-net .hero__badge .dot { background: var(--gold); }
.theme-net .hero__word {
  color: var(--cream); text-shadow: none;
  font-weight: 300; letter-spacing: -.005em;
}
.theme-net .rot__line em,
.theme-net .hero__tag em { color: var(--gold-hi); font-style: italic; }
.theme-net .hero__note svg { color: var(--gold); }
.theme-net .dots button { background: rgba(245, 241, 236, .22); }
.theme-net .dots button[aria-current="true"] { background: var(--gold); }

.theme-net .cyc {
  background: rgba(19, 20, 32, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: var(--r);
}
.theme-net .cyc__k { color: var(--ink-3); }
.theme-net .cyc__k svg { color: var(--gold); }

/* ---------- 3. Buttons ---------------------------------------------------- */
.theme-net .btn { font-family: var(--sans); font-weight: 500; letter-spacing: .08em; }
.theme-net .btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid));
  color: #18120a; border-color: transparent;
  box-shadow: 0 10px 30px -14px rgba(213, 151, 57, .7);
}
.theme-net .btn--gold:hover {
  background: linear-gradient(180deg, #f0d9a6, var(--gold-hi));
  box-shadow: 0 16px 40px -14px rgba(213, 151, 57, .85);
}
.theme-net .btn--ghost,
.theme-net .hero .btn--ghost {
  background: rgba(245, 241, 236, .04); border-color: rgba(245, 241, 236, .22);
  color: var(--cream); backdrop-filter: blur(6px);
}
.theme-net .btn--ghost:hover,
.theme-net .hero .btn--ghost:hover {
  background: rgba(213, 151, 57, .12); border-color: var(--gold); color: var(--gold-hi);
}
.theme-net .btn--ghost-inv { border-color: rgba(245, 241, 236, .22); }
.theme-net .btn--ghost-inv:hover { border-color: var(--gold); color: var(--gold-hi); }
.theme-net .skip, .theme-net .btn--ink { background: var(--gold); color: #18120a; }
.theme-net .step-a { background: var(--gold); color: #18120a; }
.theme-net .qcard__av { background: linear-gradient(150deg, var(--gold-hi), var(--gold-deep)); color: #18120a; }
.theme-net .qcard:nth-child(even) .qcard__av { background: var(--surface-3); color: var(--gold-hi); }

/* ---------- 4. Header ----------------------------------------------------- */
.theme-net .hdr.is-stuck {
  background: rgba(10, 10, 13, .82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: none;
}
.theme-net .hdr.is-stuck,
.theme-net .hdr.is-stuck .logo__word { color: var(--cream); }
.theme-net .hdr.is-stuck .nav a,
.theme-net .hdr.is-stuck .hdr__login { color: rgba(245, 241, 236, .72); }
.theme-net .hdr.is-stuck .nav a:hover,
.theme-net .hdr.is-stuck .hdr__login:hover { color: var(--gold-hi); }
.theme-net .hdr.is-stuck .burger { border-color: rgba(245, 241, 236, .24); }
.theme-net .hdr.is-stuck .burger span,
.theme-net .hdr.is-stuck .burger span::before,
.theme-net .hdr.is-stuck .burger span::after { background: var(--cream); }
.theme-net .mnav { background: rgba(10, 10, 13, .98); border-bottom-color: var(--line); }
.theme-net .mnav a { color: var(--cream); border-bottom-color: var(--line); }
.theme-net .verswitch { border-color: var(--line); }

/* The real krignal.com mark is a raster with its own aspect ratio; main.css
   sizes .logo__mark for the old inline SVG, so let it letterbox instead. */
.theme-net .logo__mark { width: 27px; height: 29px; object-fit: contain; }
.theme-net .ftr .logo__mark { opacity: .95; }
.theme-net .verswitch:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---------- 5. Signal ticker --------------------------------------------- */
/* The network is always working; this is the sound of it. */
.signal {
  position: relative; z-index: 4;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: clamp(14px, 3vw, 34px);
  padding: 0 0 0 var(--pad);
}
.signal__label {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-hi); padding-block: 18px;
}
.signal__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(213, 151, 57, .6); animation: pulse-dot 2.4s infinite;
}
.signal__mask {
  overflow: hidden; padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 88%, transparent);
}
.signal__rail { display: flex; width: max-content; animation: slide 58s linear infinite; }
.signal:hover .signal__rail { animation-play-state: paused; }
.signal__item {
  display: inline-flex; align-items: center; gap: 11px; flex: none;
  padding-right: 44px; font-size: .84rem; color: var(--ink-2); white-space: nowrap;
}
.signal__item i { font-style: normal; }
.signal__item i:last-child { color: var(--cream); }
.signal__item svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

@media (max-width: 760px) {
  .signal { grid-template-columns: 1fr; gap: 0; padding-right: 0; }
  .signal__label { padding-bottom: 0; }
}

/* ---------- 6. Section rail ---------------------------------------------- */
.rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 60; }
.rail ul { display: grid; gap: 2px; }
.rail a {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.rail.is-lit a { opacity: .48; transform: none; pointer-events: auto; }
.rail.is-lit a:hover { opacity: 1; }
.rail__tick { width: 16px; height: 1px; background: var(--cream); transition: width .3s var(--ease), background .3s; }
.rail__txt {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream); opacity: 0; transition: opacity .3s var(--ease);
}
.rail a:hover .rail__txt { opacity: 1; }
.rail a.is-here { opacity: 1 !important; }
.rail a.is-here .rail__tick { width: 30px; background: var(--gold); }
.rail a.is-here .rail__txt { opacity: 1; color: var(--gold-hi); }
@media (max-width: 1440px) { .rail { display: none; } }

/* ---------- 7. Surfaces --------------------------------------------------- */
.theme-net .problem,
.theme-net .how,
.theme-net .faq,
.theme-net .seg--ind { background: var(--bg); }
.theme-net .benefits { background: linear-gradient(180deg, var(--bg), var(--surface)); }
.theme-net .events { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.theme-net .seg--org { background: var(--surface); }
.theme-net .tv { background: #07070a; }

.theme-net .qcard,
.theme-net .bcard,
.theme-net .mini,
.theme-net .chip,
.theme-net .pill,
.theme-net .tag,
.theme-net .ecard,
.theme-net .tagbox,
.theme-net .panel {
  background: var(--surface); border-color: var(--line); box-shadow: none;
}
.theme-net .panel { background: linear-gradient(165deg, var(--surface-2), var(--surface)); }
.theme-net .panel::before {
  background: radial-gradient(90% 60% at 80% 0%, rgba(213, 151, 57, .1), transparent 62%);
}
.theme-net .seg--org .tagbox { background: rgba(245, 241, 236, .04); }
.theme-net .qcard:hover,
.theme-net .bcard:hover,
.theme-net .ecard:hover,
.theme-net .tag:hover { border-color: rgba(213, 151, 57, .55); }
.theme-net .bcard::after { background: linear-gradient(90deg, var(--gold-hi), var(--gold)); }
.theme-net .bcard__ico {
  background: rgba(213, 151, 57, .1); border-color: rgba(213, 151, 57, .3); color: var(--gold-hi);
}
.theme-net .chip__d { background: var(--gold); }
.theme-net .chip__tag { background: rgba(245, 241, 236, .07); color: var(--ink-3); }
.theme-net .you {
  background: radial-gradient(circle at 34% 28%, var(--surface-3), var(--surface));
  border-color: rgba(213, 151, 57, .5); color: var(--cream);
  box-shadow: 0 0 0 8px rgba(213, 151, 57, .05), 0 0 40px -10px rgba(213, 151, 57, .4);
}
.theme-net .you::after { border-color: rgba(213, 151, 57, .38); }
.theme-net .mini__badge { background: rgba(213, 151, 57, .12); color: var(--gold-hi); }
.theme-net .mini__badge .d { background: var(--gold); }
.theme-net .caret { background: var(--gold); }
.theme-net .pill--found { background: rgba(213, 151, 57, .1); border-color: rgba(213, 151, 57, .45); }
.theme-net .radar__dial {
  background: radial-gradient(circle, rgba(213, 151, 57, .09), rgba(213, 151, 57, .01) 70%);
  border-color: rgba(213, 151, 57, .22);
}
.theme-net .radar__dial::before,
.theme-net .radar__dial::after { border-color: rgba(213, 151, 57, .16); }
.theme-net .radar__sweep { background: conic-gradient(from 0deg, rgba(213, 151, 57, .45), rgba(213, 151, 57, 0) 42%); }
.theme-net .radar__pip { background: var(--gold-hi); box-shadow: 0 0 10px rgba(213, 151, 57, .9); }
.theme-net .mark::after { background: linear-gradient(90deg, rgba(213, 151, 57, .38), rgba(213, 151, 57, .08)); }

/* ---------- 8. Steps on a spine ------------------------------------------ */
/* The three steps are one continuous thread, not three stacked blocks. */
.theme-net .how .wrap { position: relative; }
@media (min-width: 900px) {
  .theme-net .step { position: relative; padding-left: 62px; }
  .theme-net .step::before {
    content: ""; position: absolute; left: 15px; top: 6px; bottom: -96px;
    width: 1px; background: linear-gradient(180deg, var(--gold), rgba(213, 151, 57, .12));
  }
  .theme-net .step:last-of-type::before { bottom: 30%; }
  .theme-net .step::after {
    content: ""; position: absolute; left: 9px; top: 14px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(213, 151, 57, .12);
  }
  .theme-net .step__num { font-size: 2.2rem; opacity: .9; color: var(--gold); }
}

/* ---------- 9. Bands ------------------------------------------------------ */
.theme-net .privacy {
  background:
    radial-gradient(80% 120% at 84% 50%, rgba(213, 151, 57, .14), transparent 60%),
    linear-gradient(150deg, var(--surface-2), var(--night));
  border: 1px solid var(--line);
}
.theme-net .privacy::before { display: none; }
.theme-net .pchip {
  background: rgba(245, 241, 236, .04); border-color: var(--line);
}
.theme-net .pchip svg { color: var(--gold-hi); }

.theme-net .closer { background: var(--bg); }
.theme-net .closer__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.theme-net .closer__veil {
  position: absolute; inset: 0;
  background: radial-gradient(64% 58% at 50% 46%, rgba(10, 10, 13, .88) 0%, rgba(10, 10, 13, .5) 52%, rgba(10, 10, 13, .9) 100%);
}
.theme-net .closer .h-sec span { color: var(--gold-hi); }

/* ---------- 10. Photography ---------------------------------------------- */
/* The krignal.com photographs are already warm and low-lit; they only need
   settling into the near-black so nothing glares. */
.theme-net .ecard__art img,
.theme-net .tvframe img { filter: saturate(.9) contrast(1.04) brightness(.88); }
.theme-net .ecard__art { background: var(--night); }
.theme-net .ecard__tag {
  background: rgba(10, 10, 13, .82); color: var(--gold-hi);
  border: 1px solid rgba(213, 151, 57, .4); backdrop-filter: blur(6px);
}
.theme-net .tvframe { border-color: var(--line); background: var(--night); }
.theme-net .tv__mission h3 span { color: var(--gold-hi); }

/* ---------- 11. FAQ, footer, misc ---------------------------------------- */
.theme-net .qa summary:hover { color: var(--gold-hi); }
.theme-net .qa summary::after { border-color: var(--ink-3); }
.theme-net .qa[open] summary::after { border-color: var(--gold); }
.theme-net .ftr { background: #07070a; }
.theme-net .ftr__col a:hover { color: var(--gold-hi); }
.theme-net .tlink { color: var(--ink-2); border-bottom-color: var(--line); }
.theme-net .tlink:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }
.theme-net .totop {
  background: rgba(19, 20, 32, .9); border-color: var(--line); backdrop-filter: blur(10px);
}
.theme-net .totop svg { color: var(--gold-hi); }
.theme-net .totop:hover { border-color: var(--gold); }
.theme-net :focus-visible { outline-color: var(--gold); }
.theme-net .eyebrow::before { background: var(--gold); }
.theme-net .eyebrow { color: var(--ink-3); }
