/* ==========================================================================
   DataLookup — design system
   Graphite + bone, one cobalt accent. Satoshi for voice, Instrument Serif
   italics for emphasis. Everything else is motion and geometry.
   ========================================================================== */

:root {
  --ink: #0c0c0e;
  --ink-2: #131316;
  --ink-3: #1b1b20;
  --bone: #ece7de;
  --bone-2: #ddd6c9;
  --stone: #8e8980;

  --fg: var(--bone);
  --fg-2: rgba(236, 231, 222, .66);
  --fg-3: rgba(236, 231, 222, .42);
  --line: rgba(236, 231, 222, .12);
  --line-2: rgba(236, 231, 222, .22);
  --surface: var(--ink);

  --cobalt: #3b4cff;
  --cobalt-2: #7484ff;
  --cobalt-rgb: 59, 76, 255;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --hdr: 84px;
  color-scheme: dark;
}

/* Bone "paper" sections invert the tokens */
.paper {
  --fg: var(--ink);
  --fg-2: rgba(12, 12, 14, .66);
  --fg-3: rgba(12, 12, 14, .45);
  --line: rgba(12, 12, 14, .12);
  --line-2: rgba(12, 12, 14, .24);
  --surface: var(--bone);
  background: var(--bone);
  color: var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--cobalt); color: var(--bone); }
:focus-visible { outline: 2px solid var(--cobalt-2); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain — a static, very quiet texture over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.display {
  margin: 0; font-weight: 500; letter-spacing: -.055em; line-height: .9;
  font-size: clamp(3.2rem, 1rem + 9.2vw, 11rem);
}
.display .serif { letter-spacing: -.03em; }
.h1 { margin: 0; font-weight: 500; letter-spacing: -.05em; line-height: .95; font-size: clamp(2.8rem, 1rem + 6.4vw, 7.4rem); }
.h2 { margin: 0; font-weight: 500; letter-spacing: -.045em; line-height: .98; font-size: clamp(2.2rem, 1rem + 4.2vw, 5rem); }
.h3 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.lede { margin: 0; font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--fg-2); max-width: 36ch; }
.body { color: var(--fg-2); }
.tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--fg-2);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.num-label { font-feature-settings: "tnum"; }

