/* Fieldnote: one premium landing page. Tokens first. */
:root {
  --paper: #f3f0e7;
  --paper-2: #e9ebe0;
  --ink: #111a22;
  --ink-2: #4b5761;
  --ink-3: #8a939b;
  --line: rgba(17, 26, 34, .14);
  --line-light: rgba(255, 255, 255, .28);
  --sun: #f4c95d;
  --meadow: #2f4b2c;
  --white: #ffffff;
  --pad: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Snell Roundhand", cursive;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
.hero-video, .closing-video, .quote-bg { max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.col-3 { grid-column: span 3; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.label, .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.label { color: var(--ink-2); display: flex; gap: 12px; align-items: center; }
.label .num { color: var(--ink); }
.label.light { color: rgba(255,255,255,.85); }
.label.light .num { color: var(--white); }
.small { font-size: 11px; color: rgba(255,255,255,.8); margin-top: 18px; }
.num { font-family: var(--mono); letter-spacing: .04em; }
.section { padding: clamp(96px, 14vw, 200px) 0; }
.section .head { margin-bottom: clamp(48px, 7vw, 96px); row-gap: 20px; }
h2 { font-weight: 500; font-size: clamp(2.4rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.035em; }
h3 { font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -.02em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font-size: 16px; font-weight: 500;
  transition: background .4s var(--ease), color .4s var(--ease), transform .6s var(--ease);
  will-change: transform;
}
.btn .arrow { display: inline-grid; place-items: center; }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 10px 30px rgba(10,30,50,.18); }
.btn-light:hover { background: var(--sun); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--meadow); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* brand + nav */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.nav {
  position: fixed; top: 16px; left: 0; right: 0; margin: 0 auto;
  z-index: 50; width: min(1040px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  color: var(--white);
  background: rgba(14,24,34,.42);
  border: 1px solid rgba(255,255,255,.22);
  transition: top .6s var(--ease), background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.nav.on-paper { color: var(--ink); background: var(--paper); border-color: var(--line); }
.nav.is-hidden { top: -90px; }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { opacity: .9; transition: opacity .3s; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-signin { font-size: 15px; padding: 9px 16px; border-radius: 999px; }
.nav-signin:hover { background: rgba(127,127,127,.15); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 120px var(--pad) 48px;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 8px; }
.menu nav a { font-size: clamp(2.4rem, 11vw, 3.6rem); letter-spacing: -.03em; line-height: 1.1; }

/* hero */
.hero { position: relative; height: 180vh; background: var(--paper); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-frame {
  position: absolute; inset: 0; overflow: hidden; background: #0d1a2a;
  clip-path: inset(0% 0% 0% 0% round 0px);
  will-change: clip-path;
}
.hero-video {
  position: absolute; inset: -2%; width: 104%; height: 104%;
  object-fit: cover; will-change: transform;
  transform-origin: center;
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,28,48,.34) 0%, rgba(10,28,48,.06) 34%, rgba(10,28,48,0) 52%),
    linear-gradient(0deg, rgba(10,22,12,.34) 0%, rgba(10,22,12,0) 22%);
}
.hero-leak {
  position: absolute; inset: -20% -40%; pointer-events: none; opacity: .22; mix-blend-mode: screen;
  background: radial-gradient(closest-side at 50% 50%, rgba(255,214,140,.9), rgba(255,214,140,0) 70%);
  animation: leak 14s ease-in-out infinite alternate;
}
@keyframes leak {
  0% { transform: translate3d(-22%, -6%, 0) rotate(-8deg); opacity: .10; }
  50% { opacity: .26; }
  100% { transform: translate3d(24%, 4%, 0) rotate(6deg); opacity: .12; }
}
.hero-copy {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; color: var(--white); padding: 0 var(--pad);
  padding-top: clamp(118px, 19vh, 220px);
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-copy::before {
  content: ""; position: absolute; left: 50%; top: 44%; width: min(1000px, 120%); height: 640px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(8,24,42,.56), rgba(8,24,42,.28) 62%, rgba(8,24,42,0));
}
.hero-h1 {
  font-family: var(--hand); font-weight: 500;
  font-size: clamp(3.8rem, 10.5vw, 9.6rem); line-height: .92; letter-spacing: -.01em;
  text-shadow: 0 2px 40px rgba(10,30,60,.28);
  max-width: 14ch;
}
.hero-h1 em { font-style: normal; color: #ffe9a8; }
.hero-sub {
  margin-top: clamp(14px, 2.2vh, 26px); max-width: 540px;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: #ffffff;
  text-shadow: 0 1px 2px rgba(6,20,36,.55), 0 0 24px rgba(6,20,36,.5);
}
.hero-copy .btn { margin-top: clamp(20px, 3.2vh, 34px); }
.hero-chips {
  position: absolute; bottom: clamp(24px, 5vh, 52px); left: 0; right: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 0 var(--pad);
}
.hero-chips li {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 999px; color: var(--ink);
  background: rgba(255,255,255,.9);
}

/* grain */
.grain { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .07; mix-blend-mode: overlay; }
.grain-canvas { width: 100%; height: 100%; }

/* problem */
.problem { padding-bottom: clamp(64px, 9vw, 120px); }
.fill {
  font-size: clamp(2rem, 4.2vw, 4.4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 400;
  margin-top: -.3em;
}
.fill .w { opacity: .16; transition: none; }
.stats {
  margin-top: clamp(64px, 9vw, 130px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.stats > div { padding: 26px 18px 0 0; }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats strong { display: block; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: -.04em; line-height: 1; }
.stats span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 20ch; }

/* product floating cards */
.product { padding-top: clamp(40px, 6vw, 80px); }
.float { position: relative; height: clamp(520px, 62vw, 760px); }
.float-still {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  border-radius: 28px; overflow: hidden; margin: 0;
}
.float-still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.04); }
.ui-card {
  position: absolute; width: min(340px, 74%); padding: 20px 22px 18px;
  background: rgba(250,248,242,.96); color: var(--ink);
  border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(10,20,30,.45);
  display: flex; flex-direction: column; gap: 10px; will-change: transform;
}
.ui-card header { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); }
.ui-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--meadow); }
.ui-card .dot-sun { background: var(--sun); }
.ui-title { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.ui-card p:not(.ui-title) { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.ui-card footer { color: var(--ink-3); font-size: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
.card-a { left: 4%; top: 12%; }
.card-b { right: 6%; top: 4%; }
.card-c { right: 14%; bottom: 8%; }
.float-caption { position: absolute; left: 0; bottom: -40px; color: var(--ink-2); }

/* method, pinned sequence */
.demo { position: relative; height: 300vh; }
.demo-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.demo-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.demo-copy { display: flex; flex-direction: column; gap: 22px; }
.demo-copy h2 { margin-top: 4px; }
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 10px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); transition: color .6s var(--ease); }
.steps li.is-on { color: var(--ink); }
.steps li .num { padding-top: 6px; font-size: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: 16px; color: inherit; max-width: 40ch; }

.demo-panel {
  background: var(--white); border-radius: 26px; padding: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 40px 80px -36px rgba(17,26,34,.35); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px;
}
.panel-bar { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.live { color: var(--meadow); }
.panel-q, .panel-a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; min-height: 64px; }
.who { color: var(--ink-3); padding-top: 6px; }
.typed, .panel-a p { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.4; letter-spacing: -.01em; }
.panel-a p { min-height: 8.4em; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); margin-left: 3px; vertical-align: -.2em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.panel-src { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-left: 96px; }
.panel-src li { font-size: 14px; color: var(--ink-2); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; opacity: .25; transition: opacity .5s var(--ease); }
.panel-src li.is-in { opacity: 1; }
.panel-src .mono { color: var(--meadow); margin-right: 6px; }
.cite { color: var(--meadow); font-family: var(--mono); font-size: .72em; vertical-align: .25em; margin-left: 1px; }

/* use cases, horizontal gallery */
.gallery { position: relative; height: 360vh; }
.gallery-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); overflow: hidden; }
.gallery-head { display: flex; flex-direction: column; gap: 18px; }
.gallery-head h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
.track { display: flex; gap: clamp(20px, 3vw, 48px); padding-left: max(var(--pad), calc((100vw - 1440px) / 2 + var(--pad))); padding-right: var(--pad); will-change: transform; }
.panel { flex: 0 0 auto; width: clamp(280px, 34vw, 540px); display: flex; flex-direction: column; gap: 12px; }
.panel figure { height: clamp(220px, 46vh, 460px); border-radius: 22px; overflow: hidden; }
.panel figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel:hover figure img { transform: scale(1.05); }
.panel .mono { color: var(--ink-2); margin-top: 8px; }
.panel h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.panel p:last-child { font-size: 15px; color: var(--ink-2); max-width: 42ch; }

/* quote */
.quote { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--white); background: #0d1a2a; }
.quote-bg { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,30,.7), rgba(10,22,30,.25) 70%, rgba(10,22,30,.2)); }
.quote-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.quote blockquote { max-width: 1040px; }
.quote blockquote p { font-size: clamp(2rem, 4.6vw, 4.8rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 400; text-wrap: balance; }
.quote footer { margin-top: 36px; font-size: 16px; color: rgba(255,255,255,.9); }
.quote footer .mono { font-size: 13px; }

/* security, sticky stack */
.stack-sec { padding-bottom: clamp(80px, 10vw, 140px); }
.stack { position: relative; display: flex; flex-direction: column; gap: 0; padding-bottom: 10vh; }
.stack-card {
  position: sticky; top: calc(16vh + var(--i, 0) * 72px);
  min-height: clamp(300px, 46vh, 420px);
  margin-bottom: 4vh; padding: clamp(28px, 4vw, 56px);
  border-radius: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  border: 1px solid var(--line); background: var(--paper);
  box-shadow: 0 -18px 40px -26px rgba(17,26,34,.25);
}
.stack-card.s1 { --i: 0; background: var(--paper); }
.stack-card.s2 { --i: 1; background: var(--paper-2); }
.stack-card.s3 { --i: 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stack-card.s3 .mono { color: rgba(243,240,231,.7); }
.stack-card.s3 p:last-child { color: rgba(243,240,231,.78); }
.stack-card h3 { font-size: clamp(1.7rem, 3.4vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; max-width: 22ch; }
.stack-card > p:last-child { font-size: 17px; color: var(--ink-2); max-width: 52ch; }

/* pricing */
.toggle { display: inline-flex; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); margin-bottom: 40px; }
.toggle button { padding: 12px 22px; border-radius: 999px; font-size: 15px; display: inline-flex; gap: 10px; align-items: center; transition: background .5s var(--ease), color .5s var(--ease); }
.toggle button .mono { font-size: 10px; color: var(--meadow); }
.toggle button.is-active { background: var(--ink); color: var(--paper); }
.toggle button.is-active .mono { color: var(--sun); }
.plans { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.plan {
  display: grid; grid-template-columns: 4fr 4fr 3fr 2fr; gap: 28px; align-items: center;
  padding: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 36px);
  border-bottom: 1px solid var(--line); position: relative;
}
.plan h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -.035em; }
.plan-desc { color: var(--ink-2); font-size: 16px; margin-top: 8px; max-width: 30ch; }
.price { display: flex; flex-direction: column; gap: 4px; font-size: clamp(2.6rem, 4.6vw, 4.4rem); letter-spacing: -.04em; line-height: 1; font-weight: 400; }
.price small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.4; margin-top: 10px; }
.plan ul { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
.plan ul li::before { content: "-"; margin-right: 10px; color: var(--ink-3); }
.plan .btn { justify-self: start; }
.plan-feature { background: var(--ink); color: var(--paper); border-radius: 26px; border-bottom-color: transparent; margin: 14px 0; }
.plan-feature .plan-desc, .plan-feature ul { color: rgba(243,240,231,.72); }
.plan-feature .btn-light { background: var(--paper); }
.plan-feature .btn-light:hover { background: var(--sun); }
.plan-feature .price small { color: rgba(243,240,231,.7); }
.plan-feature .badge { position: absolute; top: 22px; right: 28px; color: var(--sun); }
.plan-feature ul li::before { color: var(--sun); }

/* faq */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 12px;
  padding: 26px 0; font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.025em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .mono { color: var(--ink-2); font-size: 12px; }
.faq-list summary i { position: relative; width: 16px; height: 16px; justify-self: end; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 0 30px 68px; max-width: 70ch; color: var(--ink-2); font-size: 17px; }
.faq-list details[open] p { animation: reveal .6s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* closing */
.closing { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: #0d1a2a; }
.closing-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; transform: scale(1.12); }
.closing-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,28,48,.35), rgba(10,22,30,.62)); }
.closing-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-top: 120px; padding-bottom: 110px; }
.closing h2 { font-size: clamp(2.8rem, 6.2vw, 6.2rem); letter-spacing: -.045em; line-height: .98; max-width: 17ch; padding-top: .04em; text-shadow: 0 2px 40px rgba(0,0,0,.2); }
.closing .small { margin-top: 0; }

