@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
}

/* Homepage hero: centered message first, then the animation. */
.home .hero-fold {
  justify-content: flex-start;
  min-height: 0;
  padding: clamp(42px, 7vw, 84px) 32px 0;
}
.home .hero-fold .hero-row-division-container {
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5vw, 56px);
  width: 100%;
  max-width: 1168px;
  margin: 0 auto;
}
.home .hero-fold .hero-home-text-container { width: min(920px, 100%); align-items: center; gap: 0; text-align: center; }
.home .hero-fold .hero-header { max-width: 920px; margin: 0; text-align: center; }
.home .hero-fold .hero-paragraph { max-width: 790px; margin: 24px 0 0; text-align: center; }
.home .hero-fold .hero-button-container { justify-content: center; margin: 28px 0 0; }
.home .hero-fold .supported-by-section { margin-top: clamp(48px, 7vw, 80px); }
/* Same width as the fixed navigation bar. hero-demo.js measures the bar and sets
   --tw-nav-width; the fallback is the bar's own formula. */
.home .hero-fold .home-hero-demo {
  --tw-width: var(--tw-nav-width, min(1280px, calc(100vw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))));
  align-self: flex-start;
  width: var(--tw-width);
  max-width: none;
  /* Centred on the page even when wider than the text column it sits in. */
  margin-inline: calc((100% - var(--tw-width)) / 2) 0;
}

.tw-demo {
  --tw-ink: #0a0a0b;
  --tw-body: #3f3f46;
  --tw-muted: #71717a;
  --tw-graph: #3f3f46;
  --tw-blue: #007bff;
  --tw-paper: #fcfcfd;
  --tw-line: #e6e6ea;
  --tw-radius: 20px;
  container: tw-demo / inline-size;
  position: relative; isolation: isolate; min-width: 0; margin: 0 auto;
  color: var(--tw-ink); font: 400 13px/1.5 "Inter", sans-serif; text-align: left;
  color-scheme: light; -webkit-font-smoothing: antialiased;
}
.tw-demo *, .tw-demo *::before, .tw-demo *::after { box-sizing: border-box; }
.tw-demo p, .tw-demo figure { margin: 0; padding: 0; color: inherit; font: inherit; letter-spacing: normal; }
.tw-demo .tw-icon { display: block; flex: none; width: 18px; height: 18px; }
.tw-demo .tw-mono { font-family: "Geist Mono", monospace; font-variant-numeric: tabular-nums; }
.tw-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Frame, still and stage ---------- */
.tw-frame, .tw-demo > .tw-still { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--tw-radius); background: var(--tw-paper); }
/* overflow-anchor: scroll anchoring measures anchors through transforms, so an
   anchor inside the zooming world would drag the page scroll with the camera. */
.tw-frame { overflow-anchor: none; box-shadow: 0 1px 2px rgb(10 10 11 / 4%), 0 0 0 1px rgb(10 10 11 / 5%); }
.tw-still, .tw-still img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tw-frame .tw-still { position: absolute; inset: 0; transition: opacity 0.6s ease; }
.tw-demo.is-live .tw-still { opacity: 0; pointer-events: none; }
.tw-stage { position: absolute; inset: 0; overflow: hidden; contain: layout paint; background: var(--tw-paper); opacity: 0; transition: opacity 0.6s ease; }
.tw-demo.is-live .tw-stage { opacity: 1; }
.tw-demo.is-still .tw-stage { display: none; }

