:root {
  --ink: #090909;
  --panel: #141214;
  --paper: #f7f7f5;
  --signal: #ff3b30;
  --signal-deep: #ff5147;
  --ember: #ff6a3d;
  --line: rgba(247,247,245,0.10);
  --line-strong: rgba(247,247,245,0.16);
  --muted: rgba(247,247,245,0.55);
  --blue: #4285f4;
  --violet: #8b5cf6;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --green: #22c55e;
  --radius: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-cursor { cursor: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: 24px; }
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 16px;
}
h1, h2, h3 {
  font-family: "Archivo", ui-sans-serif, sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 0.94;
  margin: 0;
  text-wrap: balance;
}
p { line-height: 1.55; }
.ruler {
  height: 26px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 200px);
  background-position: 0 100%, 0 100%;
  background-repeat: repeat-x;
  background-size: 40px 9px, 200px 18px;
  border-block: 1px solid var(--line);
}

/* ---- cursor ---- */
#cursorDot, #cursorRing { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; transform: translate(-50%, -50%); }
#cursorDot { width: 5px; height: 5px; background: var(--signal); border-radius: 50%; opacity: 0; transition: opacity .2s; }
#cursorRing { width: 30px; height: 30px; border: 1px solid var(--signal); border-radius: 50%; opacity: 0; transition: opacity .2s, width .2s, height .2s, border-color .2s; }
#cursorDot.on, #cursorRing.on { opacity: 1; }
#cursorRing.hover { width: 50px; height: 50px; border-color: var(--paper); }

