/* ============================================================
   Consumption Consultant Partners — Brand System
   Midnight · Gold · Bone · Slate  |  Newsreader + Archivo
   Gold is rationed: the one number or decision that matters.
   ============================================================ */
:root {
  --midnight:   #0c1015;   /* primary ground */
  --midnight-2: #12171d;   /* raised on dark */
  --bone:       #f6f4ef;   /* paper */
  --bone-2:     #edeae1;   /* tinted section */
  --card:       #ffffff;   /* raised on light */
  --slate:      #46505a;   /* support */
  --gold:       #d7ab55;
  --gold-2:     #c8983f;

  --text:       #14181d;   /* ink text on bone */
  --muted:      #5a626b;   /* muted on bone */
  --line:       rgba(12,16,21,.12);
  --line-soft:  rgba(12,16,21,.07);

  --on-ink:     #f2efe8;   /* text on midnight */
  --muted-ink:  #9aa1a9;   /* muted on midnight */
  --line-ink:   rgba(246,244,239,.14);
  --card-ink:   rgba(246,244,239,.045);

  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  22px;
  --maxw:       1200px;
  --shadow:     0 1px 2px rgba(12,16,21,.05), 0 12px 34px -14px rgba(12,16,21,.22);

  --f-sans: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --f-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: dark light; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  background: var(--bone);
  color: var(--text);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
/* Film-grain overlay — depth without a gradient wash */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
.tnum { font-variant-numeric: tabular-nums; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

h1,h2,h3 { font-family: var(--f-serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--midnight); color: var(--on-ink); padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 60px); }
.container.narrow { max-width: 760px; }
.section { padding: clamp(66px, 9vw, 130px) 0; position: relative; }
.section-tint { background: var(--bone-2); }
.section-ink { background: var(--midnight); color: var(--on-ink); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--on-ink); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 66px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 22px; }
.kicker.on-ink { color: var(--muted-ink); }
.kicker .idx { font-variant-numeric: tabular-nums; color: var(--gold); letter-spacing: .1em; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section-lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); margin-top: 18px; max-width: 62ch; }
.section-ink .section-lead { color: var(--muted-ink); }

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad); border-radius: 3px; font-weight: 600; font-size: .93rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .arw { transition: transform .2s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }
.btn-primary { background: var(--gold); color: #201603; }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(215,171,85,.7); }
.btn-line { background: transparent; border-color: var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--midnight); background: var(--midnight); color: var(--on-ink); transform: translateY(-2px); }
.section-ink .btn-line { border-color: var(--line-ink); color: var(--on-ink); }
.section-ink .btn-line:hover { background: var(--on-ink); color: var(--midnight); border-color: var(--on-ink); }
.btn-sm { --pad: 10px 18px; font-size: .86rem; }
.btn-lg { --pad: 15px 28px; font-size: .98rem; }
.btn-block { width: 100%; margin-top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bone) 74%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bone) 92%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { display: grid; place-items: center; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup strong { font-family: var(--f-sans); font-weight: 800; font-size: 1.16rem; letter-spacing: .02em; }
.brand-lockup em { font-style: normal; font-size: .56rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) { color: var(--text); font-size: .93rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--gold); transition: width .25s var(--ease); }
.nav-links > a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 12px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero (Midnight) ---------- */
.hero { background: var(--midnight); color: var(--on-ink); padding: clamp(52px, 7vw, 100px) 0 clamp(44px, 5vw, 78px); position: relative; overflow: hidden; }
.hero-spot {
  position: absolute; width: 720px; height: 720px; border-radius: 50%; z-index: 0; pointer-events: none;
  left: var(--mx, 68%); top: var(--my, 26%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(215,171,85,.14), transparent 62%);
  transition: left .35s var(--ease), top .35s var(--ease);
}
.hero-inner { position: relative; z-index: 1; max-width: 1140px; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.9rem); font-weight: 300; letter-spacing: -.02em; margin-bottom: 22px; color: var(--on-ink); text-wrap: balance; }
.hero-title .hl { font-style: italic; font-weight: 300; color: var(--gold); }
.hero-sub { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted-ink); max-width: 74ch; margin-bottom: 32px; font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-tagline { font-family: var(--f-serif); font-style: italic; font-size: 1.16rem; color: var(--on-ink); margin-right: 6px; }