/* ---------- World: knowledge graph with the footage at its core ---------- */
.tw-world { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.tw-layer { position: absolute; left: 0; top: 0; }
.tw-mark { position: absolute; pointer-events: none; }
/* Position layers with transforms: Chrome snaps left/top paint offsets to whole
   pixels, which the camera would magnify. */
.tw-graph { width: 1920px; height: 1080px; -webkit-mask-image: radial-gradient(circle at var(--tw-core-x, 50%) var(--tw-core-y, 50%), #000 calc(var(--tw-reveal, 0px) - 160px), transparent var(--tw-reveal, 0px)); mask-image: radial-gradient(circle at var(--tw-core-x, 50%) var(--tw-core-y, 50%), #000 calc(var(--tw-reveal, 0px) - 160px), transparent var(--tw-reveal, 0px)); }
/* hero-demo.js places the tile on the graph's core. */
.tw-tile { width: 320px; height: 180px; overflow: hidden; background: #2a2724; box-shadow: 0 0 0 1px rgb(10 10 11 / 6%); }
.tw-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

.tw-graph-svg { display: block; overflow: visible; --tw-node: 9px; --tw-subject-size: 17px; --tw-source-size: 22px; }
/* Hairlines and dots keep the film's on-screen weight at any camera scale. */
.tw-g-edge, .tw-g-dot { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tw-g-edge { stroke: var(--tw-graph); stroke-opacity: 0.75; }
.tw-g-edge--cross, .tw-g-edge--leaf { stroke-width: 0.7px; }
.tw-g-edge--hub { stroke-width: 1px; }
.tw-g-dot { stroke: var(--tw-graph); }
.tw-g-dot--leaf { stroke-width: 4px; stroke-opacity: 0.7; }
.tw-g-dot--hub { stroke-width: 6px; stroke-opacity: 1; }
.tw-g-subject { fill: var(--tw-body); font: 500 var(--tw-subject-size) / 1 "Inter", sans-serif; letter-spacing: -0.02em; text-anchor: middle; }
.tw-g-halo { r: calc(var(--tw-node) * 2.6); fill: var(--tw-blue); fill-opacity: calc(var(--tw-lit, 0) * 0.14); }
.tw-g-source-dot { r: calc(var(--tw-node) * 0.72); fill: color-mix(in srgb, var(--tw-blue) calc(var(--tw-lit, 0) * 100%), var(--tw-ink)); }
.tw-g-source-label { fill: var(--tw-ink); font: 500 var(--tw-source-size) / 1 "Inter", sans-serif; letter-spacing: -0.02em; text-anchor: middle; }

/* ---------- Request bar ---------- */
.tw-bar {
  position: absolute; z-index: 4; left: 50%;
  display: flex; align-items: center; gap: 12px;
  width: min(620px, calc(100% - 32px)); min-height: 60px; padding: 10px 10px 10px 14px;
  border: 1px solid rgb(255 255 255 / 70%); border-radius: 18px;
  background: rgb(252 252 253 / 80%);
  box-shadow: 0 1px 2px rgb(10 10 11 / 6%), 0 18px 48px rgb(10 10 11 / 16%);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) scale(calc(0.97 + var(--tw-bar-in, 0) * 0.03));
}
.tw-bar[data-place="center"] { top: 50%; transform: translate(-50%, -50%) scale(calc(0.97 + var(--tw-bar-in, 0) * 0.03)); }
.tw-bar[data-place="bottom"] { bottom: 24px; }
.tw-bar .tw-symbol { flex: none; width: 34px; height: 34px; overflow: visible; }
.tw-demo .tw-bar-text { flex: 1; min-width: 0; color: var(--tw-ink); font: 400 17px/1.35 "Inter", sans-serif; letter-spacing: -0.01em; }
.tw-bar-text span { opacity: 0; white-space: pre-wrap; }
.tw-send { position: relative; display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: color-mix(in srgb, var(--tw-blue) calc(var(--tw-sent, 0) * 100%), #1d1d1f); }
.tw-send .tw-icon { width: 20px; height: 20px; }
.tw-send::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--tw-blue); border-radius: 50%; transform: scale(calc(1 + var(--tw-working, 0) * 0.55)); opacity: calc((1 - var(--tw-working, 0)) * min(1, var(--tw-working, 0) * 40)); }

/* ---------- Deliverables (markup and styles from creation-previews) ---------- */
.tw-stage .tw-outputs {
  top: 50%; bottom: auto; left: 50%; z-index: 3;
  width: 600px; max-width: none; height: 450px;
  transform: translate(-50%, -50%) scale(var(--tw-ui, 1));
}
.tw-stage .tw-outputs .tw-output { transform-origin: 50% 50%; }
.tw-stage .tw-outputs .tw-output-work-viewer { border-radius: 16px; box-shadow: 0 2px 4px rgb(10 10 11 / 4%), 0 24px 60px rgb(10 10 11 / 14%); }
.tw-stage .tw-outputs .tw-output-paper { filter: drop-shadow(0 18px 30px rgb(10 10 11 / 16%)) drop-shadow(0 1px 2px rgb(10 10 11 / 8%)); }
.tw-stage .tw-outputs figcaption { margin-top: 18px; }
.tw-stage .tw-outputs figcaption strong { color: var(--tw-ink); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Narrow frames ---------- */
@container tw-demo (max-width: 599px) {
  .tw-frame, .tw-demo > .tw-still { aspect-ratio: 4 / 5; }
  .tw-world, .tw-graph { width: 1000px; height: 1250px; }
  .tw-tile { width: 200px; height: 250px; }
  .tw-graph-svg { --tw-node: 13px; --tw-subject-size: 27px; --tw-source-size: 34px; }
  .tw-g-subject:nth-of-type(even) { display: none; }
  .tw-bar { width: calc(100% - 24px); min-height: 52px; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 16px; }
  .tw-bar[data-place="bottom"] { bottom: 12px; }
  .tw-bar .tw-symbol { width: 28px; height: 28px; }
  .tw-demo .tw-bar-text { font-size: 15px; }
  .tw-send { width: 34px; height: 34px; }
  .tw-stage .tw-outputs { width: 354px; height: 420px; }
}

/* ---------- Controls ---------- */
.tw-motion-toggle { position: absolute; z-index: 6; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 8px; border: 0; border-radius: 50%; background: rgb(252 252 253 / 78%); color: #1d1d1f; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgb(10 10 11 / 10%); }
.tw-motion-toggle:hover { background: #fff; }
.tw-motion-toggle:focus-visible { outline: 2px solid var(--tw-blue); outline-offset: 3px; }

/* Dev-only scrubber: ?demo-review=1 */
.tw-review-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; color: var(--tw-muted); font-size: 11px; }
.tw-review-controls button { min-height: 30px; margin: 0; padding: 5px 9px; border: 1px solid var(--tw-line); border-radius: 6px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.tw-review-controls button span { color: #a1a1aa; font: 400 10px/1 "Geist Mono", monospace; }
.tw-review-controls output { font-size: 10px; }
.tw-review-frames { margin-left: auto; }
.tw-demo .tw-timeline { display: block; flex: 1 0 100%; width: 100%; margin: 0; accent-color: var(--tw-blue); }

@media (max-width: 690px) {
  .home .hero-fold { padding: 32px 15px 0; }
  .home .hero-fold .hero-row-division-container { gap: 32px; }
  .home .hero-fold .hero-paragraph { margin-top: 18px; }
  .home .hero-fold .hero-button-container { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-demo *, .tw-demo *::before, .tw-demo *::after { animation: none !important; transition: none !important; }
}
