/* Truly Payments — design system
   Palette: warm ink + parchment canvas + a single gold accent, used sparingly.
   Type: Mona Sans (variable) for text, Mona Sans Expanded Bold for display. */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Variable.ttf") format("truetype-variations"),
       url("../fonts/MonaSans-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans Expanded";
  src: url("../fonts/MonaSans-ExpandedBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0d1321;
  --ink-2: #141c2e;
  --ink-3: #1d2740;
  --canvas: #f6f3ec;
  --canvas-2: #efeae0;
  --paper: #ffffff;
  --text: #16203a;
  --text-2: #4b5670;
  --text-3: #5d667d;
  --gold-text: #785d15; /* gold for text on light backgrounds (WCAG AA) */
  --line: #e1dbcf;
  --line-2: #cfc7b7;
  --gold: #c8a038;
  --gold-2: #e2bd5a;
  --gold-ink: #1a1405;
  --ok: #2f7a4f;
  --on-ink: #f3efe6;
  --on-ink-2: #b7bdcc;
  --on-ink-3: #7d8598;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13,19,33,.06), 0 12px 32px -12px rgba(13,19,33,.18);
  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Mona Sans Expanded", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-family: var(--display); font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.9rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--text-2); line-height: 1.55; max-width: 60ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.on-ink .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: 16px; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .lede { color: var(--on-ink-2); }
.on-ink h1, .on-ink h2, .on-ink h3 { color: #fff; }
.alt { background: var(--canvas-2); }
.paper { background: var(--paper); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 24px -10px rgba(200,160,56,.7); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.on-ink .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.on-ink .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link:hover svg { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(13,19,33,.08);
}
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brand svg { width: 38px; height: 38px; }
.brand .wordmark { font-size: 1.05rem; display: flex; flex-direction: column; gap: 1px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 550; font-size: .97rem; padding: 10px 14px; border-radius: 999px; color: var(--text-2); transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: rgba(13,19,33,.05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(13,19,33,.07); }
.nav .btn { margin-left: 10px; min-height: 44px; padding-inline: 20px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1120px) {
  .nav { display: none; }
  .nav.open { display: flex; position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--canvas); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px; }
  .nav.open a { padding: 14px 16px; font-size: 1.05rem; }
  .nav.open .btn { margin: 12px 0 0; justify-content: center; }
  .menu-btn { display: inline-flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.hero-art .chip {
  position: absolute; left: -18px; bottom: 28px;
  background: rgba(20,28,46,.86); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 12px 16px;
  color: #fff; font-size: .9rem; display: flex; gap: 12px; align-items: center;
}
.hero-art .chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 4px rgba(63,191,127,.22); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(60% 80% at 80% 50%, rgba(200,160,56,.16), transparent 60%),
              radial-gradient(40% 60% at 10% 90%, rgba(255,255,255,.05), transparent 60%);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; color: var(--on-ink-2); font-size: .92rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .chip { left: 12px; bottom: 12px; }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.page-hero h1 { margin-bottom: 18px; max-width: 16ch; }
.page-hero .lede { max-width: 62ch; }
.page-hero.two-col .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.page-hero.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) { .page-hero.two-col .wrap { grid-template-columns: 1fr; } }

/* Grids & cards */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--text-2); font-size: 1rem; }
.card .link { margin-top: 16px; font-size: .95rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(200,160,56,.18), rgba(200,160,56,.06)); color: var(--gold-text); border: 1px solid rgba(200,160,56,.28);
}
.icon svg { width: 22px; height: 22px; }
.on-ink .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.on-ink .icon { color: var(--gold); }
.on-ink .card p { color: var(--on-ink-2); }
.on-ink .card:hover { border-color: rgba(255,255,255,.18); }
.on-ink .link { color: #fff; }
.card-link { text-decoration: none; display: block; color: inherit; }

/* Product cards */
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product .media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--canvas-2); }
.product .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .media img { transform: scale(1.03); }
.product .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product .body h3 { margin-top: 0; }
.product .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.product ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--text-2); font-size: .95rem; }
.product ul li { display: flex; gap: 9px; align-items: flex-start; }
.product ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--gold); }
.product .link { margin-top: auto; padding-top: 18px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.feature h3 { margin: 16px 0 8px; }
.feature p { color: var(--text-2); font-size: 1rem; }
.on-ink .feature p { color: var(--on-ink-2); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks li svg { width: 22px; height: 22px; flex: none; color: var(--gold-text); margin-top: 2px; }
.on-ink .checks li svg { color: var(--gold); }
.checks li strong { color: var(--text); }
.on-ink .checks li { color: var(--on-ink-2); }
.on-ink .checks li strong { color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--gold-text); }
.step h3 { margin: 10px 0 8px; font-size: 1.12rem; }
.step p { color: var(--text-2); font-size: .97rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Industries */
.industry { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: #fff; display: block; }
.industry img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.industry:hover img { transform: scale(1.04); }
.industry .label { position: absolute; inset: auto 0 0 0; padding: 22px 22px 20px; background: linear-gradient(to top, rgba(13,19,33,.9), rgba(13,19,33,0)); }
.industry .label h3 { color: #fff; margin: 0 0 4px; }
.industry .label p { color: rgba(255,255,255,.78); margin: 0; font-size: .95rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 640px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--canvas-2); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--text); }
td { color: var(--text-2); }
.yes { color: var(--ok); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 20px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 650; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2); background: var(--paper); color: var(--text); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,160,56,.18); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--text-3); }
.form-note { font-size: .88rem; color: var(--text-3); }
.form-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.form-panel .form-title { font-family: var(--font); font-size: 1.35rem; letter-spacing: -0.01em; margin-bottom: 6px; color: var(--text); }
.form-panel > p { color: var(--text-2); margin-bottom: 22px; }
.form-success { display: none; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(47,122,79,.1); color: var(--ok); border: 1px solid rgba(47,122,79,.3); font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 42px; height: 42px; flex: none; }
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list a { color: var(--text-2); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { color: var(--text-2); }
.map { border: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); filter: grayscale(.2) contrast(1.05); }

