/* vizlume.com. One stylesheet. Archivo (SIL OFL) is self-hosted; its width axis sets the display type. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --night: #16102a;        /* Vizlume's ground: the violet the mark sits on */
  --night-deep: #0f0a1e;
  --night-line: rgba(237, 233, 247, 0.14);
  --on-night: #ede9f7;
  --on-night-muted: #ada5c8;
  --paper: #f4f2fa;
  --paper-raised: #ffffff;
  --paper-line: #dcd7ea;
  --ink: #1a1428;
  --ink-muted: #5d5674;
  --violet: #a373fd;       /* the mark */
  --violet-deep: #5b2fd6;  /* links and focus on paper */
  --lume: #ffc56b;         /* focus on night */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--violet-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--lume); color: var(--night); padding: 12px 18px; border-radius: 8px; font-weight: 650;
}
.skip-link:focus { top: 12px; }

/* ---- Night surfaces (header, hero, page bands, Rapid Roll, footer) ---- */
.site-header, .hero, .page-hero, .teaser, .site-footer { background: var(--night); color: var(--on-night); }
.site-header a, .hero a, .page-hero a, .teaser a, .site-footer a { color: var(--on-night); }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .teaser :focus-visible, .site-footer :focus-visible { outline-color: var(--lume); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--night-line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-stretch: 125%; font-weight: 760; font-size: 1.25rem; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-weight: 520; color: var(--on-night-muted);
}
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--on-night); background: rgba(237, 233, 247, 0.08); }
.menu-toggle { display: none; }

