/* =========================================================================
   Knowledge Management LLLP — usviking.com
   Plain CSS. No build step, no external dependencies, no web fonts.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #061426;
  --navy-800: #0A1E3C;
  --navy-700: #0F2C53;
  --navy-600: #163C6B;

  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  --cyan-300: #67E8F9;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;
  --cyan-600: #0891B2;

  --white: #FFFFFF;

  --ink:        var(--navy-800);
  --ink-muted:  var(--slate-600);
  --page:       var(--white);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --maxw: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(6, 20, 38, .06), 0 2px 8px rgba(6, 20, 38, .05);
  --shadow-md: 0 4px 12px rgba(6, 20, 38, .07), 0 16px 40px rgba(6, 20, 38, .08);
  --shadow-lg: 0 8px 24px rgba(6, 20, 38, .10), 0 32px 64px rgba(6, 20, 38, .12);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.021em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--cyan-600); text-decoration: none; }
a:hover { text-decoration: underline; }
address { font-style: normal; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--cyan-400); color: var(--navy-900);
  font-weight: 700; padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--cyan-400);
  --btn-fg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-size: .98rem; font-weight: 650; letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-300), var(--cyan-500));
  color: var(--navy-900);
  box-shadow: 0 6px 20px rgba(6, 182, 212, .35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(6, 182, 212, .45); }

.btn-ghost {
  background: transparent; color: var(--slate-200);
  border-color: rgba(203, 213, 225, .32);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(203, 213, 225, .6); }

.btn-sm { padding: .58rem 1.15rem; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  margin: 0 0 1rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan-400);
}
.eyebrow-dark { color: var(--cyan-600); }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
/* Measure is capped on the h2 itself — `ch` on the wrapper would resolve
   against the 17px body size and squeeze the 2.6rem heading to a column. */
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); max-width: 21ch; }
.section-head-invert h2 { color: var(--white); max-width: 24ch; }

/* =========================================================================
   Header
   ========================================================================= */
/* The header sits above the hero in normal flow (not over it), so it must be
   opaque navy at all times — a transparent header would render white-on-white
   against the page background. Scrolling only adds separation.  */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 22px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.brand-suffix {
  font-size: .62rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan-400);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav > a {
  position: relative;
  font-size: .95rem; font-weight: 550;
  color: var(--slate-300);
  transition: color .18s var(--ease);
}
.nav > a:hover { color: var(--white); text-decoration: none; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--cyan-400);
  transition: right .22s var(--ease);
}
.nav > a:not(.btn):hover::after { right: 0; }
/* Must out-specify `.nav > a` above, which would otherwise paint the CTA label
   slate-300 on cyan. */
.nav > a.btn { color: var(--navy-900); }
.nav > a.btn:hover { color: var(--navy-900); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; }
.nav-toggle-bars span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--slate-200);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(5.5rem, 12vw, 9.5rem);
  background: linear-gradient(168deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.hero-bg .grid {
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 180, 216, .22) 1px, transparent 0);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
}

.hero-bg .glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
  will-change: transform;
}
.glow-a {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -14%; right: -8%;
  background: radial-gradient(circle, rgba(34, 211, 238, .55), transparent 66%);
  animation: drift-a 22s var(--ease) infinite alternate;
}
.glow-b {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  bottom: -20%; left: -10%;
  background: radial-gradient(circle, rgba(100, 116, 139, .6), transparent 68%);
  animation: drift-b 26s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(-6%, 7%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(8%, -6%, 0) scale(1.08); } }

/* Oversized brand mark filling the empty right half of the hero. */
.hero-mark {
  position: absolute;
  top: 50%; right: -7%;
  width: min(56%, 760px); height: auto;
  transform: translateY(-46%);
  color: var(--cyan-400);
  opacity: .12;
}
@media (max-width: 900px) {
  .hero-mark { right: -22%; width: 92%; opacity: .07; }
}

/* An inner column inside .container — capping .container itself would recentre
   the block and break alignment with every other section. The width leaves the
   right side of the hero clear for .hero-mark. */
.hero-inner { position: relative; max-width: 860px; }