/* Founder */
.founder { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.founder .photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--canvas-2); aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.founder .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.founder .photo .fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-family: var(--display); font-size: 5rem; color: var(--line-2); }
.founder .photo.missing .fallback { display: flex; }
.founder .role { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin: 6px 0 18px; }
.founder blockquote { margin: 22px 0 0; padding-left: 20px; border-left: 3px solid var(--gold); color: var(--text-2); font-size: 1.08rem; }
.founder.flip { grid-template-columns: 1fr 420px; }
.founder.flip .photo { order: 2; }
@media (max-width: 900px) { .founder, .founder.flip { grid-template-columns: 1fr; } .founder .photo, .founder.flip .photo { max-width: 420px; order: 0; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value { padding: 26px 26px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.value h3 { margin: 12px 0 8px; }
.value p { color: var(--text-2); font-size: 1rem; }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font); font-size: 1.45rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 22px; }
.prose .meta { font-family: var(--mono); font-size: .8rem; color: var(--text-3); letter-spacing: .06em; }

/* Ornament: the brand mark as a faint motif */
.motif { position: absolute; pointer-events: none; opacity: .06; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink-2); padding-block: 64px 32px; }
.footer .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; align-items: start; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; margin-bottom: 18px; }
/* Footer top band: the logo animation plus one last call to action */
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top .brand-anim { display: block; margin: -30px 0 -20px -30px; max-width: 620px; }
.footer-top .brand-anim img { width: 100%; height: auto; }
.footer-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.footer-cta p { color: var(--on-ink-2); max-width: 44ch; margin-bottom: 22px; }
.footer .btn-gold { color: var(--gold-ink); font-size: 1rem; }
.footer .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; font-size: 1rem; }
.footer .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } .footer-top .brand-anim { margin: -20px auto -10px; max-width: 480px; } .footer-cta { text-align: center; } .footer-cta p { margin-inline: auto; } .footer-cta .btn-row { justify-content: center; } }
.footer p { font-size: .95rem; max-width: 36ch; }
.footer .fh { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--mono); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--on-ink-2); text-decoration: none; font-size: .97rem; display: inline-block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; font-size: .88rem; color: var(--on-ink-3); }
.footer .bottom a { font-size: .88rem; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer .cols { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .product .media img, .industry img, .link svg { transition: none; }
}

/* Skip link (keyboard users) */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 650; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }
/* Consent checkbox */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--gold-text); }
/* Address card (replaces third-party map embed) */
.address-card { margin-top: 32px; padding: 24px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.address-card strong { display: block; margin-bottom: 6px; }
.address-card p { color: var(--text-2); margin-bottom: 14px; }
/* Legal notices */
.legal-note { font-size: .9rem; color: var(--text-2); max-width: 820px; padding: 18px 22px; border-left: 3px solid var(--gold-text); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.on-ink .legal-note { color: var(--on-ink-2); background: var(--ink-2); border-left-color: var(--gold); }
.footer .disclosure { font-size: .82rem; color: var(--on-ink-3); max-width: none; margin-top: 22px; line-height: 1.55; }
.footer .disclosure + .disclosure { margin-top: 10px; }

/* ===== Landing page: lead hero ===== */
.hero.lead .wrap { grid-template-columns: 1.05fr .95fr; padding-block: clamp(48px, 7vw, 88px); align-items: start; }
.hero.lead h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
.hero-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-ink-2); }
.hero-points li strong { color: #fff; }
.hero-points svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.hero-alt { gap: 22px; }
.on-ink-link { color: #fff; }
.hero-form .form-panel { box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.form-panel.compact .form-title { font-size: 1.45rem; }
@media (max-width: 900px) { .hero.lead .wrap { grid-template-columns: 1fr; } .hero-form { order: 2; } }

/* Trust bar */
.trust-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-bar .wrap { display: flex; flex-wrap: wrap; gap: 12px 36px; justify-content: center; padding-block: 16px; font-size: .92rem; font-weight: 600; color: var(--text-2); }
.trust-bar span { display: inline-flex; align-items: center; gap: 9px; }
.trust-bar svg { width: 18px; height: 18px; color: var(--gold-text); }

/* Scroll feature */
.scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.scrolly-sticky { position: sticky; top: 96px; }
.scrolly-visual { position: relative; aspect-ratio: 4 / 3.6; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.scrolly-visual figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.03); transition: opacity .55s ease, transform .9s ease; }
.scrolly-visual figure.active { opacity: 1; transform: none; }
.scrolly-visual img { width: 100%; height: 100%; object-fit: cover; }
.scrolly-visual figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 12px 16px; border-radius: 12px; background: rgba(13,19,33,.82); color: #fff; font-weight: 600; font-size: .95rem; backdrop-filter: blur(8px); }
.scrolly-steps { display: grid; gap: 22px; padding-block: 24px 0; }
.scrolly-step { min-height: 250px; display: flex; flex-direction: column; justify-content: center; padding: 30px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; border-left: 3px solid transparent; transition: border-color .4s ease, background .4s ease, transform .4s ease, box-shadow .4s ease; }
.scrolly-step.active { background: var(--paper); border-color: var(--line); border-left-color: var(--gold); box-shadow: var(--shadow); transform: translateX(6px); }
.scrolly-step .num { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--gold-text); }
.scrolly-step h3 { margin: 8px 0 8px; font-size: 1.3rem; }
.scrolly-step p { color: var(--text-2); }
.scrolly-step .btn { margin-top: 16px; }
@media (max-width: 900px) {
  .scrolly { grid-template-columns: 1fr; }
  .scrolly-sticky { display: none; }
  .scrolly-steps { gap: 14px; padding-block: 0; }
  .scrolly-step { background: var(--paper); border-color: var(--line); border-left-color: var(--gold); transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .scrolly-visual figure, .scrolly-step { transition: none; } .scrolly-step.active { transform: none; } }

/* Industry chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: .88rem; color: var(--on-ink); background: rgba(255,255,255,.04); }
.chips span:last-child { border-color: var(--gold); color: var(--gold-2); }

/* Sticky mobile CTA bar */
.cta-bar { display: none; }
@media (max-width: 767px) {
  .cta-bar { display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(246,243,236,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .cta-bar .btn { min-height: 46px; padding-inline: 18px; }
  body:has(.cta-bar) .footer, body.page-index .footer { padding-bottom: 96px; }
}

/* Business-type icon grid */
.biz-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.biz-grid li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--text); min-height: 60px; }
.biz-grid svg { width: 24px; height: 24px; flex: none; color: var(--gold-text); }
.biz-grid li.all { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.biz-grid li.all svg { color: var(--gold-ink); }
.on-ink .biz-grid li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.on-ink .biz-grid svg { color: var(--gold); }
.on-ink .biz-grid li.all { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.on-ink .biz-grid li.all svg { color: var(--gold-ink); }
@media (max-width: 1100px) { .biz-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .biz-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .biz-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .biz-grid li { padding: 12px 12px; font-size: .88rem; gap: 10px; } }

/* Hero background video (landing page) */
.hero.has-video { isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,19,33,.94) 0%, rgba(13,19,33,.82) 45%, rgba(13,19,33,.62) 100%); }
.hero.has-video .hero-bg { z-index: -1; opacity: .35; }
@media (max-width: 900px) { .hero-video::after { background: linear-gradient(180deg, rgba(13,19,33,.9) 0%, rgba(13,19,33,.88) 100%); } }
@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } .hero-video { background: var(--ink) url("../img/hero-poster.webp") center / cover no-repeat; } }