/* ---------- Client marquee ---------- */
.clients { padding: clamp(40px,6vw,64px) 0; background: var(--bone); }
.clients-label { text-align: center; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin-bottom: 30px; }
.marquee { position: relative; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; flex: none; gap: 58px; padding-right: 58px; align-items: center; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.client-logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-serif); font-weight: 500; font-size: 1.18rem; color: var(--slate); white-space: nowrap; }
.client-logo svg { width: 22px; height: 22px; fill: currentColor; opacity: .8; }

/* ---------- Icon chip ---------- */
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; color: var(--text); background: transparent; border: 1px solid var(--line); }
.ico svg { width: 24px; height: 24px; }
.section-ink .ico { color: var(--on-ink); border-color: var(--line-ink); }

/* ---------- Outcomes (5 tiles) ---------- */
.outcomes-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.outcome { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.outcome:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.outcome .ico { margin-bottom: 20px; }
.outcome h3 { font-size: 1.14rem; margin-bottom: 8px; }
.outcome p { color: var(--muted); font-size: .9rem; }

/* ---------- Cards (services) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; padding: 28px; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; background: radial-gradient(360px circle at var(--px,50%) var(--py,0%), rgba(215,171,85,.12), transparent 60%); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.card:hover::before { opacity: 1; }
.card-num { position: absolute; top: 22px; right: 24px; font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .05em; }
.card .ico { margin-bottom: 20px; }
.card h3 { font-size: 1.24rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .92rem; }

/* ---------- Industries ---------- */
.industries { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.industries li { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.7rem, 4.4vw, 3rem); letter-spacing: -.015em; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--text); transition: color .2s var(--ease), padding-left .3s var(--ease); }
.industries li:hover { color: var(--gold); padding-left: 18px; }
.industries li a { color: inherit; text-decoration: none; display: block; }

/* ---------- Stats / quotes (on Midnight) ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); margin-bottom: 24px; }
.stat { background: var(--midnight); padding: 42px 28px; }
.stat-num { display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--on-ink); line-height: 1; margin-bottom: 14px; }
.stat.is-hero .stat-num { color: var(--gold); }   /* one gold number — the headline metric */
.stat p { color: var(--muted-ink); font-size: .94rem; }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { padding: 32px; border: 1px solid var(--line-ink); background: var(--card-ink); display: flex; flex-direction: column; }
.quote p { font-family: var(--f-serif); font-size: 1.16rem; font-weight: 300; line-height: 1.42; margin-bottom: 26px; color: var(--on-ink); }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.q-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card-ink); border: 1px solid var(--line-ink); color: var(--gold); font-weight: 700; font-size: .84rem; }
.q-who { display: flex; flex-direction: column; line-height: 1.35; }
.q-who strong { color: var(--on-ink); font-weight: 600; }
.q-who span { color: var(--muted-ink); font-size: .85rem; }

/* ---------- Testimonials carousel (rotating) ---------- */
.tcarousel { position: relative; }
.tviewport { overflow: hidden; }
.ttrack { display: flex; transition: transform .5s var(--ease); }
.tslide { flex: 0 0 100%; min-width: 0; padding: 6px 2px; }
.tslide p { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 300; line-height: 1.42; color: var(--on-ink); margin-bottom: 26px; max-width: 66ch; }
.tslide footer { display: flex; align-items: center; gap: 14px; }
.t-ava, .t-ava-fallback { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--gold); background: var(--midnight-2); }
.t-ava { object-fit: cover; }
.t-ava-fallback { display: grid; place-items: center; color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.t-who { display: flex; flex-direction: column; line-height: 1.35; }
.t-who strong { color: var(--on-ink); font-family: var(--f-sans); font-weight: 600; }
.t-who span { color: var(--muted-ink); font-size: .88rem; }
.tcontrols { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.tbtn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-ink); background: transparent; color: var(--on-ink); cursor: pointer; font-size: 1.3rem; line-height: 1; transition: background .2s var(--ease), border-color .2s var(--ease); }
.tbtn:hover { background: var(--card-ink); border-color: var(--gold); }
.tdots { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.tdot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-ink); cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.tdot.on { background: var(--gold); transform: scale(1.35); }