@media (max-width: 720px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 18px;
    border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--on-night);
    font: inherit; font-weight: 560; cursor: pointer;
  }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--night); border-bottom: 1px solid var(--night-line); padding: 8px var(--gutter) 20px;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { width: 100%; min-height: 52px; font-size: 1.125rem; border-radius: 12px; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav { margin-left: 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-weight: 620; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.hero .btn-light { background: var(--on-night); color: var(--night); }
.hero .btn-light:hover { background: #fff; }
.hero .btn-ghost { border-color: rgba(237, 233, 247, 0.32); }
.hero .btn-ghost:hover { border-color: var(--on-night); }
.btn-accent { background: #1f5fb8; color: #fff; }
.btn-accent:hover { background: #184c95; }
.btn-dark { background: var(--night); color: var(--on-night); }
.btn-quiet { color: var(--ink); border-color: var(--paper-line); background: var(--paper-raised); }
.btn-quiet:hover { border-color: var(--ink-muted); }
.actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Home hero ---- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 10%, rgba(163, 115, 253, 0.18), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 80px); align-items: end; padding-top: clamp(48px, 8vw, 112px);
}
.hero-copy { padding-bottom: clamp(56px, 8vw, 120px); align-self: center; }
.hero h1 {
  font-stretch: 125%; font-weight: 780; font-size: clamp(2.25rem, 3.9vw, 4.25rem);
  line-height: 0.98; letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance;
}
.hero-lede { margin-top: 28px; max-width: 46ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--on-night-muted); }
.hero-actions { margin-top: 36px; }
.hero-art { align-self: end; }
.prism { width: 100%; height: auto; display: block; overflow: visible; }
.prism .rays polygon { mix-blend-mode: screen; }

.slate { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.slate a {
  display: grid; gap: 2px; padding: 18px 0 28px; text-decoration: none;
  border-top: 3px solid var(--accent);
}
.slate-name { font-stretch: 118%; font-weight: 720; font-size: 1.1875rem; letter-spacing: -0.01em; }
.slate-kind { color: var(--on-night-muted); font-size: 0.9375rem; }
.slate-status { margin-top: 10px; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
/* Four or more products: drop the kind line so every name still fits above its ray. */
.slate-dense { gap: 12px; }
.slate-dense .slate-name { font-stretch: 100%; font-size: 1rem; }
.slate-dense .slate-kind { display: none; }
.slate-dense .slate-status { margin-top: 6px; font-size: 0.8125rem; }
.slate a:hover .slate-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* One orchestrated moment on load: the beam enters, the mark lights, the rays reach the products. */
@media (prefers-reduced-motion: no-preference) {
  .prism .beam { animation: beam-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .prism .v-glow { animation: light-up 1.2s 0.5s ease-out both; }
  .prism .halo { animation: light-up 1.6s 0.5s ease-out both; }
  .prism .ray {
    transform-box: fill-box; transform-origin: 50% 0;
    animation: ray-in 1.1s calc(0.95s + var(--i) * 0.14s) cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .slate a { animation: slate-in 0.7s calc(1.7s + var(--n, 0) * 0.1s) ease-out both; }
}
@keyframes beam-in { from { opacity: 0; transform: translate(-60px, -54px); } }
@keyframes light-up { from { opacity: 0; } }
@keyframes ray-in { from { opacity: 0; transform: scaleY(0); } }
@keyframes slate-in { from { border-top-color: transparent; } }

/* ---- Product sections ---- */
.product-name {
  display: flex; align-items: center; gap: 16px;
  font-stretch: 122%; font-weight: 760; font-size: clamp(2rem, 3.4vw, 2.875rem); line-height: 1; letter-spacing: -0.025em;
}
.p-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; object-fit: cover; }
.p-icon-sm { width: 44px; height: 44px; border-radius: 11px; }
.p-icon-type {
  display: inline-grid; place-items: center; background: var(--accent); color: var(--night);
  font-stretch: 125%; font-weight: 800; font-size: 1.25rem;
}
.p-icon-mark { object-fit: contain; padding: 9px; background: var(--night); }
.product-headline { font-size: clamp(1.3rem, 2vw, 1.625rem); line-height: 1.3; font-weight: 560; letter-spacing: -0.01em; }
.product-body { color: var(--ink-muted); max-width: 54ch; }

.showcase { background: #e9f0fb; padding-block: clamp(72px, 10vw, 136px); overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.showcase-copy { display: grid; gap: 22px; align-content: start; }
.showcase .product-headline { color: #0f2747; max-width: 24ch; margin-top: 8px; }
.availability { font-size: 0.9375rem; color: var(--ink-muted); }
.highlights { display: grid; border-top: 1px solid #c9d7ec; max-width: 54ch; }
.highlights div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid #c9d7ec; }
.highlights dt { font-weight: 650; color: #0f2747; }
.highlights dd { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }

.showcase-media { position: relative; padding-bottom: clamp(72px, 9vw, 128px); }
.device { background: #0d1424; box-shadow: 0 40px 80px -36px rgba(15, 39, 71, 0.55), 0 2px 6px rgba(15, 39, 71, 0.12); }
.device-desktop { border-radius: 16px; padding: 10px; width: 132%; margin-left: 16%; } /* bleeds off the right edge */
.device-desktop img { border-radius: 8px; }
.device-phone {
  position: absolute; left: 0; bottom: 0; width: 27%; min-width: 120px; max-width: 236px;
  border-radius: 34px; padding: 7px; box-shadow: 0 36px 70px -24px rgba(15, 39, 71, 0.6);
}
.device-phone img { border-radius: 28px; }

.teaser { background: var(--night-deep); padding-block: clamp(72px, 10vw, 136px); overflow: hidden; position: relative; }
.teaser::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 78% 38%, rgba(255, 181, 71, 0.14), transparent 70%);
}
.teaser .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.teaser-stage { grid-column: 1 / -1; position: relative; height: clamp(120px, 16vw, 200px); border-bottom: 1px solid var(--night-line); }
.orb {
  position: absolute; right: 12%; bottom: 0; width: clamp(96px, 13vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6e2 0, #ffd38a 16%, #ffa63d 46%, #d9600f 78%, #8f3507 100%);
  box-shadow: 0 0 60px 6px rgba(255, 166, 61, 0.35), 0 0 160px 30px rgba(255, 140, 40, 0.16);
}
.trail {
  position: absolute; bottom: 0; right: calc(12% + clamp(48px, 6.5vw, 84px)); width: 58%; height: clamp(96px, 13vw, 168px);
  border-radius: 0 999px 999px 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0 14px, rgba(255, 197, 107, 0.12) 14px 16px),
    linear-gradient(to right, transparent, rgba(255, 166, 61, 0.28));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 75%);
          mask-image: linear-gradient(to right, transparent, #000 75%);
}
.teaser-name {
  font-stretch: 125%; font-weight: 820; font-size: clamp(3.25rem, 10.5vw, 9.5rem); line-height: 0.9; letter-spacing: -0.04em;
  color: #fff4e0;
}
.teaser-copy { display: grid; gap: 14px; padding-bottom: 8px; max-width: 46ch; }
.teaser .product-headline { color: var(--on-night); }
.teaser .product-body { color: var(--on-night-muted); }
.status-tag {
  justify-self: start; margin-top: 6px; padding: 6px 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 620;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ---- About Vizlume (home) ---- */
.mission { padding-block: clamp(72px, 10vw, 136px); }
.mission-inner { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.mission h2, .page-body h2 {
  font-stretch: 118%; font-weight: 740; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em;
}
.mission-copy { display: grid; gap: 20px; }
.mission-copy p { max-width: 56ch; color: var(--ink-muted); }
.mission-copy .mission-text { max-width: 26ch; color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; font-weight: 560; letter-spacing: -0.015em; }
.text-link { font-weight: 620; }

/* ---- Inner pages ---- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 90% at 90% 0%, rgba(163, 115, 253, 0.2), transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-stretch: 125%; font-weight: 780; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; max-width: 18ch;
}
.page-lede { margin-top: 20px; max-width: 58ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--on-night-muted); }
.page-lede a { color: var(--on-night); }

.page-body { display: grid; gap: clamp(48px, 6vw, 80px); padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 128px); }
.page-body section { display: grid; gap: 16px; align-content: start; }
.page-body section > p { max-width: 64ch; }
.section-lede { color: var(--ink-muted); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.values div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--violet); }
.values dt { font-weight: 700; font-stretch: 108%; font-size: 1.125rem; }
.values dd { margin: 0; color: var(--ink-muted); }

.founder { padding-left: clamp(18px, 2.5vw, 28px); border-left: 3px solid var(--violet); }
.founder p { max-width: 62ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; }
.made-list { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.made-list li { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--paper-line); }
.made-list p { max-width: 64ch; }
.made-name { font-weight: 720; font-stretch: 112%; font-size: 1.1875rem; }

.facts { display: grid; border-top: 1px solid var(--paper-line); max-width: 760px; }
.facts > div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
.facts dt { color: var(--ink-muted); font-size: 0.9375rem; }
.facts dd { margin: 0; }

.rows { display: grid; }
.row {
  grid-template-columns: minmax(200px, 0.8fr) minmax(0, 2fr); gap: 24px !important; padding: 28px 0; align-items: start;
  border-top: 1px solid var(--paper-line);
}
.row:last-child { border-bottom: 1px solid var(--paper-line); }
.row-head { display: flex; align-items: center; gap: 14px; }
.row-head h2, .row-head h3 { font-stretch: 112%; font-weight: 720; font-size: 1.3125rem; letter-spacing: -0.01em; line-height: 1.2; }
.row-body { display: grid; gap: 14px; min-width: 0; }
.row-body p { max-width: 62ch; }
.link-row { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.link-row li { min-width: 0; max-width: 100%; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; overflow-wrap: anywhere; }

.prose > * { max-width: 760px; } /* the container stays aligned with the page title; only the text column narrows */
.prose h2 { font-size: clamp(1.375rem, 2vw, 1.625rem) !important; }
.updated { color: var(--ink-muted); font-size: 0.9375rem; }
.prose ul { display: grid; gap: 8px; padding-left: 1.25em; max-width: 64ch; list-style: disc; }
.prose li::marker { color: var(--violet-deep); }
.toc { padding: 20px 24px; border-radius: 12px; background: var(--paper-raised); border: 1px solid var(--paper-line); }
.prose .toc-title { font-size: 1rem !important; font-stretch: 100%; letter-spacing: 0; margin-bottom: 10px; }
.toc ol { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.toc li { break-inside: avoid; }
.toc a { display: inline-block; padding: 4px 0; font-size: 0.9375rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---- Footer ---- */
.site-footer { padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; color: var(--on-night-muted); max-width: 28ch; }
.site-footer h2 { font-size: 0.9375rem; font-weight: 650; color: var(--on-night-muted); margin-bottom: 10px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 32px;
  border-top: 1px solid var(--night-line); color: var(--on-night-muted); font-size: 0.875rem;
}

/* ---- Small screens ---- */
@media (max-width: 960px) {
  .hero-grid, .showcase-grid, .mission-inner, .values { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .hero-art { max-width: 560px; width: 100%; justify-self: center; }
  .teaser .wrap { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .row, .facts > div { grid-template-columns: minmax(0, 1fr); }
  .facts > div { gap: 4px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .device-phone { min-width: 0; width: 30%; border-radius: 20px; padding: 5px; }
  .device-phone img { border-radius: 18px; }
  .device-desktop { padding: 6px; border-radius: 12px; }
  .trail { width: 64%; }
  .slate-dense { gap: 8px; }
  .slate-dense .slate-name { font-size: 0.8125rem; line-height: 1.3; overflow-wrap: break-word; }
  .slate-dense .slate-status { display: none; }
}