/* footer */
.footer { padding: clamp(72px, 9vw, 120px) 0 28px; background: var(--paper); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--ink-2); max-width: 28ch; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 10px; }
.foot-grid .label { margin-bottom: 8px; font-size: 11px; color: var(--ink-3); }
.foot-grid a:not(.brand) { font-size: 16px; color: var(--ink); }
.foot-grid a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 11px; }

/* custom cursor (fine pointers only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; }
  .cursor-dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ink); transition: opacity .3s; }
  .cursor-ring {
    position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
    border: 1px solid var(--ink); transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .5s var(--ease), opacity .4s;
  }
  /* label position is driven by GSAP (x/y/xPercent), so it carries no CSS transform */
  .cursor-label {
    position: absolute; left: 0; top: 0; opacity: 0;
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 999px; white-space: nowrap;
    transition: opacity .4s;
  }
  .cursor.is-media .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: rgba(243,240,231,.25); border-color: rgba(243,240,231,.8); }
  .cursor.is-media .cursor-dot { opacity: 0; }
  .cursor.is-media .cursor-label, .cursor.is-cta .cursor-label { opacity: 1; }
  .cursor.is-cta .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(17,26,34,.06); }
  .cursor.on-dark .cursor-ring { border-color: var(--white); }
  .cursor.on-dark .cursor-dot { background: var(--white); }
  .cursor.on-dark .cursor-label { background: var(--white); color: var(--ink); }
  .cursor.is-hidden { opacity: 0; }
}


