/* ===================================================================
   Aiva — shared site stylesheet
   Design system inherited from index.html. Used by all sub-pages.
   =================================================================== */

:root {
  --paper: #f4efe7;
  --paper-2: #efe8dd;
  --panel: #ffffff;
  --ink: #1b1611;
  --ink-2: #4a443d;
  --ink-3: #8d857a;
  --line: rgba(27,22,17,0.12);
  --line-soft: rgba(27,22,17,0.07);
  --brand: #cd2235;
  --brand-deep: color-mix(in srgb, var(--brand) 80%, #000);
  --brand-tint: color-mix(in srgb, var(--brand) 9%, #fff);
  --crimson: #c41e3a;            /* loss / stat figures only */
  --ok: #1f8a52;
  --ok-tint: #e6f3ea;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(27,22,17,0.05), 0 4px 14px -8px rgba(27,22,17,0.18);
  --shadow-md: 0 2px 6px rgba(27,22,17,0.05), 0 24px 50px -28px rgba(27,22,17,0.30);
  --shadow-lg: 0 6px 14px rgba(27,22,17,0.06), 0 50px 100px -38px rgba(27,22,17,0.48);
  --r: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: inherit; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(22px, 5vw, 56px); }
.container.wide { max-width: 1320px; }
.container.narrow { max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-deep);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.eyebrow.on-ink { color: #f3b9bf; }
.eyebrow.on-ink .dot { box-shadow: 0 0 0 4px rgba(205,34,53,0.22); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), background .18s, box-shadow .2s, border-color .18s;
  white-space: nowrap;
}
.btn-red { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 14px 30px -14px rgba(205,34,53,0.7); }
.btn-red:hover { transform: translateY(-2px); background: #d8293c; box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 20px 40px -14px rgba(205,34,53,0.8); }
.btn-ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(27,22,17,0.22); }
.btn-ghost .arr { color: var(--ink-3); }
.btn-lg { padding: 17px 32px; font-size: 16px; }

.h2 { font-weight: 700; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.h2 .dim { color: rgba(27,22,17,0.38); }
.h2 .red { color: var(--brand); }
.mark { color: var(--brand); font-weight: 700; }
.lede { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }

.sec { position: relative; padding-block: clamp(60px, 8vh, 100px); }
.sec-head { max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head .eyebrow { margin-bottom: 20px; }

/* ===================== TOP BAR ===================== */
.topbar {
  position: sticky; top: 0; z-index: 80;
  background: rgba(244,239,231,0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.topbar.stuck { border-color: var(--line-soft); box-shadow: 0 8px 24px -22px rgba(27,22,17,0.5); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 15px clamp(22px, 5vw, 56px); display: flex; align-items: center; gap: 18px; }
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo img { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 8px 13px; border-radius: 999px; transition: color .16s, background .16s; }
.nav a:hover { color: var(--ink); background: rgba(27,22,17,0.05); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.top-call { font-size: 14.5px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 6px; transition: color .16s; }
.top-call:hover { color: var(--ink); }
.top-call svg { width: 16px; height: 16px; color: var(--brand); }
@media (max-width: 860px) { .nav, .top-call { display: none; } }
@media (max-width: 380px) {
  .topbar-in { padding-inline: 18px; }
  .topbar .top-actions .btn-red { padding: 12px 18px; font-size: 14px; }
  .brand-logo img { height: 26px; }
}

/* ===================== PAGE HERO (sub-pages) ===================== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 12vh, 132px) clamp(40px, 6vh, 64px); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(27,22,17,0.065) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 92% at 24% 16%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 92% at 24% 16%, #000 0%, transparent 70%); }
.page-hero-glow { position: absolute; z-index: 0; right: -8%; top: -20%; width: 60%; height: 110%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(205,34,53,0.10), transparent 68%); filter: blur(34px); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-weight: 700; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.0; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; max-width: 18ch; }
.page-hero h1 .red { color: var(--brand); }
.page-hero .lede { max-width: 60ch; }

/* ===================== PROSE (legal pages) ===================== */
.legal-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--brand-tint); border: 1px solid rgba(205,34,53,0.22);
  border-radius: 12px; padding: 14px 18px; margin-bottom: clamp(28px, 4vh, 44px);
  font-size: 14px; color: var(--ink-2);
}
.legal-banner svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.prose { max-width: 76ch; }
.prose .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: clamp(28px, 4vh, 40px); }
.prose h2 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: clamp(34px, 5vh, 48px) 0 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 16px; text-wrap: pretty; }
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.prose a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ===================== GENERIC CARDS / GRID ===================== */
.card-grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 34px); box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico { width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); border: 1px solid rgba(205,34,53,0.18); color: var(--brand); }
.card .ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 860px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; } }

/* ===================== STORY (about) ===================== */
.story { max-width: 720px; }
.story p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--ink-2); margin-bottom: 22px; text-wrap: pretty; }
.story p .mark { font-weight: 700; }
.pull {
  margin: clamp(34px, 5vh, 52px) 0; padding-left: clamp(20px, 3vw, 30px);
  border-left: 3px solid var(--brand);
  font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.18;
  letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
.attr { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.attr .av { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-tint); border: 1px solid rgba(205,34,53,0.22); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand-deep); font-size: 16px; }
.attr .nm { font-size: 15px; font-weight: 600; color: var(--ink); }
.attr .role { font-size: 13px; color: var(--ink-3); margin-top: 1px; }

/* ===================== FORM (careers) ===================== */
.form { max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 7px; }
.form .field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 15px; width: 100%; transition: border-color .18s, box-shadow .18s;
}
.form textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.form .hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 540px) { .form .field.row2 { grid-template-columns: 1fr; } }

/* ===================== INK CTA BAND ===================== */
.cta-band { background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% -10%, rgba(205,34,53,0.22), transparent 65%); pointer-events: none; }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(80% 65% at 50% 42%, #000, transparent 82%);
  mask-image: radial-gradient(80% 65% at 50% 42%, #000, transparent 82%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band .big { font-weight: 700; font-size: clamp(30px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.035em; color: #fff; max-width: 18ch; margin-inline: auto; text-wrap: balance; }
.cta-band .big .red { color: #ff6273; }
.cta-band .f-lede { margin: 20px auto 0; max-width: 52ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.72); text-wrap: pretty; }
.cta-band-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.2); box-shadow: none; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.13); }
.cta-band .btn-ghost .arr { color: rgba(255,255,255,0.6); }
.cta-band .f-note { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,0.5); }

/* ===================== FOOTER ===================== */
.footer { background: var(--paper); }
.footer-in { padding-block: 56px 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer img { height: 28px; width: auto; display: block; margin-bottom: 16px; }
.foot-tag { font-size: 14px; color: var(--ink-2); max-width: 32ch; line-height: 1.6; }
.foot-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color .18s; text-decoration: none; }
.foot-col a:hover { color: var(--brand-deep); }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 22px 40px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-bottom span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 820px) {
  .footer-in { grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
  .footer-in > div:first-child { grid-column: 1 / -1; }   /* brand block spans full width on top */
}
@media (max-width: 520px) {
  .footer-in { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
}

/* ===================== REVEAL ===================== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(18px); }
  .fade-up.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .dly1 { transition-delay: .08s; } .dly2 { transition-delay: .16s; } .dly3 { transition-delay: .24s; }
}
