/* ============================================================
   KOViD Analytics — rebuilt site
   No original site survived, so this is a new design built from
   the company's own published description. Palette and type are
   chosen here, not recovered: ultramarine on graphite and paper.
   ============================================================ */

@font-face {
  font-family: 'Open Sans';
  src: url('../font/OpenSans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('../font/PTSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('../font/PTSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1140;
  --ink-2: #2a1a5e;
  --text: #4a4560;
  --soft: #6b6685;
  --line: #e3ddf0;
  --line-2: #cec4e3;
  --paper: #ffffff;
  --paper-2: #f7f5fb;
  --paper-3: #efeaf7;
  --accent: #c4460f;
  --accent-2: #b03c0b;
  --accent-pale: #fdeee5;
  --cyan: #7a5cc4;
  --wrap: 1180px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 18px 44px rgba(28, 17, 64, .10);
  --mono: 'PT Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .6rem; line-height: 1.14; font-weight: 700; letter-spacing: -.022em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: #b8400d; text-decoration: none; }
a:hover { color: var(--accent); }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li + li { margin-top: .35rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }
.wrap-narrow { max-width: 780px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.lead { font-size: 1.14rem; max-width: 62ch; }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.muted { color: var(--soft); }
.mono { font-family: var(--mono); font-size: .84em; letter-spacing: .01em; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.8rem; } .mt-4 { margin-top: 2.6rem; }
.mb-0 { margin-bottom: 0; }

/* ---------------------------------------------------------- labels */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.center .eyebrow::before { display: none; }
.rule { display: block; width: 40px; height: 2px; background: var(--accent); margin-bottom: 1.1rem; }
.center .rule { margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: .8rem 1.1rem; }
.skip:focus { left: 0; }

/* ---------------------------------------------------------- header */
.topline {
  background: var(--accent); color: rgba(255, 255, 255, .88);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.topline .wrap { display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topline a { color: rgba(255, 255, 255, .8); }
.topline a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(28, 17, 64, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(11, 18, 32, .06); }
.header-inner { display: flex; align-items: center; gap: 1.1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 34px; width: auto; }
.brand .name { display: flex; flex-direction: column; line-height: 1.1; }
.brand .name b { font-size: .98rem; color: #fff; letter-spacing: -.01em; }
.brand .name span { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav > li { list-style: none; }
.nav a { display: inline-block; padding: .5rem .75rem; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .82); border-radius: 6px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: .93rem; font-weight: 600; line-height: 1.2;
  padding: .78rem 1.3rem; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; text-align: center; transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.btn--on-dark { border-color: rgba(255, 255, 255, .32); color: #fff; background: transparent; }
.btn--on-dark:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--paper-3); color: var(--ink); }
.btn--sm { padding: .55rem 1rem; font-size: .86rem; }
.nav-cta { margin-left: .5rem; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; padding: 0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 17px; height: 2px; background: #fff; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 17px; height: 2px; background: #fff; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.drawer { position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(340px, 88vw); background: #fff; box-shadow: -14px 0 40px rgba(11, 18, 32, .16); transform: translateX(102%); transition: transform .26s ease; display: flex; flex-direction: column; padding: 1.1rem 1.3rem 1.6rem; overflow-y: auto; }
.drawer[data-open="true"], .drawer.is-open { transform: translateX(0); }
body.no-scroll { overflow: hidden; }
.drawer-close { align-self: flex-end; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; padding: .2rem .5rem; }
.drawer ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.drawer a { display: block; padding: .75rem .2rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer a[aria-current="page"] { color: var(--accent); }
.drawer .btn { width: 100%; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(11, 18, 32, .45); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; background: var(--ink); color: rgba(255, 255, 255, .78); overflow: hidden; padding: clamp(52px, 7vw, 92px) 0 clamp(48px, 6vw, 80px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, rgba(20, 10, 52, .94) 0%, rgba(28, 17, 64, .86) 48%, rgba(46, 28, 96, .55) 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero .lead { color: rgba(255, 255, 255, .78); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.hero .eyebrow { color: #f3b27a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-facts div { min-width: 120px; }
.hero-facts b { display: block; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.hero-facts span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.hero-visual { position: relative; }
.hero-visual .frame { position: relative; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-lg); overflow: hidden; background: #0e1830; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .92; }
.hero-visual .tag {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); background: rgba(11, 18, 32, .72); border: 1px solid rgba(255, 255, 255, .16);
  padding: .35rem .6rem; border-radius: 4px; backdrop-filter: blur(4px);
}
.hero-visual .corner { position: absolute; width: 16px; height: 16px; border: 1px solid rgba(255, 255, 255, .45); }
.hero-visual .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hero-visual .corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ---------------------------------------------------------- sections */
.section { padding: clamp(48px, 6.4vw, 88px) 0; }
.section--paper { background: var(--paper); }
.section--soft { background: var(--paper-2); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .72); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: rgba(255, 255, 255, .74); }
.section--ink .eyebrow { color: #f3b27a; }
.section-head { max-width: 740px; margin-bottom: clamp(26px, 3.4vw, 46px); }
.section-head.center { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 62px); align-items: center; }
.split--wide { grid-template-columns: 1.08fr .92fr; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 26px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 26px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.2vw, 28px); }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; margin-bottom: 0; }
.card .num { font-family: var(--mono); font-size: .74rem; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: .7rem; }
.card--lift { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }

.figure { margin: 0; }
.figure img { border-radius: var(--r); width: 100%; }
.figure figcaption { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-top: .7rem; }

.frame { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; display: block; }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fact { background: #fff; padding: clamp(18px, 2vw, 28px); }
.fact b { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.fact span { display: block; margin-top: .6rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }

/* capability rows */
.cap { display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.cap .k { font-family: var(--mono); font-size: .74rem; color: var(--accent); padding-top: .2rem; }
.cap h3 { margin-bottom: .25rem; }
.cap p { font-size: .95rem; margin: 0; }

/* list with mono labels */
.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs li:first-child { border-top: 1px solid var(--line); }
.specs .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding-top: .18rem; }

/* quote */
.quote { margin: 0; padding: clamp(24px, 3vw, 42px); background: var(--paper-2); border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; }
.quote blockquote { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--ink); font-weight: 500; }
.quote figcaption { margin-top: .9rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }

/* callout / notice */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 var(--r) var(--r) 0; padding: clamp(18px, 2.2vw, 26px); }
.callout h3, .callout h4 { margin-bottom: .35rem; }
.callout p { font-size: .95rem; }
.callout--sand { border-left-color: #b5651d; }
.callout--ink { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .75); }
.callout--ink h3 { color: #fff; }

.notice { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 1.05rem 1.25rem; font-size: .93rem; }
.notice b { color: var(--ink); }

/* video */
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #0a1120; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 17, 32, .05), rgba(10, 17, 32, .5)); }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); display: flex; align-items: center; justify-content: center; z-index: 2; }
.video-facade .play svg { width: 20px; height: 20px; margin-left: 3px; }
.video-facade .label { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video-embed video { width: 100%; height: 100%; display: block; }

/* cta */
.cta-band { background: linear-gradient(105deg, #1c1140, #33206e); color: rgba(255, 255, 255, .74); padding: clamp(46px, 6vw, 80px) 0; }
.cta-band h2 { color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* footer */
.site-footer { background: #150c33; color: rgba(255, 255, 255, .55); padding: clamp(40px, 5vw, 64px) 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(22px, 3vw, 40px); padding-bottom: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { color: rgba(255, 255, 255, .6); }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 42px; width: auto; margin-bottom: .9rem; }
.footer-brand p { font-size: .9rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .8rem; color: rgba(255, 255, 255, .45); }
.footer-bottom .disc { max-width: 66ch; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(11, 18, 32, .1); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.to-top[data-show="true"] { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .specs li { grid-template-columns: 120px 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .topline .wrap { justify-content: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 1fr; gap: .2rem; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .topline, .drawer, .scrim, .to-top { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .section--ink, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .hero .lead, .section--ink h2, .section--ink .lead, .cta-band h2, .site-footer h4, .site-footer a { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