/* ---------- Use cases ---------- */
.usecase-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.uc { background: var(--bone); padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: center; transition: background .2s var(--ease); }
.uc:hover { background: var(--card); }
.uc .ico { grid-row: span 2; }
.uc h3 { font-size: 1.2rem; align-self: end; }
.uc p { color: var(--muted); font-size: .92rem; align-self: start; }

/* ---------- Tools ---------- */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.tool-card { padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }
.tool-card h3 { font-size: 1.7rem; margin-bottom: 6px; }
.tool-desc { color: var(--muted); font-size: .96rem; margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .89rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.field label strong { color: var(--gold-2); }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bone); color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,171,85,.25); }
.field textarea { resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.range-scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--slate); margin-top: 5px; }
.tool-result { text-align: center; padding: 26px; margin: 22px 0 8px; border-radius: var(--radius); background: var(--midnight); color: var(--on-ink); }
.tool-result-label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); margin-bottom: 8px; }
.tool-result-num { display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.1rem, 4.5vw, 3rem); color: var(--gold); line-height: 1; }
.tool-result-note { display: block; color: var(--muted-ink); font-size: .85rem; margin-top: 10px; }
.q { border: 0; padding: 0; margin: 0 0 18px; }
.q legend { font-size: .94rem; font-weight: 600; margin-bottom: 9px; }
.q label { display: flex; align-items: center; gap: 10px; font-size: .89rem; color: var(--muted); padding: 5px 0; cursor: pointer; }
.q input[type="radio"] { accent-color: var(--gold); width: 16px; height: 16px; }
.maturity-bar { height: 8px; border-radius: 999px; background: rgba(246,244,239,.16); overflow: hidden; margin: 16px 0 8px; }
.maturity-bar span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .9s var(--ease); }
#maturityTier { color: var(--gold); }

