/* =========================================================
   Arutva Technologies — site styles (light theme)
   ========================================================= */

/* Fonts: Inter (one variable file) and Poppins, served from assets/fonts/ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/inter-latin.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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/poppins-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/poppins-500-latin.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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/poppins-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/poppins-600-latin.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: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/poppins-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/poppins-700-latin.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: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(../assets/fonts/poppins-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(../assets/fonts/poppins-800-latin.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: #ffffff;
  --bg-alt: #f5f8fc;
  --surface: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --text: #0c1424;
  --muted: #4b5567;
  --dim: #5f6a7d;
  --blue: #1f6fe0;
  --blue-text: #1a5fc4;   /* small blue text: 4.5:1 or better on white and on the soft tints */
  --blue-soft: #e8f1fd;
  --orange: #f0621f;
  --orange-text: #c2410c; /* small orange text: 4.5:1 or better on white and on the soft tints */
  --orange-soft: #fff0e7;
  --red: #c92a30;
  --grad: linear-gradient(100deg, #1f6fe0 0%, #2f9be6 40%, #ff7a35 75%, #e8480f 100%);

  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1400px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 40px -16px rgba(31, 111, 224, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 4vw, 56px); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: var(--blue); box-shadow: 0 10px 28px -10px rgba(31, 111, 224, .6); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; }
.brand-logo { height: 32px; width: auto; display: block; }
.footer-brand .brand-logo { height: 44px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--blue); }
.nav .nav-cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease, top .25s ease; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 56px;
  overflow: hidden;
  background:
    radial-gradient(900px 560px at 78% 30%, rgba(47, 155, 230, .14), transparent 65%),
    radial-gradient(700px 460px at 0% 100%, rgba(255, 122, 53, .1), transparent 65%),
    var(--bg);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 40px; align-items: center;
  min-height: min(calc(100vh - var(--header-h) - 96px), 760px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-text);
  padding: 7px 16px; border-radius: 999px;
  background: var(--blue-soft);
  margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(40px, 5.3vw, 74px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; max-width: 12ch; }
.lead { margin-top: 24px; max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); line-height: 1.6; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Scene plus the caption that names the case study it is drawn from */
.hero-visual { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hero-visual .ask-scene { width: 100%; }
.ask-caption {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px;
  margin-top: 14px; padding: 6px 4px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s ease, opacity .25s ease;
}
.ask-caption-kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-text); }
.ask-caption:hover { color: var(--blue-text); }
.ask-caption:hover .ask-caption-text { text-decoration: underline; text-underline-offset: 3px; }
.ask-caption.is-swapping { opacity: 0; }

