/* =========================================================
   MHH Digital — Editorial redesign
   Palette: warm cream paper, ink, single muted gold accent
   Type: Instrument Serif (display) + Geist (UI)
   ========================================================= */

:root {
  --paper:        #F2EEE5;
  --paper-2:      #ECE7DB;
  --hairline:     #D6CFBE;
  --ink:          #14130F;
  --ink-2:        #2A2823;
  --mid:          #6B675E;
  --soft:         #98948A;
  --accent:       #B0772B;        /* burnt gold */
  --accent-deep:  #8A5C1C;
  --night:        #0E0D0A;        /* dark surface */
  --night-2:      #1A1812;
  --signal:       #C6411E;        /* used very sparingly */

  --display: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --sans:    "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

.rule { height: 1px; background: var(--hairline); width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}
.eyebrow--bare::before { display: none; }
.eyebrow .num { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,238,229,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-color: var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  position: relative;
}
.brand__mark::before, .brand__mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.brand__mark::before { width: 1px; height: 100%; }
.brand__mark::after  { width: 100%; height: 1px; }
.brand__mark span {
  position: relative;
  z-index: 1;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-primary {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-primary a {
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 100px;
  transition: background .2s, color .2s;
  position: relative;
}
.nav-primary a:hover { background: rgba(20,19,15,0.05); }
.nav-primary a.is-active {
  color: var(--ink);
}
.nav-primary a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang-toggle button {
  padding: 5px 10px;
  border-radius: 100px;
  color: var(--mid);
  transition: all .2s;
  text-transform: uppercase;
}
.lang-toggle button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--link {
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.btn--link:hover { color: var(--accent-deep); }
.btn .arrow {
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.menu-btn {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  width: 14px;
  height: 1px;
  background: var(--ink);
  position: relative;
  display: block;
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0;
  width: 14px; height: 1px; background: var(--ink);
}
.menu-btn span::before { top: -4px; }
.menu-btn span::after  { top:  4px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 140px) 0 clamp(56px, 8vw, 120px);
  position: relative;
  z-index: 2;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__copy { max-width: 660px; }
.hero__title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-top: 24px;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--ink);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0.22;
  z-index: -1;
}
.hero__lede {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
}
.hero__ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero scanner illustration */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border: 1px solid var(--hairline);
  background: var(--paper-2);
  overflow: hidden;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px) 0 0 / 100% 28px;
  opacity: 0.5;
  pointer-events: none;
}
.scan-doc {
  position: absolute;
  inset: 14% 12% 14% 12%;
  background: linear-gradient(180deg, #fbf8f0, #f0ebde);
  border: 1px solid #c2b8a0;
  box-shadow: 0 24px 50px -20px rgba(20,19,15,0.18);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scan-doc__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.scan-doc__type {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mid);
  text-transform: uppercase;
}
.scan-doc__chip {
  width: 38px; height: 26px;
  background: linear-gradient(135deg, #d6c08a, #b08c3a);
  border-radius: 2px;
  position: relative;
}
.scan-doc__chip::before, .scan-doc__chip::after {
  content: ""; position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}
.scan-doc__chip::before { top: 8px; }
.scan-doc__chip::after  { top: 16px; }
.scan-doc__body {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  flex: 1;
}
.scan-doc__photo {
  background: linear-gradient(180deg, #978878, #5e544a);
  position: relative;
  overflow: hidden;
}
.scan-doc__photo::before {
  content: "";
  position: absolute;
  left: 50%; top: 32%;
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}
.scan-doc__photo::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -10px;
  width: 42px; height: 32px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}
.scan-doc__lines { display: flex; flex-direction: column; gap: 6px; }
.scan-doc__line {
  height: 6px;
  background: #c2b8a0;
  border-radius: 1px;
}
.scan-doc__line.w-70 { width: 70%; }
.scan-doc__line.w-50 { width: 50%; }
.scan-doc__line.w-90 { width: 90%; }
.scan-doc__line.w-40 { width: 40%; }
.scan-doc__mrz {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 6px;
  word-break: break-all;
  text-align: left;
}

/* scan line */
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  box-shadow: 0 0 12px rgba(176,119,43,0.6);
  animation: scanMove 4s ease-in-out infinite;
  z-index: 4;
}
@keyframes scanMove {
  0%, 100% { top: 8%; opacity: 0; }
  10%, 90% { opacity: 1; }
  50% { top: 92%; }
}

/* detection markers */
.detect {
  position: absolute;
  z-index: 5;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
}
.detect::before, .detect::after {
  content: ""; position: absolute; background: var(--accent);
}
.detect::before { left: -3px; top: -1px; width: 3px; height: 3px; }
.detect::after  { right: -3px; bottom: -1px; width: 3px; height: 3px; }
.detect--a { top: 22%; left: 25%; animation: blink 2.4s 0.2s infinite; }
.detect--b { top: 46%; right: 18%; animation: blink 2.4s 0.8s infinite; }
.detect--c { bottom: 22%; left: 32%; animation: blink 2.4s 1.4s infinite; }
@keyframes blink {
  0%, 70%, 100% { opacity: 0; }
  10%, 60% { opacity: 1; }
}

/* corner brackets */
.crop {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--ink);
}
.crop--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.crop--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.crop--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.crop--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.hero__visual-meta {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mid);
  text-transform: uppercase;
  z-index: 6;
}
.hero__visual-meta--tl { top: 18px; left: 38px; }
.hero__visual-meta--br { bottom: 18px; right: 38px; color: var(--accent); }