/* ---------- The CCP Value Path ---------- */
.valuepath { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.vp-step { position: relative; padding: 0 18px 6px 0; cursor: pointer; }
.vp-step::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: var(--line-ink); }
.vp-step:last-child::before { display: none; }
.vp-num { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-ink); background: var(--midnight); color: var(--gold); font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 700; margin-bottom: 18px; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.vp-outcome .vp-num { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215,171,85,.14); }
.vp-step h3 { font-size: 1.28rem; color: var(--on-ink); margin-bottom: 6px; transition: color .2s var(--ease); }
.vp-step p { color: var(--muted-ink); font-size: .86rem; padding-right: 12px; }
.vp-step.is-expandable::after { content: "+"; position: absolute; top: 2px; right: 4px; color: var(--gold); font-size: 1.05rem; opacity: 0; transition: opacity .2s var(--ease); }
.vp-step.is-expandable:hover::after, .vp-step.is-expandable:focus-visible::after { opacity: 1; }
.vp-step.is-expandable:hover .vp-num, .vp-step.is-expandable:focus-visible .vp-num { background: var(--gold); color: #201603; border-color: var(--gold); }
.vp-step.is-expandable:hover h3 { color: var(--gold); }

/* ---------- Insights (editorial rows) ---------- */
.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 30px; align-items: center; padding: 32px 6px; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease), background .2s var(--ease); }
.article-row:hover { padding-left: 18px; background: color-mix(in srgb, var(--card) 55%, transparent); }
.art-tag { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.art-body h3 { font-size: clamp(1.24rem, 2.2vw, 1.7rem); font-weight: 400; margin-bottom: 8px; }
.art-body p { color: var(--muted); font-size: .95rem; max-width: 64ch; }
.art-meta { display: flex; align-items: center; gap: 16px; color: var(--slate); font-size: .86rem; }
.art-meta .arw { font-size: 1.2rem; color: var(--text); transition: transform .25s var(--ease); }
.article-row:hover .art-meta .arw { transform: translateX(5px); color: var(--gold); }

/* ---------- Creds ---------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cred { padding: 30px; border: 1px solid var(--line); background: var(--card); }
.cred strong { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.cred span { font-family: var(--f-serif); font-size: 1.34rem; color: var(--text); }

/* ---------- Compliance ---------- */
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comp-badge { padding: 26px; border: 1px solid var(--line); background: var(--bone); transition: transform .2s var(--ease), border-color .2s var(--ease); }
.section-tint .comp-badge { background: var(--bone-2); }
.comp-badge:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.comp-badge strong { display: block; font-family: var(--f-serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; }
.comp-badge span { color: var(--muted); font-size: .89rem; }

/* ---------- CTA / Contact (Midnight) ---------- */
.section-cta .cta-box { text-align: center; }
.cta-box .kicker, .cta-box h2, .cta-box .section-lead { margin-left: auto; margin-right: auto; }
.cta-box h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cta-box .section-lead { margin-bottom: 28px; }
.cta-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.cta-chip { font-size: .88rem; font-weight: 500; padding: 10px 18px; border: 1px solid var(--line-ink); border-radius: 999px; color: var(--on-ink); background: var(--card-ink); }
.contact-form { text-align: left; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-ink .field label { color: var(--on-ink); }
.section-ink .field input, .section-ink .field select, .section-ink .field textarea { background: rgba(246,244,239,.05); border-color: var(--line-ink); color: var(--on-ink); }
.section-ink .field input::placeholder, .section-ink .field textarea::placeholder { color: var(--muted-ink); }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #86efac; }
.form-status.err { color: #fca5a5; }
.form-fineprint { margin-top: 18px; font-size: .87rem; color: var(--muted-ink); text-align: center; }
.form-fineprint a { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--on-ink); padding-top: 62px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 44px; padding-bottom: 44px; }
.footer-brand .brand-mark { color: var(--on-ink); margin-bottom: 14px; }
.footer-brand .brand-lockup strong { font-size: 1.3rem; }
.footer-brand .brand-lockup em { color: var(--muted-ink); }
.footer-brand p { color: var(--muted-ink); margin-top: 14px; font-family: var(--f-serif); font-style: italic; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); margin-bottom: 16px; font-weight: 600; }
.footer-cols a { display: block; color: var(--on-ink); font-size: .92rem; padding: 5px 0; opacity: .82; transition: opacity .18s, color .18s; }
.footer-cols a:hover { opacity: 1; color: var(--gold); }
.badge { display: inline-block; font-size: .76rem; color: var(--muted-ink); border: 1px solid var(--line-ink); border-radius: 6px; padding: 4px 10px; margin: 6px 6px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line-ink); padding: 24px clamp(20px,5vw,60px); color: var(--muted-ink); font-size: .84rem; }
.footer-note { letter-spacing: .1em; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-grid, .quotes-grid { grid-template-columns: 1fr; }
  .usecase-list { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .valuepath { grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); }
  .vp-step { background: var(--midnight); padding: 26px 24px; }
  .vp-step::before { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; background: var(--bone); border-bottom: 1px solid var(--line); padding: 16px clamp(20px,5vw,60px) 24px; transform: translateY(-120%); transition: transform .32s var(--ease); box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { padding: 14px 2px; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: 10px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-tagline { text-align: center; margin: 0 0 6px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .article-row { grid-template-columns: 1fr; gap: 8px; }
  .art-meta { order: -1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .outcomes-grid, .cards-grid, .stats-grid, .compliance-grid, .valuepath { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- Field help text (ROI tool & forms) ---------- */
.field-help { display: block; margin-top: 7px; font-size: .8rem; color: var(--slate); line-height: 1.5; }
.field-help strong { color: var(--text); font-weight: 600; }

/* ---------- Clickable / expandable affordances ---------- */
.is-expandable { cursor: pointer; }
.card.is-expandable::after { content: "+"; position: absolute; bottom: 18px; right: 20px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-2); font-size: 1.05rem; opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.card.is-expandable:hover::after, .card.is-expandable:focus-visible::after { opacity: 1; transform: none; }
.uc.is-expandable:hover, .outcome.is-expandable:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.industries li.is-expandable::after { content: "\00a0→"; color: var(--gold); opacity: 0; transition: opacity .2s var(--ease); }
.industries li.is-expandable:hover::after { opacity: 1; }

/* ---------- FAQ ---------- */
.faq-cat { font-family: var(--f-sans); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 34px 0 12px; }
.faq-cat:first-of-type { margin-top: 8px; }
.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bone); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--f-serif); font-weight: 500; font-size: 1.14rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-2); transition: transform .25s var(--ease); line-height: 1; flex: none; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { color: var(--muted); }
.faq-a a { color: var(--gold-2); }
.faq-more { text-align: center; margin-top: 24px; }
.faq-more a { color: var(--gold-2); font-weight: 600; }

/* ---------- Detail modal ---------- */
.modal { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,16,21,.62); backdrop-filter: blur(3px); animation: modalFade .2s var(--ease); }
.modal-card { position: relative; z-index: 1; width: min(600px, 100%); max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; background: var(--bone); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 46px); box-shadow: 0 40px 90px -30px rgba(12,16,21,.6); animation: modalIn .28s var(--ease); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; transition: background .2s var(--ease); }
.modal-close:hover { background: var(--bone-2); }
.modal-kicker { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: 10px; }
.modal-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 20px; padding-right: 40px; }
.modal-body p { color: var(--muted); margin-bottom: 14px; font-size: 1rem; }
.modal-body p strong { color: var(--text); font-weight: 600; }
.modal-body ul { color: var(--muted); margin: 0 0 16px; padding-left: 20px; }
.modal-body li { margin-bottom: 6px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal-card { animation: none; } }

/* ---------- Footer legal ---------- */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted-ink); font-size: .84rem; transition: color .18s var(--ease); }
.footer-legal a:hover { color: var(--gold); }