/* ===== Fullscreen fit for the landing hero ===== */
.hero.lead .wrap { min-height: min(calc(100vh - 76px), 960px); min-height: min(calc(100svh - 76px), 960px); align-items: center; padding-block: clamp(40px, 5vh, 72px); }
.hero.lead .lede { max-width: 50ch; }
.hero-form { justify-self: end; width: min(100%, 560px); }
@media (min-width: 1500px) {
  :root { --max: 1360px; }
  .hero.lead h1 { font-size: clamp(3.4rem, 3.6vw, 4.6rem); }
  .hero.lead .lede { font-size: 1.35rem; }
  .hero-points li { font-size: 1.08rem; }
  .hero-form { width: min(100%, 600px); }
  .form-panel.compact { padding: 36px 40px; }
  .biz-grid { gap: 14px; }
}
@media (min-width: 1800px) {
  :root { --max: 1440px; }
}
@media (max-width: 900px) { .hero.lead .wrap { min-height: 0; } .hero-form { justify-self: stretch; width: 100%; } }

/* Motion controls */
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(13,19,33,.55); color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle:hover { border-color: #fff; }
.video-toggle { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 18px; z-index: 2; }
.anim-wrap { position: relative; }
.anim-toggle { margin: 4px 0 0 6px; }
@media (max-width: 767px) {
  .hero.lead .wrap { padding-top: 22px; padding-bottom: 100px; gap: 28px; }
  .hero.lead .eyebrow { margin-bottom: 10px; font-size: .68rem; letter-spacing: .1em; white-space: nowrap; }
  .hero.lead .eyebrow::before { width: 14px; }
  .hero.lead h1 { font-size: 2rem; margin-bottom: 12px; }
  .hero.lead .lede { font-size: 1rem; line-height: 1.5; margin-bottom: 16px; }
  .hero-points { gap: 6px; margin-bottom: 18px; }
  .hero-points li { font-size: .97rem; line-height: 1.45; }
}

/* Hero headline: one phrase per line at every width */
.hero.lead .h1-line { display: block; }
.eb-short { display: none; }
@media (max-width: 767px) { .eb-long { display: none; } .eb-short { display: inline; } }

/* Desktop/laptop hero fit: text starts at the top and the call button stays above the fold */
@media (min-width: 901px) {
  .hero.lead .wrap { align-items: start; padding-block: clamp(28px, 4.5vh, 56px) clamp(32px, 5vh, 64px); }
  .hero.lead .wrap > div:first-child { padding-top: clamp(8px, 3vh, 36px); }
  .hero.lead h1 { font-size: clamp(2.4rem, min(4.2vw, 7.4vh), 4rem); margin-bottom: clamp(12px, 2vh, 20px); }
  .hero.lead .lede { font-size: clamp(1.05rem, min(1.3vw, 2.3vh), 1.25rem); margin-bottom: clamp(14px, 2.6vh, 26px); }
  .hero.lead .eyebrow { margin-bottom: clamp(10px, 1.8vh, 18px); }
  .hero-points { gap: clamp(6px, 1.1vh, 12px); margin-bottom: clamp(16px, 2.6vh, 26px); }
  .hero-points li { font-size: clamp(.98rem, min(1.1vw, 2vh), 1.08rem); line-height: 1.45; }
  .hero-form .form-panel { padding: clamp(20px, 3vh, 34px) clamp(22px, 2.4vw, 36px); }
  .hero-form .form { gap: clamp(10px, 1.5vh, 16px); }
  .hero-form .form-panel > p { margin-bottom: clamp(12px, 2vh, 20px); }
  .hero-form .field textarea { min-height: clamp(64px, 10vh, 110px); }
  .hero-form .field input, .hero-form .field select { padding-block: clamp(9px, 1.4vh, 13px); }
}