/* ---- nav ---- */
nav { position: sticky; top: 0; z-index: 40; background: rgba(9,9,9,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: "Archivo"; font-weight: 900; font-size: 15px; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.brand .dot { color: var(--signal); }
.navlinks { display: flex; gap: 26px; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.navlinks a { text-decoration: none; opacity: 0.85; }
.navlinks a:hover, .navlinks a.active { opacity: 1; color: var(--signal); }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 4px; flex: none; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--paper); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.cta-btn {
  font-family: "Archivo"; font-weight: 700; font-size: 13px;
  background: var(--signal); color: var(--paper);
  padding: 11px 20px; border-radius: var(--radius); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background 0.15s ease; border: none; cursor: pointer;
}
.cta-btn:hover { background: var(--signal-deep); }
.cta-btn.secondary { background: transparent; border: 1px solid var(--line-strong); color: var(--paper); }
.cta-btn.secondary:hover { background: rgba(247,247,245,0.06); }
.cta-btn.on-red { background: var(--ink); color: var(--paper); }
.cta-btn.on-red:hover { background: #1c1c1c; }

/* ---- generic section ---- */
section.pad { padding: 84px 0; }
.bg-ink { background: var(--ink); }
.bg-panel { background: var(--panel); }
.maxcopy { max-width: 640px; }

/* ---- hero ---- */
.hero { position: relative; padding: 140px 0 100px; overflow: clip; border-bottom: 1px solid var(--line); }
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero h1 { font-size: clamp(40px, 6.2vw, 84px); position: relative; }
.hero p.lede { font-size: 17px; color: var(--muted); max-width: 480px; margin: 22px 0 34px; line-height: 1.5; position: relative; }
.hero .actions { display: flex; gap: 14px; position: relative; flex-wrap: wrap; }
.hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .back-link { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 18px; position: relative; text-transform: uppercase; }

/* ---- stat strip ---- */
.statstrip { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 22px; max-width: 640px; flex-wrap: wrap; }
.statstrip .cell { flex: 1 1 130px; padding: 16px 20px; border-left: 1px solid var(--line); }
.statstrip .cell:first-child { border-left: none; }
.statstrip .cell .k { font-family: "JetBrains Mono"; font-size: 9.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.statstrip .cell .v { font-family: "Archivo"; font-weight: 800; font-size: 20px; }

/* ---- intro/graph ---- */
.intro-row { display: flex; gap: 64px; align-items: center; flex-wrap: wrap; }
.intro-row > div { flex: 1 1 420px; min-width: 0; }
.graph-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.graph-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 10px; }
.graph-head .label { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.graph-head .delta { font-family: "Archivo"; font-weight: 900; font-size: 26px; }
svg.chart { width: 100%; height: 130px; display: block; overflow: visible; }
.graph-foot { display: flex; justify-content: space-between; margin-top: 10px; font-family: "JetBrains Mono"; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.graph-foot span b { display: block; font-family: "Archivo"; font-weight: 800; font-size: 15px; color: var(--paper); letter-spacing: 0; }
.metric-cells { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 4px; margin-top: 26px; flex-wrap: wrap; }
.metric-cells .cell { flex: 1 1 140px; padding: 16px 22px; border-left: 1px solid var(--line); }
.metric-cells .cell:first-child { border-left: none; }
.metric-cells .cell svg { width: 18px; height: 18px; margin-bottom: 8px; }
.metric-cells .cell .k { font-family: "JetBrains Mono"; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.metric-cells .cell .v { font-family: "Archivo"; font-weight: 700; font-size: 12.5px; }

/* ---- grid4 (services) ---- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: clip; }
.grid4 .card { background: var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--c, var(--signal)); }
.grid4 .card svg { width: 22px; height: 22px; stroke: var(--c, var(--signal)); }
.grid4 .card .name { font-family: "Archivo"; font-weight: 800; font-size: 13px; letter-spacing: 0.04em; color: var(--c, var(--signal)); text-transform: uppercase; }
.grid4 .card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.grid4 .card ul { margin: 8px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 5px; }
.grid4 .card ul li { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }

/* ---- process steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps .step { border-top: 1px solid var(--line-strong); padding: 22px 0; display: flex; flex-direction: column; gap: 8px; }
.steps .step.first { border-top: 2px solid var(--c, var(--signal)); }
.steps .step .num { font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: 0.06em; color: var(--c, var(--signal)); }
.steps .step .t { font-family: "Archivo"; font-weight: 800; font-size: 17px; }
.steps .step .d { font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---- ticker ---- */
.ticker-wrap { padding: 56px 0; background: var(--panel); border-block: 1px solid var(--line); overflow: hidden; }
.ticker-wrap .eyebrow { padding-inline: 24px; }
.ticker { display: flex; gap: 14px; width: max-content; animation: scroll 26s linear infinite; }
.ticker:hover { animation-play-state: paused; }
.ticker span {
  font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px;
  white-space: nowrap; color: var(--muted);
}
.ticker .logo-chip { display: inline-flex; align-items: center; gap: 9px; color: var(--paper); font-family: "JetBrains Mono"; }
.ticker .logo-chip svg { flex: none; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- reviews ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { border: 1px dashed var(--line-strong); border-radius: 4px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review-card .q { font-family: "Archivo"; font-size: 28px; color: var(--signal); font-weight: 700; line-height: 1; }
.review-card p { font-size: 14px; color: rgba(161,161,161,0.75); font-style: italic; margin: 0; }
.review-card .who { font-family: "Archivo"; font-weight: 700; font-size: 13px; }
@media (max-width: 820px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---- pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { border: 1px solid var(--line); border-radius: 4px; padding: 26px; display: flex; flex-direction: column; gap: 4px; }
.tier .tag { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c, var(--signal)); margin-bottom: 6px; }
.tier .name { font-family: "Archivo"; font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.tier .desc { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.tier ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.tier ul li { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---- faq ---- */
.faq-list { border-top: 1px solid rgba(255,255,255,0.08); max-width: 820px; }
.faq-row { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 26px 0; display: flex; flex-direction: column; gap: 10px; }
.faq-row .q { font-family: "Archivo"; font-weight: 400; font-size: 18px; }
.faq-row .a { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- contact form ---- */
.contact-section { background: var(--signal); padding: 100px 0; }
.contact-section h2 { color: var(--ink); font-size: clamp(30px, 4.4vw, 50px); }
.contact-section p.lede2 { color: rgba(9,9,9,0.7); font-size: 15px; margin: 14px 0 30px; }
.contact-form { background: var(--ink); max-width: 480px; padding: 24px; border-radius: 4px; display: flex; flex-direction: column; gap: 10px; }
.contact-form input, .contact-form textarea {
  background: rgba(247,247,245,0.06); border: 1px solid var(--line-strong); border-radius: 3px;
  color: var(--paper); font-family: "Instrument Sans"; font-size: 14px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form button { align-self: flex-start; margin-top: 4px; }

/* ---- case study cards (work page) ---- */
.case-card { display: flex; gap: 64px; align-items: center; padding: 84px 0; flex-wrap: wrap; }
.case-card > div { flex: 1 1 420px; min-width: 0; }
.case-card .tag2 { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.case-card h3 { font-family: "Archivo"; font-weight: 800; font-size: 30px; margin: 4px 0 12px; letter-spacing: -0.01em; }
.case-card p.blurb { color: var(--muted); font-size: 14px; max-width: 460px; }
.case-card .stats3 { display: flex; gap: 32px; margin-top: 14px; }
.case-card .stats3 .s .v { font-family: "Archivo"; font-weight: 700; font-size: 20px; }
.case-card .stats3 .s .k { font-family: "JetBrains Mono"; font-size: 9.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.case-card .disclaimer { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 14px; }
.case-img { border: 1px solid var(--line-strong); border-radius: 6px; overflow: clip; width: 100%; }
.case-img img { width: 100%; height: auto; display: block; }

/* ---- gallery blocks (lennsure case study page) ---- */
.gallery-block { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.gallery-block:last-child { margin-bottom: 0; }
.gallery-block .lab { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); }
.changed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.changed-grid .item .t { font-family: "Archivo"; font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.changed-grid .item .d { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .changed-grid { grid-template-columns: 1fr; } }

footer.site { padding: 30px 0; font-family: "JetBrains Mono"; font-size: 11px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.mobile-cta { display: none; }

@media (max-width: 700px) {
  .menu-toggle { display: flex; }
  nav .wrap > .cta-btn { display: none; }
  .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 4px 24px 12px; z-index: 39; }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .navlinks a:last-child { border-bottom: none; }
  .mobile-cta { display: block; color: var(--signal) !important; font-weight: 700; }
  body.has-cursor { cursor: auto; }
  #cursorDot, #cursorRing { display: none !important; }
  .case-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .graph-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
}