/* Ask your business — knowledge graph with the question bar beneath it */
.ask-scene { position: relative; height: clamp(460px, 68vh, 620px); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ask-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ask-card {
  position: relative; z-index: 1; width: min(100%, 420px); margin-bottom: 4px;
  padding: 12px 12px 12px 18px; border-radius: 22px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(15, 23, 42, .07);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 60px -30px rgba(15, 23, 42, .35);
  transition: opacity .7s ease, transform .7s ease;
}
.ask-card.is-resting { opacity: .55; transform: translateY(4px); }
.ask-row { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.ask-spark { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(31, 111, 224, .08); }
.ask-q { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--text); transition: font-size .5s ease, color .5s ease; }
.ask-text { transition: opacity .5s ease, filter .5s ease, letter-spacing .5s ease; }
.ask-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--blue); animation: askBlink 1s steps(2) infinite; }
@keyframes askBlink { 50% { opacity: 0; } }
.ask-send {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: #fff; font-size: 15px; font-weight: 600;
  transition: background .4s ease, transform .4s ease, opacity .4s ease, box-shadow .4s ease;
}
.ask-card.is-sent .ask-text { opacity: 0; filter: blur(6px); letter-spacing: .25em; }
.ask-card.is-sent .ask-caret, .ask-card.has-answer .ask-caret { display: none; }
.ask-card.is-sent .ask-send { background: var(--blue); transform: scale(.88); box-shadow: 0 0 0 6px rgba(31, 111, 224, .12); }
.ask-card.has-answer .ask-q { font-size: 13px; color: var(--dim); }
.ask-card.has-answer .ask-text { opacity: 1; filter: none; letter-spacing: 0; }
.ask-card.has-answer .ask-send { opacity: 0; transform: scale(.6); }
.ask-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1); }
.ask-card.is-thinking .ask-body, .ask-card.has-answer .ask-body { grid-template-rows: 1fr; }
.ask-body-inner { overflow: hidden; }
.ask-think {
  display: block; height: 2px; margin: 10px 46px 6px 21px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(31, 111, 224, .6), rgba(240, 98, 31, .6), transparent);
  background-size: 200% 100%; animation: askThink 1.4s linear infinite;
}
@keyframes askThink { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ask-card.has-answer .ask-think { display: none; }
.ask-reply { padding: 6px 12px 4px 21px; font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.ask-reply span { opacity: 0; filter: blur(4px); transition: opacity .6s ease, filter .6s ease; }
.ask-reply.is-shown span { opacity: 1; filter: none; }

/* Fraud-agent scene: the bar becomes a live status line */
.ask-card.is-agent .ask-send { display: none; }
.ask-card.is-agent .ask-q { font-variant-numeric: tabular-nums; transition: color .4s ease; }
.ask-card.is-agent .ask-spark { background: var(--blue); animation: agentPulse 1.6s ease-out infinite; }
.ask-card.is-alert .ask-spark { background: #e5484d; animation: alertPulse .7s ease-out infinite; }
.ask-card.is-alert .ask-q { color: #d93036; }
.ask-card.is-safe .ask-spark { background: var(--blue); animation: none; box-shadow: 0 0 0 4px rgba(31, 111, 224, .14); }
.ask-card.is-safe .ask-q { color: var(--blue); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 8px 0 21px; }
.ask-chips:not(:empty) { padding-top: 8px; }
.ask-chips span {
  font-size: 11.5px; font-weight: 500; line-height: 1; padding: 5px 9px; border-radius: 999px;
  color: var(--dim); background: #fff; border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(3px); transition: opacity .3s ease, transform .3s ease, color .3s ease, background .3s ease, border-color .3s ease;
}
.ask-chips span.is-in { opacity: 1; transform: none; }
.ask-chips .is-risk { color: #d93036; background: rgba(229, 72, 77, .07); border-color: rgba(229, 72, 77, .35); }
.ask-chips .is-ok { color: var(--blue); background: var(--blue-soft); border-color: transparent; }
.ask-chips .is-block { color: #fff; background: #e5484d; border-color: #e5484d; }
.ask-chips .is-hold { color: #c2410c; background: var(--orange-soft); border-color: rgba(240, 98, 31, .3); }
.ask-chips .is-alerted { color: var(--blue); background: var(--blue-soft); border-color: transparent; }
.ask-chips .is-go { color: #fff; background: var(--text); border-color: var(--text); }

/* Testing scene: one scenario, run on many real devices at once */
.ask-card { z-index: 2; }
.dv-stage {
  position: absolute; left: 0; right: 0; top: 0; height: 70%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-bottom: 40px;
  pointer-events: none; opacity: 0; transition: opacity .6s ease;
}
.dv-stage.is-on { opacity: 1; }
.dv-scenario {
  display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.dv-scenario i { font-style: normal; color: var(--dim); font-weight: 500; }
.dv-grid { --u: 1px; display: grid; justify-content: center; align-items: end; column-gap: calc(10 * var(--u)); row-gap: calc(14 * var(--u)); }
.dv {
  position: relative; justify-self: center;
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  padding: calc(2.2 * var(--u)); border-radius: calc(var(--r) * var(--u)); background: var(--frame);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 10px 18px -12px rgba(15, 23, 42, .55);
  opacity: 0; transform: scale(.55) translateY(6px);
  transition: opacity .45s ease, transform .75s cubic-bezier(.2, .7, .2, 1), filter .4s ease, box-shadow .3s ease;
}
.dv.is-in { opacity: 1; transform: none; }
.dv.is-hero { z-index: 3; transform: translate(var(--hx, 0), var(--hy, 0)) scale(2.1); box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 30px 50px -24px rgba(15, 23, 42, .5); }
.dv-screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; border-radius: calc((var(--r) - 2) * var(--u)); }
.dv-screen::before { content: ""; position: absolute; top: calc(2.2 * var(--u)); left: 50%; width: 32%; height: calc(3 * var(--u)); border-radius: 99px; background: var(--frame); transform: translateX(-50%); z-index: 2; }
.dv-steps { position: absolute; top: calc(8.5 * var(--u)); left: 12%; right: 12%; display: flex; gap: calc(2 * var(--u)); z-index: 2; }
.dv-steps i { flex: 1; height: calc(2 * var(--u)); border-radius: 2px; background: rgba(15, 23, 42, .12); transition: background .3s ease; }
.dv[data-step="1"] .dv-steps i:nth-child(-n+1),
.dv[data-step="2"] .dv-steps i:nth-child(-n+2) { background: var(--blue); }
.dv[data-step="3"] .dv-steps i { background: #16a34a; }
.dv.is-fail[data-fail="0"] .dv-steps i:nth-child(1),
.dv.is-fail[data-fail="1"] .dv-steps i:nth-child(2),
.dv.is-fail[data-fail="2"] .dv-steps i:nth-child(3) { background: #e5484d; }
.dv-view {
  position: absolute; top: calc(15 * var(--u)); bottom: calc(8 * var(--u)); left: 12%; right: 12%;
  display: flex; flex-direction: column; gap: calc(3.5 * var(--u));
  opacity: 0; transform: translateX(24%); transition: opacity .3s ease, transform .35s ease;
}
.dv[data-step="0"] .dv-login, .dv[data-step="1"] .dv-cart, .dv[data-step="2"] .dv-pay, .dv[data-step="3"] .dv-done { opacity: 1; transform: none; }
.dv-view b { display: block; height: calc(4 * var(--u)); border-radius: 2px; background: rgba(15, 23, 42, .1); }
.dv-view .dv-btn { height: calc(6.5 * var(--u)); margin-top: auto; border-radius: calc(2 * var(--u)); background: var(--blue); }
.dv-view .dv-btn.is-add { background: var(--orange); }
.dv-view .dv-btn.is-pay { background: var(--text); }
.dv-logo { align-self: center; width: calc(11 * var(--u)); height: calc(11 * var(--u)); margin: calc(3 * var(--u)) 0; border-radius: 50%; background: var(--grad); }
.dv-view .dv-short { width: 62%; align-self: center; margin-top: calc(4 * var(--u)); }
.dv-otp { display: flex; justify-content: center; gap: calc(2.5 * var(--u)); margin-top: calc(3 * var(--u)); }
.dv-otp i { width: calc(7 * var(--u)); height: calc(9 * var(--u)); border-radius: calc(2 * var(--u)); background: var(--blue-soft); border: 1px solid rgba(31, 111, 224, .35); }
.dv-kyc { display: grid; place-items: center; height: calc(34 * var(--u)); margin-top: calc(2 * var(--u)); border-radius: calc(4 * var(--u)); border: 1.5px dashed rgba(31, 111, 224, .5); }
.dv-kyc i { width: calc(13 * var(--u)); height: calc(15 * var(--u)); border-radius: 50%; background: var(--orange-soft); border: 1.5px solid var(--orange); }
.dv-done { align-items: center; justify-content: center; }
.dv-check { display: grid; place-items: center; width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%; background: #16a34a; color: #fff; font-size: calc(10 * var(--u)); font-weight: 700; }
.dv-stage.is-alt .dv-view .dv-btn { background: var(--orange); }
.dv-stage.is-alt .dv-otp i { background: var(--orange-soft); border-color: rgba(240, 98, 31, .4); }
.dv-stage.is-alt .dv-kyc { border-color: rgba(240, 98, 31, .5); }
.dv-err { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(229, 72, 77, .12); opacity: 0; transition: opacity .3s ease; }
.dv-err span { display: grid; place-items: center; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: #e5484d; color: #fff; font-size: calc(10 * var(--u)); font-weight: 800; box-shadow: 0 0 0 calc(4 * var(--u)) rgba(229, 72, 77, .18); }
.dv.is-fail .dv-err { opacity: 1; }
.dv.is-fail { box-shadow: 0 0 0 calc(1.5 * var(--u)) #e5484d, 0 10px 22px -10px rgba(229, 72, 77, .6); }
.dv-tag {
  position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 4; padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; color: #fff; background: #e5484d; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .35s ease, transform .35s ease;
}
.dv-stage.is-surfaced .dv:not(.is-fail) { opacity: .28; filter: saturate(.3); }
.dv-stage.is-surfaced .dv.is-fail { z-index: 2; transform: scale(1.14); }
.dv-stage.is-surfaced .dv.is-fail .dv-tag { opacity: 1; transform: translate(-50%, 0); }
.dv-more {
  align-self: center; justify-self: center; display: flex; flex-direction: column; align-items: center; line-height: 1;
  font: 700 calc(16 * var(--u)) var(--font-display); color: var(--muted);
  opacity: 0; transition: opacity .5s ease;
}
.dv-more small { margin-top: calc(4 * var(--u)); font: 500 calc(9 * var(--u)) var(--font-body); color: var(--dim); }
.dv-more.is-in { opacity: 1; }
.dv-stage.is-surfaced .dv-more { opacity: .3; }
@keyframes agentPulse { from { box-shadow: 0 0 0 0 rgba(31, 111, 224, .4); } to { box-shadow: 0 0 0 9px rgba(31, 111, 224, 0); } }
@keyframes alertPulse { from { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); } to { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }

/* Services */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card h3 { font-size: 20px; font-weight: 600; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); margin-bottom: 6px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(even) .card-icon { background: var(--orange-soft); }
.card:nth-child(even) .card-icon svg { stroke: var(--orange); }


/* Clients */
.clients { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.clients-inner { display: flex; align-items: center; justify-content: center; gap: 24px 56px; flex-wrap: wrap; }
.clients-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.clients-logos { display: flex; align-items: center; justify-content: center; gap: 28px 64px; flex-wrap: wrap; }
.clients-logos img { display: block; width: auto; height: 44px; }
.clients-logos .clients-logo-tall { height: 64px; }
.clients-logos a { display: block; transition: opacity .2s ease; }
.clients-logos a:hover { opacity: .7; }

/* Work */
.cases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.case {
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.case-wide { grid-column: span 3; }
.pill { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-text); background: var(--blue-soft); padding: 5px 12px; border-radius: 999px; }
.case h3 { font-size: 22px; font-weight: 600; margin-top: 4px; }
.case p { color: var(--muted); font-size: 15.5px; }
.result {
  margin-top: auto; width: 100%;
  padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(100deg, var(--blue-soft), var(--orange-soft));
  font-size: 15px; color: var(--text);
}
.cases-more { display: none; margin-top: 20px; }
.result strong { font-weight: 700; color: var(--blue-text); }
.result strong + strong, .result strong:only-of-type { color: var(--orange-text); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-story p { font-size: 18px; color: var(--muted); line-height: 1.7; }
.about-story p + p { margin-top: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.about-stats div { padding: 20px; border-radius: 14px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 4px; }
.about-stats strong { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats span { font-size: 14px; color: var(--muted); }
.founders { display: flex; flex-direction: column; gap: 16px; }
.founder {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  padding: 26px 26px 26px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.founder::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #1f6fe0 0%, #2f9be6 40%, #ff7a35 75%, #e8480f 100%);
}
.founder:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.founder-info { flex: 1; }
.founder-role {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-top: 8px;
}
.founder-info h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.founder-link {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); transition: background .2s;
}
.founder-link svg { width: 18px; height: 18px; fill: var(--blue); }
.founder-link:hover { background: var(--blue); }
.founder-link:hover svg { fill: #fff; }
.hiring, .cta-band {
  margin-top: 48px; padding: 28px 32px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(100deg, var(--blue-soft), var(--orange-soft));
}
.hiring h3, .cta-band h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.hiring p, .cta-band p { color: var(--muted); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin-bottom: 16px; }
.contact-copy > p { color: var(--muted); font-size: 17px; max-width: 460px; }
.contact-list { margin-top: 32px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: 13px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.contact-list a:hover { color: var(--blue); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-form label { font-size: 14px; font-weight: 500; color: var(--text); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 224, .15); }
.contact-form .is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(201, 42, 48, .14); }
.field-error { font-size: 13px; color: var(--red); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 13px; color: var(--dim); }
.form-privacy a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: 14px; color: var(--blue); min-height: 1.2em; }
.form-note.is-error { color: var(--red); }
.captcha-box { margin: 4px 0 12px; }

/* Footer */
.site-footer { padding: 64px 0 32px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: 14px; font-size: 14.5px; max-width: 320px; }
.footer-brand .footer-phone { margin-top: 8px; }
.footer-brand a:hover { color: var(--blue); }
.footer-cols { display: flex; gap: 72px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-title { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.footer-cols a { color: var(--muted); font-size: 14.5px; }
.footer-cols a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.footer-bottom a:hover { color: var(--blue); }

/* Service and case study pages (services/, work/) and 404.html */
.page { padding-top: calc(var(--header-h) + 48px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--dim); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue-text); }
.page-head { max-width: 800px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin-top: 14px; }
.page-lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }
.page-head .result { margin-top: 28px; padding: 20px 24px; font-size: 18px; }
.page h2 { font-size: 26px; font-weight: 600; margin: 48px 0 14px; }
.page-body { max-width: 800px; }
.page-body p, .page-body li { font-size: 17px; line-height: 1.7; color: var(--muted); }
.page-body p + p { margin-top: 12px; }
.page-body ul { list-style: disc; padding-left: 22px; }
.page-body li + li { margin-top: 6px; }
.page-body strong { font-weight: 600; color: var(--text); }
.page-body a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related .case { grid-column: auto; }
.page .cta-band h2 { margin-top: 0; }
.page-404 { text-align: center; padding-bottom: 140px; }
.page-404 .page-head { margin: 0 auto; }
.page-404 .hero-ctas { justify-content: center; }

/* Legal pages (privacy.html) */
.legal { padding-top: calc(var(--header-h) + 56px); }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; }
.legal-updated { margin-top: 12px; font-size: 14px; color: var(--dim); }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.legal ul + p { margin-top: 12px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }

/* Ad landing page (ai/) */
.lp-header-cta { margin-left: auto; white-space: nowrap; }
.lp-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(38px, 4.6vw, 64px); max-width: 14ch; }
.lp-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.lp-points li { position: relative; padding-left: 30px; color: var(--muted); font-size: 16.5px; }
.lp-points li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--blue);
}
.lp-points strong { color: var(--text); font-weight: 600; }
.lp-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin-top: 32px; }
.lp-stats div { display: flex; flex-direction: column; gap: 2px; }
.lp-stats strong { white-space: nowrap; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats span { font-size: 14px; color: var(--muted); }
.lp-form { box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 30px 60px -30px rgba(15, 23, 42, .3); gap: 16px; }
.lp-form-head h2 { font-size: 24px; font-weight: 700; }
.lp-form-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.lp-optional { color: var(--dim); font-weight: 400; }
.contact-form textarea::placeholder { color: var(--dim); opacity: .8; }
.lp .cta-band { margin-top: 0; }
.lp-footer { padding: 8px 0 32px; }
.lp-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.lp-footer-links a:hover { color: var(--blue); }
.lp-footer-address { padding-top: 24px; font-size: 14px; color: var(--muted); }
.lp-footer-address + .footer-bottom { margin-top: 16px; }
.page-lead a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .dot { animation: none; }
  .ask-caret, .ask-think, .ask-card .ask-spark { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cases, .related { grid-template-columns: repeat(2, 1fr); }
  .case, .case-wide { grid-column: span 1; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
  .hero-copy { align-items: center; text-align: center; }
  .hero h1 { max-width: 14ch; }
  .lead { max-width: 560px; }
  .hero-ctas { justify-content: center; }
  .ask-scene { height: 480px; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-open .site-header { background: #fff; border-color: var(--line); }
  .nav-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 8px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-open .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav-open .nav .nav-cta { display: flex; margin-top: 18px; padding: 14px 24px; border-color: transparent; font-size: 15px; color: #fff; }
  /* Footer links: tall enough to tap comfortably */
  .footer-cols div { gap: 0; }
  .footer-title { margin-bottom: 4px; }
  .footer-cols a { padding: 11px 0; }
  .footer-bottom a { padding: 11px 0; margin: -11px 0; }
  .section { padding: 80px 0; }
  .contact-inner, .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 40px; }
  .cards-4, .cases, .related { grid-template-columns: 1fr; }
  /* First four projects, the rest behind "See all" (only when JS is there to expand them) */
  .js .cases:not(.is-expanded) .case:nth-child(n+5) { display: none; }
  .js .cases:not(.is-expanded) + .cases-more { display: flex; width: 100%; }
  .ask-caption-kicker { flex-basis: 100%; text-align: center; }
  .case, .card, .contact-form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .about-stats div { padding: 14px; }
  .about-stats strong { font-size: 24px; }
  .founder { padding: 20px 20px 20px 26px; }
  .founder-info h3 { font-size: 20px; }
  .hiring, .cta-band { padding: 24px; }
  .footer-cols { gap: 48px; }
  .ask-scene { height: 420px; }
  .ask-q { font-size: 14px; }
  .ask-reply { font-size: 15px; }
  .lp-stats { grid-template-columns: repeat(3, auto); gap: 12px 24px; }
  .lp-stats strong { font-size: 24px; }
}