/* ---------- Layout ---------- */
.pad { padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(96px, 14vw, 200px); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 28px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons: text roll + arrow disc ---------- */
.btn {
  --h: 58px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 8px 0 26px; border-radius: 999px; border: 0;
  font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  background: var(--cobalt); color: var(--bone);
  transition: background-color .5s var(--ease), color .5s var(--ease), scale .5s var(--ease);
}
.btn .roll { position: relative; display: block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn .roll span { display: block; transition: transform .6s var(--ease); }
.btn .roll span + span { position: absolute; inset: 100% 0 auto; }
.btn .disc {
  display: grid; place-items: center; width: calc(var(--h) - 16px); height: calc(var(--h) - 16px); border-radius: 50%;
  background: var(--bone); color: var(--ink); overflow: hidden;
  transition: scale .6s var(--ease), background-color .5s var(--ease);
}
.btn .disc svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost .disc { background: var(--fg); color: var(--surface); }
.btn-bone { background: var(--bone); color: var(--ink); }
.btn-bone .disc { background: var(--ink); color: var(--bone); }
.btn-sm { --h: 46px; padding-left: 20px; font-size: 14.5px; }
.btn-text { padding-right: 26px; }
@media (hover: hover) {
  .btn:hover .roll span { transform: translateY(-100%); }
  .btn:hover .disc { scale: 1.08; }
  .btn:hover .disc svg { animation: arrow-run .6s var(--ease); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
}
.btn:active { scale: .97; }
@keyframes arrow-run { 0% { transform: none; } 45% { transform: translateX(160%); } 46% { transform: translateX(-160%); } 100% { transform: none; } }

/* Underline link */
.ulink { position: relative; display: inline-block; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.ulink:hover::after, .ulink.on::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Chrome: header, menu, transitions, cursor, badge, indicator, footer
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 120; height: var(--hdr); padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--bone); mix-blend-mode: difference; pointer-events: none;
  transition: transform .7s var(--ease);
}
.hdr > * { pointer-events: auto; }
.hdr.hide { transform: translateY(-110%); }
.menu-open .hdr { transform: none; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; letter-spacing: -.04em; }
.mark { width: 30px; height: 30px; overflow: visible; }
.mark path { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease); }
.wordmark:hover .mark .m-d { transform: rotate(-90deg) scale(.82); }
.wordmark:hover .mark .m-l { transform: translateY(-3px); }
.hdr-r { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; font-weight: 500; }
.hdr-r .ulink { display: none; }
@media (min-width: 720px) { .hdr-r .ulink { display: inline-block; } }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 6px 0 20px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit; font-weight: 500;
}
.menu-btn .lbl { position: relative; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.menu-btn .lbl span { display: block; transition: transform .6s var(--ease); }
.menu-btn .lbl span + span { position: absolute; inset: 100% 0 auto; }
.menu-open .menu-btn .lbl span { transform: translateY(-100%); }
.menu-btn .bars { position: relative; width: 34px; height: 34px; border-radius: 50%; background: currentColor; }
.menu-btn .bars i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #000; transition: transform .6s var(--ease), top .6s var(--ease); }
.menu-btn .bars i:nth-child(1) { top: 13.5px; }
.menu-btn .bars i:nth-child(2) { top: 19px; }
.menu-open .menu-btn .bars i:nth-child(1) { top: 16.5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars i:nth-child(2) { top: 16.5px; transform: rotate(-45deg); }

/* Full-screen menu */
.menu { position: fixed; inset: 0; z-index: 110; visibility: hidden; pointer-events: none; }
.menu.open { visibility: visible; pointer-events: auto; }
.menu-curtain { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu-curtain path:first-child { fill: var(--cobalt); }
.menu-curtain path:last-child { fill: var(--ink-2); }
.menu-inner {
  position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--hdr) + 4vh) var(--pad) 32px; color: var(--bone);
}
.menu-main { display: grid; gap: 40px; align-content: center; }
@media (min-width: 960px) { .menu-main { grid-template-columns: 7fr 5fr; align-items: center; } }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links li { overflow: hidden; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px; padding: .04em 0;
  font-size: clamp(2.8rem, 1.2rem + 6vw, 7rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.02;
  transition: color .5s var(--ease), translate .7s var(--ease);
}
.menu-links a sup { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--fg-3); translate: 0 -2.4em; }
.menu-links a .serif { display: none; }
.menu-links:hover a { color: rgba(236, 231, 222, .28); }
.menu-links a:hover { color: var(--bone); translate: 18px 0; }
.menu-links a[aria-current="page"] .t { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.menu-art { display: none; }
@media (min-width: 960px) { .menu-art { display: block; justify-self: end; width: min(32vw, 460px); aspect-ratio: 1; } }
.menu-art svg { width: 100%; height: 100%; overflow: visible; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; padding-top: 24px; border-top: 1px solid rgba(236, 231, 222, .14); font-size: 14px; color: var(--fg-2); }
.menu-foot a:hover { color: var(--bone); }
.menu-foot div { display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* Page transition curtain */
.pt { position: fixed; inset: 0; z-index: 150; pointer-events: none; visibility: hidden; }
.pt.on { visibility: visible; pointer-events: auto; }
.pt svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt path:first-child { fill: var(--cobalt); }
.pt path:last-child { fill: var(--ink-2); }
.pt-label {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; color: var(--bone);
  font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 1rem + 5vw, 5.6rem); letter-spacing: -.02em; opacity: 0;
}
/* Arriving from another page: hold a solid cover until the curtain takes over */
html.pt-cover::before { content: ""; position: fixed; inset: 0; z-index: 149; background: var(--ink-2); }

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 180; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--bone); mix-blend-mode: difference; transition: scale .5s var(--ease), opacity .3s; }
.cursor-ring {
  position: absolute; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cobalt); color: var(--bone);
  font-size: 13px; font-weight: 500; letter-spacing: .01em; scale: 0; transition: scale .55s var(--ease);
}
.cursor.label .cursor-ring { scale: 1; }
.cursor.label .cursor-dot { scale: 0; }
.cursor.link .cursor-dot { scale: 3.2; }
.cursor.hide .cursor-dot { opacity: 0; }