/* hero stat row */
.hero__stats {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 0;
}
.hero__stat { padding: 0 18px; border-right: 1px solid var(--hairline); }
.hero__stat:last-child { border-right: 0; }
.hero__stat-num {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
}
.hero__stat-num .small { font-size: 0.55em; vertical-align: super; }
.hero__stat-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
  margin-top: 8px;
}

/* ---------- Section primitives ---------- */
section.s {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
  z-index: 2;
}
.s--dark {
  background: var(--night);
  color: var(--paper);
}
.s--dark .eyebrow { color: var(--soft); }
.s--dark .eyebrow .num { color: var(--accent); }

.s-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: end;
}
.s-head__title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.s-head__title em { font-style: italic; color: var(--accent-deep); }
.s-head__lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 560px;
}
.s--dark .s-head__lede { color: rgba(242,238,229,0.7); }
.s--dark .s-head__title em { color: var(--accent); }

/* ---------- Services list ---------- */
.service-list {
  border-top: 1px solid var(--hairline);
}
.service-row {
  display: grid;
  grid-template-columns: 72px 1.3fr 2fr auto;
  align-items: start;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding .25s ease;
  cursor: default;
  position: relative;
}
.service-row:hover { padding-left: 16px; }
.service-row__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.1em;
  padding-top: 6px;
}
.service-row__title {
  font-family: var(--display);
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.service-row__desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 540px;
  padding-top: 6px;
}
.service-row__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.service-row:hover .service-row__cta { color: var(--accent-deep); }

/* ---------- Method ---------- */
.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(242,238,229,0.16);
  border-bottom: 1px solid rgba(242,238,229,0.16);
}
.method__step {
  padding: 40px 28px 36px;
  border-right: 1px solid rgba(242,238,229,0.16);
  position: relative;
}
.method__step:last-child { border-right: 0; }
.method__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
}
.method__title {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  margin: 22px 0 14px;
}
.method__desc {
  font-size: 14px;
  color: rgba(242,238,229,0.65);
  line-height: 1.6;
}