.hero-title {
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  letter-spacing: -.032em;
  margin-bottom: 1.4rem;
}
.hero-title .accent {
  background: linear-gradient(100deg, var(--cyan-300) 8%, var(--cyan-400) 45%, #7DD3FC 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: rgba(226, 232, 240, .82);
  max-width: 52ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

.hero-tagline {
  max-width: 52ch;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem; font-weight: 550; font-style: italic;
  color: rgba(203, 213, 225, .72);
}

/* =========================================================================
   Pillars
   ========================================================================= */
.pillars { background: var(--slate-50); }

.pillar-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pillar {
  position: relative; overflow: hidden;
  padding: 2.25rem 1.9rem 2rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              border-color .28s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan-400), var(--navy-600));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, .45);
  box-shadow: var(--shadow-md);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 1.35rem;
  border-radius: 15px;
  color: var(--cyan-600);
  background: linear-gradient(140deg, rgba(34, 211, 238, .16), rgba(15, 44, 83, .08));
  border: 1px solid rgba(6, 182, 212, .22);
}
.pillar-icon svg { width: 27px; height: 27px; }

.pillar h3 { font-size: 1.24rem; margin-bottom: .6rem; }
.pillar p { color: var(--ink-muted); font-size: 1rem; }

/* =========================================================================
   Deployments
   ========================================================================= */
.deployments {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(226, 232, 240, .88);
}
.deployments::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 180, 216, .14) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 55% at 70% 8%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 70% 8%, #000, transparent 72%);
}

.stats {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: clamp(2.75rem, 5vw, 3.75rem);
}
.stat {
  padding: 1.5rem 1.6rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
}
.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.05;
  color: var(--cyan-400);
}
.stat-label {
  display: block; margin-top: .4rem;
  font-size: .88rem; letter-spacing: .02em;
  color: rgba(203, 213, 225, .75);
}

.deployments-lede {
  max-width: 62ch; margin-bottom: 2.5rem;
  font-size: 1.05rem; color: rgba(226, 232, 240, .8);
}

.deploy-group + .deploy-group { margin-top: 2.5rem; }
.deploy-group-title {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--cyan-300);
  padding-bottom: .8rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.chips { display: flex; flex-wrap: wrap; gap: .65rem; }
.chips li {
  display: inline-flex; align-items: baseline; gap: .45rem;
  padding: .6rem 1.05rem;
  font-size: .94rem; font-weight: 550; color: var(--white);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease);
}
.chips li:hover {
  background: rgba(34, 211, 238, .13);
  border-color: rgba(34, 211, 238, .42);
  transform: translateY(-2px);
}
.chips li span {
  font-size: .78rem; font-weight: 500;
  color: rgba(203, 213, 225, .62);
}

.disclaimer {
  margin-top: 3rem; max-width: 70ch;
  font-size: .82rem; line-height: 1.6;
  color: rgba(148, 163, 184, .68);
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact { background: var(--white); }

.contact-inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: start;
}

.contact-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); max-width: 18ch; }
.contact-lede { margin-top: 1.1rem; font-size: 1.1rem; color: var(--ink-muted); }

.contact-card {
  padding: 2.1rem 1.9rem;
  background: linear-gradient(165deg, var(--slate-50), var(--white));
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-list { display: grid; gap: 1.5rem; margin-bottom: 1.9rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }

.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 42px; height: 42px;
  border-radius: 12px;
  color: var(--cyan-600);
  background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .2);
}
.contact-icon svg { width: 21px; height: 21px; }

.contact-list h3 {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: .3rem;
}
.contact-list address, .contact-list p { font-size: 1rem; color: var(--ink); }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--cyan-600); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--navy-900);
  color: rgba(203, 213, 225, .7);
  padding: 3.25rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.footer-inner {
  display: grid; gap: 1.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand .brand-mark { width: 40px; height: 21px; flex: none; }
.footer-name { color: var(--white); font-weight: 700; font-size: 1rem; }
.footer-tag { font-size: .87rem; font-style: italic; color: rgba(148, 163, 184, .78); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { color: rgba(203, 213, 225, .72); font-size: .92rem; }
.footer-nav a:hover { color: var(--cyan-400); text-decoration: none; }

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .82rem; color: rgba(148, 163, 184, .6);
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
/* Scoped to html.js (set by the inline head script) so that with JavaScript
   disabled or broken, no content is ever left invisible. */
html.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: rgba(6, 20, 38, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);

    /* Collapsed by default on small screens. */
    display: none;
  }
  .nav.is-open { display: flex; }

  .nav > a {
    padding: .9rem .25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 1rem;
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a.btn { margin-top: 1rem; border-bottom: 0; justify-content: center; }

  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .brand-name { font-size: .9rem; }
  .chips li { font-size: .88rem; padding: .52rem .9rem; }
}

/* =========================================================================
   Motion / print / forced-colors
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-bg, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .deployments, .site-footer { background: #fff !important; color: #000 !important; }
  .section-head-invert h2, .chips li, .stat-num, .footer-name { color: #000 !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}