/* ---------- ROI tool (full width) ---------- */
.roi-wide { display: grid; grid-template-columns: 1.35fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.roi-inputs { padding: clamp(26px, 3vw, 42px); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.roi-inputs .field:nth-child(3) { grid-column: 1 / -1; }
.roi-output { background: var(--midnight); color: var(--on-ink); padding: clamp(28px, 3vw, 42px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.roi-output .tool-result-num { font-size: clamp(2.6rem, 6vw, 4rem); margin: 6px 0; }
.roi-output .btn { margin-top: 22px; }

/* ---------- Maturity quiz (stepper) ---------- */
.quiz { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.quiz-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.quiz-count { font-size: .82rem; font-weight: 600; color: var(--slate); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quiz-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 20%; background: var(--gold); border-radius: 999px; transition: width .4s var(--ease); }
.quiz-q { font-family: var(--f-serif); font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.2; margin-bottom: 22px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { text-align: left; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bone); color: var(--text); font-size: 1rem; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease), transform .1s var(--ease); }
.quiz-opt:hover { border-color: var(--gold); background: var(--bone-2); }
.quiz-opt:active { transform: translateY(1px); }
.quiz-back { margin-top: 16px; background: none; border: 0; color: var(--slate); font-size: .9rem; cursor: pointer; padding: 4px; }
.quiz-back:hover { color: var(--text); }
.quiz-result { text-align: center; }
.quiz-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Trust pillars ---------- */
.trust-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.trust-pillar { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bone); }
.trust-pillar h3 { font-family: var(--f-sans); font-weight: 700; font-size: 1.08rem; color: var(--gold-2); margin-bottom: 9px; }
.trust-pillar p { color: var(--muted); font-size: .94rem; }
.trust-hint { color: var(--slate); font-size: .9rem; margin-bottom: 16px; }
.comp-badge { cursor: pointer; }
.comp-badge::after { content: "+"; float: right; color: var(--gold-2); font-size: 1.1rem; line-height: 1; opacity: 0; transition: opacity .2s var(--ease); }
.comp-badge:hover::after { opacity: 1; }

/* ---------- Contact: service multi-select ---------- */
.services-picker { border: 0; padding: 0; margin: 0 0 6px; }
.services-picker legend { font-size: .89rem; font-weight: 500; color: var(--on-ink); margin-bottom: 10px; padding: 0; }
.services-picker legend span { color: var(--muted-ink); font-weight: 400; }
.svc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-opt { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--line-ink); border-radius: var(--radius-sm); background: rgba(246,244,239,.05); color: var(--on-ink); font-size: .89rem; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.svc-opt:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--line-ink)); background: rgba(246,244,239,.08); }
.svc-opt input { accent-color: var(--gold); width: 16px; height: 16px; flex: none; }