/* ---------- Tech grid ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.tech-card {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 36px 32px;
  background: var(--paper);
  transition: background .25s;
}
.tech-card:hover { background: var(--paper-2); }
.tech-card__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.14em;
}
.tech-card__title {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.05;
  margin: 28px 0 12px;
}
.tech-card__desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* glyphs inside tech cards (replaces emoji) */
.glyph {
  width: 36px; height: 36px;
  margin-top: 18px;
  color: var(--accent-deep);
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.pipe {
  padding: 36px 28px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.pipe:last-child { border-right: 0; }
.pipe__arrow {
  position: absolute;
  right: -8px; top: 50%;
  width: 16px;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
}
.pipe:last-child .pipe__arrow { display: none; }
.pipe__num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.16em; }
.pipe__title { font-family: var(--display); font-size: 24px; margin: 20px 0 10px; }
.pipe__desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ---------- Perf strip ---------- */
.perf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.perf__cell {
  padding: 48px 32px;
  border-right: 1px solid rgba(242,238,229,0.16);
}
.perf__cell:last-child { border-right: 0; }
.perf__num {
  font-family: var(--display);
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.perf__num em { font-style: italic; color: var(--accent); }
.perf__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 20px 0 14px;
}
.perf__desc { font-size: 14px; color: rgba(242,238,229,0.7); line-height: 1.6; max-width: 320px; }

/* ---------- Fraud types ---------- */
.fraud-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 64px;
}
.fraud-col h4 {
  font-family: var(--display);
  font-size: 28px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(242,238,229,0.16);
}
.fraud-col ul li {
  padding: 14px 0;
  font-size: 15px;
  color: rgba(242,238,229,0.78);
  border-bottom: 1px solid rgba(242,238,229,0.08);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.fraud-col ul li::before {
  content: "—";
  color: var(--accent);
}

/* ---------- Case study ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(40px, 5vw, 64px) 0;
}
.case__side {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}
.case__side b { display: block; color: var(--ink); font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; margin-top: 8px; }
.case__quote {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.case__quote em { font-style: italic; color: var(--accent-deep); }
.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--hairline);
}
.case__metric { padding: 24px 18px 0 0; }
.case__metric .n {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--accent-deep);
}
.case__metric .l {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  margin-top: 8px;
}

/* ---------- About ---------- */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.mission__label {
  font-family: var(--display);
  font-size: clamp(80px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.mission__label em { font-style: italic; color: var(--accent-deep); }
.mission__since {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 16px;
}
.mission__body { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.mission__body p + p { margin-top: 18px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  margin-top: 80px;
}
.value {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.value:nth-child(3n) { border-right: 0; }
.value__name {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.05;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.value__name .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-style: normal;
}
.value__desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--hairline);
}
.faq__item {
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.faq__toggle {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  transition: background .2s, color .2s, transform .25s;
}
.faq__item[open] .faq__toggle {
  background: var(--ink); color: var(--paper);
  transform: rotate(45deg);
}
.faq__a {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 760px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.contact-big {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.contact-big a {
  border-bottom: 1px solid currentColor;
  transition: color .2s;
}
.contact-big a:hover { color: var(--accent-deep); }
.contact-meta {
  display: grid;
  gap: 28px;
  align-content: start;
}
.contact-meta__item .l {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
}
.contact-meta__item .v {
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink);
}
.contact-meta__item .v small {
  display: block;
  margin-top: 4px;
  color: var(--mid);
  font-size: 13px;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  position: relative; z-index: 2;
}
.marquee__track {
  display: flex;
  gap: 64px;
  padding: 24px 0;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  white-space: nowrap;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__track em { font-style: italic; color: var(--accent); }
.marquee__track .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--paper);
  padding: 80px 0 32px;
  position: relative; z-index: 2;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(242,238,229,0.16);
}
.footer-top h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-top a { display: block; padding: 4px 0; font-size: 14.5px; color: rgba(242,238,229,0.85); }
.footer-top a:hover { color: var(--accent); }
.footer-pitch {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-top: 12px;
  max-width: 460px;
}
.footer-pitch em { font-style: italic; color: var(--accent); }
.footer-bot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}
.footer-bot a { color: var(--soft); }
.footer-bot a:hover { color: var(--accent); }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 24px;
}
.footer-brand-row .brand__mark { border-color: var(--paper); }
.footer-brand-row .brand__mark::before, .footer-brand-row .brand__mark::after { background: var(--paper); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Legal page ---------- */
.legal-hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
}
.legal-hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 18px;
}
.legal-body {
  max-width: 760px;
  padding-bottom: 120px;
  position: relative;
  z-index: 2;
}
.legal-body section { padding: 48px 0; border-bottom: 1px solid var(--hairline); }
.legal-body h2 {
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.legal-body h3 {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 22px 0 10px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.legal-body p { color: var(--ink-2); line-height: 1.7; margin: 12px 0; font-size: 15.5px; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body ul { margin: 8px 0 8px 18px; }
.legal-body ul li { list-style: disc; color: var(--ink-2); padding: 4px 0; font-size: 15px; }
.legal-body a { color: var(--accent-deep); border-bottom: 1px solid currentColor; }

/* ---------- Cookies ---------- */
.cookie {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.45);
  transform: translateY(140%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.cookie.is-visible { transform: none; }
.cookie p { margin: 0; font-size: 13.5px; line-height: 1.55; flex: 1 1 280px; color: rgba(242,238,229,0.85); }
.cookie p a { color: var(--accent); border-bottom: 1px solid currentColor; }
.cookie__actions { display: flex; gap: 8px; }
.cookie .btn--primary { background: var(--accent); color: var(--ink); }
.cookie .btn--primary:hover { background: var(--paper); }
.cookie .btn--ghost { border-color: rgba(242,238,229,0.4); color: var(--paper); }
.cookie .btn--ghost:hover { background: rgba(242,238,229,0.1); color: var(--paper); }

/* ---------- Responsive ---------- */

/* Wide desktop → tablet landscape: tighten service-row last column */
@media (max-width: 1180px) {
  .service-row { grid-template-columns: 60px 1.2fr 2fr; }
  .service-row__cta { display: none; }
  .nav-primary a { padding: 8px 10px; font-size: 13.5px; }
}

/* Tablet portrait: drawer takes over, single-column big blocks */
@media (max-width: 980px) {
  .site-header__inner { height: 64px; }
  .brand { font-size: 19px; }
  .nav-primary { display: none; }
  .menu-btn { display: inline-flex; }
  .header-right .btn--primary { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__title { font-size: clamp(44px, 9vw, 76px); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); padding: 18px 0; }
  .hero__stat { padding: 14px 16px; }
  .hero__stat:nth-child(2n) { border-right: 0; }
  .hero__stat:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }

  .s-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }

  .service-row {
    grid-template-columns: 56px 1fr;
    gap: 16px 20px;
    padding: 28px 0;
  }
  .service-row:hover { padding-left: 8px; }
  .service-row__title { font-size: 26px; }
  .service-row__desc { grid-column: 2; padding-top: 0; font-size: 14.5px; }

  .method, .pipeline, .tech-grid, .perf, .values { grid-template-columns: repeat(2, 1fr); }
  .case, .mission, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-top { gap: 40px; padding-bottom: 48px; }
  .fraud-cols { grid-template-columns: 1fr; gap: 32px; }

  .perf__cell { padding: 36px 24px; }
  .perf__num { font-size: clamp(56px, 12vw, 96px); }

  .case__side { display: flex; flex-wrap: wrap; gap: 24px 36px; }
  .case__side > span { margin: 0 !important; }
  .case__quote { font-size: clamp(24px, 4vw, 36px); }

  .mission__label { font-size: clamp(72px, 14vw, 140px); }
  .mission__body { font-size: 16px; }

  .contact-big { font-size: clamp(28px, 6vw, 48px); }
  .contact-big a { word-break: break-word; }
}

/* Tablet → ensure tech-grid 2-col closes the right border correctly */
@media (max-width: 980px) and (min-width: 581px) {
  .tech-card:nth-child(2n) { border-right: 1px solid var(--hairline); }
  .value:nth-child(3n) { border-right: 1px solid var(--hairline); }
  .value:nth-child(2n) { border-right: 0; }
}

/* Mobile */
@media (max-width: 580px) {
  :root { --gutter: 20px; }
  .site-header__inner { gap: 12px; }
  .brand span:last-child { display: none; }       /* show only the mark */
  .lang-toggle { font-size: 10px; }
  .lang-toggle button { padding: 4px 8px; }

  .hero { padding: 40px 0 56px; }
  .hero__title { font-size: clamp(40px, 11vw, 60px); line-height: 1; }
  .hero__lede { font-size: 16px; }
  .hero__ctas { gap: 8px; }
  .hero__ctas .btn { padding: 10px 14px; font-size: 13px; }

  .hero__visual-meta--tl { left: 26px; top: 14px; }
  .hero__visual-meta--br { right: 26px; bottom: 14px; }
  .scan-doc { inset: 16% 10% 16% 10%; padding: 16px; }
  .scan-doc__mrz { font-size: 8px; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); padding: 16px 0; }
  .hero__stat { padding: 10px 12px; }
  .hero__stat:nth-child(2n) { border-right: 0; }
  .hero__stat:nth-child(1), .hero__stat:nth-child(2) { border-bottom: 1px solid var(--hairline); }
  .hero__stat-num { font-size: 28px; }

  section.s { padding: 64px 0; }
  .s-head__title { font-size: clamp(32px, 8vw, 48px); }
  .s-head__lede { font-size: 15.5px; }

  .service-row { grid-template-columns: 44px 1fr; padding: 22px 0; gap: 10px 16px; }
  .service-row__num { font-size: 11px; padding-top: 4px; }
  .service-row__title { font-size: 22px; }
  .service-row__desc { font-size: 14px; }

  .method, .pipeline, .tech-grid, .perf, .values, .case__metrics { grid-template-columns: 1fr; }
  .pipe, .method__step, .tech-card, .value, .perf__cell { border-right: 0; }
  .pipe { padding: 28px 0; }
  .pipe__arrow { display: none; }
  .method__step { padding: 28px 0; }
  .tech-card { padding: 28px 0; border-left: 0; }
  .tech-grid { border-left: 0; }
  .value { padding: 24px 0; border-right: 0; }
  .values { border-top: 0; }
  .perf__cell { padding: 32px 0; }
  .perf__num { font-size: clamp(56px, 16vw, 80px); }

  .case { padding: 32px 0; gap: 24px; }
  .case__side { gap: 18px 28px; font-size: 10px; }
  .case__quote { font-size: 22px; line-height: 1.2; }
  .case__metric { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
  .case__metric:last-child { border-bottom: 0; }
  .case__metric .n { font-size: 36px; }

  .mission { gap: 24px; }
  .mission__label { font-size: clamp(72px, 22vw, 120px); }
  .mission__body p { font-size: 15.5px; }

  .faq__item { padding: 22px 0; }
  .faq__q-text { font-size: 18px; }
  .faq__toggle { width: 24px; height: 24px; font-size: 15px; flex: 0 0 24px; }
  .faq__a { font-size: 15px; }

  .contact-big { font-size: 32px; line-height: 1.05; }
  .contact-meta { gap: 22px; }

  .marquee__track { font-size: 22px; gap: 36px; padding: 18px 0; }
  .marquee__track span { gap: 36px; }

  .site-footer { padding: 56px 0 28px; }
  .footer-top { gap: 36px; padding-bottom: 36px; }
  .footer-pitch { font-size: 22px; }
  .footer-bot { font-size: 10px; flex-direction: column; align-items: flex-start; gap: 6px; }

  .cookie {
    left: 12px; right: 12px; bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .cookie p { flex: 1 1 auto; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1; justify-content: center; }

  .drawer a { font-size: 32px; padding: 12px 0; }
  .legal-hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .legal-body section { padding: 32px 0; }
  .legal-body h2 { font-size: 22px; }
}

/* Very narrow */
@media (max-width: 360px) {
  .hero__title { font-size: 36px; }
  .s-head__title { font-size: 28px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
}

/* mobile menu drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s;
  display: flex;
  flex-direction: column;
  padding: 80px var(--gutter) 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0s;
}
.drawer__close {
  position: absolute;
  top: 22px; right: var(--gutter);
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 16px;
  z-index: 1;
}
.drawer a {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 40px);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.drawer a:last-of-type { border-bottom: 0; }
.drawer a.btn,
.drawer__cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-bottom: 0;
  align-self: flex-start;
  margin-top: 24px;
}

/* selection */
::selection { background: var(--accent); color: var(--paper); }