/* Rotating "Get started" badge */
.badge {
  position: fixed; right: var(--pad); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100;
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cobalt); color: var(--bone); scale: 0; transition: scale .7s var(--ease);
  box-shadow: 0 20px 50px -20px rgba(var(--cobalt-rgb), .8);
}
.badge.show { scale: 1; }
.badge svg.ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 14s linear infinite; }
.badge svg.ring text { font-size: 11.2px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; fill: currentColor; }
.badge .arrow { width: 22px; height: 22px; transition: transform .6s var(--ease); }
.badge:hover .arrow { transform: rotate(-45deg) scale(1.15); }
@keyframes spin { to { rotate: 360deg; } }
@media (max-width: 640px) { .badge { width: 88px; height: 88px; } .badge svg.ring text { font-size: 13.5px; } }


/* ---------- Footer ---------- */
.ftr { position: relative; overflow: hidden; background: var(--ink); padding: clamp(96px, 12vw, 180px) var(--pad) 28px; }
.ftr-cta { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1000px) { .ftr-cta { grid-template-columns: 1.4fr 1fr; } }
.ftr-cta .h1 { max-width: 12ch; }
.subscribe { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 8px 0 24px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); max-width: 520px; transition: box-shadow .4s var(--ease); }
.subscribe:focus-within { box-shadow: inset 0 0 0 1px var(--bone); }
.subscribe input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0; font-size: 16px; }
.subscribe input::placeholder { color: var(--fg-3); }
.subscribe .btn { --h: 48px; }
.subscribe-note { margin: 14px 0 0; font-size: 13.5px; color: var(--fg-3); min-height: 1.5em; }
.ftr-cols { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
@media (min-width: 900px) { .ftr-cols { grid-template-columns: 2fr repeat(3, 1fr); } }
.ftr-cols h4 { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--fg-3); }
.ftr-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr-cols a { font-size: 16px; }
.ftr-cols p { margin: 0; max-width: 30ch; color: var(--fg-2); }
.ftr-mark { margin-top: 64px; width: 100%; height: auto; overflow: visible; }
.ftr-mark text { font-family: var(--sans); font-weight: 700; letter-spacing: -.06em; fill: none; stroke: var(--line-2); stroke-width: .6; }
.ftr-mark .fill { fill: var(--bone); stroke: none; clip-path: url(#ftr-clip); }
.ftr-bottom { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--fg-3); }

/* ---------- Reveal primitives (initial states only when JS + motion) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(40px); }
.motion [data-split] { opacity: 0; }
.motion [data-split].split-ready { opacity: 1; }
.line-mask { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: clamp(48px, 7vw, 110px); padding-right: clamp(48px, 7vw, 110px); }

/* ---------- Forms ---------- */
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; outline: 0;
  padding: 26px 0 12px; font-size: 18px; border-radius: 0; resize: none;
}
.field label { position: absolute; left: 0; top: 26px; font-size: 18px; color: var(--fg-3); pointer-events: none; transform-origin: left top; transition: transform .5s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.72); color: var(--fg-2); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cobalt-2); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.err::after { background: #ff6b5b; transform: scaleX(1); }
.field .msg { display: block; min-height: 1.4em; margin-top: 6px; font-size: 13px; color: #ff8a7d; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .badge svg.ring { animation: none; }
}
