/* Veracity — marketing site. One page, read section by section. */

/* Fonts are served from this site, not a font service, so no visitor's address goes to
   a third party. Both are variable fonts under the SIL Open Font License (fonts/). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0c16;
  --bg-2: #10132a;
  --panel: #151935;
  --panel-2: #1c2144;
  --line: #2a3060;
  --line-strong: #3b4380;
  --ink: #eef0fb;
  --ink-2: #b8bde0;
  --muted: #8087b3;
  --violet: #8f7cff;
  --magenta: #e05bbd;
  --blue: #5b8dff;
  --orange: #ff8c42;
  --good: #8f7cff;
  --warn: #ff8c42;
  --glow: rgba(143, 124, 255, 0.28);
  --warn-glow: rgba(255, 140, 66, 0.18);
  --radius: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --eyebrow-size: 18px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f6fb;
    --bg-2: #eceefa;
    --panel: #ffffff;
    --panel-2: #f1f2fb;
    --line: #dcdff0;
    --line-strong: #c3c8e6;
    --ink: #14162b;
    --ink-2: #3c4170;
    --muted: #6a7099;
    --violet: #5b45f0;
    --magenta: #c2338f;
    --blue: #2f63e0;
    --orange: #d9601a;
    --good: #5b45f0;
    --warn: #d9601a;
    --glow: rgba(91, 69, 240, 0.16);
    --warn-glow: rgba(217, 96, 26, 0.1);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family:
    "Space Grotesk",
    "Inter",
    system-ui,
    sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, var(--bg) 30%, transparent);
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.topbar .contact {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  border-radius: 999px;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.topbar .contact:hover {
  color: var(--ink);
  border-color: var(--violet);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--magenta));
  z-index: 30;
}

/* ---------- section dots ---------- */

.dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dots a {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  transition:
    background 0.25s,
    transform 0.25s;
}

.dots a:hover,
.dots a[aria-current="true"] {
  background: var(--violet);
  transform: scale(1.35);
}

@media (max-width: 760px) {
  .dots {
    display: none;
  }
}

/* ---------- pages ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
  scroll-snap-align: start;
  position: relative;
}

.page + .page {
  border-top: 1px solid var(--line);
}

/* One size for every section label, centred pages included. Wide tracking at 18px makes
   the longest labels run long, so the tracking tightens a little, and phones step down. */
.eyebrow {
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 20px;
}

.eyebrow .num {
  color: var(--muted);
  margin-right: 12px;
}

@media (max-width: 760px) {
  :root {
    --eyebrow-size: 15px;
  }
}

/* ---------- hero ---------- */

.hero {
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 700;
}

.hero h1 .grad,
.big .grad {
  background: linear-gradient(100deg, var(--blue), var(--violet) 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin-top: 28px;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--ink-2);
  max-width: 34ch;
}

.hero .cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}

.hero .cue span {
  display: inline-block;
  animation: nudge 2.2s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.orbit {
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.orbit .ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-dasharray: 2 7;
}

.orbit .spin {
  transform-origin: 200px 200px;
  animation: spin 60s linear infinite;
}

.orbit .spin.rev {
  animation-duration: 90s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .orbit {
    max-width: 300px;
    order: -1;
  }
}

/* ---------- big statement pages ---------- */

.big {
  text-align: center;
}

.big h2 {
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 700;
  max-width: 18ch;
  margin: 0 auto;
}

.big p {
  margin: 28px auto 0;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--ink-2);
  max-width: 40ch;
}

.big p.eyebrow {
  font-size: var(--eyebrow-size);
  color: var(--violet);
  margin: 0 auto 20px;
}

.big .chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  max-width: 920px;
}

.big .chips li {
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

/* ---------- scenarios ---------- */

.scenario h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 700;
  max-width: 20ch;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.panel.today h3 {
  color: var(--warn);
}

.panel.today h3::before {
  background: var(--warn);
}

.panel.ours {
  border-color: color-mix(in srgb, var(--violet) 45%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--violet) 20%, transparent),
    0 30px 80px -40px var(--glow);
}

.panel.ours h3 {
  color: var(--violet);
}

.panel.ours h3::before {
  background: var(--violet);
}

.panel figure {
  margin: 0;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.panel figure svg {
  width: 100%;
  height: 100%;
}

.panel p {
  color: var(--ink-2);
  font-size: 17px;
}

.panel .how {
  font-size: 15px;
  color: var(--muted);
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
}

.why {
  margin: 30px auto 0;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 70ch;
  text-align: center;
}

.why strong {
  color: var(--ink);
}

/* ---------- illustration vocabulary ---------- */

.i-card {
  fill: var(--panel-2);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.i-soft {
  fill: var(--panel);
  stroke: var(--line);
  stroke-width: 1.5;
}

.i-line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-linecap: round;
}

.i-dash {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
}

.i-bar {
  fill: var(--line-strong);
}

.i-text {
  fill: var(--ink-2);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
}

.i-label {
  fill: var(--muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.i-big {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
}

.i-warn {
  fill: var(--warn);
}

.i-warn-s {
  fill: none;
  stroke: var(--warn);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-warn-soft {
  fill: var(--warn-glow);
  stroke: var(--warn);
  stroke-width: 1.5;
}

.i-good {
  fill: var(--good);
}

.i-good-s {
  fill: none;
  stroke: var(--good);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-good-soft {
  fill: var(--glow);
  stroke: var(--good);
  stroke-width: 1.5;
}

.i-blue {
  fill: var(--blue);
}

.i-magenta {
  fill: var(--magenta);
}

.i-on-accent {
  fill: #ffffff;
}

/* ---------- AI cards ---------- */

.grid4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 760px) {
  .grid4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--glow);
  margin-bottom: 18px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-2);
  font-size: 17px;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  max-width: 18ch;
}

.section-lede {
  margin-top: 18px;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--ink-2);
  max-width: 52ch;
}

/* ---------- who gets what ---------- */

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 760px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.card-kicker {
  color: var(--violet);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.who h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.who ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.who li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 16px;
  color: var(--ink-2);
}

.who li strong {
  color: var(--ink);
  display: block;
  font-weight: 600;
}

.who li svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- limits + contact ---------- */

.limits,
.points {
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 640px;
  text-align: left;
}

.limits li,
.points li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--ink-2);
  font-size: 17px;
}

.limits li strong,
.points li strong {
  color: var(--ink);
}

.fit {
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 900px;
  text-align: left;
}

@media (max-width: 760px) {
  .fit {
    grid-template-columns: 1fr;
  }
}

.fit li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--ink-2);
  font-size: 16px;
}

.fit li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 2px;
}

.fit li.best {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--violet) 45%, var(--line));
  box-shadow: 0 30px 80px -40px var(--glow);
}

.fit .tag {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--violet) 55%, var(--magenta));
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 8px;
  vertical-align: 2px;
}

.fit li svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The top bar's link lands here, with the call to action in the middle of the screen
   rather than at the top of a section taller than the viewport. */
.cta {
  scroll-margin-top: calc(50vh - 110px);
  scroll-snap-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--violet) 55%, var(--magenta));
  box-shadow: 0 18px 50px -20px var(--glow);
  transition: transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.1s;
}

.reveal.d2 {
  transition-delay: 0.2s;
}

.reveal.d3 {
  transition-delay: 0.3s;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orbit .spin,
  .hero .cue span {
    animation: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Text colours inside the illustrations, as classes so the page needs no inline styles. */
.i-text-warn {
  fill: var(--warn);
}

.i-text-good {
  fill: var(--good);
}

.i-text-white {
  fill: #fff;
}