/* ---------- Article / thought-leadership pages ---------- */
.post-head { background: var(--midnight); color: var(--on-ink); padding: 22px 0; }
.post-wrap { max-width: 748px; padding-top: 54px; padding-bottom: 90px; }
.post-tag { display: inline-block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: 14px; }
.post-wrap h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; margin-bottom: 16px; }
.post-meta { color: var(--slate); font-size: .9rem; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-wrap h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 40px 0 12px; }
.post-wrap h3 { font-family: var(--f-sans); font-weight: 700; font-size: 1.06rem; margin: 26px 0 6px; }
.post-wrap p, .post-wrap li { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.post-wrap p { margin-bottom: 16px; }
.post-wrap ul, .post-wrap ol { margin: 0 0 18px; padding-left: 22px; }
.post-wrap li { margin-bottom: 8px; }
.post-wrap strong { color: var(--text); font-weight: 600; }
.post-lead { font-size: 1.22rem !important; color: var(--text) !important; }
.post-note { background: var(--bone-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: .88rem !important; color: var(--muted) !important; }
.post-sources { margin-top: 44px; padding: 26px 28px; background: var(--bone-2); border: 1px solid var(--line); border-radius: var(--radius); }
.post-sources h2 { margin-top: 0; font-size: 1.1rem; }
.post-sources li { font-size: .92rem; }
.post-cta { margin-top: 44px; padding: 34px; background: var(--midnight); color: var(--on-ink); border-radius: var(--radius-lg); text-align: center; }
.post-cta h2 { margin: 0 0 10px; color: var(--on-ink); border: 0; }
.post-cta p { color: var(--muted-ink); margin-bottom: 20px; }

@media (max-width: 900px) {
  .roi-wide { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .roi-inputs { grid-template-columns: 1fr; }
  .trust-pillars { grid-template-columns: 1fr; }
  .svc-options { grid-template-columns: 1fr; }
}

/* ============================================================
   Cookie consent & preferences
   ============================================================ */
.cc-banner {
  position: fixed; left: clamp(12px, 3vw, 24px); bottom: clamp(12px, 3vw, 24px); z-index: 10002;
  width: min(430px, calc(100vw - 24px));
  background: var(--midnight); color: var(--on-ink); border: 1px solid var(--line-ink);
  border-radius: 16px; padding: 20px 20px 16px; box-shadow: 0 24px 60px -18px rgba(12,16,21,.6);
  opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cc-banner.in { opacity: 1; transform: none; }
.cc-text { font-size: .9rem; line-height: 1.55; color: var(--muted-ink); margin: 0 0 16px; }
.cc-text a { color: var(--gold); text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-btn { font-family: var(--f-sans); font-size: .86rem; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.cc-primary { background: var(--gold); color: #201603; margin-left: auto; }
.cc-primary:hover { background: var(--gold-2); }
.cc-ghost { background: transparent; border-color: var(--line-ink); color: var(--on-ink); }
.cc-ghost:hover { border-color: var(--gold); }
.cc-link { background: transparent; color: var(--muted-ink); padding: 10px 8px; }
.cc-link:hover { color: var(--on-ink); }

.cc-modal { position: fixed; inset: 0; z-index: 10003; display: grid; place-items: center; padding: 20px; }
.cc-modal-backdrop { position: absolute; inset: 0; background: rgba(12,16,21,.62); backdrop-filter: blur(3px); }
.cc-modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bone); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 90px -30px rgba(12,16,21,.6); }
.cc-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.cc-x:hover { background: var(--bone-2); }
.cc-modal-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.cc-sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.cc-cat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; padding: 18px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cc-cat-txt strong { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.cc-cat-txt span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.cc-cat input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--line); transition: background .2s var(--ease); flex: none; }
.cc-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.cc-cat input:checked + .cc-switch { background: var(--gold); }
.cc-cat input:checked + .cc-switch::after { transform: translateX(20px); }
.cc-cat input:disabled + .cc-switch { background: color-mix(in srgb, var(--gold) 50%, var(--line)); opacity: .7; }
.cc-cat input:focus-visible + .cc-switch { outline: 2px solid var(--gold); outline-offset: 2px; }
.cc-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .cc-banner { transition: none; } .cc-switch, .cc-switch::after { transition: none; } }
@media (max-width: 460px) { .cc-banner { left: 8px; right: 8px; width: auto; } .cc-primary { margin-left: 0; } .cc-actions { flex-direction: column; align-items: stretch; } .cc-btn { text-align: center; } }

/* ============================================================
   Alfie — AI guide widget
   ============================================================ */
.buddy-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.buddy-launcher {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 10000;
  display: inline-flex; align-items: center; gap: 0; padding: 5px; padding-right: 0;
  background: var(--midnight); color: var(--on-ink); border: 1px solid var(--line-ink); border-radius: 999px;
  cursor: pointer; box-shadow: 0 14px 40px -12px rgba(12,16,21,.55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), padding-right .3s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.buddy-launcher:hover { transform: translateY(-3px); box-shadow: 0 20px 46px -14px rgba(12,16,21,.6); padding-right: 20px; }
.buddy-launcher .buddy-ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; background: var(--midnight-2); box-shadow: 0 0 0 2px var(--gold); }
.buddy-badge { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--f-sans); font-weight: 600; font-size: .92rem; letter-spacing: .01em; transition: max-width .3s var(--ease), margin .3s var(--ease); }
.buddy-launcher:hover .buddy-badge { max-width: 140px; margin-left: 12px; }
.buddy-launcher::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #4ade80; border: 2px solid var(--midnight); }
.buddy-launcher[aria-expanded="true"] { transform: scale(.9); opacity: 0; pointer-events: none; }

.buddy-panel {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 10000;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 56px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--midnight); color: var(--on-ink);
  border: 1px solid var(--line-ink); border-radius: 20px; box-shadow: 0 30px 80px -24px rgba(12,16,21,.7);
  transform-origin: bottom right; animation: buddyIn .3s var(--ease);
}
.buddy-panel[hidden] { display: none; }
@keyframes buddyIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.buddy-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; border-bottom: 1px solid var(--line-ink); background: linear-gradient(180deg, rgba(215,171,85,.08), transparent); }
.buddy-ava-sm { position: relative; flex: none; }
.buddy-ava-sm img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px var(--gold); background: var(--midnight-2); }
.buddy-online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #4ade80; border: 2px solid var(--midnight); }
.buddy-id { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.buddy-id strong { font-family: var(--f-sans); font-weight: 700; font-size: 1.02rem; }
.buddy-id span { color: var(--muted-ink); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buddy-close { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-ink); border-radius: 8px; color: var(--on-ink); cursor: pointer; transition: background .2s var(--ease); }
.buddy-close:hover { background: var(--card-ink); }

.buddy-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.buddy-body iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.buddy-log { display: flex; flex-direction: column; gap: 12px; }
.buddy-msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.buddy-msg.bot { align-self: flex-start; background: var(--card-ink); border: 1px solid var(--line-ink); color: var(--on-ink); border-bottom-left-radius: 5px; }
.buddy-msg.user { align-self: flex-end; background: var(--gold); color: #201603; font-weight: 500; border-bottom-right-radius: 5px; }
.buddy-msg a { color: var(--gold); text-decoration: underline; }
.buddy-msg.user a { color: #201603; }
.buddy-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; background: var(--card-ink); border: 1px solid var(--line-ink); border-radius: 14px; border-bottom-left-radius: 5px; }
.buddy-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-ink); animation: buddyDot 1.2s var(--ease) infinite; }
.buddy-typing i:nth-child(2) { animation-delay: .15s; }
.buddy-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes buddyDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.buddy-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.buddy-chip { font-family: var(--f-sans); font-size: .82rem; font-weight: 500; padding: 8px 13px; border: 1px solid var(--line-ink); border-radius: 999px; background: transparent; color: var(--on-ink); cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.buddy-chip:hover { background: var(--card-ink); border-color: color-mix(in srgb, var(--gold) 50%, var(--line-ink)); }

.buddy-inputbar { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-ink); }
.buddy-inputbar input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line-ink); background: rgba(246,244,239,.05); color: var(--on-ink); font-size: .92rem; }
.buddy-inputbar input::placeholder { color: var(--muted-ink); }
.buddy-inputbar input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,171,85,.22); }
.buddy-send { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--gold); color: #201603; cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease); }
.buddy-send:hover { background: var(--gold-2); transform: translateY(-1px); }
.buddy-disc { padding: 0 16px 14px; margin: 0; font-size: .72rem; color: var(--muted-ink); text-align: center; }
.buddy-disc a { color: var(--gold); }

@media (max-width: 460px) {
  .buddy-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .buddy-panel { animation: none; }
  .buddy-typing i { animation: none; }
}