/* gallery: UI vignettes sit over a varied crop; the UI is the content */
.panel figure { position: relative; background: #1b2a2a; }
.panel figure > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vig {
  position: absolute; left: 18px; bottom: 18px; width: min(300px, calc(100% - 36px));
  background: rgba(250,248,242,.97); color: var(--ink); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 24px 50px -20px rgba(8,18,26,.55); font-size: 13px; line-height: 1.45;
  display: flex; flex-direction: column; gap: 8px;
}
.vig-h { color: var(--ink-2); font-size: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.vig table { width: 100%; border-collapse: collapse; font-size: 12px; }
.vig td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.vig td:nth-child(2) { text-align: right; padding-left: 10px; font-family: var(--mono); white-space: nowrap; }
.vig td:nth-child(3) { text-align: right; padding-left: 8px; width: 1%; white-space: nowrap; }
.vig ul { display: flex; flex-direction: column; gap: 7px; }
.vig li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vig li .cite-chip { margin-left: auto; }
.cite-chip {
  font-family: var(--mono); font-size: 10px; color: var(--meadow); background: #e4ecd9;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap; display: inline-block; margin-left: 4px;
}
.flag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--ink-3); color: var(--ink-2); }
.flag-hi { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flag-md { border-color: #b8862b; color: #8a5f12; }
.vig-memo p { font-size: 13px; }
.vig-note { color: var(--ink-3); font-size: 10px; }
.vig-map svg { width: 100%; height: 120px; color: var(--ink); }
.vig-diff .del { color: #8a3b2e; text-decoration: line-through; text-decoration-color: rgba(138,59,46,.6); }
.vig-diff .ins { color: var(--ink); background: #e4ecd9; border-radius: 8px; padding: 6px 8px; }
.vig-diff .ins .cite-chip { margin-left: 6px; }
.vig-diff p { font-size: 13px; }
@media (max-width: 960px) { .vig { left: 12px; bottom: 12px; width: calc(100% - 24px); } }

/* responsive */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .plan { grid-template-columns: 1fr 1fr; }
  .plan .btn { justify-self: start; }
  .plan .price { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-links, .nav-signin { display: none; }
  .menu-btn { display: block; }
  .nav { padding-left: 16px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .col-3, .col-7, .col-8 { grid-column: span 12; }
  .col-3 { margin-bottom: 12px; }
  .float { height: auto; display: flex; flex-direction: column; gap: 18px; padding-bottom: 40px; }
  .float-still { position: relative; height: 56vh; min-height: 360px; }
  .ui-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; }
  .card-c { right: auto; bottom: auto; }
  .float-caption { position: relative; bottom: auto; }
  .demo { height: auto; }
  .demo-stage { position: relative; height: auto; overflow: visible; padding: 96px 0; }
  .demo-grid { grid-template-columns: 1fr; }
  .panel-src { padding-left: 0; grid-template-columns: 1fr; }
  .panel-src li { opacity: 1; }
  .gallery { height: auto; }
  .gallery-stage { position: relative; height: auto; padding: 96px 0; overflow: visible; }
  .track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-align: start; width: min(78vw, 420px); }
  .panel figure { height: 300px; }
  .stack-card { position: relative; top: auto; min-height: 0; margin-bottom: 18px; }
  .plan-feature { margin: 0; }
  .plan { grid-template-columns: 1fr; }
  .plan-feature .badge { position: static; display: block; margin-bottom: 10px; }
  .foot-base { margin-top: 48px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-h1 { font-size: clamp(3.4rem, 15vw, 4.8rem); max-width: 9ch; }
  .hero-copy { padding-top: 128px; }
  .hero-chips li:nth-child(3) { display: none; }
  .hero-frame { clip-path: none !important; }
  .stats > div { padding-right: 8px; }
  .stats > div + div { padding-left: 14px; }
  .stats strong { font-size: 2.2rem; }
  .faq-list summary { grid-template-columns: 40px 1fr 24px; }
  .faq-list details p { padding-left: 52px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .ui-card { padding: 18px; }
  .toggle button { padding: 10px 14px; font-size: 14px; }
  .toggle button .mono { display: none; }
  .closing h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
}

/* reduced motion: static, no pin, no transforms */
.no-motion .hero-leak, .no-motion .grain { animation: none; display: none; }
.no-motion .cursor { display: none !important; }
.no-motion .hero { height: auto; }
.no-motion .hero-stage { position: relative; height: 100svh; }
.no-motion .hero-video { display: none; }
.no-motion .hero-frame { background: url("../media/hero-poster.jpg") center / cover no-repeat; }
.no-motion .demo { height: auto; }
.no-motion .demo-stage { position: relative; height: auto; padding: 96px 0; overflow: visible; }
.no-motion .gallery { height: auto; }
.no-motion .gallery-stage { position: relative; height: auto; padding: 96px 0; overflow: visible; }
.no-motion .track { overflow-x: auto; }
.no-motion .stack-card { position: relative; top: auto; margin-bottom: 18px; }
.no-motion .closing-video { display: none; }
.no-motion .closing { background: url("../media/hero-poster.jpg") center / cover no-repeat; }
.no-motion .quote-bg { transform: none !important; }
.no-motion .fill .w { opacity: 1 !important; }
.no-motion .btn, .no-motion .panel figure img { transition: none; }
.no-motion .steps li { color: var(--ink); }
.no-motion .panel-src li { opacity: 1; }
.no-motion .caret { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-frame { background: url("../media/hero-poster.jpg") center / cover no-repeat; }
}
